QUATTRO - the Arduino Quadruped Robot

40,011

350

99

About: We are two young inventors, Kousheek Chakraborty and Satya Schiavina, with the dream of becoming the craziest scientists. We like making robots and bringing inanimate objects to life. Our projects also focus...

Intro: QUATTRO - the Arduino Quadruped Robot

Hi guys! Here's a spider robot that we had made for the 2016 science fair which was held at our school. Well, you can't technically call it a "spider robot" as spiders have 8 legs, but we atleast tried to make it look like a spider (or maybe spider like) . Our robot has four legs, so the correct term would be a quadruped. Well guys say hello to "Quattro", a non lethal, arduino quadruped!

Here is an instructable on how we made her, taking you through the building process, getting to the programming and finally admiring the robot come to life once its finally done :) . Watch the video to get an idea of what it will finally look like, the problems we encountered and how we solved it and improved it.

Before going to the next step please note that a laser cutter has been used in the making of this robot. A laser cutter can be avoided if you are very skillful with your hands, as precision is key to completing the project!

PLEASE VOTE FOR US IN THE CONTESTS, AND FOLLOW US ON YOUTUBE AND INSTRUCTABLES!

thanks for your support.

Step 1: How It Works?

The robot has 4 legs, with 3 servo motors in each leg, which give the legs a freedom of three degrees. We use a simple gait to get the robot to walk which is known as the creep gait .

We used a creep gait as its one of the simplest, slowest and yet smoothest of all gaits. At first we just get the robot to walk forward, back, left, and right and then we add cooler features such as obstacle avoiding and Bluetooth control to take it to the next level.

Step 2: Parts Needed...

The body:

  • 2 mm thick clear acrylic

Bare minimum electronics:

  • 12 servo motors (quite a lot )
  • arduino nano (any other will do as well)
  • a servo shield will surely help (we made one ourselves with some pcb and pin-headers, will explain the process of building the shield in a later step)
  • a power supply (5v at 4a will work great, that's what worked for us) we used a simple wall adapter

Extra electronics:

  • ultrasonic sensor (for obstacle avoiding)
  • hc 05 bluetooth module (for smartphone control)

For the shield:

  • pcb (preferably the ones with common lines for ground and power)
  • female headers
  • male headers
  • wire

Tools:

  • laser cutter (or skilled hands)
  • super-glue
  • hot glue

Step 3: Laser Cutting the Parts

Using a graphic design software (inkscape, link to this free software below) we designed the parts we would need to make the robot's legs and body.

Then we took the design to a nearby workshop to get the parts laser cut. Attachment below for the designs. After laser cutting be sure to have 30 individual pieces.

Link to download inkscape: link to download inkscape

Step 4: Assembling Quattro

The first thing you need to do after laser cutting is actually the hardest and most time taking thing to do: peeling the paper covering off the acrylic, painfully one by one. At this point I would advise you to catch a friend and ask him/her to help you out. My mom helped me here.

Next assemble the legs. The slots are already made and all you have to do is fit them together. The joints are tight but just for safety you could put a drop of superglue or acrylic glue to really join them together.

To be able to proceed to the next step you need to modify your motors a bit. Glue a bolt symmetrically opposite to the motor's shaft. This gives your motor a dual axis pivot, which helps in making the robot more stable (have a look at the picture above).

Please note you need to do this with just 8 motors, as four will be attached directly to the body.

Next attach the servo motors!Finally attach the legs to the center link joint (the curved piece) and attach the link to the servo on the body (keep referring to the picture on top as the servo orientation will make a difference).

Step 5: Making the Shield

To make the shield for all the servo connections you'll need:

  • some pcb(preferably the ones with common lines for ground and power)
  • female headers (30 no.)
  • male headers (36 no.)
  • some wire

Making the board is quite straightforward follow the picture above to make your shield. Or you could just buy one...

We will be making a separate instructables to show you how its made in detail, please share any doubts or questions in the comments section down below

Step 6: Electronics

Now its time to attach all the servo pins onto the arduino. Connecting them using jumper cables would be really messy and confusing, so use the diy shield, which we made in the previous step . The servo wires need to be connected in the right sequence, this is key to make it work!

Carefully follow the picture.

Step 7: Programming

Now this is the time when your robot comes alive. First upload the legs_init program and make sure the robot is at a position similar to the first picture above. Next upload the quattro_test.ino to check whether your robot is managing to do the basic movements such as walking forward, back, left and right.

IMPORTANT: You need to add an extra library to your arduino IDE now. Link to this library below :

https://github.com/wimleers/flexitimer2

If you don't know how to install libraries to your arduino ide here is a good tutorial on how to do so:

Now she should go forward 5 steps, back 5 steps, turn left 90 degrees then turn right 90 degrees. If she's doing everything right you're on the right track. If not, there might be several reasons it's not working out, explaining all of them here wouldn't make sense, so i'd suggest you drop a comment down below mentioning your problem.

P.S: put a cup as a stand to start with so that Quattro doesn't go all over the place. Once tested and working fine, you could proceed to leave her on the ground.

Step 8: Inverse Kinematics

Inverse kinematics is what's actually driving her. ( if you are not interested in the math behind this project and you are hurrying to finish this project you could actually skip this step, but knowing what's happening "behind the robot" is always helpful.)

