Insect Hexapod Robot Controlled by Smartphone

This Hexapod Robot uses three servos per leg rather than two. This will allow me to do inverse kinematics. The Processing runs on a laptop or phone and control the robot over Bluetooth.

It’s made from a 4mm plastic chopping board and some 4mm plywood that was lying around. So far it has cost around £100, most of this is the servo controller and Bluetooth module. The servos were $3.60 each.

Parts Used:

  • Actuators / output devices: 22x HXT900 servos
  • Control method: Bluetooth
  • CPU: Smartphone’s 800MHz processor
  • Power source: 11.1v Lipo
  • Programming language: C#
  • Sensors / input devices: Sharp IR,Maxbotics EV-1

Hopefully this will prove that these servos are adequate for walking robots, as most of the small ones I’ve seen use Hitec HS55s which are at least 3 times more expensive.

My ultimate aim is to built a slightly larger hexapod which can carry it’s brain (Windows Mobile smartphone) and use the sensors built into the phone (eg. GPS, accelerometer, compass, light sensor) to navigate autonomously.

snc00229 snc00231 snc00236 snc00238



Quick update, parts mostly put together. Still need to centre all servos.

snc00248 snc00247


I got a Pololu Maestro 24 to improve the movements a bit. The SD21 and Picaxe combo just weren’t fast enough to

update all the servos regularly enough for smooth movements. Another plus is that it’s much smaller, so once I got all the servo cables tidied I was able to get the battery to fit in the body with room to spare.



I’ve been trying to get more and more things automated in the code, with a view to full autonomy at some point. My main function takes a speed, steplength, stepheight, pitch, roll, yaw, degrees to turn in each step, x, y, and z body shift, number of calculations to be done per step and gait type. Hopefully the ‘AI’ or navigation part of the code will just need to decide a speed and direction to walk in, and all the other parameter will be calculated from those.

Another update. I have the SD21 swapped out for the Maestro which works a lot better. It’s walking much faster than it did previously. The limit is now flexing in the legs. Since the femur and tibia (the wooden leg parts) are only attached to the servo horn, there is some twisting going on. To counteract that, I’m modifying the HXT900s to add a pivot point opposite to the servo horn shaft. I’m glueing M2 nut inside the case with a hole for a bolt to go through. This will allow me to add a second femur part to the legs.





snc00302 SNC00305


Well I’ve been doing a bit more work, and got the walking smoothed out quite a bit! Video attached showing IK movements and walking with a couple a different gaits. Also I have added an autonomous behavior  which is currently just wandering around using the sonar. It doesn’t work all that well; I think the way I have it mounted or its position (quite close to the ground) might be interfering a bit and giving poor ranges. I am going to add a Sharp IR sensor and some whisker switched so it’ll have a range of sensors to rely on. Once I have it avoiding objects reliably, I can start working on more interesting behaviors 🙂

Code now added. Most of the interesting stuff is done by the classes in the Hexapod namespace. It’s pretty messy, there are a few classes which aren’t used at all and it could definitely be organised better, hopefully it’s useful to someone.

Source Codes can downloaded here


[Via Letsmakerobot]

Share Button

Leave a Reply