Chain Angle is a potentiometer knob input node in the M5Stack Chain series. As the potentiometer knob rotates, the voltage at the sampling terminal changes within a fixed range. After ADC conversion by the built-in MCU, it outputs signal values with up to 12-bit resolution. It also integrates a programmable RGB LED for status indication and interactive display, making it suitable for human-machine interaction, smart home, and motor speed control applications.
| Item | Information |
|---|---|
| Expansion module | Chain Angle (U208) |
| Main functions | Provides rotary knob input |
| Communication interface | Chain Bus / UART |
| ESPHome components | m5_chain_base, m5_chain_angle (external components) |
| ESPHome version requirement | 2026.9.0 or later |
The Chain DualKey acts as the system's main controller. When connecting expansion sensors, set the connection direction and ID numbering order correctly.
Select the corresponding uart_id according to the side of the Chain DualKey to which the expansion sensor is connected:
chain_uart_left.chain_uart_right.chain_index indicates the position of the expansion sensor relative to the Chain DualKey:
uart:
- id: chain_uart_right
tx_pin: GPIO6
rx_pin: GPIO5
baud_rate: 115200
- id: chain_uart_left
tx_pin: GPIO47
rx_pin: GPIO48
baud_rate: 115200 external_components:
- source: github://m5stack/esphome@feat-m5-chain
components: [m5_chain_base, m5_chain_angle]
refresh: 0s m5_chain_angle:
id: chain_angle
uart_id: chain_uart_right
chain_index: 1
update_interval: 250ms Set the correct index according to the actual position of the Chain.
sensor:
- platform: m5_chain_angle
m5_chain_angle_id: chain_angle
type: adc_12
name: Chain Angle ADC 12
- platform: m5_chain_angle
m5_chain_angle_id: chain_angle
type: adc_8
name: Chain Angle ADC 8 output:
- platform: m5_chain_angle
id: chain_angle_red
m5_chain_angle_id: chain_angle
channel: rgb_red
- platform: m5_chain_angle
id: chain_angle_green
m5_chain_angle_id: chain_angle
channel: rgb_green
- platform: m5_chain_angle
id: chain_angle_blue
m5_chain_angle_id: chain_angle
channel: rgb_blue
light:
- platform: rgb
name: "Chain Angle Light"
red: chain_angle_red
green: chain_angle_green
blue: chain_angle_blue After the Chain Angle expansion module is connected, you can view the corresponding Sensor and Light entities on the device page:
Dashboard card example
