Simple Hexapod Robot Using Arduino

by Oscar

This Simple Hexapod Robot is more like a downgrade from my last robot. The quadruped robot I was trying to build didn’t actually quite work though I spent quite a lot of time, but I have unfortunately underestimated the difficulty. So I am stepping back, and start from something easier, a Simple Hexapod Robot that uses Arduino.

Some of the links on this page are affiliate links. I receive a commission (at no extra cost to you) if you make a purchase after clicking on one of these affiliate links. This helps support the free content for the community on this website. Please read our Affiliate Link Policy for more information.

I originally thought Hexapod Robot are not easier, as they have 6 legs and therefore more complicated in the programming. It turned out to be wrong because it’s much easier to balance as there are 6 legs. When it’s walking, we don’t need to worry about the center of mass and so on in order to balance, we just need to think about where to place the next leg in order to move.

Simple Hexapod Robot Showcase

First Robot Motion, Legs flexibility:

Control the Simple Hexapod Robot From my computer

Complete Robot Commands (Custom Command Script)

Parts that I used

  1. Arduino
  2. 12 x 9g servos
  3. 4 x AA Battery
  4. Battery Holder
  5. bread board
  6. Styrene Sheet


  • A Large Capacitor for power supply (can’t remember the value, i think it was around 1uC)
  • Power Switch.

I was controlling the robot via serial cable from the computer, so no controller required.

First Week Working on the Simple Hexapod Robot

It’s the first time I ever used Styrene plastic and I just in love with it… so flexible, particularly for building small robots like this one.

Although it could take a while to cut and get good at it, but it’s definitely a very economic choice for people with small budget!

Here is a very good site selling them, it’s the cheapest I have found so far in the UK (let me know if you know anywhere else cheaper ;-)
Styrene Sheet (Plasticard) from Station Road Baseboards)

In this one, I basically reused all the servos and parts from the Stalker, the only things I need to rebuild was the robot body and the legs..

Mini can be controlled by a VB program via USB connection, more detail can be found here:
See Second Video from the top.

Week 2 of the Simple Hexapod Robot Adventure

Further modifications to the leg:

The new robot leg design brings better stability because they are tougher and lighter, more importantly it looks cooler!

I have also wrote a few more commands files, works quite well ; ) see 3nd video from the top.
That’s it! no more simple hexapod robot updates, I will modify it into 3DOF per leg, and start to think about IK and trigonometry!

Check here for the 3DOF Hexapod robot

Simple Schematic of the servo, arduino and batter connection.


If you want to discuss or share your ideas, just comment down below.

Leave a Comment

By using this form, you agree with the storage and handling of your data by this website. Note that all comments are held for moderation before appearing.


kalaeb 22nd April 2021 - 7:05 pm

hi oscar please could you send me the code please

Oscar 22nd April 2021 - 8:57 pm

Sorry I didn’t find any donation under your email address, what’s your paypal email? (i will delete your reply after verifying)

stanley cartwright 15th August 2018 - 4:31 pm

Sir. Useful info, I’m studying your info as I am trying to build a hexabot.
I have a chassis in progress.
Lots more to do. I bought a 3d printer to make parts but it’s a p i t a.

Sakya 25th September 2016 - 1:33 pm

Hi oscar i know its been along time since u made this but could u pls help me with the codeing for 12 servo hexapod like this.i just want it to move forwards with just the arduino code.thx?

Dj_Garfield 12th May 2015 - 11:57 am

So cute ! What a very great build you did Oscar !!!
You are also a clever DIY builder !! This is what I like :)
When I will be less overbooked , I will come back to the building of an automated arm , I did a kind of this for my end of school year :)
Actualy the stuff to build some of great things are more than affordable and DIY make this more affordable :)

Oscar 18th May 2015 - 2:50 pm

i used to have so much free time, i can just build anything in my mind… not so much time now due to the multicopter hobby :D

ishan rawat 15th August 2015 - 1:54 pm

Hi Oscar
how man arduino boards have you used??
looks like 2 in the vid.

Oscar 17th August 2015 - 9:52 am

no just one.

Joseph F 26th April 2015 - 4:09 pm


Thank you for publishing your work. I was wondering what type of connectors are you using to connect all the servos to the Battery Pack? Are there any existing one-to-many connectors? I was trying to avoid building my own customized one.

Thank you.


Oscar 27th April 2015 - 5:33 pm

just normal servo pins soldered on the mega extension board.

Michael 16th December 2013 - 1:45 pm

Hi Oscar, loving your work, what thickness styrene do you use for the hexapod?

