M5Stack Unit PIR Pinout

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.

Main pinout

100%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

Pin index

Pin index

Quickly scan every header pin, port name, supported function and usage note.

4 visible
PinMCU pinTypesNotes
GNDCommon ground and host signal reference.
PowerNominal 5 V power input from the host.
NCThe yellow-wire contact is unconnected inside U004.
DigitalMotion detection output to the host. High on detection and low in idle.

Specifications

Model
Unit PIR · SKU U004 · PCB revision unconfirmed
Port B
J1 · HY2.0-4P · 2 mm pitch · one digital output
Power
Nominal 5 V on J1.3. The HT7533 generates 3.3 V for the AS312.
Logic
J1.1 is an active-high output in the 3.3 V logic domain, inferred from the circuit.
Detection
Up to 5 m · field of view below 100° · retriggerable
Enclosure
32 × 24 × 12.5 mm · two LEGO-compatible mounting holes

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
U004Product manual and pin mapM5StackProduct photos, cable colors and detection behavior.Datasheet
U004Circuit schematicM5StackJ1 numbering, power regulation and AS312 output routing.Datasheet
U004Mechanical CADM5StackEnclosure geometry and receptacle cutout.Datasheet
AS312PIR sensor datasheetSenbaSensor pinout and REL output characteristics.Datasheet
U004Official storeM5StackListed as PIR Motion Sensor (AS312).Datasheet

Board notes

Front orientation
With the lens up and Port B down, read left to right from J1.4 (black) to J1.1 (white).
Rear sticker
IN on the white-wire position means an input to the host. The yellow-wire position marked OUT is unconnected on U004.
Revision and levels
The enclosure hides the PCB revision. The schematic establishes the output logic domain. Bench levels and timing remain unmeasured.