M5Stack Chain PIR (STM32G031)
Need a larger quantity?
Need bulk pricing?
Get a formal quotation with lead time and volume pricing.
For universities, companies, distributors, and project orders.
M5Stack Chain PIR (STM32G031)
Description
The M5Stack Chain PIR U225 is a compact PIR human presence sensor in the M5Stack Chain series. It combines an AS312 pyroelectric infrared sensor, a programmable RGB LED and an STM32G031G8U6 controller in a small Chain enclosure for human activity and motion detection.
Through the UART serial daisy-chain communication protocol, the M5Stack Chain PIR can connect with additional Chain devices. Two HY2.0-4P ports simplify modular wiring, while automatic reporting mode and query mode give developers flexible integration paths for smart home automation, security alarms and interactive maker projects.
Features
- M5Stack Chain series: compact Chain module for modular sensor networks.
- PIR human presence sensing: AS312 PIR sensor for human activity and motion detection.
- STM32G031G8U6 data processor: handles sensor data locally and provides UART communication.
- UART daisy-chain: serial Chain protocol at 115200bps@8N1 for multi-node Chain layouts.
- Dual HY2.0-4P interfaces: two Chain ports for pass-through wiring or integration.
- Programmable RGB LED: WS2812C LED for status, feedback or project indication.
- Two operating modes: automatic reporting mode and query mode for different control logic.
Specifications
| SKU | M5-U225 |
| Official SKU | U225 |
| Product Name | M5Stack Chain PIR (STM32G031) |
| Product Type | M5Stack Chain series PIR human presence sensor |
| MCU | STM32G031G8U6 |
| Sensor | AS312 pyroelectric infrared sensor |
| RGB LED | 1 x WS2812C |
| Power Input | DC 5V |
| Communication | UART 115200bps@8N1 |
| Interfaces | 2 x HY2.0-4P |
| Daisy-Chain Protocol | UART serial daisy-chain communication protocol |
| Maximum Detection Distance | 2.4 m |
| Detection Angle | +/-60 degrees |
| Trigger Hold Time | 2 s; repeated trigger restarts the hold time |
| Operating Modes | Automatic reporting mode, query mode |
| Operating Power Consumption | 5V@10.74mA |
| Product Size | 23.9 x 23.9 x 22.3 mm |
| Product Weight | 6.8 g |
| Package Size | 138.0 x 93.0 x 21.0 mm |
| Gross Weight | 10.0 g |
Applications
- Smart home automation: presence sensing for lighting, scenes or room events.
- Security alarm: PIR-based motion detection for compact security nodes.
- Interactive installation: Chain PIR input for exhibits, displays and maker projects.
- Low-power sensing: compact 5V sensing for modular Chain builds.
Product List
| Chain PIR | x1 |
| Chain Bridge | x1 |
Other Content
The detail images show how the M5Stack Chain PIR fits into a Chain series wiring path. The two HY2.0-4P ports can pass the chain to additional modules; the package includes one Chain Bridge, and a separate M5Stack Chain Bridge Connector can be useful for larger layouts.



Connection direction matters in a Chain build. The official guide shows the triangular arrows pointing outward from a M5Stack Chain Dual Key controller so Chain input devices are detected correctly.

The schematic image helps verify MCU pins, PIR input, UART routing and LED control. According to the official PinMap, the RGB LED uses PA8, PIR input uses PB0, UART1 uses PB6/PB7 and UART2 uses PA2/PA3. Mechanical dimensions are kept in the specifications table and official Model Size PDF.

The weight image confirms the compact 6.8 g module for small smart-home, security and maker builds.

Resources
- M5Stack Chain PIR documentation
- Schematic PDF
- Model size PDF
- Arduino quick start
- M5Chain driver library
- PIR example code
- UiFlow2 MicroPython documentation
- Chain PIR protocol PDF
FAQ
What does the M5Stack Chain PIR U225 detect?
The sensor detects human activity or motion through an AS312 PIR sensor.
Which communication interface does Chain PIR use?
The M5Stack Chain PIR uses UART at 115200bps@8N1 with a serial daisy-chain protocol.
Which connectors are available?
The module has two HY2.0-4P connectors for M5Stack Chain series connections.
Is a controller included?
No. The package includes Chain PIR and Chain Bridge; a Chain controller is required separately.
Which operating modes are supported?
The official documentation lists automatic reporting mode and query mode.








