Chain ToF is a laser distance sensing node in the M5Stack Chain series. The device integrates a VL53L0C laser ranging module and supports a measurement range of 3 to 200 cm with an accuracy of ±3%. It is suitable for short-range distance measurement or object proximity detection.
| Item | Information |
|---|---|
| Expansion module | Chain ToF (U209) |
| Main functions | Provides distance measurement data |
| Communication interface | Chain Bus / UART |
| ESPHome components | m5_chain_base, m5_chain_tof (external components) |
| ESPHome version requirement | 2026.9.0 or later |
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_tof]
refresh: 0s m5_chain_tof:
id: chain_tof
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_tof
m5_chain_tof_id: chain_tof
name: "Chain ToF Distance" output:
- platform: m5_chain_tof
id: chain_tof_red
m5_chain_tof_id: chain_tof
channel: rgb_red
- platform: m5_chain_tof
id: chain_tof_green
m5_chain_tof_id: chain_tof
channel: rgb_green
- platform: m5_chain_tof
id: chain_tof_blue
m5_chain_tof_id: chain_tof
channel: rgb_blue
light:
- platform: rgb
name: Chain ToF RGB
red: chain_tof_red
green: chain_tof_green
blue: chain_tof_blue After the Chain ToF expansion module is connected, you can view the corresponding Sensor and Light entities on the device page:
Dashboard card example
