Skip to content

Parts

From your kit

Part What it's for
Arduino Uno + USB cable Runs the motors and reads the sensors
HC-SR04 ultrasonic sensor Front distance: stop before the end wall
Breadboard and jumper wires Wiring the driver and sensors
Multimeter Checking battery voltage and sensor outputs

New for this project

Part Qty What it's for
2WD robot car chassis (two TT gear motors, caster, slotted encoder disks) 1 The car
TB6612FNG motor driver module 1 (+1 spare) Lets the Uno control both motors' speed and direction
Sharp GP2Y0A41SK0F IR distance sensor + cable 2 Left and right wall distance (4–30 cm)
10 µF capacitor 2 Smooths each Sharp sensor's power supply
4×AA battery holder with switch + batteries 1 Motor power (about 6 V)
Mini breadboard, jumpers, standoffs 1 set Mounting the electronics on the chassis
Raspberry Pi 5 + active cooler + 32 GB microSD 1 Vision and decisions, in Python (from the shelf)
USB webcam, wide angle 1 The car's eye
USB-C PD power bank (≥ 45 W, with a 12 V profile) 1 Powers the Pi, which powers the Uno over USB
Foam board (about 10 sheets) + tape — Track walls, about 15 cm tall
Printed AprilTags (family 36h11) and a printed checkerboard — Landmarks and camera calibration
LM393 slot speed sensors 2 Stretch goal: counting wheel turns
Rubik Pi 3 1 Stretch goal: the sign classifier (from the shelf)

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

Power: two sources, one ground

flowchart LR
    BANK[USB-C power bank] --> PI[Raspberry Pi 5]
    PI -- USB cable --> UNO[Arduino Uno]
    UNO -- 5V --> LOGIC[TB6612 VCC<br/>sensors]
    AA[4×AA pack + switch] --> VM[TB6612 VM<br/>motors]
    AA -. GND .- UNO
  • The motors run from the AA pack through the TB6612's VM pin. Nothing else does.
  • The Pi runs from the power bank. The Uno runs from the Pi's USB port, and the sensors and the TB6612's logic run from the Uno's 5V pin.
  • The AA pack's minus wire connects to the Uno's GND. Without a common ground, the driver can't understand the Uno's signals.

Safety

  • No LiPo batteries. AA cells and a commercial USB power bank only.
  • Switch the AA pack off before you rewire, and before you pick the car up. A car that starts driving off the table on upload is the most common accident with this project. Put it on a stand (a roll of tape works) whenever the wheels don't need to touch the floor.
  • Never put the motors on the Uno's 5V pin or on the Pi. Motors pull big current spikes that reset the boards.
  • Check the AA pack's polarity with the multimeter before it goes into VM. The TB6612 does not survive reversed power.
  • The Pi 5 gets hot. Keep the active cooler on it and don't cover it.
  • Shut the Pi down properly (sudo shutdown now) before you unplug the power bank, or you can corrupt the microSD card.