BalanceBot standing on its two-wheeled base with a carbon fiber mast and the electronics on top

I started BalanceBot because AI tools have gotten good enough that I knew I could be more ambitious. In truth it isn't really a robot so much as a remote-controlled, robot-like vehicle. This is phase one, focused on the balancing mechanics and on connecting a wide range of devices.

It balances on two wheels driven by stepper motors, with a carbon fiber mast joining the 3D-printed base to the head that carries the electronics. I drive it from a web page that the robot serves over WiFi. The OLED is there for fun: an animated eye that looks around and blinks.

BalanceBot's 3D-printed two-wheeled base with the carbon fiber mast clamped on top

Electronics

BalanceBot electronics: custom PCB with IMU, two stepper drivers and a round-eye OLED display in a 3D-printed frame

My design philosophy for the PCB was to use pre-made components as much as possible to cut down on design time. An ESP32 in Adafruit's Feather format carries an IMU in the FeatherWing format, and because FeatherWings stack, I can add boards later if I want more features.

Battery Pack

Power comes from a custom Li-ion pack of four 21700 cells that I'm particularly proud of. It's relatively easy to assemble, and it doesn't solder leads directly to the cells, which is a little risky and ruins the cells for other uses. The holder is parametric, so it's easy to add or subtract cells for future projects.

Fusion 360 model of the four-cell 21700 battery holder Back of BalanceBot's head showing the battery pack and its BMS board

Vibe Coding It Twice

The firmware was fully vibe-coded, and I learned a lot about that too. I actually built it twice. The first attempt ended up with excessive cruft and was hard to debug, so I designed a new vibe-coding toolkit with best practices, careful reviews and specific steps to remove unused code. The first firmware was about 5,000 lines; the rewrite is about 2,900.

Technical Details

Lessons Learned

I really don't like soldering surface-mount components with tiny features. Next time I'll have my boards fully assembled by a third party.

I'd also make more of an effort to use soft materials, so that when it inevitably falls over it won't beat up the robot or my wood floor.

What's Next

Ideas for a future robot:

Demo Video

Resources