Built to order

Solar Water Pump Controller with MPPT using Arduino

This project builds a solar water pump controller with maximum power point tracking (MPPT) using an Arduino Uno, a buck converter and a 12 V DC submersible pump. The Arduino runs a perturb-and-observe algorithm that continuously trims the buck converter's output voltage so the 20 W solar panel delivers its maximum available power, and switches the pump on only when there is enough sunlight and water in the source tank. A 16x2 LCD shows panel voltage, current and power in real time. Suitable for B.E./B.Tech final-year projects in Electrical, Electronics and E&TC.

Chat on WhatsApp — get a quotation

Electrical 16x2 LCD · I2CArduino Uno · ATmega328PACS712 current sensorArduino IDE · C++20 W solar panelMPPT perturb-and-observe algorithm12 V DC submersible pumpLM2596 buck converter moduleHardware
Solar Water Pump Controller with MPPT using Arduino — project thumbnail preview
More project photos (3)

The problem

Solar water pumps are a practical answer for farms, gardens and remote sites without grid power, but a solar panel connected directly to a pump wastes much of the available energy. A panel's voltage and current change constantly with sunlight, and its maximum power point — the voltage where it delivers the most watts — shifts with every passing cloud. A pump wired straight to the panel runs at whatever voltage the pump happens to pull, rarely that maximum point, so in weak morning or evening sun it may stall even though usable power is available. The Solar Water Pump Controller with MPPT using Arduino solves this by placing an Arduino-controlled buck converter between the panel and the pump. The Arduino continuously measures panel voltage and current, runs a perturb-and-observe algorithm to hold the panel at its maximum power point, and drives the pump only when there is enough power, stopping it when the water source runs low.

SYSTEM FLOW

5 components 4 connections

Live flow
Drag to explore
100%
power20 W solar panel

A 20 W solar panel turns sunlight into DC power whose voltage and current change with the light.

Follow the working sequence

How it works

The system works as a chain from sunlight to water. The 20 W solar panel feeds raw DC power into an LM2596 buck converter, and the Arduino Uno sits between them as the brain: it reads panel voltage through a resistive divider and panel current through an ACS712 sensor, multiplies them to get instantaneous power, and runs the perturb-and-observe algorithm to find the panel's maximum power point. Every 500 ms it nudges the buck converter's output voltage by a small step and watches whether power rose or fell, steering the panel voltage toward the peak. The converter output drives the 12 V DC submersible pump through a logic-level MOSFET, so the pump receives the best voltage the panel can support. In parallel the Arduino watches the float switch and pump current; if the tank is empty or the current drops to the dry-run signature, it switches the pump off and shows a warning on the LCD until water returns.

  1. Sunlight falls on the 20 W solar panel, which produces DC power whose voltage and current vary with light intensity.
  2. The Arduino reads panel voltage through a resistive divider into an analog pin and panel current through the ACS712 current sensor, then multiplies them to get instantaneous power in watts.
  3. The perturb-and-observe algorithm compares the new power reading with the previous one: if power rose, it keeps nudging the converter output in the same direction; if power fell, it reverses direction.
  4. The Arduino's PWM output trims the LM2596 buck converter's output voltage, stepping the panel voltage down toward the pump's 12 V while holding the panel near its maximum power point.
  5. The buck converter output powers the 12 V DC submersible pump through an IRLZ44N MOSFET, with PWM setting the pump speed to match the power available.
  6. The float switch and the pump-current reading are checked continuously; a low tank or a dry-run current signature switches the pump off and raises a warning on the LCD.
  7. The 16x2 LCD updates panel voltage, current, power and pump state, so the MPPT tracking and the pump behaviour are visible in real time.

Tech stack:

  • Arduino Uno (ATmega328P)
  • Perturb-and-observe MPPT algorithm
  • LM2596 buck converter module
  • ACS712 current sensor
  • 16x2 LCD with I2C backpack
  • 20 W solar panel
  • 12 V DC submersible pump
  • Arduino IDE (C++)
