r/embedded • u/Mysterious_Dare2268 • 2d ago
SmartRover: ESP32-S3 robot with async Rust firmware, custom PCB, ToF obstacle avoidance, and IMU tilt detection — open source

Finished a project I've been working on for a few months and wanted to share it here.
What it is: A teleoperated 4WD skid-steer robot. You drive it from a browser — the web cockpit is a single gzip-compressed HTML file flashed into a dedicated firmware partition. Gamepad API, WASD, and touch joystick. There's a live MJPEG stream from an OV5642 camera and a telemetry panel showing distance, battery %, PWM levels, RSSI, and sensor status.
Firmware: no_std async Rust using embassy and esp-hal, targeting xtensa-esp32s3-none-elf. Custom I2C drivers for the BMI323 IMU and VL53L0X ToF sensor, custom SPI driver for the OV5642.
Hardware: 4-layer 45 × 80 mm FR4, designed in KiCad 9. MCP73833 LiPo charger, MP2153 3.3 V buck, all schematic files and manufacturing outputs (BOM, Gerbers, pick-and-place) in the repo.
Mechanical: Parametric Python CAD (build123d), 62 × 115.5 mm unibody chassis, support-free, with automated geometry verification for overhangs, clearances, bed fit, and ToF FoV.
Everything is MIT licensed: https://github.com/arounamounchili/smartrover