In simple words inverse kinematics, for short ik, is a bunch of trigonometric equations that determine the position of the tip of the leg, the angle of each motor, and other values when given a couple of presets that you need to determine. For example, the length of each step that you want your robot to take and the height at which you want your robots body to be at. Using this pre-determined (data) it will derive how much it should move each servo to be able to manage to perform the given task.

The picture above shows the trigonometric equations, developed by a friend of ours in the college, Suman Pal ,who then transferred the mathematics into a program.

The code attached bellow is just the raw formulas that you could fiddle around with to experiment upon, improve and try out better methods.

Step 9: Getting Fancy

Once you see that your robot is managing all the basic movements, you can start to make it fancy. We decided to add an ultrasonic sensor so that it can avoid obstacles on its way. You can also try Bluetooth control or voice control. To do the movements you need to just call a function.

The following list says what function you need to call for what movement :

  • to move forward - step_forward()
  • to move backward - step_back()
  • to turn left - turn_left()
  • to turn right - turn_right()
  • to stand - stand()
  • to sit - sit()

In the brackets you can put an integer value to define the number of steps that you want the robot to move by.

With this added feature Quattro will never touch anything if left in a room. Almost as though she has a mind of her own! Please do share if you add any other interesting features...

Step 10: QUATTRO IS COMPLETE!

And there you have it your very own robot companion! This project gave us a lot of experience and we developed several skills. We would encourage you to make one as its easy to make yet very impressive. The future looks towards robotics and we with quattro have taken our first steps!

We hope you enjoyed this instructables, do leave a comment below!

lastly, we would be grateful if you could vote for quattro in the contest and subscribe to our channel both on instructables and youtube. Thank you for your support!

Cheers!

Arduino Contest 2016

Runner Up in the
Arduino Contest 2016

Epilog Contest 8

Runner Up in the
Epilog Contest 8

Share

    Recommendations

    • Furniture Contest 2018

      Furniture Contest 2018
    • Fix It! Contest

      Fix It! Contest
    • Tiny Home Contest

      Tiny Home Contest

    99 Discussions

    0
    None
    Sid97

    Question 2 months ago

    Hi its a very good robot and I'm building it. Could you send the dimensions of all the parts of the legs?

    0
    None
    IanS275

    Question 2 months ago on Step 5

    I would like to ask for the dimensions of the laser cut materials and also I would like to ask for an elaboration on how you created the DIY servo shield.

    0
    None
    josephh53

    Question 3 months ago

    hi, can you share the link for the self made board for the servos? thanks!!

    0
    None
    Roman empire

    Question 3 months ago on Step 6

    hey ... hlo after going throuh your article i am very inspired to build one so plz provide the connections between hc sr04 and arduino and servos plz plz bro it will be a pleasure to me

    0
    None
    Djjdjc

    Question 5 months ago

    Can I use the sensor shield 5v ?

    3
    None
    Djjdjc

    Question 5 months ago on Step 8

    What are the pin number?

    0
    None
    Subham barik

    5 months ago

    Hi brother could u plz send me d schematic of d board and the bt code and bt app. That will be so nice of u
    Salute from one nerd to another....

    0
    None
    Subham barik

    5 months ago

    Can you plz send me d detailed diagram of the diy board my email address is bariksubham159@gmail.com
    And a salute from one nerd to another.....

    0
    None
    ciran

    1 year ago

    Hi! Great project, by any chance do you have the dimensions of each piece? I want to 3d print it but can't do it from the pdf, or at least I don't know how. With dimensions I could make the pieces in solidworks. Thanks!

    5 replies
    0
    None
    Technovationciran

    Reply 1 year ago

    Hey there thanks! Well we laser-cut everything on 4mm clear acrylic so I guess you could print with the same thickness as fast as dimensions we can send you a mail with them. Email id?

    0
    None
    mirageace55Technovation

    Reply 6 months ago

    Hi, I'm planning to build this and design my own 3d printed parts off of your dimensions if you would be willing to send me the dimensions as well. Thank you

    0
    None
    ciranTechnovation

    Reply 1 year ago

    Thank you so much! My mail is: rbarriosl86@gmail.com. I'll upload the files when I finish in case someone else wants to print it

    0
    None
    mirageace55ciran

    Reply 6 months ago

    Hi, I would also like the dimensions to use for 3d printing. I was wondering where you uploaded them?/ how to access them. Thank you

    0
    None
    Technovationciran

    Reply 1 year ago

    Give me few days I'll send it via mail! That will be great thanks! Do try out your own modifications as now you have the capability to make it look way cooler!

    1
    None
    lean.jake.almanza

    Question 7 months ago on Step 3

    Hi sir , can i ask something ? Can i have all the dimension's about the parts of your robotic aduino ?? Please

    1
    None
    TusharG42

    Question 8 months ago on Step 5

    can u please explain the making of the shield manually
    plzzzzzzzzzzzzzzzzzzzzzzzzz

    0
    None
    Edyes

    8 months ago

    Great project congratulations !!!

    1 reply
    0
    None
    AsadChauddhary

    9 months ago

    Hy ! Please help us to save our life from "F". We have made everything related hardware but stuck to programming. Please help and share us the right code. The code given above is not working exactly as it has to do .