Solar Panel Parameters Measurement System using Pic Microcontroller

Solar panels are becoming increasingly popular as a renewable energy source, and accurately measuring their parameters is crucial for monitoring and optimizing their performance. In this article, we will delve into the world of solar panel parameter measurement systems. We will explore the different components and sensors used to measure voltage, current, power, temperature, and light intensity. Additionally, we will discuss the role of a PIC microcontroller and its built-in analog-to-digital converter in obtaining these measurements. Whether you are a solar panel enthusiast or simply curious about the technology behind it, this article will provide you with valuable insights into the measurement process. So, let’s dive in and explore the fascinating world of solar panel parameter measurement systems!

Block Diagram

The block diagram above displays a solar panel measurement system. The system utilizes a voltage divider to measure voltage, incorporating a polar and non-polar capacitor to mitigate rapid voltage fluctuations during measurement. It employs a difference amplifier to measure current, utilizing a shunt resistor for signal conditioning and conversion of current into voltage. To measure the voltage of the solar panel, an LM35 temperature sensor is utilized. The system also employs a light-dependent resistor to measure light intensity. Power can be calculated by multiplying the measured current and voltage.

block diagram of solar panel measurement system
block diagram of solar panel measurement system

The PIC microcontroller connects sensors to four ADC channels, as illustrated in the block diagram above. The following section will explain how these sensors work, and the circuit diagrams for all of these sensors are depicted below.

Voltage Sensor Circuit Diagram

There are many ways to sense voltage. But in this project, we can easily measure the voltage of a solar panel using a voltage divider. Two capacitors are connected in parallel to the voltage measurement resistor to avoid voltage fluctuations and prevent harmonics from entering the ADC of the PIC microcontroller. I have already posted an article on how to measure AC voltage using a PIC microcontroller. You can also check out this article by clicking on the link below:

Circuit diagram of a voltage sensor is shown below:

Voltage sensor
Voltage sensor

According to the voltage sensor formula, for a solar panel of 24 volts, the values of the voltage divider resistors are R2 = 10K and R4 = 2K. The reason I have used a voltage divider is because the maximum input voltage to the Analog to Digital Converter can never be greater than 5 volts. However, I calculated these resistor values according to 4 volts to increase the accuracy of the measurement and to ensure the protection of the ADC in case of greater voltage fluctuation.

Note: DC voltage source is used instead of solar panel in Proteus just for simulation purpose. Because solar panel simulation is not available in Proteus.

Current Sensor Circuit Diagram

Below is a circuit diagram of a current measurement circuit. I have used a differential amplifier to amplify the voltage appearing across the shunt resistor. Since the current value may vary at different times, generating different voltages across the shunt resistor, it is not possible to use a voltage divider as we do not know the current values.

Current sensor
Current sensor

I have already posted an article on how to measure AC current using a differential amplifier. You can check the following article to understand how the above circuit is working.

Temperature Sensor Circuit Diagram

The Circuit Diagram of a temperature sensor is shown below. To learn more about the temperature sensor and its details, please read the following articles:

Temperature sensor
Temperature sensor

Light Sensor Circuit Diagram

Light dependent resistor is used to measure the intensity of light. LDR is a light-controlled variable resistor. The resistance of LDR changes with the change in the intensity of light. The greater the intensity of light, the lower the resistance will be, and the lower the intensity of light, the greater the resistance will be. The change in resistance can be easily measured by converting it into voltage form as shown in the circuit diagram below.

Light sesnsor
Light sensor

In the above circuit, a non-polar 100nF capacitor is used to prevent voltage fluctuations.

Power Measurement

You can easily calculate the output power of a solar panel by multiplying the voltage and current outputs of the solar panel. This calculation is possible because a solar panel functions as a DC voltage source, where the voltage and current remain in phase. This simplifies the power relationship to a straightforward multiplication of the voltage and current. You can perform these calculations with the assistance of an algorithm or program.

Solar Panel Parameters Measurement Circuit Diagram

A complete circuit diagram of solar panel voltage measurement is shown below. You can easily write code for this circuit using the ADC of a PIC microcontroller and an LCD display for digital display of these values.

The circuit diagram consists of several components and sensors connected to a PIC microcontroller, which is responsible for measuring and processing the analog values obtained from the sensors. Overall, this circuit diagram illustrates the connections and components involved in measuring the parameters of a solar panel using a PIC microcontroller and corresponding sensors. It provides a visual representation of the system for better understanding and implementation.

