Introduction: Watch Dog

Tired of wasting too much time on your cell phone , had enough with people taking your stuff? watch dog is your answer! Watch dog is a device that can gurd your life in multiple ways. That’s how it works, firstly, you put something on the square platform , and whenever anyone trying to take the thing away, it automaticly turns on the watch dog and start shooting vicious paper balls at that person.

Step 1: Get Your Stuff!!

1.arduino uno board

2.bread board

3 rc kits

4 toy tank or soft air gun

5 wires

6. diode


8.a lap top

9. a servo motot SG93R

10.a toy motor

11 wires

12.card boards

13. a level switch

14. solder iron

15. wood board

16 a hinge


Step 2: Circus and Code!

// constants won't change. They're used here to
// set pin numbers: #include ; const int buttonPin = 2; // the number of the pushbutton pin int motorPin =3; Servo myservo; // create servo object to control a servo // twelve servo objects can be created on most boards

// variables will change: int buttonState = 0; // variable for reading the pushbutton status int pos=0; int onTime =2500; int offTime = 1000; void setup() { // initialize the LED pin as an output: //pinMode (myservo,OUTPUT); myservo.attach(9); // attaches the servo on pin 9 to the servo object pinMode (motorPin,OUTPUT); // initialize the pushbutton pin as an input: pinMode(buttonPin, INPUT); }

void loop() { // read the state of the pushbutton value: buttonState = digitalRead(buttonPin); // check if the pushbutton is pressed. // if it is, the buttonState is HIGH: if (buttonState == HIGH) { for (int pos = 0; pos <= 100 ; pos += 1) { // goes from 0 degrees to 180 degrees // in steps of 1 degree myservo.write(pos); // tell servo to go to position in variable 'pos' delay(20); // waits 15ms for the servo to reach the position } if (buttonState == HIGH) { digitalWrite(motorPin, HIGH); // turns the motor On delay(onTime); // waits for onTime milliseconds digitalWrite(motorPin, LOW); // turns the motor Off delay(offTime); for (int pos = 100; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees myservo.write(pos); // tell servo to go to position in variable 'pos' delay(5 ); } }else { // turn LED off: //digitalWrite(ledPin, LOW); } // waits for offTime milliseconds }} //digitalWrite(ledPin, HIGH);

Here is the code i use .PS: when you solder the wire together , leave enough length for the motor and servo ,and better use the bundle wire.

Step 3: Wiring Into the Remote Controller

Crack the shell of the remote controller, peel off the silicon layer and expose the circuit board. solder the wires just like picture shows you to ,and connect the end of the wire with the level switch.PS: use the level switch as a breaker, it breaks the current when pressing.

Step 4: Build Your Own Remote Device!

Tape the controller on to a wooden box(the side with betteries on the top), put a small block of wood on the top of the level switch.PS: don't glue the hole thing together too fast , use the tape as adhesive so it's flexible untill everything works perfectly.

Step 5: Build the Head of the Dog!

use the chipboard to make the head of the dog. build the head around the shape of your air gun, and don't foget to glue the LED on the head where ever you want to the eyes to be.

Step 6: Build the Body of the Dog

use the wood board to build the body of the dog , use the hinge to connect it to the dog head, and put the servo underneath it, finally, put the bread board and arduino board in side of the body of the dog.

Step 7:

Finally , a video for you guys to enjoy!