How-to · Beginner · 3 min read
Mini Water Pumps for Arduino Projects
Wiring, Power and Plant Watering
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
A mini submersible pump is a small DC motor that pushes water when it sits underwater. It draws 100 to 300 mA, too much for a microcontroller pin, so switch it with a logic-level MOSFET or a relay module, add a flyback diode, and power it from its own 5 V supply. For precise dosing of small volumes, use a peristaltic pump, which squeezes a tube and never touches the liquid.
Key specs at a glance
- Submersible pump
- 3 to 6 V, about 100 to 300 mA, around 80 to 120 L/h, 40 to 110 cm lift
- Peristaltic pump
- 6 to 24 V, millilitres per minute, self-priming, food-safe tubing options
- Tubing
- Usually 5 mm inner diameter for mini pumps
- Switching
- Logic-level MOSFET or relay + flyback diode
- Run dry?
- Submersible: no; peristaltic: yes
- Pair with
- Capacitive soil moisture sensor or float switch
This part can carry many amps. Use wire thick enough for the current, put a fuse close to the battery, check that connectors are rated for the load and give drivers and motors room to cool. A short at these currents melts wires in seconds.
Which pump?
| Pump | How it works | Good for | Watch out |
|---|---|---|---|
| Mini submersible (3 to 6 V) | Impeller motor sealed underwater | Plant watering, fountains, small tanks | Must stay submerged; not for drinking water |
| Peristaltic | Rollers squeeze a tube | Dosing nutrients, chemicals, drinks machines | Slow; tube wears over time |
| Diaphragm (12 V) | Diaphragm moves water in and out | Higher pressure, sprayers, self-priming | Louder, more current |
| Solenoid valve | Opens a pressurised supply | Mains water or overhead tanks | Needs pressure; 12 V coil current |
- Mini submersible (3 to 6 V)
- How it works:
- Impeller motor sealed underwater
- Good for:
- Plant watering, fountains, small tanks
- Watch out:
- Must stay submerged; not for drinking water
- Peristaltic
- How it works:
- Rollers squeeze a tube
- Good for:
- Dosing nutrients, chemicals, drinks machines
- Watch out:
- Slow; tube wears over time
- Diaphragm (12 V)
- How it works:
- Diaphragm moves water in and out
- Good for:
- Higher pressure, sprayers, self-priming
- Watch out:
- Louder, more current
- Solenoid valve
- How it works:
- Opens a pressurised supply
- Good for:
- Mains water or overhead tanks
- Watch out:
- Needs pressure; 12 V coil current
Wiring with a MOSFET
Connect the pump's red wire to +5 V of a separate supply and its black wire to the MOSFET drain. MOSFET source goes to ground, shared with the Arduino. Drive the gate from a pin through a 220 Ω resistor and add a 10 kΩ pull-down from gate to ground so the pump stays off at boot. Put a 1N4007 or 1N5819 flyback diode across the pump, stripe to +5 V. A relay module works too, but a MOSFET is silent and allows PWM speed control. See transistors and MOSFETs.
Automatic plant watering
This waters for three seconds when the soil reads dry, then waits so the water can soak in. Calibrate the dry value for your soil sensor.
const int SOIL = A0; // capacitive soil sensor
const int PUMP = 7; // MOSFET gate
const int DRY = 520; // raw reading in dry soil: calibrate yours
void setup() {
pinMode(PUMP, OUTPUT);
digitalWrite(PUMP, LOW);
Serial.begin(115200);
}
void loop() {
int raw = analogRead(SOIL);
Serial.println(raw);
if (raw > DRY) { // capacitive sensors read higher when dry
digitalWrite(PUMP, HIGH);
delay(3000);
digitalWrite(PUMP, LOW);
delay(60000UL); // let water soak in before checking again
}
delay(5000);
}Practical tips
- Add a float switch or water level sensor so the pump never runs dry.
- Put a timeout in code so a failed sensor cannot flood the room.
- Keep electronics above the water line and away from splashes.
- Use a check valve or keep the outlet above the tank's water level to stop siphoning.
- For outdoor or mains-powered systems, use an enclosed supply and an RCD-protected socket.
Try it: PWM duty cycle calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Powering the pump from the Arduino 5V pin.
- Running a submersible pump dry.
- No flyback diode across the motor.
- No timeout, so a sensor fault floods the plants.
- Using a resistive soil probe that corrodes within weeks.
Frequently asked questions
Can I connect a water pump directly to Arduino?
No. A pump draws 100 mA or more and creates voltage spikes. Use a MOSFET or relay with a separate supply and a flyback diode.
How far can a mini submersible pump lift water?
Typically 40 cm to just over 1 m vertically. Check the pump's maximum head and allow for tubing losses.
What is a peristaltic pump used for?
Dosing small, accurate volumes, such as nutrients, chemicals or drinks, because the liquid only touches the tube.
Can I control pump speed?
Yes, with PWM through a MOSFET. Low duty cycles may not start the pump, so start at full power briefly, then reduce.
Is a 5 V submersible pump safe for drinking water?
Cheap mini pumps are not rated food-safe. Use a pump and tubing certified for potable water if needed.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 161 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
- Pump manufacturer specifications
- Kamoer peristaltic pump datasheet
- Application notes on inductive load switching
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.



