Chain Switch
SKU:U227
Description
Chain Switch is a slide switch input node in the M5Stack Chain series, supporting both slider mode and switch mode. The device can output 12-bit slider position data and is equipped with a programmable RGB LED for intuitive status feedback. It integrates an STM32G031G8U6 core controller and adopts a UART cascading communication protocol. Through two HY2.0-4P expansion interfaces, it can connect to more Chain series devices, making it suitable for applications such as control panels, status switching, and interactive devices.
Features
- M5Stack Chain series
- Supports slider mode and switch mode:
- Slider mode: reads the slider position and outputs a range of 0 ~ 4095
- Switch mode: outputs the switch state based on the configured on/off thresholds
- 12-bit ADC slider position detection
- STM32G031G8U6 core controller
- 1x RGB LED
- Uses a UART serial cascading communication protocol
- 2x HY2.0-4P expansion ports, capable of expanding Chain series devices
Includes
- 1 x Chain Switch
- 1 x Chain Bridge
Applications
- Control Panel Input
- Smart Home Status Switching
- Interactive Device Control
Specifications
| Specification | Parameter |
|---|
| MCU | STM32G031G8U6 |
| Input Power | DC 5V |
| Communication Method | UART 115200bps@8N1 |
| Interface Specification | 2x HY2.0-4P |
| Slider Position Detection | 12-bit ADC, Output Range 0 ~ 4095 |
| RGB LED | 1x WS2812C |
| Operating Power Consumption | 5V@10.57mA (Typical Operating State) |
| Product Size | 24.0 x 24.0 x 18.5mm |
| Product Weight | 5.9g |
| Package Size | 138.0 x 93.0 x 21.0mm |
| Gross Weight | 9.2g |
Learn
Use the Chain Bridge connector to connect the main controller Chain DualKey and each Chain series device. Pay attention to the direction when connecting; the triangle arrow points from the main controller Chain DualKey to the outside, as shown in the figure:
Schematics
PinMap
Slider
| STM32G031 | PB0 |
|---|
| Slider | ADC_IN |
RGB LED
UART
| STM32G031 | PB6 | PB7 | PA2 | PA3 |
|---|
| UART1 | TXD1 | RXD1 | | |
| UART2 | | | TXD2 | RXD2 |
Model Size
Softwares
Arduino
Internal Firmware
Protocol
Video