Tag Archives: fritzing

Arduino: Robotic Wrist using 2 servos and a speaker

I’m currently working on a robotic arm that I hope will have fine motor control abilities.
So far, I’ve got the wrist movements down: I can move vertically and rotate. This is all controlled by an old SONY TV remote.
The vertical movements are controlled by one servo (in code: servoV) and the rotating movements are controlled by another (in code: servo). I’ve got buttons on the remote that do both macro and micro movements.
The speaker lets me know when I’ve exceeded arbitrarily selected max and min degree values (well not so arbitrary: I selected them because I noticed that the servos struggle past certain degrees).

Watch the Demo here! (less than 2 mins)

I’ve provided download links to all the materials you’ll need, but if for some reason they don’t work, download the files from my fritzing project profile:
Robotic Wrist with Speaker (at work #2)

To recreate my robotic wrist you’ll want to:

1 – copy and adapt my code in Arduino
2 – build the physical robot body with servos
3 – connect the servos, speaker, breadboard, and arduino following my circuit diagram

Parts used:
2 servos
1 IR receiver
1 Piezo Speaker
1 breadboard
1 Arduino
1 IR remote
1 9V battery
extra black and red wires
a USB cord that plugs into the Arduino
Some foam core, tape, and a large one of these clips 
Image

1: Copy and adapt my code in Arduino:
Code: Arduino (.ino) file    or    Code: Java (.java) document
Labelled (with results values) JPG of SONY Remote Control  ** you don’t really need this 
** if you use the Arduino code, make sure you place it in a folder that has the exact same name as the .ino file. If you don’t know what I mean, when you try to open the .ino file, Arduino will ask you if it’s okay to put it in a folder. Let it do that **

2: Build the Physical robot body
Watch the video here (2:30 mins)

3: Connect the pieces
Circuit diagram: fritzing (.fzz) document    or    Circuit diagram: PNG

Image

** note: If you’re using larger servos (like I am), make sure your power supply is sufficient. You’ll know it’s insufficient if the intro to Beethoven’s 5th Symphony repeatedly plays. This is because when the power supply is insufficient, the Arduino will keep rebooting, so it will repeatedly run through the setup.