Let's Make Robots!

Arduino Quadruped Robot


12/13/2012 Update: Code is now available for download at http://engineer-this.com/QuadrupedVer2.txt Its saved as a .txt file because I can't host a .ino. Just rename the extension or copy and paste the code into the Arduino IDE.

Hey guys, I wanted to show off my first robot. He's a quadruped walking robot that I built from scratch. All parts were designed in SolidWorks and then cut out using my CNC router. Each of the four legs are controlled by 3 cheap hobbyking servos. I have an Arduino Nano controlling the 12 servos using the standard servo library but plan on upgrading to an Arduino Mega so I can have some more expansion options.

I struggled with the programming for awhile but finally got my inverse kinematics algorithms working. So far he can only walk forward and do a couple other very basic movements. I've developed a creep gait that works well, but plan on trying other gaits in the future. This is definitely a work in progress but unfortunately I am finding that I have less and less free time these days. Hopefully in the next few weeks I'll find some time to develop a turn gait and add some sensors!

I have many more pictures and information on my website at engineer-this.com/Quadruped. I just started working on the website last week so bare with me while I finish it up.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Please may I have the C++ code just as it is robomaker12@gmail.com

What site do you guys recommend for hosting code? 

please may i have the code because i am 13 and i made a small quadruped robot all i need now is the code because i realy want to show my family at christmas. i am learning the C++ code but i will not learn the code fully for a few weeks but i wont take credit for the code i just want to make it work :-)

The codes available on my website and linked in the description. Good luck on your quad, programming it was the hardest part for me but I did it all from scratch. There are some utilities out there that can greatly ease the process but wheres the fun in that? 

Code now available! http://engineer-this.com/QuadrupedVer2.txt Its going to be a pain for anyone to understand but I got quite a few requests for the code so here it is.

Thank you so much for the code but if you have time please can you make a wiring diagram for arduino UNO Thanks!

Honestly its not worth making a wiring diagram. All there are are 12 servos. You just need to connect one pin to ground, one to 5-7v, and one to a digital pin for each servo. If youre not comfortable doing that I'd recommend something like this http://emartee.com/product/41798/Arduino-Sensor-Shield-V4.0

It will take you less than a minute to wire up all your servos if you use that shield. I'm planning on using the Mega version in my next upgrade.

Ok cool, I think I finally have all the servos reversed as neccesary, all the functions appear correct, I think I may need to alter the walking gate to suit the geometry of my quad though, as it is still not walking as nice as your quad yet. Again thankyou for sharing the code, made life alot easier for beginers like me.

Glad to hear you got it working. I hope to get some time to work on the code again over Christmas/New Years, but we will see.