This is TARS. I'm calling it Dumb TARS because that's what it is. A one-or-two-hour prototype thrown together just to prove the concept moves.
The hardware
- An ESP32 module taped to the back
- Two continuous rotation servos up top
- Ground and VIN from each servo running to the power supply
- Two output pins from the ESP to the servo signal lines
- Powered over USB-C at 5V right now. A battery pack is the plan.
That's the whole build. No PCB, no printed chassis, no enclosure. Tape.
Continuous rotation servos were the wrong call
Continuous rotation means the servo doesn't stop at 180 degrees. It goes all the way around and keeps going. That's the fun part and it's also the problem.
You get no position feedback. So you can't tell it to move to a specific angle. You tell it to run for an amount of time and hope. Run the walk cycle a few times and it's lost.
Steppers fix that. You move positionally, you know where you are, and you don't drift because you asked for two seconds of spin and got 170 degrees instead of 180.
The code
Arduino IDE, so it's C++. High level:
- Pins get set at the top, servos flagged as continuous rotation
- A value for how far to swing the arms on each step
- Separate left arm direction and right arm direction (currently fighting each other, which is why the arms look insane in the video)
- Motion functions:
walk,takeStep,moveArms,startArm,stopArm,armPosition - The main loop just calls
walk, runs it three times, waits five seconds, goes again
Super simple. It's really just timed servo commands in a loop.
There's a stepper.main file sitting next to it already, unused. Same idea, different API, positional instead of timed. It'll be accurate and it'll be faster.
What's next
- 3D print the body. Same shape, real parts instead of whatever this is.
- Swap in stepper motors and rewrite the movement functions against the new API.
- Get it walking properly with the arms in sync.
- Train the gait in simulation.
Step 4 is the one I actually care about. Model the robot in a virtual physical world with real-world physics, run tests over and over from different views, angles and environments on a cloud GPU, let it learn to walk, then install that model onto the board. Similar to what NVIDIA demoed. You stop hand-tuning a walk cycle and start training one.
After that, hook it up to a large language model. Add vision and voice. Let it see what's in front of it and choose how to respond instead of running a fixed loop.
That's the plan, if the attention span holds.
Michael Thomson
Software developer building Shopify apps, AI tools, and ecommerce systems.
Get in touch