MPPT solar charge controller

Cheap PWM solar chargers waste a third of a panel's power when the panel and battery voltages differ. An MPPT controller tracks the panel's maximum power point and is a core power electronics project.

Arduino NanoMajor projectEEE, ECE
NANOPANELBATTERGATE1.12 AFeatured
Parts
₹4,320
Build
14 weeks
Board
Arduino Nano
Objectives
4
Li-ion packs can catch fire: always use the BMS, a fuse on each side, and charge on a non-flammable surface while someone watches.

Block diagram

Inputs
  • PANEL
    Panel voltage and currentMeasure input power
  • BATTER
    Battery voltage and currentMeasure output power
Controller
  • NANO
    Arduino NanoRuns perturb and observe
Power
  • +
    3S Li-ion pack with BMSStores the energy
Outputs
  • GATE
    Gate driver and MOSFETSwitch the buck stage
  • Inductor, diode, capacitorsFilter the buck output

Objectives

  1. To design and build a 31 kHz buck converter for 20 W.
  2. To track the maximum power point with perturb and observe.
  3. To charge a 3S Li-ion pack with constant current then constant voltage to 12.6 V.
  4. To compare harvested energy with a PWM charger on the same panel over a day.

Parts and specifications

Total about ₹4,320 at typical online prices. Tap a part for its pinout and datasheet notes.

Design calculations

Duty cycle

Ideal buck: D = Vout / Vin. Battery at 11.5 V from a panel at its 35 V maximum power point (two panels in series): D = 11.5 / 35 ≈ 0.33.

Inductor ripple

ΔI = (Vin − Vout) × D / (L × f) = (35 − 11.5) × 0.33 / (100 µH × 31.25 kHz) ≈ 2.5 A. That is too high for 1.7 A average: use 220 µH or 62.5 kHz to bring it near 1 A.

Output capacitor

ΔV ≈ ΔI / (8 × f × C) = 1 / (8 × 31.25k × 1410 µF) ≈ 3 mV with three 470 µF in parallel.

MPPT gain

PWM charging pulls the panel to battery voltage: at 11.5 V on the I-V curve of two panels in series the panel gives almost nothing, while MPPT harvests about 20 W. With one panel the PWM loss is about 25 to 35%.

Pin map

SignalPin or connection
High-side PWM (Timer1, 31.25 kHz)D9 → IR2110 HIN
IR2110 SDD8 (shutdown)
INA219 panel / batteryI²C 0x40 / 0x41 on A4 / A5
OLEDSame I²C bus
IR2110 VCC / VB12 V from an MT3608 boost fed by the battery (panel Voc of about 42 V is too high for an LM2596); bootstrap diode UF4007 and 1 µF capacitor

Firmware outline

  1. Set Timer1 to fast PWM 31.25 kHz on D9, start at a small duty.
  2. Every 100 ms read panel and battery V and I, compute P.
  3. Perturb and observe: change duty by ±1 step; if power rose keep the direction, else reverse.
  4. Limit charge current to 2 A (CC); when the pack reaches 12.6 V hold voltage (CV) and end when current < 100 mA.
  5. Shut down at night or on over-voltage, over-current or reverse current.

Test plan

TestExpected result
Fixed load resistor, sweep duty by handConverter efficiency at 5, 10, 15 W
Sunny day, MPPT onPanel voltage settles near Vmp
Same day vs PWM chargerEnergy harvested compared
Pack reaches 12.6 VSwitches to CV and stops cleanly

These rows start your results table when you plan the project.

Viva practice

Say your answer out loud first, then check. The first 2 answers are free; Maker opens all 5.

1. What is the maximum power point?
2. How does perturb and observe work?
3. Why a gate driver?
4. Why a Schottky freewheel diode?
5. What is CC/CV charging?

Make it yours

One or two upgrades for a mini project, two to four for a major one.

Build these first

Datasheets and sources to cite

  • Esram and Chapman, Comparison of PV array MPPT techniques (IEEE, 2007)
  • Infineon IR2110 datasheet
  • TI application note SLVA477: buck converter power stage

About this project

How much does the mppt solar charge controller project cost?

About ₹4,320 for the parts in the base list: Arduino Nano (CH340, Type-C), Solar panel 12 V 10 W (two in series) × 2, IR2110 gate driver, IRFZ44N MOSFET, Toroid inductor 100 µH 3 A, 1N5822 Schottky diode, 470 µF 35 V electrolytic × 3, INA219 current and power sensor × 2, Li-ion 18650 pack 3S2P (11.1 V), 3S BMS 20 A, 5 A glass fuse with holder × 2, MT3608 boost (battery to 12 V gate supply), 0.96 inch OLED (SSD1306, I²C), Zero PCB 10 × 15 cm.

How long does it take?

About 14 weeks for the base project, built on an Arduino Nano. Each upgrade adds time.

Which branches is it suitable for?

Electrical and Electronics, Electronics and Communication, as a major project.

Which pins and design calculations does it use?

High-side PWM (Timer1, 31.25 kHz) on D9 → IR2110 HIN; IR2110 SD on D8 (shutdown); INA219 panel / battery on I²C 0x40 / 0x41 on A4 / A5. Worked calculations on this page: duty cycle, inductor ripple, output capacitor, mppt gain.

How do I test it?

Fixed load resistor, sweep duty by hand: Converter efficiency at 5, 10, 15 W. Sunny day, MPPT on: Panel voltage settles near Vmp. Same day vs PWM charger: Energy harvested compared. Pack reaches 12.6 V: Switches to CV and stops cleanly.

What are the objectives?

To design and build a 31 kHz buck converter for 20 W. To track the maximum power point with perturb and observe. To charge a 3S Li-ion pack with constant current then constant voltage to 12.6 V. To compare harvested energy with a PWM charger on the same panel over a day.