Protect your garden with the Deer Chaser Mk I. Guaranteed to protect your precious crops from voracious deer. All weather operation. 100% effective.
What you will need:
Arduino Mega 2560
Parallax Ultrasonic sensor
USB wall charger
Arduino cable (3 ft)
Step 1: Wiring
We will begin wiring the ultrasonic sensor and the LEDs.
You will be connecting the wires to these pins:
Step 2: Wiring (contd)
Now we will wire the servo to the motor shield.
Step 3: Ribbon Cable
The great thing about ribbon cable is that you can use it as a substitute for a breadboard. Ribbon cables are far cheaper than breadboards, yet they can perform the same functions. We will be using a ribbon cable as a flexible breadboard for this project.
Step 4: Attachments - Servo
Now that we have our ribbon cable wired to our Arduino, it is time to make it useful. Gather your servo, ultrasonic, and LEDs because it's time to get them hooked up.
As the title suggests, we'll be starting with the servo.
Step 5: Attachments - LED
We'll be hooking up the LEDs now. Fairly simple operation.
If you are wondering where I got the LEDs, I got them from here -> http://www.sparkfun.com/products/11588
It is a kit that works very nicely with this project.
Step 6: Attachments - Ultrasonic
Now we will attach the most important part of this whole set up: the ultrasonic Ping sensor from Parallax.
You can get a Ping sensor from here -> http://www.parallax.com/product/28015
Step 7: Tupperware
We must protect the Arduino from the elements. This is designed to be used outside after all. Feel free to use anything you want, but I found that the best thing to use was cheap Tupperware. I was able to get 5 containers (with lids) for around $3.00. This is good because we'll be cutting the containers anyway.
We will need to make two cuts. One for the ribbon cable, and the other for the cable that will power the Arduino.