Skip to content

Parts ​

Buy two of every small part: you will burn a board and strip a gearbox. The quality picks are what I'd build with; the budget picks work, with the caveats in the notes.

The robot ​

PartQtyQuality pickBudget pickNotes
Brain1EK-TM4C123GXL LaunchPadsamePlugs onto the carrier board
Gear motors with encoders2Pololu micro metal gearmotor HPCB 6 V + magnetic encoderN20 6 V with hall encoder, 300 to 600 rpmFast matters: a slow motor can't get the wheels back under a falling robot
Wheels260 to 70 mm, rubber tyrePrinted hub + O-ring tyreBigger wheels catch a fall faster
Motor driver1 (+1)TB6612FNG breakoutGeneric TB6612 module1.2 A per channel
Bulk capacitor1100 µF 16 V electrolyticsameAcross the battery, beside the motor driver
IMU1 (+1)MPU-6050 module (GY-521)sameGyro and accelerometer on I2C
Display10.96 or 1.3 inch SSD1306 OLED, I2C (4 pins)sameAngle, loop plots and menus without a laptop. Shares the IMU's I2C bus
Battery22S 7.4 V 450 to 850 mAh LiPo, JST-PHsameTwo, so one charges. It goes at the top of the frame
Charger1Balance charger2S USB balance chargerNever charge unattended
5 V regulator1Pololu D24V5F5 buckMP1584 moduleFeeds the LaunchPad's VBUS pin
Power switch1SS12D00 slide switchsame
Schottky diode1SS14 (SMD)1N5817Between the buck and VBUS, so USB and battery can both be connected
Battery sense1 set10 kΩ + 3.3 kΩ divider, 100 nFsame8.4 V becomes 2.1 V at the ADC
Bluetooth1HC-05HC-06Tuning and remote control from a laptop or phone
Carrier board27×9 cm perfboard + female headerssameLater: a PCB
Frame plates37×9 cm perfboard, or printed plates the same sizesameStacked on standoffs (Step 9)
Motor brackets2N20 metal mounting bracketssameWith their M1.6 or M2 screws

Tools and the rest ​

ItemWhy
Logic analyser (8 channels, 24 MHz)Checking PWM, I2C and encoder signals
MultimeterBattery voltage, continuity, setting a buck
Crimper kit with JST-PH, JST-XH and Dupont housingsBattery, motor and encoder cables. Open-barrel jaws that reach 28 AWG
Stranded silicone wire, 26 or 28 AWGEvery cable that moves or plugs in
Solid hook-up wire, 22 AWGLinks on the perfboard only
Soldering iron, 2.54 mm headers
M3 standoffs (four 30 mm, four 40 mm), M3 screws and nuts, one 50 mm M3 screwThe frame and its kickstand
A 3D printer (optional)Wheel hubs, or plates instead of perfboard

Motor speed and voltage

N20 motors come in many gear ratios and in 3 V, 6 V and 12 V windings. For balancing, pick 300 to 600 rpm at the voltage you'll run them at. Under about 150 rpm the robot falls faster than the wheels can follow. A 12 V motor on a 2S battery runs at about 60% of its rated speed.

Setting an MP1584 module

Most are adjustable. Set the output to 5.0 V with the multimeter before it ever touches the LaunchPad, and lock the trimmer with a drop of glue: 8 V on VBUS kills the board.

Balance Bot Bootcamp