Jump to content






Balancing Robot #2 - Update 1

Posted by Nathan House, in Balancing Robot #2 14 July 2011 · 2,621 views

Build Log
My last attempt at building a balancing robot didn’t turn out so well. It looked cool, but did not balance – at all. I blame some of this on the Vex parts I was using, but just as much of the problem was caused by my inadequate control software.

This time, I’m using a Dual Motor GearBox from SparkFun, a SN754410 dual H-bridge IC to drive the two motors, and a PIC18F2550 as the brain. The PIC18F2550 is basically the same as the PIC18F4550 (right down to being pin-compatible), with the only difference being that it has fewer pins. I designed a small PCB to hold the microcontroller and motor driver, which will hopefully be done soon.

Here’s a picture of the assembled gearbox with the motors put in:

Posted Image

To house the electronics, I’m making a frame out of acrylic, which will be attached to the gearbox. The robot will use an accelerometer and gyroscope to detect the tilt and angular rate of rotation. These two signals will be combined somehow in the software (a Kalman filter would be the best way to do this, but I’m not sure I know enough yet to design one) and a PID will be implemented to keep it balancing.

  • 0