Me PIR Motion Sensor
Overview
Me PIR Motion Sensor is a module to detect the infrared radiation emitted from human or animal
body, and its maximum induction range is 6m. If somebody is moving in the range, its DO pin will
output an effective signal to light on the blue LED on the board. Its blue ID means that it has a
double-digital port and needs to be connected to the port with blue ID on Makeblock Orion.
Technical specifications
●
Operating voltage: 5V DC
●
Output voltage: 5 V/high level, 0 V/low level
●
Trigger signal: 5 V/high level
●
Retention time: 2 second
●
Detection angle: 120°
●
Distance detected: max. 6 m
●
Dimension: 51 x 24 x 18 mm (L x W x H)
Functional characteristics
●
Provide a potentiometer which sensitivity is adjustable
●
Built-in two-way amplitude discriminator for interference suppression
●
Operate in two modes: repeatable trigger (default) and non- repeatable trigger
●
White area of module is the reference area to contact metal beams
●
Support mBlock GUI programming, and applicable to users of all ages
●
Adopt RJ25 port for easy connection
●
Provide pin-type port to support most development boards including Arduino series
Pin definition
The port of Me PIR Motion Sensor has four pins, and their functions are as follows:
Wiring mode
●
Connecting with RJ25
Since the port of Me PIR Motion Sensor has blue ID, you need to connect the port with blue ID on
Makeblock Orion when using RJ25 port. Taking Makeblock Orion as
example, you can connect to ports No. 3, 4, 5, and 6 as follows:
●
Connecting with Dupont wire
When the Dupont wire is used to connect the module to the Arduino UNO Baseboard, its Mode and
DOP pins should be connected to digital ports as follows:
Guide to programming
●
Arduino programming
If you use Arduino to write a program, the library Makeblock-Library-master should be invoked
to control the Me PIR Motion Sensor. This is a routine to identify if there is anyone or
anything moving nearby by this module through Arduino programming.
The function of the code segment is: to read the result detected from the DO pin to identify if there
is someone nearby, and output 1 if yes or 0 if no. The result is output to the serial monitor in Arduino
IDE every 100ms. Upload the code segment to Makeblock Orion and click the Arduino serial monitor,
and you will see the running result as follows:
●
mBlock programming
Me PIR Motion Sensor supports the mBlock programming environment and its instructions are
introduced as follows:
This is an example on how to use mBlock control the Me PIR Motion Sensor.
If the detected result from the module is nobody is moving, the panda will say “Nobody is playing
with me!” Otherwise, the panda will say “Somebody is playing with me!” The running result is as
follows: