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.
- Parts
- ₹4,320
- Build
- 14 weeks
- Board
- Arduino Nano
- Objectives
- 4
Block diagram
- Panel voltage and currentMeasure input power
- Battery voltage and currentMeasure output power
- Arduino NanoRuns perturb and observe
- 3S Li-ion pack with BMSStores the energy
- Gate driver and MOSFETSwitch the buck stage
- Inductor, diode, capacitorsFilter the buck output
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.
Parts and specifications
- Arduino Nano (CH340, Type-C)ATmega328P 16 MHz, 5 V logic, 8 analog inputs, small enough for wearables and helmets₹350Buy
- IR2110 gate driverHigh and low side driver, 500 V bootstrap, 2 A peak, for buck and bridge circuits₹120Buy
- MT3608 boost (battery to 12 V gate supply)2 to 24 V in, up to 28 V out, 2 A switch, for 3.7 V to 5 V₹50Buy
Total about ₹4,320 at typical online prices. Tap a part for its pinout and datasheet notes.
Design calculations
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.
Δ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.
ΔV ≈ ΔI / (8 × f × C) = 1 / (8 × 31.25k × 1410 µF) ≈ 3 mV with three 470 µF in parallel.
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
| Signal | Pin or connection |
|---|---|
| High-side PWM (Timer1, 31.25 kHz) | D9 → IR2110 HIN |
| IR2110 SD | D8 (shutdown) |
| INA219 panel / battery | I²C 0x40 / 0x41 on A4 / A5 |
| OLED | Same I²C bus |
| IR2110 VCC / VB | 12 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
- Set Timer1 to fast PWM 31.25 kHz on D9, start at a small duty.
- Every 100 ms read panel and battery V and I, compute P.
- Perturb and observe: change duty by ±1 step; if power rose keep the direction, else reverse.
- Limit charge current to 2 A (CC); when the pack reaches 12.6 V hold voltage (CV) and end when current < 100 mA.
- Shut down at night or on over-voltage, over-current or reverse current.
Test plan
| Test | Expected result |
|---|---|
| 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 |
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.
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.
