• Nov 27, 2026
  • 3 min read

My First PCB Sent to Manufacture: An ESP32 Pump Power Stage

The IoT dashboard series ended with a water pump that an ESP32 can pulse over MQTT, with safety rules in the firmware and a physical switch underneath. What that series skipped is the part between the ESP32 pin and the pump: the power stage.

For weeks it lived on a breadboard. A MOSFET, two resistors, a diode, a capacitor and a lot of jumper wires, carrying pump current through breadboard rows that were never meant for it. It worked. It also looked like something that would one day stop working at the worst moment.

So it became my first PCB sent to manufacture.

What the board does

It’s deliberately small. Battery power comes in, a manual switch enables the pump’s positive line, and the ESP32 switches the pump’s negative line through a MOSFET:

flowchart LR
    B[3S battery<br/>+ BMS] --> F[external<br/>2 A fuse]
    F --> P[PCB<br/>FUSED+]
    P --> S[manual<br/>switch]
    S --> U[pump]
    U --> Q[MOSFET<br/>on the PCB]
    Q --> G[GND]
    E[ESP32<br/>GPIO23] -->|220 Ω| Q
    P --> K[buck 5 V] --> E

The pump runs only when both the manual switch is closed and the ESP32 drives the gate high. A firmware bug, a reset or a stray MQTT message can’t run it on its own.

Four revisions in three days

RevDateWhat changed
101Sep 13First layout from a written PRD; parts limited to what I already had
102Sep 14Fabrication fixes: missing solder mask, overlapping silkscreen, no ground plane
103Sep 14Redesign: smaller, fuse moved off the board, wire pads instead of screw terminals
104Sep 15Physical-fit fix around the MOSFET; R2 added assembly labels. Ordered.

None of them were electrical redesigns. The circuit barely changed after Rev 101. Almost everything that changed was about turning a correct schematic into a board that can be made and assembled: masks, footprints, part bodies, pad sizes, labels. That’s the main lesson of this series.

What it’s for, and what it isn’t

The board is labelled “3 W ONLY”. It’s sized for the small 12 V, 3 W pump (about 0.25 A) that the dashboard controls. I also have a 20 W pump, and early revisions tried to leave the door open for it. The design review closed that door, for reasons covered in part 2. A 20 W version needs different parts, not a different layout.

It’s also not a product. No enclosure, no certification, no claim it’s safe for unattended pumping. The battery, BMS, buck converter and ESP32 stay off the board as separate modules.

The series

  1. The circuit: a low-side MOSFET, a pulldown and a switch that can’t be bypassed
  2. Design review: what parts you already own can and can’t do
  3. A clean DRC is not a fabrication release
  4. Revisions 103 and 104: smaller, simpler, and parts that actually fit
  5. Ordering three boards, and checking them before solder

Tools: KiCad 10 (and its command-line kicad-cli for ERC, DRC and Gerber export), a multimeter, a current-limited bench supply, and a Polish prototype PCB house.