Billy the Biped Robot - 3D Printed

by UnicornClockworks in Workshop > 3D Printing

4508 Views, 34 Favorites, 0 Comments

Billy the Biped Robot - 3D Printed

IMG_2799.JPG
2016-08-30 23.14.21.jpg

This is Billy, a cute little Bipedal Robot born from an Ultimaker 3D Printer, designed with Fusion 360. He can walk, he can dance, and he can avoid objects! All powered from an Arduino and 4 Servo Motors!

3D Print

IMG_2358.jpg

I have attached the 3D printed parts designed with Autodesk's Fusion360. 3D print one copy of each component except for the leg -- "servo holder.stl." You will need to print two copies. As you can see I forgot to send the instruction to print two copies of it which is why Billy has two different coloured legs.

Mount Arduino

2016-08-30 19.43.55.jpg
2016-08-30 19.37.20.jpg
2016-08-30 19.33.15.jpg

Mount the Arduino onto the top the head with two screws.

Mount and Wire Ultrasonic

2016-08-30 19.44.13.jpg
2016-08-30 20.19.09.jpg

* Mount the Ultrasonic Sensor onto the two large holes on the head. This component is a friction fit component so you have to apply quite a bit of force to fit it in properly especially due to 3D printing shrinkage.

* Connect the Trig pin to pin 11 on the Arduino.

* Connect the Echo pin to pin 12 on the Arduino.

Mount Feet Servo

2016-08-30 21.53.41.jpg

* Centre the servo motor powering it anywhere from 5V to 7.2V. I used a 6V battery pack.

* Glue the servo motor the foot aligning the notches to the notch on the 3d printer arm.

* Repeat this for both feet.

Attach Legs

2016-08-30 21.59.53.jpg

* Align the holes on the back of the foot.

* Then, glue or screw the servo onto the foot.

Make a Leg Axle

2016-08-30 22.48.26.jpg
2016-08-30 22.48.36.jpg
2016-08-30 22.00.44.jpg
2016-08-30 22.27.09.jpg

I could not find a small enough rod to use as the axle for the side-to-side motion the foot. Thus, I used some old pens lying around.
* Cut off one end of the pen and push it through the hole and cut off the excess.

* Apply a large bead of hot glue on either ends of the pen axle so that the axle does not slip off.

Mount the Leg Servos

2016-08-30 23.12.46.jpg
2016-08-30 23.12.53.jpg

This is the second pair of servo motors that attach the torso to the feet of the robot, so I called them leg servos.

* Use the cross patterned servo horn and place it on the opposite side of the servo motor with the 3d printed base piece sandwiched in the middle.

* Screw in the servo horn onto the the servo.

* Further secure it by applying hot glue from the servo to the base plate.

Wiring

2016-08-30 23.11.51.jpg
2016-08-30 23.13.24.jpg
2016-08-30 23.13.05.jpg

Follow the table bellow for a concise wiring guide for Billy the Biped.

* Servo L1 refers to the servo motor on the left foot.

* Servo L2 refers to the servo motor on the left leg.

* Servo R1 refers to the servo motor on the right foot.

* Servo R2 refers to the servo motor on the right leg.

I/OI/O PinArduino PinBreadboard Pin
Servo L1Brown
Ground Rail
Red5VPower Rail
Orange3
Servo L2Brown
Ground Rail
RedPower Rail
Orange6
Servo R1BrownGround Rail
RedPower Rail
Orange9
Servo R2BrownGround Rail
RedPower Rail
Orange10
UltrasonicVCC3.3V
Trigger11
Echo12
GNDGNDGround Rail

Code

Screen Shot 2017-09-01 at 12.48.09 AM.png

This type of configuration is quite common for biped robots, as such there are countless Arduino codes on GitHub such as: https://github.com/OttoDIY/DIY

For this project here's a demo code to test out all the servos:

#include <Servo.h> <br>Servo left1;
Servo left2;
Servo right1;
Servo right2;void setup()
{  left1.attach(3)
  right1.attach(6)
  left2.attach(9);
  right2.attach(10);
  
}void loop()
{
  left1.write(0);
  left2.write(0);
  right1.write(90);
  right2,write(90);
  delay(100);
  left1.write(90);
  left2.write(45);
  right1.write(45);
  delay(100);
  left1.write(0);
  left2.write(0);
  right1.write(90);
  right2,write(90);
  delay(100);
  left1.write(0);
  left2.write(45);
  right1.write(45);
  right2.write(0)
  delay(100);
  left1.write(30);
  left2.write(10);
  right1.write(30);
  right2,write(10);
  delay(100);
  left1.write(0);
  left2.write(0);
  right1.write(0);
  rigt2.write(0;
  delay(100);
}

Enjoy!

2016-08-30 23.14.00.jpg
IMG_2798.JPG

Enjoy your cute little Billy the Biped!