Advertise With Us || Like Us on Facebook || Your feedback matters - please share your thoughts with us

Thursday, September 10, 2015

Arduino Based MPPT Algorithm Charge Controller

What is Mppt( Maximum power point tracking)?


"We use MPPT algorithm to get the maximum available power from the Photovoltaic module under certain conditions"

How MPPT works? Why 150W solar panel does not equal to 150 w?

For example, you bought a new solar panel from the market which can deliver 7 amps current, under charge the setting of a battery is configured to 12 volts: 7 amps times 12 volts = 84w (P=V*I) You lost over 66 watts - but you paid for 150 watts. That 66 watt is not going anywhere, but it,s due to the poor match of the solar output current and battery voltage.


After using MPPT algorithm we can get the Maximum available power 

Battery gets is now 12 amps at 12 volts
Output power is equal to p= V*I p=12*12=144w
Now you still have almost 144 watts, and everyone is happy.




Specification of the project



1.This project is Based on MPPT(Maximum power point tracker) algorithm


2. LED indication to show the low mid and high level of charge stat


3. LCD (20x4 character ) display for displaying power,current,voltages etc


4. Lightning /Overvoltage Protection


5. Protection For Reverse power flow


6. Overload & Short Circuit protection


7. Logging data through WiFi


8.Charge your Cellphone, tablets any gadgets through USB port




Electrical specifications:



1.Rated Voltage= 12V


2.Maximum input current = 5A


3.Load current support up to =10A


4. Input Voltage = Solar panel 12 to 24V


5.power of Solar panel = 50 Watts



PARTS REQUIRED:


Resistors ( 3 x 200R ,3 x330R,1 x 1K, 2 x 10K, 2 x 20K, 2x 100k, 1x 470K )

TVS diode ( 2x P6KE36CA )

Arduino Nano

( ACS712-5A ) Current Sensor

Buck Converter ( LM2596 )

Wifi Module ( ESP8266 )

LCD display ( 20x4 I2C )

MOSFETs ( 4x IRFZ44N )

MOSFET driver ( IR2104 )

3.3V Linear regulator ( AMS 1117 )

Transistor ( 2N2222 )

Diodes ( 2x IN4148 , 1 x UF4007 )

Capacitors ( 4 x 0.1 uF, 3 x 10uF ,1 x100 uF ,1x 220uF)

Inductor ( 1x 33uH -5A )

LEDs ( Red , Yellow , Green )

Fuses ( 5A)

ARDUINO BASED MPPT SOLAR CHARGE CONTROLLER

captured some photos during project 

ARDUINO BASED MPPT SOLAR CHARGE CONTROLLER

ARDUINO BASED MPPT SOLAR CHARGE CONTROLLER
ARDUINO BASED MPPT SOLAR CHARGE CONTROLLER

ARDUINO BASED MPPT SOLAR CHARGE CONTROLLER

ARDUINO BASED MPPT SOLAR CHARGE CONTROLLER
 ARDUINO BASED MPPT SOLAR CHARGE CONTROLLERARDUINO BASED MPPT SOLAR CHARGE CONTROLLER




ARDUINO BASED MPPT SOLAR CHARGE CONTROLLERARDUINO BASED MPPT SOLAR CHARGE CONTROLLER

Download The Source Code:
                                                               
"Dont forget to install the libraries before upload the code to arduino Nano "
If you found any difficulty while making this project so dont hesitate to ask first we are here to help you 24 hours a day and 7 days a week 24/7 thanks 

Acknowledgement:

