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
| Part | Qty | Quality pick | Budget pick | Notes |
|---|---|---|---|---|
| Brain | 1 | EK-TM4C123GXL LaunchPad | same | Plugs onto the carrier board |
| Gear motors with encoders | 2 | Pololu micro metal gearmotor HPCB 6 V + magnetic encoder | N20 6 V with hall encoder, 300 to 600 rpm | Fast matters: a slow motor can't get the wheels back under a falling robot |
| Wheels | 2 | 60 to 70 mm, rubber tyre | Printed hub + O-ring tyre | Bigger wheels catch a fall faster |
| Motor driver | 1 (+1) | TB6612FNG breakout | Generic TB6612 module | 1.2 A per channel |
| Bulk capacitor | 1 | 100 µF 16 V electrolytic | same | Across the battery, beside the motor driver |
| IMU | 1 (+1) | MPU-6050 module (GY-521) | same | Gyro and accelerometer on I2C |
| Display | 1 | 0.96 or 1.3 inch SSD1306 OLED, I2C (4 pins) | same | Angle, loop plots and menus without a laptop. Shares the IMU's I2C bus |
| Battery | 2 | 2S 7.4 V 450 to 850 mAh LiPo, JST-PH | same | Two, so one charges. It goes at the top of the frame |
| Charger | 1 | Balance charger | 2S USB balance charger | Never charge unattended |
| 5 V regulator | 1 | Pololu D24V5F5 buck | MP1584 module | Feeds the LaunchPad's VBUS pin |
| Power switch | 1 | SS12D00 slide switch | same | |
| Schottky diode | 1 | SS14 (SMD) | 1N5817 | Between the buck and VBUS, so USB and battery can both be connected |
| Battery sense | 1 set | 10 kΩ + 3.3 kΩ divider, 100 nF | same | 8.4 V becomes 2.1 V at the ADC |
| Bluetooth | 1 | HC-05 | HC-06 | Tuning and remote control from a laptop or phone |
| Carrier board | 2 | 7×9 cm perfboard + female headers | same | Later: a PCB |
| Frame plates | 3 | 7×9 cm perfboard, or printed plates the same size | same | Stacked on standoffs (Step 9) |
| Motor brackets | 2 | N20 metal mounting brackets | same | With their M1.6 or M2 screws |
Tools and the rest
| Item | Why |
|---|---|
| Logic analyser (8 channels, 24 MHz) | Checking PWM, I2C and encoder signals |
| Multimeter | Battery voltage, continuity, setting a buck |
| Crimper kit with JST-PH, JST-XH and Dupont housings | Battery, motor and encoder cables. Open-barrel jaws that reach 28 AWG |
| Stranded silicone wire, 26 or 28 AWG | Every cable that moves or plugs in |
| Solid hook-up wire, 22 AWG | Links 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 screw | The 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.