A small PVC catamaran that drives a loop around the tank, tips feed out of a hopper at three spots, then parks at a dock that tops it up again. Use the 3D bench to put it together piece by piece, then run the whole trip.
This page is the build. The design side (the ten IoT steps, the API, the test plan and a working dashboard) is in review 2.
Top view, to scale (1 cm = 12 px). The bow points right, toward the dock.
| Part | Exact position | Why there |
|---|---|---|
| Hopper | Dead centre, mid-length, over the slot | Weight change as it empties never tilts the boat |
| Servo flap | 1 mm under the hopper neck | Gravity drop, nothing to jam |
| Battery | Rear, right plate, as low as possible | Heaviest item keeps the centre of mass low |
| Electronics box | Front, left plate | Away from water spray at the props, short wires to sensors |
| Motors | Rear tip of each hull, prop 1 cm under water | Differential steering with two motors, no rudder |
| Sensor stick | Front cross beam, hanging down | Clean water ahead of the boat, clear of the feed slot |
The flap is glued to the servo horn and swings under the hopper neck like a wiper. That way a plain rotating servo does the job and nothing has to slide.
Tap a colour to follow one wire. Every ground symbol is the same shared ground wire. Turn the buck converter to 5.0 V before the ESP32 goes anywhere near it.
| Boat ESP32 | Goes to | Job |
|---|---|---|
G13 | Servo signal (orange) | Feed flap |
G25 / G26 / G27 | PWMA / AIN1 / AIN2 | Left motor speed + direction |
G32 / G33 / G14 | PWMB / BIN1 / BIN2 | Right motor speed + direction |
G4 | STBY | Driver enable |
G18 | DS18B20 data + 4.7 kΩ to 3V3 | Water temperature |
G34 | Turbidity via divider | Water clarity (ADC1 only) |
The boat leads and the dock answers over ESP-NOW. No router, and no internet out on the water.
sequenceDiagram
participant B as Boat ESP32
participant D as Dock ESP32
participant UI as Dashboard
D->>D: Limit switch pressed
D->>B: DOCKED
D->>D: Open refill flap 2 s, close
D->>B: REFILL_DONE
B->>B: Reverse, run timed path
loop 3 feed points
B->>B: Stop, read temp + turbidity
B->>B: Flap 0° → 80° → 0°
B->>D: FED, point, grams
D->>UI: forward event
end
B->>B: Drive into V-guide
D->>B: DOCKED
stateDiagram-v2 [*] --> DOCKED DOCKED --> RUN_PATH: REFILL_DONE RUN_PATH --> DROP: FEED step DROP --> RUN_PATH: flap closed RUN_PATH --> RETURN: last point RETURN --> DOCKED: dock says DOCKED
// {left, right, ms} +=forward 0=stop FEED marks a drop
Step path[] = {
{-60,-60,2000}, // reverse out of dock
{ 60, 0,1200}, // turn
{ 60, 60,2200}, FEED, // point 1
{ 60, 0,1200}, { 60, 60,3000}, FEED, // point 2
{ 60, 0,1200}, { 60, 60,3000}, FEED, // point 3
{ 60, 0,1200}, { 60, 60,2600},
{ 60, 0,1200}, { 60, 60,2200},
{ 0, 60,1200}, { 60, 60,2000} // into the V-guide
};
int doseMs = 300 * (tempC < 22 ? 0.7 : 1) * (turbid ? 0.7 : 1);
These open in a new tab. The image links are only searches, so you can look at real builds before you cut any PVC.