Power Electronics News : Power Electronics News offers electrical engineering news focused on Power and Power solutions. Up to date solutions and products featuring the latest innovations in power solutions.

  52 comments:

  1. Hi, nice project. There are some solar converters that are buck boost . The boost will increase PV low voltage under low luminosity condition. For example if the solar panel is generating 5V, it could be boosted and deliver some battery charging current

    Regards

    ReplyDelete
  2. Problem with boosting voltage because of low light is that there is little to NO power when that happens

    ReplyDelete
  3. Problem with boosting voltage because of low light is that there is little to NO power when that happens

    ReplyDelete
    Replies
    1. then difinitley it,s efficiency will be degrade

      Delete
  4. What would be the pitfalls of trying to run multiples of these in parallel. I'm thinking a system with multiple panels/controllers charging a single battery bank. Much like a system with multiple panels and multiple inverters (like the enphase micro-inverter) running in parallel.

    Thoughts?

    ReplyDelete
    Replies
    1. Visit this link here is the clean explanation
      http://www.mpptsolar.com/en/solar-panels-in-parallel.html

      Delete
  5. Nice project! I can't find IR2104 on my market, It can replace with IR2184 or IR2110 (need to modify schematic??)

    ReplyDelete
    Replies
    1. check out this one in market IRF3205

      Delete
  6. It mean driver mosfet IR2104, on your project

    ReplyDelete
  7. Nice project!
    Can I use another arduino controller like arduino mega2560 instead of arduino Nano?

    ReplyDelete
  8. Nice project!
    Can I use another arduino controller like arduino mega2560 inesNice project!
    Can I use another arduino controller like arduino mega2560 instead of arfuino Nanoted to arduino Nano?

    ReplyDelete
    Replies
    1. yes you can use but would need some modification in source code

      Delete
  9. MY solar pannel is 100Watt rated vtg:-17.5V & rated current :-5.75amp

    ReplyDelete
    Replies
    1. plz reply if we use this pannel

      Delete
    2. Maximum is 50 to 60 watt for higher watts you need to modify the circuitry by just placing more transistor in parallel ...dont forget the heat sink,...enjoy

      Delete
  10. Hi,
    Is it possible to incorporate an external AC charger in case of insufficient sunlight for several days?

    ReplyDelete
    Replies
    1. Nice Idea but you need a Relay to cut off Ac charge when it,s sufficient sunlight and vice versa

      Delete
    2. Yes indeed..When the panel is producing enough current, AC charger will be disconnect and the solar panel will charge a battery.

      Delete
  11. just transister place in parrallel no other circutiry changes ?

    ReplyDelete
  12. hi.hope you are well.will you please tell me that is it works with boost convertor?will it be efficient system as in low insolation conditions the voltage may be very low.please guide me about this.

    ReplyDelete
  13. hi. i have project i am working on it. it is only about to get the power from solar and then apply MPPT algorithm using Buck. i just want output source with MPPT without battery charging . Is your code helpful for me or i have to apply new code or my case .
    regard

    ReplyDelete
    Replies
    1. no need a change you can use this code

      Delete
  14. Hello wanted to ask what they have for a firmare the ESP8266

    ReplyDelete
  15. LCM1602 is not avalible in market so what we use replace of this one

    ReplyDelete
    Replies
    1. waqas bhai please app apna question sahi bata dae app ka matlab hai k Market main LCD nai mil rahi am i right ???

      Delete
  16. IR2104 mosfet driver is not available please suggest another device

    ReplyDelete
  17. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. Try to fing out 20X4 LCD with module attached you can get this LCD from college road rawalpindi

      Delete
    2. LCD with module is available at "IC MASTER" shop located at college road go there and buy for your self .........other wise you can change the program and connect lcd without module but i would be a little bit difficult.

      Delete
    3. 16x2 lcd is avilible on ic master shop not 20x4

      Delete
  18. Hi
    can I use a fixed inductor that is like resistor in shape instead of the toroid? and what is the effect of doing that?, please

    ReplyDelete
  19. salam.sir we are doing it on atemage8 but we are facing difficulty regarding coding.can u provide it.and secondly we need buck boost or only buck converter.plz explain

    ReplyDelete
  20. NO reply on my comment plz reply.salam.sir we are doing it on atemage8 by using perturb and observe method but we are facing difficulty regarding coding.can u provide it.and secondly we need buck boost or only buck converter.plz explain

    ReplyDelete
  21. i have never used atemage8 if you are using so you must need to update each and every Out/in pins declaration in code .... buck boost is best option otherwise you can use Boost also ..

    ReplyDelete
  22. hi, nice project..
    from the schematic the buck converter connector output pin is connected at 5V arduino pin. is suppose to be connected there or Vin arduino pin?

    ReplyDelete
    Replies
    1. Connect to Vin arduino pin ....You need to do a calibration turn on arduino uno properly using this buck converter ....for this read my article How to Turn on Arduino Using Buck Converter

      Delete
    2. thanks for the clarification. i notice from picture you posted that there is two(2) extra mosfet is being used..can you show the exact circuit.

      Delete
  23. hi I have flashed to esp8266 aswell as included the relevant libraries in ardduino IDE but getting this message espcom_open failed

    ReplyDelete
  24. Good day I connected the circuit as on the schematic, but when I add the battery to the project, it keep on burning the 3rd MOSFET the one connected to pin 5 of the mosfet driver. any idea on what might be the cause please.
    Thank you.

    ReplyDelete
    Replies
    1. Powering the MOSFET driver IR2104 from battery terminal ( 12V ) instead of solar panel ( earlier ).

      If anyone making this controller, make this changes and test it. If you have any test results / suggestions, comments it below.

      Delete
    2. Hello,
      tried that solution, pin 5 MOSFET is getting rly hot over here too.
      But only on low PWM-states like 40% and less.
      The ir2104 timing diagramm shows that on lower pwm-states its mostly on (IN=0).
      When IN = 0, LO = VS => Q3-Gate-Source = 12V.
      That means it shorts Bat + to - via the inductor.
      Am I right with that?

      Delete
  25. Salam, please can you give us your email ?

    ReplyDelete
  26. I want build solar inverter mppt charge controller without battery to run load of 200w please give suggestions and circuit

    ReplyDelete
  27. How can we convert this 12v MPPT charge controller to 24v,36v and 48v?
    I have a local made MPPT solar charge controller attach with 24v solar panels its working very good since 2 years.
    Now i want switch on to 36v / 48v.
    waiting for your reply

    Regards

    ReplyDelete
  28. how much is the total cost of this project?

    ReplyDelete
  29. how much is the total cost of this project

    ReplyDelete
  30. hi!! nice project... this line be red at mine...: LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); and i take an error Positive was not declared in this scope

    ReplyDelete


Popular Posts

ElectronicsLovers. Powered by Blogger.

Contact Form

Name

Email *

Message *