Wobbly is a 5 DOF (degrees of freedom) robot, that moves by skidding his feet on a hard surface. He also has a panning head with an infrared distance sensor to detect objects that may block it's path. He has 2 mini hobby servos for each leg, plus a micro servo for the head. It's brain is an Arduino compatible board designed especially for building robots, called the uBotino (micro-botino) controller.
To build this robot, you need the following parts:
- one uBotino V3 kit , from RobotxDesigns.ca
- four mini servos , from HobbyKing.com
- one micro servo , from HobbyKing.com
- one Sharp IR senso r plus cable , from RobotShop.com
- a piece of 1/4" scrap plywood
- five 18mm (3/4") plastic stand-offs and M3 bolts (or #4-40), from RobotShop.com
- two double AAA battery boxes
- some wires
- a few small screws , from HobbyKing.com
- some double sticky tape
You will also need a FTDI cable to program the controller. If you don't have one, you may get one that is compatible, from here .
Now start to build it!
Step 1: Electronics
My battery boxes came with solder lugs, so I had to get 2 pairs of red and black wires, cut them about 3" long, then soldered each pair to one battery box, red for the positive, black for the negative. Take the other end of the red wire from one box and the black wire from the other box and solder them together, this way you connect the boxes in series. Use a little electrical tape or shrink tube to insulate it. Crimp the Molex pins on the remaining wires and plug them in the housing, with the red wire where the arrow points at. Verify the polarity and voltage with a multimeter before you plug the connector into the uBotino controller! You should have 6V (with fresh batteries) and the positive at the hole marked with an arrow.
Next, make the robot body!
Step 2: Body
Starting with the main body piece, I traced the contour of the uBotino controller on the plywood (2x2")and cut it using a coping saw. I drilled the mounting holes into the corners, mounted four 3/4" stand-offs screwing them directly into the wood. Then I cut a piece of 5/8" wide and 2" long. I placed two servos on the board, one on the left, one on the right, with the mounting tab to the exterior of the bottom stand-offs and placed the small piece of plywood between them, so the other mounting tab sits on the end of the wood. I screwed the small plywood piece to the main one (you can glue it instead), then I screwed the servo tabs to the small piece. Hip servos are done. Oh, make sure you mount the servos with the horn to the bottom of the board!
I placed the micro servo above the small plywood, centered the horn to the middle of the main plywood and marked the hole on the side closer to the stand-off. I checked if the servo stand-off fits closely to the corner board stand-off, then drilled the hole in the small piece of plywood. Make sure you remove the servo below the hole so you don't drill it's case too! I added a nut on the stand-off to make it longer, then screwed it into the wood, then I bolted the servo to the stand-off.
Using a piece of double sticky tape, I mounted the Sharp sensor to the servo horn and plugged the cable in it. I plugged the horn onto the head servo, without the mounting screw.
I cut two more pieces of plywood, 2" long by 3/4" wide and screwed the remaining mini servos in the middle of the side of the plywood, then screwed each on a battery box, so the servos are centered on the length of the box and the box is centered on the servo casing. Then I screwed two pairs of servo horns together, one on top of the other. I plugged the servo horns onto the servos, without mounting screws yet.
Next, plug in the cables and upload the code!
Step 3: Code
Download the code from here , unzip it in a sub-folder called MiniBiped, in your sketches folder. Plug in your FTDI cable and connect it to the computer, start the Arduino IDE and load the MiniBiped code. Select the Arduino Duemilanove with ATmega328 board from the menu and the correct COM port your cable uses. Then press the Upload button. Wait until the "Done Uploading" message appears in Arduino IDE and you can remove the cable. Place the J2 jumper to the Vin position and turn on the power. The servos will center, then the robot will play a short song that you can listen to if you plug a piezo buzzer into D4 pin (and GND). After that, it will start to move. If your servos look funny after centering, turn off the power and re-position the horns so the robot stays straight and the head looks forward. When you're done, you can secure the horns with the provided screws. Place the robot on the table and turn the power on and watch the robot walk!
Next, play with the code, smooth out the moves, make it IR controlled and make sure to have fun!