Encoder Unit - m5stack-store Encoder Unit - m5stack-store Encoder Unit - m5stack-store Encoder Unit - m5stack-store Encoder Unit - m5stack-store Encoder Unit - m5stack-store Encoder Unit
  • Encoder Unit - m5stack-store
  • Encoder Unit - m5stack-store
  • Encoder Unit - m5stack-store
  • Encoder Unit - m5stack-store
  • Encoder Unit - m5stack-store
  • Encoder Unit - m5stack-store
  • Encoder Unit

Encoder Unit

SKU:U135

Regular price $7.95

10+ In Stock

Shipping calculated at checkout.

Description

Unit Encoder is an I2C communication interface rotary encoder expansion unit. It integrates a 30-position pulse encoding knob (with button input) + 2x SK6812 programmable RGB LEDs. The built-in STM32F030 main control integrates encoder pulse signal acquisition firmware, allowing users to directly obtain the encoding value through I2C read operations, simplifying the process. It is suitable for scenarios such as scale value control/volume adjustment.

Features

  • 30-position pulse encoding knob (produces 30 pulses per full rotation)
  • 2 x SK6812 programmable RGB LEDs
  • 1 x Button input

Includes

  • 1 x Unit Encoder
  • 1 x HY2.0-4P Grove connection cable (20cm)

Applications

  • Human-computer interaction
  • Volume knob

Specifications

Specification Parameter
MCU STM32F030F4P6
Communication Interface I2C @0x40
Pulse Encoder Knob 30-position pulse encoder knob (with button input)
Programmable RGB LED 2x SK6812
Operating Current Encoder operation (DC 5V@17mA)
Product Size 32.0 x 24.0 x 25.4mm
Product Weight 7.4g
Package Size 138.0 x 93.0 x 25.0mm
Gross Weight 12.3g

LEARN AND DOCUMENTS

Customer Reviews

Based on 1 review
0%
(0)
100%
(1)
0%
(0)
0%
(0)
0%
(0)
j
j b
It counts up and down, but has different behavior than I expected

I never thought about what the encoder might output other than -1, 0, or +1. It outputs a TOTAL count of clicks. So reading this unit will accumulate a number according to how much you turn it CW and CCW. You can get back to zero if you carefully slowly change it while watching the I2C bus.

Ok -- so it is strange. I can work with it. Now, I find that there is no method to reset the device back to zero or set it to a starting value. I'm building a radio tuner where the frequency has to go up to 30,000,000. when you power cycle the unit the encoder returns to zero, but everything else is confusing. When i change bands from 30mhz to say 10mhz, i need to sync up the encoder value with the new tuner value. I'll say this -- it is hard to work with this unit.

I've also found that the counts change by 2 each time, maybe because of the manual detents? it was very difficult to get small counts, even with fast poling.

The 2 RGB LEDs are a "fun" feature. The pushbutton works good.

The unit works. Just different. I'm not sure how it is supposed to work with I2C as there are no interrupts to listen to. Might have to revert to the two pin format and code it for interrupts (and better software control)