Human Body Sensing PIR Motion Sensor Module 2S Delay GPIO Interface
Save 0
SKU: U2I-BG-1498085
Share this product
Description
Description:
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.
1.EasyLoader is a simple and fast program burner, and each product page has a product-related case program for EasyLoader.
2.After downloading the software, double-click to run the application, connect the M5 device to the computer via the data cable, select the port parameters, and click "Burn" to start burning.
The code below is incomplete. To get complete code, please clickhere.
#include <M5Stack.h> // initialization M5.begin(); pinMode(36, INPUT);// set pir sensor pin as input // read data int value = digitalRead(36);// read the pin(0: not detectd 1: detected) M5.update();