BuildRobotzRobotsTeeter
Teeter.
BuildRobotz robot · Reference · The body

The body

The three print files, the motor sizes they are built on, the assembly in full, the design check and the build log.

ReferenceDetail behind the guides. You do not need this page to finish a step: each step links to the section it needs.
On this page
  1. What you print
  2. The motor numbers it is built on
  3. Before you print the rest: try the cheek
  4. Put it together
  5. Wiring: one page to print
  6. Firmware and the IMU
  7. What this body leaves out
  8. Not done yet
  9. More detail
drag to orbit · scroll to zoom

cheek.stl rungs_shelf.stl spine.stl

Teeter's body is five flat pieces in three prints. They push together by hand around the motor. There are no screws, nuts or bolts, and it uses 24 g of plastic. It is the third body design; the build log at the bottom of this page covers the first two.

Status: generated by snap.py, checked by its 27 design checks and sliced in Bambu Studio with no warnings. Printed and built: this is the body of the robot that balanced on the PID on 2026-12-04. The motor sizes in snap.py are from a published drawing; the robot has not been weighed, so the masses below are computed.

The snap-together body: both sides, exploded, and as printed

What you print

Spin the parts above, and download them with the buttons under the viewer.

Print What it is Time (Bambu P1S, 0.2 mm)
cheek.stl A small plate on the left face of the gearbox. Its two pegs go into the motor's two mounting holes. Print it first: it is the fit test for your motor. 9 min
spine.stl One flat plate. Its foot lies on the right face of the gearbox. Above the motor, the battery case straps to one side and the ESP32 and IMU sit on the other. 25 min
rungs_shelf.stl Three small pieces on one plate. Two rungs join the cheek to the spine, in front of and behind the motor can; each end goes through a slot and latches with a spring arm. The shelf goes across the top of the motor, stops the spine sliding fore-aft, and carries the battery case. 8 min

Print settings: PLA, 0.2 mm layers, 4 walls, 30 % infill, no supports, no brim. Every piece lies flat as it comes out of the file, with nothing facing down.

You also need two hook-and-loop straps (up to 12 mm wide) for the battery case and three 2.5 mm zip ties.

The motor numbers it is built on

The first two bodies used estimated motor sizes, and on the printed flat-plate body they were off by a bit. This one uses the dimension drawing Adafruit publishes for the yellow TT gearmotor (product 3777).

What Drawing The earlier bodies assumed
Distance between the two mounting holes 17.6 mm 16.0 mm
Output shaft to the line of the holes 19.85 mm (11.25 + 8.60) 18.0 mm
Mounting hole diameter 3.0 mm 3.2 mm
Gearbox thickness along the shaft 18.6 mm 18.8 mm
Gearbox width 22.44 mm 22.5 mm
Pin on one face of the gearbox 4.0 mm across, 1.92 mm tall, 11.25 mm from the shaft on the centre line not modelled
Clear band over the motor can 12.73 mm wide, 19.0 mm across not modelled

How the body allows for what is still not measured:

  • The pin can be on either face, so both plates have a 5.4 mm hole for it.
  • Gearbox thickness: the rungs hold the plates 18.9 mm apart, so anything up to that fits.
  • Hole spacing: one peg is round and the other is flattened across the gearbox, so a spacing that is 0.3 mm off still goes on.
  • The band over the can sits in a window cut in each plate. The motor wires come out through the same window.

All of these are in one block at the top of snap.py, marked MEASURE. Change a number, run python snap.py, and the print files and the design check are rebuilt.

Before you print the rest: try the cheek

Print cheek.stl and push it onto each face of the gearbox in turn. The pegs should go into the two holes with light pressure and the pin should sit in its hole. Then put a wheel on the shaft and push it home: the plate is 2.4 mm thick and has to fit between the gearbox and the wheel without rubbing.

If it does not fit, measure these with calipers and change them in the MEASURE block:

  • the distance between the two holes, and from the shaft to the line of the holes
  • the pin's distance from the shaft, and its diameter
  • the gearbox thickness
  • the gap between the gearbox face and the wheel, with the wheel pushed home

