Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Motors & Motion
  4. ›Mini Water Pumps for Arduino Projects

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

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhich pump?Wiring with a MOSFETAutomatic plant wateringPractical tipsTry itCommon mistakesFAQsParts and next steps
Short answer

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
!Safety: High current: wires and parts get hot

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.

01

Which pump?

PumpHow it worksGood forWatch out
Mini submersible (3 to 6 V)Impeller motor sealed underwaterPlant watering, fountains, small tanksMust stay submerged; not for drinking water
PeristalticRollers squeeze a tubeDosing nutrients, chemicals, drinks machinesSlow; tube wears over time
Diaphragm (12 V)Diaphragm moves water in and outHigher pressure, sprayers, self-primingLouder, more current
Solenoid valveOpens a pressurised supplyMains water or overhead tanksNeeds 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
02

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.

03

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.

Water when the soil is dry · Arduino C++Verify & upload in Electrolark
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);
}
04

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.
05

Try it: PWM duty cycle calculator

Change the values and the diagram and results update as you type.

06

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.
07

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

  • Mini Submersible Water Pump 3–6V
    ₹150View
  • 12V Solenoid Water Valve 1/2" (Normally Closed)
    ₹263View
  • 5V Relay Module with Optocoupler
    ₹74View
Shop Pumps & Valves

Calculators

PWM duty cycle calculatorPower supply sizing calculator

Terms in this guide

Flyback diodeA diode placed across a coil (relay, motor, solenoid) to absorb the voltage spike when current is switched off.Logic-level MOSFETA MOSFET that turns fully on with a gate voltage of 4.5 V or less, so a microcontroller can drive it.Low-side switchA switch placed between the load and ground; the easiest way to switch loads with NPN transistors and N-channel MOSFETs.PWMPulse-width modulation: switching a signal on and off quickly so its average sets brightness, speed or position.RelayAn electrically operated switch: a coil moves contacts that switch a separate circuit.

Projects that use it

Put this into practice: 161 step-by-step builds in our project library use parts from this guide.

Beginner · 1–2 hoursAutomatic plant watering systemView projectIntermediate · 2 hoursPlant waterer with moisture displayView projectBeginner · 45 minutesAutomatic dusk-to-dawn lightView project
Browse all 161 projects

Keep learning

ComparisonBeginnerSoil Moisture SensorsResistive (YL-69) vs capacitive v1.2/v2.0 soil moisture sensors: why resistive probes corrode, Arduino and ESP32 wiring, dry and wet calibration, auto watering.3 min read · SensorsHow-toIntermediateTransistors and MOSFETs as SwitchesA transistor lets a small microcontroller signal switch a much larger current.4 min read · Semiconductors & ICsComponent guideBeginnerRelay ModulesA relay module is an electrically controlled switch that lets a microcontroller turn a separate circuit on or off, such as a 12 V pump or a mains lamp.4 min read · Switches, Relays & InputComponent guideBeginnerRain and Water Level Sensor ModulesA rain sensor module is a board of exposed interleaved traces plus a small LM393 comparator board.3 min read · Sensors

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.

On this page
Short answerWhich pump?Wiring with a MOSFETAutomatic plant wateringPractical tipsTry itCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide3 items · ₹487

Mini Submersible Water Pump 3–6V · 12V Solenoid Water Valve 1/2" (Normally Closed) · 5V Relay Module with Optocoupler

Run itChange the inputs and watch the output

Capacitive sensors read higher when dry. Above DRY (520) the pump runs for 3 s. The 60 s soak is cut short here.

Pump OFF
Serial monitor115200 baud
420

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question