Parameter Value
Controller Arduino Uno · ATmega328P · 16 MHz · 10-bit ADC
Solar panel 20 W (design target) · Vmp approximately 17.5 V · Voc approximately 21.6 V (typical 20 W panel datasheet values)
MPPT algorithm Perturb-and-observe · 1% PWM step · 500 ms settle delay (configurable)
Buck converter LM2596 module · input up to 40 V · output adjustable to 12 V · up to 3 A
Pump 12 V DC submersible · design target up to 4 L/min at zero head (from the pump's 240 L/h datasheet rating at 12 V)
Maximum head Approximately 3 m (pump datasheet)
Current sensing ACS712-05B · ±5 A range · 185 mV/A sensitivity (datasheet)
Voltage sensing Resistive divider · panel voltage up to 25 V measurable range
Pump switching IRLZ44N logic-level MOSFET · PWM speed control
Display 16x2 LCD · panel voltage · current · power · pump state
Dry-run protection Float switch + pump-current drop detection
Operating mode Direct solar drive · no battery in the base build
Input capacitor 470 µF electrolytic across the buck converter input (builder note — steadies the panel voltage reading)

Project features

The controller's strongest capabilities are its maximum power point tracking, its pump protection, and its live power display. The perturb-and-observe MPPT loop samples panel voltage and current through the ACS712 sensor, nudges the buck converter's output voltage up or down, and keeps the panel at the voltage where it produces the most watts — so the pump keeps turning in weak morning and evening sun instead of stalling. Dry-run protection watches both a float switch in the source tank and the pump's current draw, and switches the pump off before it can run dry and burn out. A 16x2 LCD shows panel voltage, current, power and pump state at a glance, which makes the system easy to demonstrate and debug during a viva. Around these three, the build adds PWM pump-speed control, adjustable voltage and current thresholds, and a simple manual/auto mode switch, giving the student a complete, demonstrable solar pumping system rather than a bare panel-to-pump connection.

  • [Perturb-and-observe MPPT tracking] The Arduino measures panel voltage and current, computes power, and nudges the buck converter output by a 1% step every 500 ms, reversing direction whenever power falls — holding the panel at its maximum power point through changing sunlight.
  • [Buck-converter power stage] An LM2596 buck module steps the panel voltage down to the 12 V the pump needs, driven by the Arduino's PWM output, so the panel and the pump each operate at their own best voltage.
  • [Dry-run protection] A float switch in the source tank plus a pump-current check stop the pump automatically when water runs low, and the LCD shows a dry-run warning until water returns.
  • [Live LCD power display] A 16x2 LCD shows panel voltage, panel current, instantaneous power in watts and pump state, so the MPPT behaviour is visible during the demonstration.
  • [PWM pump-speed control] The pump is driven through a logic-level MOSFET with PWM, so its speed follows the power available instead of switching hard on and off.
  • [Manual and auto modes] A mode switch lets the user run the pump manually for testing or leave it in auto mode, where the Arduino decides start and stop from sunlight and water level.
  • [Adjustable thresholds] Start voltage, stop voltage and dry-run current limits are constants in the firmware, so they can be tuned to a different panel or pump without rewriting the logic.

What is included

  • Working solar water pump controller prototype (Arduino, buck converter, pump, panel, sensors, LCD)
  • Complete Arduino firmware with commented MPPT algorithm
  • Circuit and wiring diagram with component list
  • Setup and calibration instructions (threshold tuning, MPPT step-size note)
  • Project report PDF (background, MPPT theory, methodology, results, limitations)
  • Project abstract PDF
  • PPT presentation for final review
  • Viva Q&A preparation document (MPPT, buck conversion, dry-run protection, solar basics)
  • Demonstration guidance (sunlight test, dry-run test, LCD reading walkthrough)

Limitations & prerequisites

  • The base build has no battery, so the pump runs only while sunlight is sufficient — it does not pump at night or in heavy cloud.
  • Output depends on sunlight: weak morning or evening sun means slower pumping, and the design-target flow rate is reached only near full sun.
  • The 20 W panel and the 12 V pump are sized for demonstration and small garden or tank use, not for large farm irrigation.
  • The MPPT loop tracks the panel's peak under steady light; fast-moving clouds can briefly push it off the peak until the next perturb step.
  • The prototype is an academic build, not a weatherproofed or certified irrigation product — the electronics must stay dry.
  • Flow rate and head figures are datasheet design targets, not measured values from a field test.

Frequently Asked Questions

Is this project suitable for a final-year project?

Yes — for Electrical, Electronics and E&TC programs. It demonstrates solar power electronics, MPPT control theory, embedded C++ on Arduino, sensor interfacing and pump protection in one working system, with a live LCD display that makes the demonstration and the viva straightforward. The LCD display and the two protection checks give the student clear things to demonstrate and explain.

What is MPPT and why does this project need it?

MPPT (maximum power point tracking) is a control technique that keeps a solar panel operating at the voltage where it delivers the most watts. A panel's peak-power voltage shifts with sunlight, so a pump wired directly to the panel usually runs off-peak and wastes energy; the Arduino's perturb-and-observe loop continuously hunts for that peak and holds the panel there. Without it, the same panel and pump would move noticeably less water on a partly cloudy day.

Which controller and components are used?

An Arduino Uno (ATmega328P) is the controller, with an LM2596 buck converter as the power stage, an ACS712 current sensor and a resistive divider for panel measurements, a 16x2 LCD for display, a 20 W solar panel, a 12 V DC submersible pump and a float switch for dry-run protection. Every part is a standard, easily sourced module, so the prototype can be rebuilt or repaired without custom boards.

Does it need a battery or grid power?

No — the base build runs directly from the solar panel, so it needs neither a battery nor grid power. The pump runs only while sunlight is sufficient, which is the honest trade-off of the direct-drive design; a battery with charge control can be added as a customization for evening use. That keeps the build simple and cheap, and the panel, wiring and pump are all sized for a student demonstration.

What happens if the water source runs dry?

The pump stops automatically. A float switch in the source tank and a drop in pump current both signal a dry run, and the Arduino switches the pump off and shows a dry-run warning on the LCD until water returns, protecting the pump from burnout. The same check also catches a blocked or kinked outlet tube, which shows up as an abnormal current reading.

Can this project be customized?

Yes — realistic options include a larger panel and pump for higher flow, a battery with solar charge control, GSM alerts for dry-run or low-sunlight events, a water-level display for the destination tank, and data logging of daily pumped volume. Any of these can be developed based on project requirements and timeline. Each option is priced separately in the quotation, so the base project stays affordable.

Components & software requirements
  • Arduino Uno (ATmega328P)
  • Perturb-and-observe MPPT algorithm
  • LM2596 buck converter module
  • ACS712 current sensor
  • 16x2 LCD with I2C backpack
  • 20 W solar panel
  • 12 V DC submersible pump
  • Arduino IDE (C++)
Delivery information

Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.

Support terms

Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.

Download free synopsis (PDF)

Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.

Get a quotation