# Solar energy measurement using pic microcontroller

Solar energy measurement:This project is designed to measure an energy of solar panels. In this solar panel energy measurement project, you will get an idea how to measure solar energy using different sensors and pic microcontroller. Followings are the main parts used in this project :

### Block diagram of solar energy measurement system:

Block diagram of solar energy meter is shown below.

At the right side of the diagram is a solar panel which energy you want to measure. Voltage sensor is used to measure a voltage of solar panel. Current sensor is used to measure current flowing to load from solar panel. As we know, solar panels are dc power sources. So output voltage and current solar panel is DC. So we can easily measure solar power by using dc power formula. I will discuss it later. Liquid crystal display  is used to display the value of current, voltage and power of solar panel. 5 volt dc power is used to provide operating voltages to microcontroller and liquid crystal display. You can either design dc power supply from AC power source or you can use a battery to provide constant 5 volt to microcontroller and LCD.

### Circuit diagram of solar energy measurement system:

Circuit diagram of solar energy meter is given below. I will explain each and every step of this article in the video in last part of this article.

In above-given circuit diagram, the voltage divider is used to divide voltage to lower than 5 volt. Because microcontroller can not read voltage more than 5 volt. Therefor voltage divider is used to lower voltage less than 5 volt. Polar and nonpolar capacitors are used to remove harmonics and to provide constant voltage to adc pin of microcontroller. I will explain about analog to digital converter later or either i will post a separate article on it. Polar capacitor is used to avoid voltage fluctuation and non polar capacitor is used remove harmonics and it will stop harmonics to read to microcontroller which may damage microcontroller. If you don’t know how to measure voltage using pic microcontroller and how to use ADC check following articles:

A shunt resistor of .05 ohm is used in series to load. Voltage drop across shunt resistor used to measure current. In other words, shunt resistor used as a transducers which is used to convert current into voltage form because microcontroller can not read current directly. Output of  shunt resistor is  fed to difference amplifier. Difference amplifier is also step up voltage. Because in case of very low current, small voltage will appear across shunt resistor and microcontroller can not read voltage less than its resolution. I have a posted a separate article on how to measure current using pic microcontroller. check following article:

How to measure current using pic microcontroller

liquid crystal display is used to display values of current, voltage and power on lcd.  It is very easy to interface LCD with pic16f877a microcontroller. If you don’t know about how to interface lcd with pic microcontroller and its programming, check following article:

How to interface LCD with PIC microcontroller

### Video demonstration of solar energy measurement system using pic microcontroller

So I have explained all the points you need to design solar energy measurement system using pic microcontroller. I have also written separate articles on voltage measurement, current measurement and LCD interfacing with pic microcontroller. If reading all these articles, you can easily design your own solar energy measurement system. because you just have to combine code of voltage measurement, current measurement and lcd interfacing. You should also know about c language. So with a little bit knowledge of c programming you can write your own code.  If you don’t want to write code yourself and want to purchase code for this project, email me at microcontrollerslabhub@gmail.com.

### 36 thoughts on “Solar energy measurement using pic microcontroller”

1. Hi hare solar measurement why need to load.

• load can be a battery. Because you can’t measure current without current flow to any load

2. I made this already . Solar energy measurement….

• PleAse can you send me your code

• Please can you guide me to make this project.

• Hi very interested in this project would like your guidance on how you went through it

3. How much for this sorce code?

4. Would you like to send me the code’s pic of this project? I’m very interesting make it. My email gabocamarti@hotmail.com

5. Would you like to send me this project? I’m very interesting make it

6. would you like to send me a sun light power meter project by using 8051 micro processor ..its my project

7. Sir. Muje. Solar energy measurement using pic microcontroller is project ki puri Softcopy chahiye mai is project ko karna chahta hu but sir ise koi application nahi use kar sakate kya

• code is not free of cost

8. how much does the code cost?

9. Comment Text*programming for pic
microcontroller

10. Is 24v solar panel necessary for this project,or can we use panel with any other voltage?

• you can according to your need

11. You said that you explain in a video….where is it? Do you have a youtube channel….I would be happy to subscribe.

12. Please provide the video

13. plzz send video and component list plzz

14. Hello!you have included the codings for several projects in the description….plz include the coding for this project also..plzzz…

15. call to my no i wanted do this project 9063420133

• do you have video of this project???? and plzz send component list with their ratings

16. I have used 3loads in solar panel… And then If solar energy does not Sufficient the connected load in that condition we have using grid supply.. How to control pic Mc…?? We are using relay trip the load….. How to make control pic mc program

17. CAN I USE THIS CIRCIUT FOR MEAUSRE 150AH 12V BATTERY MEASURMENTSSS…

18. It is most important article of pic student.

19. HI ING i am very happy for all projects .i need a code for my project and shematic for RF directional coupler detector; Forward and revers power ( FWD,REFL)
I NEED TO read this project to digital(LCD Display)i try to write one with flowcode not code
Please send me the info to my email

20. Can I utilize this measured solar power for any purpose like to charge cellphone battery or anything else..?

21. Can you please provide the complete c: code for the voltage and current sensor using PIC.
Much appreciated

22. What are the limitations of this project it means how much solar pannels can coverd by one device