SKU:U225


























Chain PIR is a pyroelectric infrared human presence sensing node in the M5Stack Chain series. It features a built-in pyroelectric infrared sensor and an integrated programmable RGB LED. It is suitable for applications such as human activity detection, smart home automation, and security alarms.
Chain PIR integrates an STM32G031G8U6 data processor and uses a UART serial daisy-chain communication protocol. Its two HY2.0-4P expansion interfaces allow additional Chain series devices to be connected, enabling richer interactive applications.
| Specification | Parameter |
|---|---|
| MCU | STM32G031G8U6 |
| Power Input | DC 5V |
| Communication | UART 115200bps@8N1 |
| Interface | 2 x HY2.0-4P |
| RGB LED | 1 x WS2812C |
| Sensor | AS312 Pyroelectric Infrared Sensor |
| Maximum Detection Distance | 2.4m |
| Detection Angle | ±60° |
| Detection Interval | 2s |
| Operating Power Consumption | 5V@10.74mA |
| Product Size | 23.9 x 23.9 x 22.3mm |
| Product Weight | 6.8g |
| Package Size | 138.0 x 93.0 x 21.0mm |
| Gross Weight | 10.0g |
Use Chain Bridge connectors to connect the Chain DualKey controller to each Chain series input device. Pay attention to the orientation when connecting: the triangular arrows should point outward from the Chain DualKey controller, as shown below:


| STM32G031 | PA8 |
|---|---|
| WS2812C | RGB |
| STM32G031 | PB0 |
|---|---|
| PIR Sensor | Input |
The PIR Sensor detection trigger hold time is 2 seconds. When repeatedly triggered, the hold time is restarted from the last valid pulse.
| STM32G031 | PB6 | PB7 | PA2 | PA3 |
|---|---|---|---|---|
| UART1 | TXD1 | RXD1 | ||
| UART2 | TXD2 | RXD2 |