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.
Test Code
What You Should See
After uploading the code, slide the potentiometer, the servo motor will rotate to a certain angle.
Done uploading the code, if the sensor detects someone moving nearby, you should see the LED is turned on.
Open the serial monitor and set the baud rate to 9600, it will print out the data.
Controlling Fan Motor
Hookup Guide
Test Code
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.
All Tutorials
- EASY plug Ultimate Starter Kit for Arduino STEM Education Tutorial
- EASY plug Ultimate Starter Learning Kit Project 1: Hello World
- EASY plug Ultimate Starter Learning Kit Project 2: LED Light
- EASY plug Ultimate Starter Learning Kit Project 3: Knocking
- EASY plug Ultimate Starter Learning Kit Project 4: How much light
- EASY plug Ultimate Starter Learning Kit Project 5: Buzzer clicking
- EASY plug Ultimate Starter Learning Kit Project 6: Capacitive Touch
- EASY plug Ultimate Starter Learning Kit Project 7: Fire extinguishing
- EASY plug Ultimate Starter Learning Kit Project 8: There’s flame
- EASY plug Ultimate Starter Learning Kit Project 9: Avoiding obstacles
- EASY plug Ultimate Starter Learning Kit Project 10: Servo
- EASY plug Ultimate Starter Learning Kit Project 11: Slide Position
- EASY plug Ultimate Starter Learning Kit Project 12: RGB
- EASY plug Ultimate Starter Learning Kit Project 13: Someone is in this area!
- EASY plug Ultimate Starter Learning Kit Project 14: Joystick
- EASY plug Ultimate Starter Learning Kit Project 15: Ambient Light
- EASY plug Ultimate Starter Learning Kit Project 16: Hello, kaka!
- EASY plug Ultimate Starter Learning Kit Project 17: I’m thirsty
- EASY plug Ultimate Starter Learning Kit Project 18: Is there gas leakage?
- EASY plug Ultimate Starter Learning Kit Project 19: Ultrasonic ranging
- EASY plug Ultimate Starter Learning Kit Project 20: What’s the temperature
- EASY plug Ultimate Starter Learning Kit Project 21: What time is it?
- EASY plug Ultimate Starter Learning Kit Project 22: I receive a signal