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.
Specification | Parameter |
---|---|
Pulse Encoding Knob | 30-position pulse encoding knob (with button input) |
Programmable RGB LED | 2x SK6812 |
Operating Current | Encoder operation (DC-5V@17mA) |
Net Weight | 7.4g |
Gross Weight | 12.3g |
Product Size | 32 x 24 x 22mm |
Package Size | 93 x 138mm |
HY2.0-4P | Black | Red | Yellow | White |
---|---|---|---|---|
PORT.A | GND | 5V | SDA | SCL |
ENCODER_REG 0x10
REG | len | Description | Values | R/W |
---|---|---|---|---|
0x10 | 2 | Read encoder value | [0] VALUE_L [1] VALUE_H | R |
BUTTON_REG 0x20
REG | len | Description | Values | R/W |
---|---|---|---|---|
0x20 | 2 | Read button status | [0] BTN STATUS | R |
RGB_LED_REG 0x30
REG | len | Description | Values | R/W |
---|---|---|---|---|
0x30 | 4 | Write control RGB LED color | [0] LED index (1/2) [1] RED [2] GREEN [2] BLUE | W |