An easy to build, Arduino powered, walking robot, with manual IR remote control, with automatic mode that uses ultrasound to avoid obsticles

The parts list

  1. Some tie-wraps (for the cabling)
  2. Foam tape
  3. An Arduino – I used a VISduino
  4. An Arduino sensor shield
  5. Battery box + batteries – I used 4xAAA in the final design
  6. An IR remote control + the received board – I used the Keyes one
  7. 2 credit card sized pieces of plastic
  8. 7x micro servos – I used the SG-90 ones, but have use MG-90S in similar designs
  9. An ultra sonic module + cable – I used HC-SR04
  10. Some large paper clips (for legs).

Reset the servos

  1. download the sketch (from robot-v6.zip)
  2. Install the Servo, IRremote, and NewPing libraries.
  3. Get it to compile – See the comments in the code, you’ll need to edit the library code to get them to compile together
  4. Download it/Run it
  5. One at a time, go through all the servos, and plug them onto output 2, this will reset the servo to it’s mid-point.

Building the robot

  1. Make the legs, straighten a large paperclip, then feed it through the servo horn. You might need to use a small drill to enlarge the holes.
  2. Add foam tape to the base card
  3. Stick the servos down one side of the base card (output shafts towards the back edge)
  4. Add the ultrasonic movement servo
  5. Stick the servos down the other side of the base card (output shafts towards the back edge)
  6. Cut a slot in the top card, and use more foam tape to stick in on top
  7. Add the arduino and the battery box
  8. Add the ultra sonic sensor, and the IR receiver

    Connections

    • Out 2 = right rear
    • Out 3 = right lift
    • Out 4 = right front
    • Out 5 = left rear
    • Out 6 = left lift
    • Out 7 = left front
    • Out 8 = ultrasonic movement servo
    • In 11 = IR receiver
    • Out 12 = Ultrasonic trigger
    • In 13 = Ultrasonic receive

    Notes:

    • The servos can draw a lot of current, and this can reset the Arduino. To prevent this I put a big capacitor across the battery input (I have a 4700uF/16V in my box, that I used).
    • There are several different sets of IR remote control codes, the code handles two of them, you can add more to the case statements.
    • You can fine tune the leg positions by changing the code.

    Remote comands

    • up = go forward
    • down = go backwards
    • left = turn left
    • right = turn right
    • OK = Stop / sit
    • * = Auto (use ultrasonics to avoid obstacles)
    • # = test, output the current ultrasonic range to the RS232 port, and move each of the legs (right rear, right mid, right front, left rear, left mid, left front).
    • 1-9 = set this number of steps
    • 0 = keep going until stopped

 

Leave a Reply

Your email address will not be published. Required fields are marked *