Oscar 16th December 2013 - 3:24 pm

i believe they were 2mm thick.
but it was still not rigid enough, so I used two layers stack together. (making it 4mm think)

Joel 30th September 2013 - 2:00 pm

Hi Orcar,

First and foremost I want to thank you for sharing your work, this is really good. I’m planning to build an hexapod like this one. I’ve been reading several forums and powering the servos seems to be an issue, but you just used 4AA batteries and from the videos you posted there was no major problems with the servos, so I wonder if you faced any issue on this area.

By the way, did you evaluate to use a servo controller to reduce the number of pins used by the Arduino? Any thoughts on this area?

Thanks in advance for your feedback.

Oscar 1st October 2013 - 10:00 am

Hi Joel

for 12 9g servos, 4 AA batteries are enough. But you might be better off using Lipo because they have larger current output and weights lighter.
I don’t see the point of using servo controllers. they are generally over-priced.

You can totally make a servo shield using standard Arduino Uno Shield and header pins. If you don’t like soldering, you can also use breadboard and some cables.


stephane 18th August 2013 - 12:20 pm

thank you for you’re answer, yes I forum works well I pass over

Stéphane 17th August 2013 - 8:44 am

Hi Oscar, after a long vacation, I finally finished the structure of my hexapod, I give you pictures, what do you think? I’ll change the batteries and improve cable management!
for programming with Arduino I’m really a beginner, can you help me? because I do not know where to start! I would like to drive with a wii nunchuk.
  thank you soon.

Oscar 18th August 2013 - 12:04 pm

Hi Stephane

i just replied in the forum. I don’t know if you get notifications when I replied in the forum, can you let me know?


Stéphane 21st July 2013 - 10:29 am

hi Oscar
thank you for your answer, yes, my robot has 12 servo (your hexapod inspired me) I’m still down with my machines, so I have not finished the legs ^ ^ I’m a little worried about the future of the programming with the Wii controller, because I am a beginner in Arduino! I congratulate you on your new topics on your blog, they are great!

Stéphane 20th July 2013 - 4:20 pm

hi oscar, I’m sending you a photo of the base of my structure, I ‘do not advance very quickly because my cutter machine is broke, it’s not cool, but as always I’ll let you know, soon

Oscar 21st July 2013 - 2:39 am

Hi Stephane

Thanks for sharing the pictures!
Looks great! :-D
Your cable management skill is much better than mine! very tidy indeed!
is your robot going to be a 12DOF Hexapod robot? (2 servo per leg?)

Stéphane 7th July 2013 - 2:47 pm

hi Oscar, I have not had much time to advance on the hexapod. ^ ^ I sent you a picture of my first Arduino with a shield that I just finished this afternoon, I’m stuck at the moment because I miss cable! for the structure, I have not moved forward because I can not find the aluminum has a good price, I will order the styrene, I give you some news soon

Stéphane 2nd July 2013 - 8:27 pm

yet not I started on Friday when I have received all my parts to properly take all measures I’m sending you pictures soon promised

Stéphane 1st July 2013 - 4:44 pm

hi oscar, I just bought the electronic parts of the robot and the structure I build everything myself, I think working on Plexiglas because it is free for me in my work, but I research small aluminum plates

Oscar 1st July 2013 - 9:05 pm

Oh I see, that’s great! have you got pictures of your structure?

Stéphane 30th June 2013 - 4:34 pm

hello oscar, how are you since the time? I just made my order for my hexapod I give you news very soon ^ ^!

Oscar 30th June 2013 - 11:05 pm

hello Stephane, it’s great to hear you have finally bought the hexapod :-)
I have been busy with the Raspberry Pi, hopefully I can use it with the Arduino to do more complex projects.

what hexapod chassis have you bought? I am thinking of buying a new chassis as well when I have the money :-D

Stéphane 31st May 2013 - 6:22 pm

ok, thank you for your reply, I will build the robot next month and I would give the new very fast, thank you so much! see you soon

Stéphane 31st May 2013 - 11:02 am

^ ^ Thanks, for the programming I hesitate between the autonomous robot with an infrared sensor or control solution with your nunchuck wii, your control over your tutorial is easy to put into practice for beginners? but for now I’ll attandre my salary to buy the components ^ ^

Oscar 31st May 2013 - 11:14 am

Every robot should be autonomous at the end, that’s why we call them robot right? :-)
But to get started, user control would be useful, to test, understand and correct the movements, before you begin programming complex AI.