complete circuit diagram of solar panel measurement system
complete circuit diagram of the solar panel measurement system

If you want to purchase the complete circuit diagram and code for this project, please comment on this post with your email address: microcontrollerslabhub@gmail.com

Conclusion

In conclusion, solar panel parameter measurement systems play a vital role in monitoring and optimizing the performance of solar panels. By accurately measuring parameters such as voltage, current, power, temperature, and light intensity, these systems provide valuable insights into the efficiency and effectiveness of renewable energy generation. The use of a PIC microcontroller and its built-in analog-to-digital converter simplifies the measurement process and ensures precise readings. Whether you are a solar panel enthusiast or simply curious about the technology behind it, understanding the world of solar panel parameter measurement systems opens up a fascinating realm of renewable energy exploration. Take a dive into this captivating field and unlock the full potential of solar power!

You may also like to read:

61 thoughts on “Solar Panel Parameters Measurement System using Pic Microcontroller”

  1. Hi;
    Thank you for all of these subjects, actual they are very useful and give me very clear idea about the topic which I try to design. Would you please send to me the code for the topics which has been mentioned above.

    Best regards;

    Reply
  2. can you send me its simulation,circuit diagram and the most important thing code ,please send me as soon as possible.we are doing solar monitoring project for that we want simulation,code and circuit.
    email id:anuragmodi12@gmail.com

    Reply
    • To download circuit diagram of solar panel parameters measurement system click on link below :
      http://www.4shared.com/rar/-PValhUNce/ciruit.html?
      I have posted articles on temperature , light , current and voltage measurement separately. you can go through them to write code for this project. Or just combine code of all these sensors to make solar panel parameters measurement system.

      Reply
  3. can you send me its simulation,circuit diagram and the most important thing code ,please send me as soon as possible.we are doing solar monitoring project for that we want simulation,code and circuit.
    email id:intizarqasar@yahoo.com

    Reply
  4. Bilal malik want showing solar panel parameters measurement system, but he don’t want to share code. If he not want to share code. Why share circuit diagram download link, I don’t understand. he he he ha ha ha

    Reply
  5. I like this project. I am working on solar energy system. Every time I need to use voltmeters and current meters for measurement. This project is very good because this gives additional parameters like temperature and light intensity along with this voltage and current. I will implement this hardware, so please send me circuit diagram and code of this project.
    Thank you
    regards,
    Abhijit V. Padgavhankar

    Reply
    • Yes you can use any microcontroller or arduino you just have to change microcontroller and write code using respective compiler

      Reply
  6. Hi Bilal,

    Thanks for sharing this knowledge with us. I just have a question and I am confused about it. As you said, the 24V from a solar panel (dc power in this case) goes through a voltage divider circuit which will reduce to 4V since the microcontroller cannot take voltages greater than 5V. Does this mean that the output from the solar panel reduces to 4V in total and the remaining 20V is lost?

    Reply
  7. Sir please send me the full code for this project sir. code is not available for dc measurement of current so please send me as soon as possible

    Reply
  8. Hi sir!
    Can you guide me to make this project.
    I need your help in coding section( how to wright code to microcontroller and can you plz send me the code also

    Reply
  9. Hi Bilal,
    Thank you for your helpful information. I have one questions, How is it possible to remove the possible noise from the environmen which has effect on the measurement system. For example, we implement one measurement system to measure the paramteres fo the solar panels. However, we see some noise around 0.7V during night and date on the output of out measurement system.

    Thanks,
    RZ

    Reply
  10. I am working on a similar project….. Would you kindly send me the circuit diagams, simulations and codes on my email please.. I would really appreciate it…… Mainly on solar tracking and monitoring.

    Reply
  11. Hi
    I would like to say thank you for your initiatives and your work, it is such an magnificant project.
    I would be grateful if you sent me the code to my e-mail: m.alkour@yahoo.com, and
    I just wanted to know if I used UNO Arduino mircrocontroller, would this be useful for me ?
    thank you

    Reply
  12. Hi! Great project! May I ask how do you determine the best value for the parallel capacitors attached to the solar panel’s voltage divider? Thank you 🙂

    Reply

Leave a Comment