pdf-icon

Unit Encoder

SKU:U135

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

Schematics

PinMap

Unit Encoder

HY2.0-4P Black Red Yellow White
PORT.A GND 5V SDA SCL

Softwares

Arduino

UIFlow 1.0

UIFlow 2.0

Internal Firmware

Protocol

  • Protocol Type: I2C
  • I2C Address: 0x40

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

Video

  • Reading encoder values