Main pinout
Drag to pan · Ctrl/⌘ + wheel to zoomSwipe up/down to scroll the page · Swipe sideways to pan · Use two fingers to pan and zoom
Show circuit details
The M5Stack Unit PIR detects movement through changes in infrared radiation. The AS312 raises the Port B output on detection and holds it high for about 2 seconds. Further detections extend the pulse.
Pin index
Quickly scan every header pin, port name, supported function and usage note.
| Pin | MCU pin | Types | Notes |
|---|---|---|---|
| GND | Common ground and host signal reference. | |
| Power | Nominal 5 V power input from the host. | |
| NC | The yellow-wire contact is unconnected inside U004. | |
| Digital | Motion detection output to the host. High on detection and low in idle. |
References
Manufacturer references and technical documentation.
| Chip | Role | Manufacturer | Notes | Link |
|---|---|---|---|---|
U004 | Product manual and pin map | M5Stack | Product photos, cable colors and detection behavior. | Datasheet |
U004 | Circuit schematic | M5Stack | J1 numbering, power regulation and AS312 output routing. | Datasheet |
U004 | Mechanical CAD | M5Stack | Enclosure geometry and receptacle cutout. | Datasheet |
AS312 | PIR sensor datasheet | Senba | Sensor pinout and REL output characteristics. | Datasheet |
U004 | Official store | M5Stack | Listed as PIR Motion Sensor (AS312). | Datasheet |