Encoder Module with button

Rating:
100% of 100
SKU: CE09436 Brand: Core Electronics Guides (1)

Round and round - measure rotational inputs with ease!

$5.60 AUD, inc GST
$5.09 AUD, exc GST

In stock, ships same business day if ordered before 2PM
Delivered by Mon, 6th of May

- +

58 from local stock, 1 supplier stock; your order will dispatch between Dec 1 to Dec 10. And yes, stock levels and lead times are accurate!

Favourite product

Shipping:

  • $6+ Standard (5+ days*, tracked)
  • $10+ Express (2+ days*, tracked)
  • FREE Pickup (Newcastle only - must order online*)

Shipping costs may increase for heavy products or large orders.

Exact shipping can be calculated on the view cart page.

*Conditions apply, see shipping tab below.

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.

Pinout

Pin function Module label
Power input 5V (Works at 3.3V)
Button output Key
Encoder A  S2
Encoder B S1
Ground GND

 

Specifications

  • 20 Pulses per revolution
  • PEC11R Encoder module (Datasheet)

Shipping List

  • Encoder module
  • Knob (Can ship in a range of colours)

Examples

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

This product is listed in:

Components & Parts>Rotary Encoders

Product Comments

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):

  • $3+ for Stamped Mail (typically 10+ business days, not tracked, only available on selected small items)
  • $6+ for Standard Post (typically 6+ business days, tracked)
  • $10+ for Express Post (typically 2+ business days, tracked)
  • Pickup - Free! Only available to customers who live in the Newcastle region (must order online and only pickup after we email to notify you the order is ready). Orders placed after 2PM may not be ready until the following business day.

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:

  • $11+ for Pack and Track (3+ days, tracked)
  • $16+ for Express International (2-5 days, tracked)

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!

Write Your Own Review

Videos

View All

Guides

Getting Started with Rotary Encoders | Examples with Raspberry Pi Pico

In this guide, we'll learn what a Rotary Encoder is, when and why we might use a Rotary Encoder, an...
In this guide, we'll learn what a Rotary Encoder is, when and why we might use a Rotary Encoder, an...

The Maker Revolution

The Maker Revolution celebrates the creation of new devices and the modification of existing ones - ...
The Maker Revolution celebrates the creation of new devices and the modification of existing ones - ...

How to Use Rotary Encoders

Hello and welcome to our tutorial on using rotary encoders. Today we’re going to be taking a l...
Hello and welcome to our tutorial on using rotary encoders. Today we’re going to be taking a l...

Projects

Raspberry Pi Microscope

The Raspberry Pi Microscope was put together to help with soldering PCBs that have small surface mo...
The Raspberry Pi Microscope was put together to help with soldering PCBs that have small surface mo...

Accurate IoT Clock With ESP8266

Being punctual is important. Hence accurate time is required. Clocks tend to miss out when it comes...
Being punctual is important. Hence accurate time is required. Clocks tend to miss out when it comes...

Days2Bin: Pico Powered Bin Reminder

Our recycle bin is collected fortnightly, but I can never remember which week, and the printed cale...
Our recycle bin is collected fortnightly, but I can never remember which week, and the printed cale...
Feedback

Please continue if you would like to leave feedback for any of these topics:

  • Website features/issues
  • Content errors/improvements
  • Missing products/categories
  • Product assignments to categories
  • Search results relevance

For all other inquiries (orders status, stock levels, etc), please contact our support team for quick assistance.

Note: click continue and a draft email will be opened to edit. If you don't have an email client on your device, then send a message via the chat icon on the bottom left of our website.

Makers love reviews as much as you do, please follow this link to review the products you have purchased.