Mobile robot base
Differential-drive base with motor control, bumpers and battery monitoring.
Function
Drives two wheel motors from velocity commands, reads wheel odometry and bump sensors, monitors the battery, and stops immediately on an emergency-stop input.
Design choices
- Two DRV8871 brushed-motor drivers with current limiting, one per wheel.
- Hardware e-stop: the normally-closed loop holds a P-MOSFET on, and opening it cuts motor power independently of firmware.
- Quadrature encoder inputs on STM32G431 timers for wheel odometry, plus bumper inputs.
- INA219 battery current and voltage monitor, and USB-C to the onboard navigation computer.
Schematic
PCB
Future challenges
- Graceful behaviour on low battery or wheel slip.
- Scaling to four-wheel or omni-wheel drive.