Put it together

  1. Push both rungs into the spine's two tall slots, from the gearbox side, until each latch clicks. The latch arms point away from the spine.
  2. Slide the shelf's tab into the short slot above them.
  3. Lay the motor on the spine: shaft in the open notch at the bottom, can between the rungs, the band in the window.
  4. Push the cheek on from the other side. Its pegs go into the motor's holes, the rungs' other ends click through its slots, and the shelf's other tab drops into the notch in its top edge.
  5. Push the wheels on.
  6. Tie the ESP32 to its four pads with two zip ties, module side towards the spine, USB pointing forward. Push the IMU onto its two pegs, header at the top, and put one tie across it. Do this before the battery goes on: the ties run behind the battery case.
  7. Stand the battery case on the shelf with its back against the spine and strap it at the two pairs of notches.
  8. The small boards (BMS, fuse, switch, junction board, MX1508, Mini360) have no place on the plastic. Stick them to the front of the battery case with foam tape or tie them to it.

To take a rung out, squeeze its latch arm towards the middle of the slot and pull.

Wiring: one page to print

This sheet has every connection, the wire list with a tick box for each wire, and the power-up checklist. Print it on one page, landscape.

Download the wiring sheet as a PDF

Every connection on one page
EVERY CONNECTION ON ONE PAGE · open the drawing for full size, or download wiring_page.svg

The full explanation of the circuit is on the electronics page.

Firmware and the IMU

The IMU faces the robot's right, chip x axis up. teeter_balance maps that by default (SNAP_BODY is 1). teeter_web starts with the same mapping and can learn any other mounting on its page from two poses. Either way, tilt the robot forward before you let it balance: the pitch reading must go positive. If it goes negative, the axis map is wrong: stop.

What this body leaves out

  • Crash arms. The body is narrower than the wheels, so a fall goes all the way to the floor and it lands on the edge of the spine behind the ESP32. Catch it by hand, or run it over carpet, while you tune.
  • A printed battery tray. The case is strapped straight to the spine.
  • A wheel sensor mount. The firmware can read an optional wheel sensor, but this body has nowhere to put one.

Numbers from the design check (../out/snap/design.md): 253 g in all, centre of mass on the axle fore-aft and 81 mm above it, 170 mm tall, 1.15 mm between each plate and its wheel.

Not done yet

  • The robot has not been weighed. The 253 g above is computed from the model.
  • sim.py still runs on the first body's numbers. This body is different enough to need a rerun: 253 g against 352 g, centre of mass 81 mm above the axle against 85 mm, fall time constant 100 ms against 116 ms. The reinforcement learning plant (rl/plant.py) already uses this body.

More detail

Build log

Written as it happens, newest last.

Clamshell core and mast (first design). A two-part core that closed round the motor, with a mast bolted on top. In Bambu Studio the core gave "floating cantilever" and the mast gave "reversed faces detected". The cantilever warning came from round holes opening through the bridged roof of the gearbox pocket: the slicer flags any outline in an overhang that rests on nothing. The holes now open through that roof in steps (slot, square, round). The reversed faces were two zero-area triangles back to back in the exported file; the export now welds and removes them, and every file is checked for it. Both warnings were reproduced and cleared by running Bambu Studio from the command line. The fixed files were printed, and the print turned out too problematic to carry on with.

Flat-plate body (second design). Two flat plates, one each side of the gearbox, six printed spacers on M3 x 30 bolts, and a battery saddle on tenons. It was printed. Three things were wrong: the motor dimensions were off by a bit, the pin on the gearbox face was not allowed for, and long M3 bolts with nuts were hard to find.

Snap-together body (this one). The brief: no nuts, as little plastic as possible, the battery case strapped on vertically with the ESP32 and IMU behind it, no printed battery box and no crash arms. The motor sizes now come from Adafruit's drawing. The first reading of that drawing put the holes 22.55 mm from the shaft; zooming in showed that figure belongs to two other features, and the mounting holes are at 19.85 mm. A review of the first version also found that two parallel rungs could lean over together and let the spine slide about 1.5 mm fore-aft on the motor, so the shelf was added to lock it.

2026-12-04. The snap-body robot balanced on the PID with teeter_web, tuned by hand on the page (kp 1.6, kd 0.19, ki 0.21, kv 2.01, kx 0.137, dead zone 0.005), and drove forward and back from the page.

