PIR Motion Sensor (AS312) [M5-U004]

PIR Motion Sensor (AS312)

PIR Motion Sensor (AS312) [M5-U004]

Price: $7.48
This product is currently unavailable for purchase
🔒 Secure transaction
Ships from: Little Bird (SYD) → You
Ships from: Supplier → Little Bird (SYD) → You

Product Image Gallery

Photo of PIR Motion Sensor (AS312) Photo of PIR Motion Sensor (AS312) Photo of PIR Motion Sensor (AS312) Photo of PIR Motion Sensor (AS312) Photo of PIR Motion Sensor (AS312)



PIR is used to measure infrared (IR) light radiating from objects in its field of view. PIR sensors are commonly called simply "PIR", or sometimes "PID", for "passive infrared detector". The term passive refers to the fact that PIR devices do not radiate energy for detection purposes. They work entirely by detecting infrared radiation emitted by or reflected from objects.

This Unit communicates with the M5Core via the GROVE B.

Notice: This Unit has 2s delay time.

Product Features

  • Distance: 150cm
  • Delay time: 2s
  • Sensing range: < 100°
  • Quiescent current: < 60uA
  • Operating temperature: -20 - 80 °C
  • Program Platform: Arduino, UIFlow(Blockly, Python)
  • Two Lego installation holes

Kit includes

  • 1x PIR unit
  • 1x GROVE Cable


  • Human body Induction Lamp
  • Security Product
  • Automatic Induction Appliance Settings


1. Arduino IDE

The code below is incomplete. To get complete code, please click here.

#include <M5Stack.h>

// initialization
pinMode(36, INPUT);// set pir sensor pin as input

// read data
int value = digitalRead(36);// read the pin(0: not detectd 1: detected)

2. UIFlow

To get complete code, please click here.

More information





Ordering more than 0?

We can get a further 0 units from M5Stack
Shipping: M5Stack (🌐) → Little Bird (SYD) → You
If you order more than 0 units your estimated delivery is: Wednesday, 25th May — Tuesday, 14th June.
This is an estimate only and delivery times vary.

Your transaction is secure

We work hard to protect your security and privacy. Our payments are based on Shopify which encrypts your information during transmission. We don't share your payment details with third-party sellers, or databrokers, and we don't sell your information to others.

© 2022 Little Bird Electronics Pty Ltd.
Made with ❤️ in SYD. All prices inc GST. ABN 15 634 521 449. We're 🐥 @lbhq on Twitter.