Smart solar charge controller using microcontroller is designed to charge batteries in a effect way so that it life time can be increased. Pulse width modulation technique is used to charge battery in effect way.PIC microcontroller is used to generate PWM. Liquid crystal digital display is used to show valued of charging current of battery, solar panel voltage, battery voltage and load current. PIC microcontroller is used to display to read all these analog values of voltage and current. Protection is also introduced through programming technique so that in case of excess in current, solar charge controller will stop working. It can handle up to 10 ampere i.e. it is 10 Ampere solar charge controller.
What is solar charge controller :
A solar charge controller as it name suggests is used to control flow of charge from solar panels towards batteries. It basically used to determine the rate of flow of charge into battery. It is a kind of regulator which avoid battery from over voltage or overcharging.
Why we need of solar charge controller :
Use of batteries with solar panels is usually not good. So to avoid failure of batteries before time solar charge controller is used. For example you have a 12 volt battery and you want to charge it with 12 volt solar panel. 12 volt solar panel outputs 17-20 volt. So these 17-20 volt may damage battery due to over charging, because batteries maximum charging voltage is usually between 13.5-14 volt. To avoid this issue we need to develop a regulator which can control flow of charge from solar panel towards battery. Solar charge controller is used for this purpose. In this project, I have used PWM control to avoid overcharging.
PWM charge controller :
There are many techniques used to make solar charge controller. But In this project I have used PWM (pule width modulation control technique. In coming articles, I will also write article on latest technique use in solar charge controllers” Maximum power point tracking”. To get into about this MPPT article subscribe to my blog my your email to get info about MPPT charge controller in your inbox. Coming back to PWM charge controller, PWM Â charge controller used a semiconductor device like MOSFET, IGBT as a switch to control the flow of charge into battery by changing the duty cycle. Duty cycle ratio changes from maximum value to minimum value as battery charging reaches minimum to maximum value.
If you don’t know about what is duty cycle and what is varying duty cycle.I suggest you to go through following article before reading this article further.
What Pulse width modulation and duty cycle ?
Circuit Description :
Solar panel and battery voltage measurement :
Difference amplifier is used to measure solar panel voltage and voltage divider is used to measure battery voltage with the help of analog to digital converter of pic microcontroller. But now the question come into mind, why voltage divider is not used to measure voltage of solar panel. There are two reasons :
1) Because solar panel voltage keep fluctuating according to intensity of light
2) Because we are charging battery with respect to negative terminal of solar panel.
To know more about how measure voltage using pic microcontroller go through following article :
Voltage measurement using pic microcontrollerÂ
MOSFET as a switch and MOSFET driver :
IRF3205 is used as a switch to vary duty cycle according to amount of change in battery.Totem pole is used a MOSFET driver to drive mosfet irf3205.
To know more about working and circuit diagram of this project watch following video.
Smart solar charge controller tutorial by bilalmalikuet
Complete PCB of project :
Complete PCB layout of smart solar charger controller using pic microcontroller is shown below :

Complete PCB design of of smart solar charger controller using pic microcontroller :
Top view :

Front view :

[button-brown url=”http://store.microcontrollerslab.com/product/smart-solar-charge-controller-using-pic-microcontroller/” target=”_self” position=”center”]Click here to buy code, circuit diagram and PCB design[/button-brown]
If you like this article, kindly Don’t forget to share it with your friends on social media. Good luck for your project. Â I recommend you to write your own code for this project. But if you want to purcahse code smart solar charge controller contact me at [email protected]
hello , can you send me the code ?
salam nice to meet u,if u have something new about mppt please be free to share with me
Assalam Alaykom
It’s the same of my project but I’m MPPT not PWM solar charge.
Can you help me about get more information and the code of mircrocontroller
Can I get the coding and the hex file please?
I hope are well< do you still have your project, do you mind to share, i will make share i mentioned you in my research
can you send the hex file and full diagram and pcb to me
Assalm-o-Alaikum
Can you send me full project.
Please reply as soon as possible.
i want to do the same with MPPT technique not PWM. Plz suggest me few microcontrolers for the charge controller as well as the coding for it with circuit diagram.
ASAP
hey bilal
i want to do same with mppt
please help me by send circuit and code
your brother of palestine
Salam Bilal.
would you mind letting me to have PCB and HEX file?
Thanks a lot.
hi..
please help me by send circuit and code….
[email protected]
Bilal malik
Please send me smart solar charger schematic. Thanks.
Bilal Malik
Please send me smart solar charge circuit schematic.
Thanks
salamo alaykom I appreciate your effort please help me by send circuit and code
[email protected]
As i have mentioned in article you have to write code yourself by using resources available on my blog or you can purchase code.
i want to buy this circuit data. but how ???? reply me and price
contact me at [email protected]
Please send me all the information you have in regard to this project as soon as possible i will pay you in usd.
Hi..
please help me by send circuit and code….
[email protected]
code is not for free. you can purchase it from me
how much it’s code price ? i want to purchase for learn.
contact me at [email protected]
I am using easyeda software.I am making 1kw solar charge controller using microcontroller.when run the ckt,it show error.
Hi Bilal,
i want to buy this project.
is this Project Open source ? i want to check the code and if i need modify the code.
Thanks.
plz help me with the code …
essalamun aleykum hove much code
[email protected]
Ass.wr.wb. Senang sekali membaca tulisan anda menyangkut controller pwm. Namun akan lebih senang jika ditambahkan uraian mengenai maximum power point yracking (MPPT).
Saya mau belajar merakit dan membuat MPPT. Bagaimana cara beli layout dan PCB nya
hi my name sameera i want to know 5w panel 4ah solar latern design
Hi how does it recharge the battery, from full discharge state ?