Generated by snap.py. Masses are computed from the model; the robot has not been weighed. Motor sizes are from the Adafruit 3777 drawing [D]; the battery case, boards and masses are estimates [E].

27 PASS, 0 FAIL (table in section 8).

1. Mass
Part Kind Mass (g) Source
spine printed 15.7 printed PLA, 90 % of solid [E]
cheek printed 4.9 printed PLA, 90 % of solid [E]
rung x 2 printed 2.3 printed PLA, 90 % of solid [E]
shelf printed 1.5 printed PLA, 90 % of solid [E]
tt_gearbox bought 22.0 [E] dual-shaft TT gearmotor 1:48, ~29 g
tt_can bought 7.0 [E]
tt_shaft bought 1.0 [E]
tyre_l bought 10.0 [E] 65 mm TT wheel ~22 g
rim_l bought 12.0 printed PLA, 90 % of solid [E]
tyre_r bought 10.0 printed PLA, 90 % of solid [E]
rim_r bought 12.0 printed PLA, 90 % of solid [E]
battery_case bought 14.0 [E] 2 x 18650 case, back against the spine, two straps
cells bought 92.0 [E] 18650 ~46 g each
esp32 board 10.0 [E] spine outer face, four pads, two ties
imu board 2.5 [E] spine outer face, two pegs, one tie
small_boards mass 14.5 [E] BMS, MX1508, Mini360, switch, junction board: foam tape or ties on the case front
wires mass 16.0 [E] wire, jumpers, connectors
straps mass 4.0 [E] two hook-and-loop straps
zip_ties mass 1.0 [E] 3 x 2.5 mm ties
fuse mass 1.0 [E] PTC fuse
Total 253 printed 24 g (flat-plate body: 76 g, clamshell: 98 g)
2. Balance
  • Body 208 g, centre of mass -0.2 mm fore-aft, -0.5 mm sideways, 81.0 mm above the axle (flat-plate: 83.8, clamshell: 85.4). Wheels and shaft 45 g.
  • Pitch inertia about the axle 1.66e-03 kg m2, fall time constant 100 ms (clamshell: 116 ms).
  • Steady lean one motor can hold: 29 deg (flat-plate: 20, clamshell: 18).
3. Falls
  • There are no crash arms, and the body is narrower fore-aft (64 mm) than the wheels (65 mm), so a fall goes all the way down: it ends lying on the wheels and the edge of the spine behind the ESP32. Nothing stops it part-way, so it cannot get back up on its own.
  • The spine edges stand 3.9 mm further out than any board or the battery case, so with the USB cable unplugged a board does not take the hit. Catch it by hand or run it over carpet until it balances.
  • Sideways the spine is only 2.4 mm thick. With 5 g sideways on the 155 g above the motor (centre at z 97): 7.6 N, 8.0 MPa at z 59 (37 x 2.4 mm section), safety factor 5.0. A hard sideways fall is not modelled.
4. Clearances

Every pair of solids (plates, rungs, motor, wheels, battery case, boards) checked for overlap above 0.5 mm3: none. - Pegs in the motor holes: 2.8 mm pegs in 3.0 mm holes, 0.00 mm3 of overlap with the gearbox. The cheek plate itself overlaps the motor by 0.00 mm3 (the gearbox pin sits in its 5.4 mm hole). - Wheels through a full turn (inner faces 13.0 mm from the centre): nearest parts spine 1.15 mm, cheek 1.15 mm, tt_gearbox 1.78 mm, tt_can 3.50 mm. - Rungs to the motor: 3.60 mm. Can band in the plate windows: band 12.73 mm wide in a 14.4 mm window. - USB plug (11 x 8 mm overmould, 30 mm long, pointing forward): nearest part 0.5 mm away.

