Joyce.
aqua feeder the build review 2
A proof of concept, built over two days

Autonomous Aqua Feeder

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.

Boat 45 × 30 cmHopper ≤ 1 kgPack 2S 7.4 VLink ESP-NOWMoving parts 2 servos, 2 DC motors
Drag to orbit · scroll or pinch to zoom
Step 1 of 10
Seal the hulls
01 · Placement plan

Where every part goes on the deck

Top view, to scale (1 cm = 12 px). The bow points right, toward the dock.

open slot · feed falls here ESP32 +TB6612 + buck 2S 18650low, rear M-LM-R Hopper Ø12 cm Servo + flap Sensors Cross beam PVC hull 45 cm 30 cm slot 6 cm FRONT → dock ← REAR · props
PartExact positionWhy there
HopperDead centre, mid-length, over the slotWeight change as it empties never tilts the boat
Servo flap1 mm under the hopper neckGravity drop, nothing to jam
BatteryRear, right plate, as low as possibleHeaviest item keeps the centre of mass low
Electronics boxFront, left plateAway from water spray at the props, short wires to sensors
MotorsRear tip of each hull, prop 1 cm under waterDifferential steering with two motors, no rudder
Sensor stickFront cross beam, hanging downClean water ahead of the boat, clear of the feed slot
02 · Drop mechanism

How a rotating servo drops feed

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.

TOP VIEW SIDE VIEW SG90 pivot = servo shaft · 0° closed, 80° open water
Closed · servo.write(0)

Build the flap in 15 minutes

  1. Cut a 4 × 3 cm piece of acrylic or sunboard.
  2. Hot glue it flat to the servo horn, plus one small screw.
  3. Glue the servo beside the neck so the shaft is about 2.5 cm from the neck centre.
  4. Upload a sketch that sets servo.write(0), then push the horn on so the flap covers the neck.
  5. Leave a 1 mm gap under the neck so it never rubs.

Calibrate the dose

  • Open 300 ms, catch feed in a cup, weigh. Repeat 5 times.
  • Typical result: 300 ms ≈ 5 g with a 15–20 mm neck.
  • Pellets stick? Open-close twice fast before the main open.
03 · Wiring

Boat electronics, wire by wire

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.

2S 18650 pack7.4 V nominal Switch Buck converterIN 7.4 V → OUT 5.0 V TB6612FNG PWMAAIN1AIN2PWMBBIN1BIN2STBYVCC AO1AO2BO1BO2VM M-L M-R ESP32 DevKit 30-pin G25G26G27G32G33G14G43V3VIN G13G18G343V3 Servo (flap)sig · +5 V · GND 470 µF DS18B20temp probe 4.7k 10k/20k Turbidityanalog, up to 4.5 V divider → ≤3.3 V Ground symbols = one shared GND wire joining all blocks. Sensors take 5 V and GND too.
Boat ESP32Goes toJob
G13Servo signal (orange)Feed flap
G25 / G26 / G27PWMA / AIN1 / AIN2Left motor speed + direction
G32 / G33 / G14PWMB / BIN1 / BIN2Right motor speed + direction
G4STBYDriver enable
G18DS18B20 data + 4.7 kΩ to 3V3Water temperature
G34Turbidity via dividerWater clarity (ADC1 only)
DOCK ESP32 · powered from USB 5 V USB adapter ESP32 VING13G23G2 LED Servo (refill flap) Limit switch → GND G23 uses INPUT_PULLUP: pressed = LOW = boat docked.
04 · Logic

What the two boards say to each other

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

Path array and dose, as the boat sees them

// {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);
05 · Reading list

Things we looked at

These open in a new tab. The image links are only searches, so you can look at real builds before you cut any PVC.