Skip to content

Parts

Note

Dr. Alvear is finalizing the order; some parts may be swapped for ones we already have.

From your kit

Part Qty What it's for
Arduino Uno + USB cable 1 The robot's brain
Breadboard 1–2 IMU, driver and knobs (a small one fits on the middle deck)
Jumper wires lots Everything
10 kΩ potentiometers 3 The Kp, Ki and Kd knobs (Class 4), then the outer-loop knobs (Class 5)
Resistors, 1 kΩ and 2 kΩ (or 2.2 kΩ) 1 each Voltage divider for the Bluetooth module (Class 6 stretch)
Multimeter 1 Checking 12 V and polarity before anything is connected

New for this project

Part Qty What it's for
MPU6050 IMU board (GY-521) 1 (3-pack) Measures tilt: accelerometer + gyro. The spares cover a dud.
12 V DC gear motors with Hall encoders (JGB37-520 type, about 200–330 RPM) 2 (+1 spare) The wheels' motors. The encoder on the back counts how far each wheel turns.
TB6612FNG dual motor driver module 1 (+1 spare) Speed and direction for both motors from the Uno's pins
Wheels, 65–85 mm, for a 6 mm D-shaft, with hubs 2 Fit onto the motor shafts
Motor brackets for 37 mm gear motors, with M3 screws 2 Hold the motors under the bottom deck
M3 threaded rod, nuts, washers, M3 screws 1 set Holds the three decks together
Deck material (3D print or plywood) 3 decks Bottom: motors. Middle: electronics. Top: battery.
12 V 2 A wall adapter 1 Motor power during tuning, on a long lead (the tether)
Barrel jack to screw-terminal adapter 1 Connects the 12 V adapter to the breadboard
USB-C PD power bank (45 W or more) + 12 V PD trigger board 1 Motor power off the tether (Class 6); its second port powers the Uno
Toggle switch 1 Motor power on/off, within reach
100 µF electrolytic capacitor (25 V or higher) 1 (+1 spare) Across the driver's motor supply
Stretch: HC-05 Bluetooth module 1 Drive it from a phone (Class 6)

How the power is laid out

  • Motors: 12 V into the TB6612's VM pin, through the toggle switch. During tuning that 12 V comes from the wall adapter on a long lead. At the end it comes from the power bank through the 12 V trigger board.
  • Uno: from USB (the laptop while tethered, the power bank's second port at the end). The Uno powers the IMU, the encoders, the TB6612's logic (VCC) and the knobs from its 5V pin.
  • Common ground: the 12 V supply's ground connects to the Uno's GND. Without it, the driver's direction and speed signals have nothing to be measured against.

Safety

Motor driver

  • 12 V goes only to VM. The TB6612's VCC is its logic supply and takes 5 V from the Uno. 12 V on VCC destroys the chip.
  • Check the polarity before you connect. The TB6612 does not survive reversed power.
  • Know its limits. Toshiba's datasheet rates each channel at about 1.2 A continuous and 3.2 A for very short peaks, with VM up to about 13.5 V in normal use. Look up your motor's stall current (the current when the shaft is held still at 12 V) on its listing and check it with Dr. Alvear. A balancing robot pulls hard, short bursts. If the stall current is well above the TB6612's peak, Dr. Alvear will swap in a larger dual driver.
  • Put the 100 µF capacitor across VM and GND, close to the driver, with the stripe (−) on ground.
  • The chip gets warm after hard running. Don't grab it right after a long tuning session.

Spinning wheels

The gear motors are strong and the wheels can reach several turns per second. Keep fingers clear while testing, add the tilt cutoff before the robot goes on the floor, and keep the power switch where you can reach it.

Power

  • Check the 12 V trigger board's output and the wall adapter's output with the multimeter before you connect them to anything. Some trigger boards can be set to other voltages, and some adapters read well above 12 V with nothing connected. Anything over about 13.5 V is too much for the TB6612: ask Dr. Alvear.
  • No LiPo batteries in this project.
  • The wall adapter's lead is a trip hazard. Run it along the floor, not across a walkway.