Single Servo Robot

by fossilshark in Circuits > Arduino

1296 Views, 13 Favorites, 0 Comments

Single Servo Robot

temp_1698349293.jpg
temp_920979516.jpg
this is a robot made with one standard servo and a Parallax thumbstick. the "eyes" can be any LEDs that you want.

What You Will Need

temp_-1382213241.jpg
temp_1649973907.jpg
temp_531024111.jpg
temp_614733402.jpg
temp_-370570609.jpg
temp_1904095361.jpg
PARALLAX 8 pin Thumbstick

servo

AAA battery holder (or AA battery)

LEDs + resistor (im using UV LEDs because I have so many of them)

arduino uno+breadboard

batteries+battery connectors

I got all these parts (plus alot more) in the arduino ultimate starter kit

Code First

temp_-914250591.jpg
download the arduino knob code from
http://arduino.cc/en/Tutorial/knob
and upload to the arduino

Setting Things Up

temp_745515509.jpg
temp_1500224085.jpg
temp_-203615577.jpg
temp_734673717.jpg
lets wire things up!

place thumbstick upside down on breadboard.

2-AXIS JOYSTICK label should be facing you, but upside down.

L/R on your left should be connected to A0 on your arduino.

L/R+ on your right should be connected to positive.

GND on your right should be connected to ground.

servo positive and ground should be connected to positive and ground.

servo input should be connected to ~9 on your arduino.

Decorations

temp_656804899.jpg
temp_-730069070.jpg
temp_-1804662201.jpg
mount LEDs onto the servo head (I used stripboard)

connect LEDs to the battery pack

I hot glued the servo to the pack to keep it small

my battery pack had a switch on it so I used that to turn the lights on and off. you can add your own switch.


Enjoy Your Robot

temp_-1005123086.jpg
temp_963747025.jpg
this is a test to control a servo with a thumbstick. it is great practice for beginners and since were using a premade code theres no programming required! this is my first Instructable so tell me how I did