5. Snap joints
  • Rungs: each end is a 7.0 mm tongue plus a spring arm 2.6 mm deep and 17.6 mm long from its root to the latch. Pushing it through the slot bends the arm 1.2 mm: 1.5 % strain at the root (PLA takes about 2 %), 5.3 N per arm. The arm bends in the plane of its layers. Once through, the latch overlaps the plate by at least 0.90 mm. To take it apart, squeeze the arm tip towards the tongue.
  • Between the plates the rungs are 18.9 mm long, the gearbox 18.6 mm [D]: 0.3 mm of play, so a gearbox up to 18.9 mm fits. The plates can slide 0.2 mm on the rungs, which leaves at least 0.95 mm to a wheel.
  • Motor: held in x and z by the two cheek pegs, 7.0 mm into the holes, and in y by the two plates. Motor stall torque 0.08 N m over the 17.6 mm between the pegs is 4.5 N per peg; a 2.8 mm peg sheared across its layers holds about 123 N.
  • Spine on the motor, fore-aft: the rungs alone could lean like a parallelogram, so the shelf does this job: its 12 mm tabs sit in a slot in the spine and a notch in the cheek with 0.15 mm each side. Worst-case play between spine and motor: +-0.40 mm. Up-down the rungs' 24.5 mm shoulders do it.
  • Battery case: stands on the shelf, the rungs and the cheek (z 59.5), back against the spine, two straps round case and spine in the edge notches (z 60-72 and 125-137). The lower strap sits just below the ESP32, the upper one just above the IMU.
  • ESP32: four pads, two 2.5 mm ties. IMU: 2.6 mm pegs in its two holes, one tie. No screws anywhere.
6. Printed parts
Part Size in print pose x, y, z (mm) Mass (g) Orientation Pieces
cheek 37 x 66 x 9.4 4.9 outer face down, pegs up, no supports. Print first 1
spine 64 x 144 x 8.4 15.7 gearbox face down, no supports 1
rungs_shelf 56 x 59 x 2.4 3.8 two rungs and the shelf, flat, no supports 3

Down-facing surfaces off the bed: none.

Print settings: PLA, 0.2 mm layers, 4 walls, 5 top and bottom layers, 30 % infill, no supports, brim off.

7. Size

65 mm front to back, 78 mm wide, 170 mm tall.

8. Summary
Check Result Detail
CoM on the axle fore-aft PASS -0.2 mm (limit 2 mm)
CoM sideways within 3 mm of the centre PASS -0.5 mm
CoM no higher than 5 mm above the clamshell design PASS 81.0 mm above the axle
Fore-aft, the spine stands proud of every board PASS spine +-32.0 mm, boards and case +-28.1 mm
Spine sideways, 5 g: safety factor >= 2 PASS 5.0
No clashes (incl. boards and battery case) PASS 0 overlapping pairs
Pegs and pin hole clear the gearbox PASS pegs 0.00 mm3, plate 0.00 mm3
Wheel sweep clearance >= 1.0 mm PASS spine 1.15 mm
Rungs clear the gearbox and can by >= 1 mm PASS 3.60 mm
Access: USB plug PASS 0.5 mm
Snap arm strain <= 2 % PASS 1.5 %
Spine located fore-aft on the motor within 0.5 mm PASS +-0.40 mm
Latch overlap >= 0.5 mm and room to bend PASS overlap 0.90 mm, gap 2.4 mm for 1.2 mm
Peg shear: safety factor >= 5 at stall PASS 27
Rung and shelf tabs pass the slots with no overlap PASS cheek/rung_0 0.000, cheek/rung_1 0.000, cheek/shelf 0.000, spine/rung_0 0.000, spine/rung_1 0.000, spine/shelf 0.000 mm3
cheek: valid, on the bed, fits PASS 1 piece(s), 37 x 66 x 9.4 mm
cheek: STL file closed, no zero-area or reversed faces PASS 0 zero-area, 0 bad edges
cheek: no floating cantilever (slicer rule) PASS none
cheek: nothing faces down PASS no overhangs
spine: valid, on the bed, fits PASS 1 piece(s), 64 x 144 x 8.4 mm
spine: STL file closed, no zero-area or reversed faces PASS 0 zero-area, 0 bad edges
spine: no floating cantilever (slicer rule) PASS none
spine: nothing faces down PASS no overhangs
rungs_shelf: valid, on the bed, fits PASS 3 piece(s), 56 x 59 x 2.4 mm
rungs_shelf: STL file closed, no zero-area or reversed faces PASS 0 zero-area, 0 bad edges
rungs_shelf: no floating cantilever (slicer rule) PASS none
rungs_shelf: nothing faces down PASS no overhangs