5% OFF Over $19, Code: Elephant5; 10% OFF Over $59, Code: Elephant10



EASY plug Ultimate Starter Learning Kit Project 13: Someone is in this area!

Posted by Fiona Su on

Overview
How can we know someone enters and leaves a certain area? Great, use a PIR motion sensor. The PIR sensor allows to detect motion.That information can be useful, for example, to trigger an alarm or to turn on the lights.
Component Required

  • EASY plug control board*1
  • EASY plug PIR Motion Sensor*1
  • EASY plug LED module*1
  • EASY plug Fan motor*1
  • RJ11 cable*3
  • USB cable*1

Component Introduction
PIR stands for Pyroelectric Infrared (many times, they are also referred as Passive Infrared sensors). This is because their principle of operation is based on the detection of infrared energy emitted by a moving body.
The PIR sensor can detect infrared signals from a moving person or moving animal, outputting switching signals.
One important thing to mention is that when motion is detected, the output will stay high for 2.3 to 3 seconds after the motion stops.
Regarding the power supply, it can work with voltages of both 3.3V and 5V. The device has a detection range of 7 meters and a detection angle of 100º.

  • Input Voltage: 3.3 ~ 5V, Maximum 6V
  • Working Current: 15uA
  • Working Temperature: -20 ~ 85℃
  • Output Voltage: High 3V, Low 0V
  • Output Delay Time (High Level): About 2.3 to 3 Seconds
  • Detection angle: 100°
  • Detection distance: 7 meters
  • Pin limit current: 100mA

Connect It Up
Connect the EASY Plug PIR Motion sensor and LED module to control board using RJ11 cables.

thumb

Test Code

thumb

What You Should See
After uploading the code, slide the potentiometer, the servo motor will rotate to a certain angle.

thumb

Done uploading the code, if the sensor detects someone moving nearby, you should see the LED is turned on.

thumb

Open the serial monitor and set the baud rate to 9600, it will print out the data.

thumb

Controlling Fan Motor
Hookup Guide

thumb

Test Code

thumb

 

What You Should See
If the sensor detects someone moving nearby, you should see the LED is turned on, and the fan motor is rotating. Otherwise, LED is turned off and motor stops rotating.

thumb

thumb

All Tutorials

Buy >> EASY plug Ultimate Starter Learning Kit 

0 comments

Leave a comment

Please note, comments must be approved before they are published