Arduino Motion Detection Light
Arduino Motion Detection Light
Table of Contents
Step 4: Coding.... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Step 5: WARNING!!!!! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
http://www.instructables.com/id/Arduino-Motion-Detection-Light/
Author:Gabriel Aron
i am gabi,from chennai,tamilnadu
Hi, this is my new Arduino Motion Detection Light. It is powered by an 9v supply for the arduino and 5w for light. If a man or an animal pass through the PIR
sensor, it detects and will start the relay(as the light turns on). If there is no detection, then it will stop the relay(as the light turns off). You can also attach to
walls with the hanging tie.This project is very usefull in our life. You can attach it to your room or bathroom or in a bedroom........
4.arduino board
5.a 5v Relay
6.a 9V adapter
http://www.instructables.com/id/Arduino-Motion-Detection-Light/
Step 3: Connect the 5v relay to the arduino
1.Connect the GND pin to the ground.
http://www.instructables.com/id/Arduino-Motion-Detection-Light/
Step 4: Coding....
copy and paste to the IDE.
pinMode(relayPin, OUTPUT);
digitalWrite(relayPin, LOW);
void loop(){
{ // If Motion detected
digitalWrite(relayPin, HIGH);
// Turn Relay ON
Serial.println("Relay is ON");
delay(15000);}
digitalWrite(relayPin, LOW);
delay(500); }
Step 5: WARNING!!!!!
Its very dangerous beacuse of high voltage AND you might get shocked.So recheck that everything is connected properly and correctly.After doing all , PLUG IN YOUR
CIRCUIT. FIRST THE LIGHT TURNS ON AND OFF. THEN YOUR CIRCUIT WILL WORK.if It dosnt, please comment, so that i can solve it.
http://www.instructables.com/id/Arduino-Motion-Detection-Light/
Step 7: You are Done.
Related Instructables
Arduino Motion
Sensor Control DIY Smart MOTION Lighting up an Motion Sensor PIR Motion
Room Light SENSOR USING LED with Leap Arduino by Detector With
Led Light by
System With ARDUINO by Motion on Mac ZakariyeA Arduino:
eglass1 PIR Motion OSX (For Operated at
appytechie
Sensor and Beginners) by Lowest Power
Arduino by jkimee Consumption
CircuitMagic Mode by
TheElectromania
Advertisements
Comments
http://www.instructables.com/id/Arduino-Motion-Detection-Light/