Picture of Deer Chaser
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
Motor shield
Parallax Ultrasonic sensor
Various wires
Ribbon cable
Cheap Tupperware
USB wall charger
Arduino cable (3 ft) 

Remove these adsRemove these ads by Signing Up

Step 1: Wiring

Picture of Wiring
We will begin wiring the ultrasonic sensor and the LEDs.

You will be connecting the wires to these pins:

Step 2: Wiring (contd)

Picture of Wiring (contd)
Now we will wire the servo to the motor shield.

Step 3: Ribbon Cable

Picture of 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

Picture of 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

Picture of 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

Picture of 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

Picture of 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.
The BAD thing is, you are using a 40 pin connector, 80 conductor cable here.
The concept is cool, BUT not all the pins on the connectors are actually connected in an 80 conductor 40 pin cable.
If you were using a 40 conductor 40 pin cable, you could wire to your heart's content without worry.
I just thought that needed to be pointed out!
You give a list of the pins you connected but you don't say what you connected them to? Could you add a schematic/wiring diagram. Thanks!
Also from the pictures I assume you are using the servo to move/ rattle the "pringles" can. Am I correct?
ljmays (author)  Lectric Wizard1 year ago
It does rattle the can. I'll add a schematic soon. I didn't realize that it is a bit confusing just looking at a picture of the wires.