← All projects
Robotics Studio class · Spring 2023 · Duke

Bucko: The Dancing and Walking Robot

Alejandro Assael and Dadmehr Ghasemfar

Bucko is a 2-foot-tall, 8-DOF bipedal robot that can walk, run, salsa dance, headbang, and do the splits. He is built from LX-16A servos and modular 3D-printed parts, and he is controlled by a Raspberry Pi 4 over Wi-Fi.

Bucko facing the camera Bucko from the side

Photos

Bucko stretching Bucko standing Bucko close-up Bucko stretching before painting Bucko stretching before painting Bucko stretching before painting

Videos

Design

We went from preliminary sketches and ideas to CAD, CAD, and more CAD, then a photorealistic rendering, 3D printing, and assembly. Along the way, the penguin became an Iron Man penguin, the legs were made 50% smaller, and the round body became a rounded cuboidal body.

Preliminary sketch of Bucko
Preliminary sketches and ideas. This design was abandoned, but several of its elements and ideas carried through to the final robot.
Rendering of Bucko's leg
Rendering of the right leg, final design.
Rendering of Bucko's body
Final render of the body.
Bucko printed and assembled
Printed and assembled, with motors and electronics installed.

Finally, the 3D prints were sanded and painted.

Painting Bucko's 3D printed parts
Sanding and painting the 3D prints.

Form/Fit Issues

Gaps between the joints caused friction when the motors were moving and issues when running code. We addressed this by sanding the edges.

We also had problems with stripping of screws, some screw holes were a little off center, and there were issues with the length of the screws. We addressed these by searching through the kit and changing dimensions.

Finally, the wires got entangled while running code. This will be fixed by running the wires through the hollow insides of the joints.

Close-up of a joint and its wiring
A joint and its wiring during assembly.

Different Walking Patterns

We first tried a sinusoidal input, θ(t) = A sin(Bt + C). It had too many parameters, the COM was never stable, it never looked "natural", and we ran into a bug with the LX16A library.

Next we tried a basic joint state keypoint approach, θ(t) = (1 - t) StateA + t StateB. The movements were too exaggerated, with too much movement and too much torque.

The third approach was a damped keypoint. It is the same as above, but we calculate the difference between state(t) and home_pos to find the differential and divide by some number (0.5 worked best for Bucko). This makes the movements and speeds smaller, and each position was independently checked to be stable. When he ran, though, his hip would lean too far back, and we realized we needed independent hip control.

The final approach added hip correction. It is the same as above, but with a correction factor for only the hips, so that Bucko's body can be independently controlled (lean forward vs. lean back, but at the hips only). This way we put the COM above the foot, and it worked perfectly every time.

Plot of motor angles vs time for a squat
Plotted motor angles vs time for a squat.

Electronic Components

Bucko is controlled by a Raspberry Pi. Our problems were finding the correct port (/dev/ttyUSB0), finding the IP address in case it changed, and file transfers. We solved them by running sudo chmod a+rw /dev/ttyUSB0, using an IP scanner app on iPhone to find the hostname, and using WinSCP and its GUI transfer interface.

Electronics inside Bucko's body
The electronics inside the body.