The Mission: Automated Surface Debris Collection
Urban lakes and municipal water channels in metropolitan Dhaka frequently accumulate plastic bottles, poly bags, and floating debris. Manual boat-based cleaning is hazardous, labor-intensive, and infrequent.
Aqua-Sweep was conceived for the UIU Summer 2026 Microprocessor and Microcontroller Project Show as an autonomous surface cleaning vessel. Equipped with dual catamaran hulls, a central collection conveyor belt, and an onboard ESP32 controller, the rover navigates water bodies, sweeps surface trash into a collection basket, and streams operational telemetry to an operator on the shore.
Power Management & Inductive Spike Protection
Our biggest initial hurdle during pool testing was sudden microcontroller brownouts. When high-torque DC propulsion motors transitioned from full stop to full forward, the inductive voltage kick caused voltage on the 5V logic rail to sag below the ESP32's 2.7V brownout detector, causing the processor to reset repeatedly in the middle of the water.
We redesigned the power delivery into two isolated circuits: a dedicated high-capacity LiPo pack feeding the motor H-bridges, and an optically isolated regulator powering the ESP32 logic and radio transceivers. We added Schottky flyback diodes across all motor terminals to clamp inductive voltage spikes.
Firmware State Machine & Telemetry
The firmware was written in C++ using PlatformIO. It cycles through a non-blocking state machine handling navigation inputs, ultrasonic obstacle avoidance, conveyor speed adjustment, and radio heartbeats:
// Non-blocking state check and fail-safe in Aqua-Sweep firmware
void loop() {
unsigned long currentMillis = millis();
// Check RF connection heartbeat (loss of signal safety)
if (currentMillis - lastHeartbeatMillis > 2500) {
engageFailsafeDriftMode(); // Cut motors if operator radio drops out
}
// Ultrasonic forward obstacle detection
if (currentMillis - lastObstacleCheckMillis > 60) {
float distanceCm = readUltrasonicDistance();
if (distanceCm < 30.0 && distanceCm > 2.0) {
reverseAndDivertCourse();
}
lastObstacleCheckMillis = currentMillis;
}
// Handle debris intake conveyor PWM
processConveyorIntake();
// Stream battery voltage and motor status back via RF transceiver
if (currentMillis - lastTelemetryMillis > 500) {
sendTelemetryPacket();
lastTelemetryMillis = currentMillis;
}
}UIU Project Show Result
At the UIU Summer 2026 Project Show, Aqua-Sweep was demonstrated live before department faculty and industry judges, successfully navigating debris obstacle courses and streaming live battery and thruster telemetry.
Our team placed **4th overall (3rd Runner Up)** among numerous competing senior microcontroller engineering projects. The experience reaffirmed the importance of physical prototyping, hardware-software co-design, and designing robust fail-safes into every line of embedded code.