Motion Sensor Light Switch(automatic Light Switch)

by Adnanrk in Workshop > Science

1473 Views, 0 Favorites, 0 Comments

Motion Sensor Light Switch(automatic Light Switch)

Motion sensor light switch || using servo

I made a arduino based project which can switch on the light when someone passes by the door to enter the room.

it uses a ultrasonic sensor(distance sensor) to identify when someone cuts the wave and enters the room,then the servo switchs then button.

This can be modified to turn of the light also,but for that you'll need two ultrasonic sensors to count the people entered the room and how many of them left the room so that it can operate accordingly.

Components Required.

comp 1.png
comp 2.png

we'll need the following things:

1.Arduino uno

2.servo motor

3.A 5v battery

4.ultrasonic sensor(distance sensor)

5.some jumper wires

Connect the Servo Motor

connect servo.png

connection diagram(schematics) is given here(its in pdf)

Connect the Ultrasonic Sensor

connect sensor.png

Upload the Code

code upload.png

the code file is attached here,

copy the code from the document paste it in arduino IDE an upload it :)

Connect Your Battery

battery.png

Some Instructions!!

some instuctions.png

Finally!!......here Is How Its Attached.

scene.png
working.png

Enjoy the hands free switching :)