Hackathon Fall 2026
A Raspberry Pi 5 robot, driven from a laptop, that moves, turns, explores, speaks, and senses.
arpitran/hackathon-fall-2026
The idea
Plan
| # | Milestone | Status |
|---|---|---|
| M0 | Prep: order parts, bring up the Pi 5 | done |
| M1 | Eyes on the Pi: person detection on the board | todo |
| M2 | Hardware bring-up: L298N on the Pi's GPIO, all four motors turn | done |
| M3 | Wheels: Car class + drive CLI | in progress |
| M4 | Laptop control: FastAPI + WebSocket + watchdog | todo |
| M5 | Sentry vision: live stream with person boxes | todo |
| M6 | Stretch: voice or obstacle sensing | todo |
| M7 | Demo video + docs | todo |
Hardware
Raspberry Pi 5 with active cooler
Pi 5 GPIO pins drive the L298N directly, no co-processor
L298N driver, four BO motors and wheels (skid steering), separate 4×AA battery pack (6V)
Logitech USB webcam
USB speaker (the Pi 5 has no 3.5mm jack)
Doubled cardboard chassis, breadboard for prototyping
Architecture
Wiring
Header pins
Working today
| Pi pin | GPIO | L298N | Side |
|---|---|---|---|
| 11 | GPIO17 | IN1 | left |
| 13 | GPIO27 | IN2 | left |
| 15 | GPIO22 | IN3 | right |
| 16 | GPIO23 | IN4 | right |
| 14 | GND | GND | shared ground |
Verified on the real car on 2026-09-21: all four motors turn, both sides, both directions. The drive code is tested and runs as drive-car.
Electronics
A Pi pin puts out 3.3 V and should supply about 16 mA at most. The resistor decides how much current flows.
Red and yellow LEDs drop about 2 V. Blue, white and green drop about 3 V, so use a smaller resistor (100 Ω) if one looks dim. Drag the slider; press Esc to get the arrow keys back.
Vision
A YOLO11n detector runs on webcam frames with tracking and a live FPS counter. It is the base for the sentry view in M5.
uv run --extra vision detect-people
Demo
Drive the car from the laptop, watch the person boxes.
Fallback: recorded demo video
Next