A small two-legged robot you can 3D print, wire up and teach to walk. Ted is about 28 cm tall and weighs about 1 kg. He has 10 hobby servos, a Raspberry Pi Zero 2 W for a brain and a little 8×8 depth sensor for eyes. He’s named after Ted Mosby from How I Met Your Mother.

This repo holds everything: the 3D-printable parts, the wiring plan, a physics twin of the robot in MuJoCo and the walking brain we trained for it. It is a build diary as much as a design, so the mistakes are in here too, along with what fixed them. We keep updating it as the real robot comes together.
| Step | Status |
|---|---|
| Design every part in code (build123d) | ✅ Done |
| Check every screw, cable and board against real part sizes | ✅ Done |
| Build a physics twin in MuJoCo | ✅ Done |
| Train a walking policy in the twin | ✅ Walks forward, backward and turns without falling |
| Print the legs and torso | ✅ Done (the black face panel is still to print) |
| Wire the electronics | 🔧 Next |
| Assemble | ⏳ Waiting on the last 4 servos |
| Walk for real | ⏳ After that |

The walk is a neural network trained by trial and error in the twin. Think of it as thousands of virtual Teds falling over at once, with the network slowly learning what keeps them up. It walks forward at 0.105 m/s when asked for 0.10, backs up at 0.074 m/s, turns at 0.83 rad/s and never falls on the test route. Training took 81 minutes on one RTX 2080 Ti.
Open the 3D viewer in your browser. You can spin the robot, explode it into parts, show the wires and make the shell see-through. The torso has its own viewer with the boards inside: torso viewer.

Also worth reading: How we design and check parts and the build log, which has every mistake so far and how it was fixed.
| Folder | What’s there |
|---|---|
cad/ |
build_cad.py builds every part from code. The check_*.py scripts test the fit before anything gets printed. viewer.html is the 3D viewer. |
cad/stl/ |
Print-ready parts, already laid flat (leg3_* for the legs, torso1_* for the torso). |
cad/print/ |
Sliced plates for a Bambu Lab P1S (.gcode.3mf), the slicer settings and the slicing scripts. |
sim/ |
The MuJoCo twin (biped.xml), its meshes and the reference gait tables. |
policies/ |
The trained walking policy and its test results. |
docs/ |
The guides, pictures and research notes. |
The training code lives in a fork of Open Duck Playground: TarunTomar122/Open_Duck_Playground, branch ted-gooseby. The simulation guide explains how to set it up.
Ted stands on the shoulders of Open Duck Mini by Antoine Pirrone. It uses the same servos and the same five-joint leg layout, and the training code started from Open Duck Playground. The servo model in cad/vendor/ comes from SO-ARM100 by TheRobotStudio (Apache-2.0). The walking research also leaned on Pollen Robotics’ Microduck, Disney’s BDX and ToddlerBot (see the research notes).
MIT. See LICENSE. Build one, change it, share it.