For user control, my favourite cheap options are:
1. serial console using a USB cable (cost: free)
2. wii nun chuck (cost: less than 5 US dolars?)

for 1. there are many tutorials on the internet, you can search it.
for 2. it might be a little difficult to understand how Nun-chuck work at first, but once you learned it, you can apply it to many other robot projects as well.

Stéphane 31st May 2013 - 10:47 am

here is a solution sorry for the inconvenience

Oscar 31st May 2013 - 10:51 am

Very good connection, that’s what I meant and i think it should work.
I have heard about fritzing, it is a good software, i will give it a try next time!

Stéphane 31st May 2013 - 10:36 am

I’m really sorry but your e-mail not work on my side

Stéphane 29th May 2013 - 5:49 pm

hello and thank you for your answer, I’ll try to make a schematic of frizing this weekend and send it to you if you agree? how we can talk about my possible mistake ancore thank you and goodbye

Oscar 31st May 2013 - 9:42 am

Hi Stephane, any of the pin 1 to 12 can be used to control the servo.
the LED is probably a power indicator that I used, not necessary.

Sorry for the lack of information about this project, this was my second robot ever so it wasn’t documented properly.

for simple Schematic, i have uploaded a picture, hope that helps you :-)

Stéphane 31st May 2013 - 9:56 am

hi oscar, I think your great project for your second robot for my schematic I can send it by email? or another method? for pin I need a pin? and no 12 pin?

I am very happy can learn with your help thank you again

Oscar 31st May 2013 - 10:02 am

Hi Stephane, email would be fine. it’s [email protected] (delete the x)

Stéphane 31st May 2013 - 10:04 am

great, I thank you for your schema I’ll compare it to mine, for my schematic with arduino fritzing I use is a very practical software.

Stéphane 28th May 2013 - 3:16 pm

hi Oscar, thank you for for your great blog, I’m beginning in robotics then a few months and I would like your construir hexapod robot simply because I find it great for beginners
can you detail your electrical installation to run your robot? The Arduino Uno is a she? you use another card? thank you and see you soon. Stéphane

Oscar 29th May 2013 - 8:16 am

Hi Stephane,

The electrical connection is very simple.

you are right, I used an Arduino Uno. There is no other cards, but I put a empty shield on top of the Arduino, so I can leave all the connection on the shield and swap the arduino board if I want. this is not necessary.

I have 12 servos connected to the Arduino Uno. The Vcc and Gnd of the servo are connected to external power source, e.g. 4 x AA battery. But remember to link the battery ground to your Arduino ground, so the servo understand the signal from the arduino.

I also had a couple of large capacitors connected at the power source, to smooth out output current, but this is not really necessary. You might consider adding another 4 x AA battery connected in parallel, so you have the same voltage but more current.

Stéphane 29th May 2013 - 5:46 pm

hello and thank you for your answer, I’ll try to make a schematic of frizing this weekend and send it to you if you agree? how we poura discuss my possible mistake ancore thank you and goodbye. stéphane

Oscar 29th May 2013 - 10:35 pm

Hi Stephane, that’s okay, I will check your schematic when I am free :-)


Stéphane 31st May 2013 - 9:14 am

Hi Oscar, here is my first drawing, I think I can adruino taken when the robot is disconnect my pc, I do not understand how to connect servo to ardruino mass and external power supply. I saw your picture on it there leds? I connected two servo because we see nothing on the schematic with cables of 12 servos, so if I understand that I do the same for others and I plug the servos on pins 1 to 12 adruino.

I exuse in advance if my schematic is not correct (I’m a beginner ^ ^)

(Ps: I’m a fan of stalker and COLOSS SC2 ^ ^ …)

big thank for your help

Stéphane 31st May 2013 - 9:15 am

sorry , I can not find the solution to join the schematic

Yanbo 9th May 2013 - 5:04 pm

Hi Oscar,

The robots you made are really amazing. I am very new to robot and plan to make a robot for my son. I am very interested in the Arduino Hexapod Robot you made. Would you mind sharing with me a list of parts that I need to buy?

Your help would be greatly appreciated.

Oscar 9th May 2013 - 5:31 pm

Hi Yanbo,

I am glad you like it.
The parts that I have used in this robots are:

1. Arduino
2. 12 x 9g servos
3. 4 x AA Battery
4. Battery Holder
5. bread board
6. Styrene Sheet

– A Large Capacitor for power supply (can’t remember the value, i think it was around 1uC)
– Power Switch.

I was controlling the robot via serial cable from the computer, so no controller required.
Hope it helps, and hope your son and you are going to have a good time building robots! :-)