Motion Detector Robot

by anne.hung11 in Circuits > Arduino

190 Views, 1 Favorites, 0 Comments

Motion Detector Robot

IMG 6608

Hi everyone, today I am making a Motion detector Robot that can make sound to alarm you someone trying break into your house. It is very useful for people is afraid that thief or intruder. In my case, I don't like any one coming to my work space without my prior knowledge, mostly if the persons are my sibling or young kids.I need a way to make an alarm to help me protect my space and guard it properly.

I had made a Arduino robot drummer last time, so this time I'm going to add a motion detection to accomplish this goal.Here a HC-SR510 is used as a trigger to detect motion. below is what I accomplished, hope you enjoy it!

Supplies

For the execution of the project we used the following materials:

Arduino board;

Breadboard;

jumper wires;

HC-SR510*2

Positional rotation servo motors *2

Wooden sticks*2

Red LED; Green LED; 2 220-ohm resistors.

lovely Doll*1

Follow the steps below to accomplish the estimated work.

Assemble the Arduinos

F45OJFGKNG1BDRV.jpg
HC-SR510.jpg

Now we need to set up the meat of our project,

1. Set up the Ultrasonic Sensor

2. Attach the Servomotors

3. Connect the Servo to Arduino Board

4. Tape Drumstick on Servo Horns.

5. Build the Dull Robot

Connecting Arduino

IMG_3843.jpg
Doll Drummer.jpg
Motion Dedection Drummer.jpg
Motion Detection Drummer.jpg

Once you already have the materials, we can started connecting all the component.

The first two photos show the original doll drum player. It used two servo.

The third and fourth Photo show the motion detection drummer , and it add a new HC-SC510

Install the Code

IMG_3839.jpg

After everything is in place, the next is installing the code to make it work.

in order to make the motion detection can work, my major modification are adding below code into ogival code.

1. add motion detect into code

int MotionDetectPin = 8; //The Pin setting

2. add below as condition to trigger action

if(digitalRead(MotionDetectPin) == HIGH )
{

}

My code below

Refer: https://create.arduino.cc/editor/anneee1103/49f22...

Final

After all these are done, you can enjoy the motion detection drummer now!!

Should you have any question to build your own, do not hesitate to ask!!