Round and round - measure rotational inputs with ease!
In stock, ships same business day if ordered before 2PM
Delivered by Tue, 24th of Dec
Recommended Essentials:
Add an easy-to-use continuous rotation input to your project, perfect for navigating through a menu, controlling volume, or connecting to a motor.
Skip adding pull-ups and debounce filters, the module includes these quality-of-life components on the underside,
Connect the module to your favourite microcontroller (ensuring you match the power supply voltage to the IO voltage).
These encoders feature the standard T18 spline and include hardware to be panel mounted like most common potentiometers. We stock a range of colourful knobs of different styles that will fit.
Check out our guide on the theory behind encoders.
Pin function | Module label |
Power input | 5V (Works at 3.3V) |
Button output | Key |
Encoder A | S2 |
Encoder B | S1 |
Ground | GND |
Raspberry Pi Pico - Micropython
from machine import Pin from utime import sleep # Create pins for encoder lines and the onboard button enc_btn = Pin(0, Pin.IN, Pin.PULL_UP) enc_a = Pin(12, Pin.IN) enc_b = Pin(13, Pin.IN) count = 0 # Define a handler function for encoder line A def encoder_a_IRQ(pin): global count if enc_a.value() == enc_b.value(): count += 1 else: count -= 1 # Initialise the interupt to fire on rising edges enc_a.irq(trigger=Pin.IRQ_RISING, handler=encoder_a_IRQ) while True: print(count) if enc_btn.value() == 0: print("Button pressed") sleep(1)
Projects and Guides
Exact shipping can be calculated on the view cart page (no login required).
Products that weigh more than 0.5 KG may cost more than what's shown (for example, test equipment, machines, >500mL liquids, etc).
We deliver Australia-wide with these options (depends on the final destination - you can get a quote on the view cart page):
Non-metro addresses in WA, NT, SA & TAS can take 2+ days in addition to the above information.
Some batteries (such as LiPo) can't be shipped by Air. During checkout, Express Post and International Methods will not be an option if you have that type of battery in your shopping cart.
International Orders - the following rates are for New Zealand and will vary for other countries:
If you order lots of gear, the postage amount will increase based on the weight of your order.
Our physical address (here's a PDF which includes other key business details):
Unit 18, 132 Garden Grove Parade
Adamstown
NSW, 2289
Australia
Take a look at our customer service page if you have other questions such as "do we do purchase orders" (yes!) or "are prices GST inclusive" (yes they are!). We're here to help - get in touch with us to talk shop.
Have a product question? We're here to help!
Makers love reviews as much as you do, please follow this link to review the products you have purchased.
Product Comments