Technical architecture

Hardware and software

Downward-facing camera Mast and boom Arduino Motor driver Raspberry Pi 5 Tracked chassis Ground footprint (known area) Surface debris Direction of travel Camera sees debris before tracks pass over it h = fixed height (27 cm)
Side view: the camera images the ground before the tracks reach it

DuneBroom is built to be cheap and simple to copy. The rover, camera, computer and electronics are budgeted at under $350 in total, and a survey needs no internet connection.

Chassis and camera mount

Tracked chassis

An off-the-shelf tracked chassis with two geared 12 V DC motors (45:1, 150 RPM). Tracks spread the rover’s weight on soft sand. The chassis is the only part carried over from the earlier version of DuneBroom.

Mast and boom

A PVC mast rises from the front of the chassis, and a boom reaches forward from it. A Logitech C920 webcam hangs from the end of the boom, facing straight down. This puts the camera’s view ahead of the tracks, so debris is photographed before the rover can drive over it or move it. The camera is glued in place 27 cm above the ground, where each photo covers 37 × 21 cm.

Onboard computing

Raspberry Pi 5

The Raspberry Pi 5 is the rover’s main computer. During a survey it plans the lanes, sends drive commands to the Arduino over USB serial, and saves locked-exposure photos with odometry. Afterwards it runs ground-shift measurement, debris detection, duplicate removal and the density calculation on the saved survey. An active cooler keeps it from throttling under full load. If detection proves too slow on the Pi, the same code can run that step on a laptop.

Arduino

An Arduino Uno runs the motor-control firmware. It drives the left and right tracks through an I2C motor driver board and counts wheel-encoder pulses so the rover can drive set distances. The Arduino also owns safety: it stops the motors if a track stalls or if it stops hearing from the Pi for 600 ms.

Sensors and power

A BNO055 gyro is being added so turns at lane ends are accurate. Skid turns judged by the encoders alone vary by about ±10%. The motors run on an 11.1 V battery pack. The Pi has its own battery on a UPS HAT, which lasts about two hours. The survey stops and saves before either battery runs low.

Debris detection model

Why a trained detector

Simple rule-based image processing can’t reliably tell varied litter apart from shells, rocks and seaweed. An object detection model can.

Zero-shot first

DuneBroom first tries zero-shot, open-vocabulary detectors. These models find objects from a text prompt such as “bottle cap” or “plastic wrapper” without being trained on DuneBroom’s images. Eight have been compared on the Pi so far, including OWLv2, YOLO-World, Grounding DINO and YOLOE. YOLOE gives the cleanest results. Thin black plastic still fools every model, and SAM 3 is still to be tested.

Training only if needed

The detector is measured on a small hand-labeled set of photos from DuneBroom’s own camera on real beaches. If zero-shot models fall short of the design criteria, a small model will be trained on those images, with the zero-shot model pre-labeling them to save time. Training would happen off the rover; only the finished model would run on it.

Keeping evaluation honest

Photos are grouped by capture session. Every image used to test the design criteria comes from separate sessions with new debris layouts and is never used for training or tuning.

Software stack

  • Rover: Python, OpenCV, NumPy and pySerial
  • Detection: PyTorch and Ultralytics (YOLOE), plus Hugging Face Transformers for model comparisons
  • Firmware: Arduino C++, built and flashed from the Pi with arduino-cli
Raspberry Pi 5 (on board) During the drive: lane planning, frame capture + odometry Ground-shift measurement (phase correlation) Debris detection (open-vocabulary model) Duplicate removal (new-ground strip + lane band) Density calculation and data logging (items/m²) USB camera (downward-facing) Arduino (motors + safety) Survey results: counts, density, detection map Pi battery (UPS HAT) Motor driver (own 11.1 V pack) DC motors (encoders to Arduino) USB USB serial Power I2C after the drive
Onboard computing architecture