OddBot's Quad Bot (a Spider with 4 legs)
This is a very simple quad bot I built to demonstrate to students how easily you can built a walking robot. DAGU is planning to hold a class on robotics for young students at the GuangZhou Science Center. Using body segments from my caterpillar robot I made some simple robot legs.
The caterpillar segments are great as they have mounting positions for the servos and 3mm LEDs plus screw holes that you can thread wires or small cable ties through.
The first video shows the robot using a gait for rough surfaces. The robot shifts it's weight from side to side and balances on 3 legs while it raises a 4th leg to move forward.
The second video show the robot using a much faster gait for smooth surfaces. In this case diagonally opposite legs are raise and moved either forward or backward depending on the direction. As the robot is trying to balance on only 2 legs one of the raised feet may still drag on the ground which is why this is only suitable for smooth surfaces. I have attached the code used in this video.
For this project I am using a prototype of my Spider robot controller. This is basically a clone of an Arduino Mega designed specifically for running a large number of servos and sensors. As such it includes a 3A switchmode power supply and all 70 I/O pins are terminated with a 3pin, servo compatible male header as well as a female header for jumper wires. The spacing of the female headers allows custom shields to be made from a standard prototype PCB.
To drive the LEDs on the legs I could have connected them to the controller. This would have the advantage of being able to program different patterns and adjust the speed but in this case the LEDs are mainly for decoration and to ensure no one accidently stands on the robot. For this reason I decided to use a very simple LED chaser circuit.This simplifies my code.
This is surplus stock from a toy factory which I have soldered a male header pin so it can be used with a breadboard.With the header pin soldered on it was very easy to connect to the Spider controller for power using some female to female jumper wires. I used a cable tie to hold it in place but the circuit is so small a bit of double sided tape or hot glue would have worked fine.
The hardest part now is developing a good walking motion. The videos show my first attempt where the robot balances on three legs while it lifts a fourth. Although this worked it was a non-symetrical gait that causes the robot to drift to one side. I am now working on a new, symetrical gait and in the near future I want to add pressure sensors to the feet so I can teach it to climb over rough ground.