hevans1944
Hop - AC8NS
I am impressed that you were able to write code that sent data from your RPi to a URL website address and then display that data as a graph for screen capture. Hmm. Does anyone still write native HTML to build web pages anymore? I thought this sort of thing was now down by "script kiddies" using a commercial app that creates web pages, and whose only familiarity with HTML was the four initial letters of Hyper Text Markup Language.I guess I do remember the first time I started building HTML pages and could barely build a UI that I could draw on paper.
You may have a misunderstanding of how to load your solar panel. Think of it as a battery with a positive terminal and a negative terminal. The negative terminal connects to the common (or ground) of the RPi. The load is any resistance, including the input resistance of the ADC, connected between the positive terminal and the negative terminal, otherwise known as common or ground. If you connect a resistor to the positive terminal, and in series with the anode of an LED, and then connect the cathode of the LED to the input of the ADC the relatively high input resistance of the ADC will dominate this circuit, providing almost no load on the photovoltaic panel. You need to connect the LED cathode to the negative terminal, thus providing a load on the solar panel. Then measure the solar panel terminal voltage between the positive terminal and the negative (common or ground) terminal.
You don't actually NEED an LED to load the solar panel. Resistors will work just fine. If you use a 50Ω resistor and the panel produces 5V on a bright, sun-shiny, day then a current of 5/50 = 0.1 A will be drawn from the panel and dissipated as 0.5 watts of heat in the resistor. The ADC will draw a comparatively insignificant amount of current from the panel to measure the 5V output.
Power dissipated in resistors is additive, whether resistors are connected in series, in parallel, or a combination of series and parallel. You do need to calculate the power in each resistor, which will depend on their values and how they are connected to the source of power, but the sum of the power in each resistor all add up to the total power dissipated. If all the resistors are the same value, the calculations are somewhat simplified. For example, ten quarter-watt resistors, all of the same value, will dissipate 2.5 watts whether you connect them in series or in parallel, or any combination of series and parallel, but some combinations may result in more than a quarter-watt dissipation for a particular resistor, so you need to be careful. If you have, say, ten resistors of 100Ω each connected in series, the total resistance is 1000Ω. To dissipate 2.5 watts, that series string will need 50V applied to it and this will result in a current of 50/1000 = 0.05 A in each resistor. This current will then dissipate I²R watts = 0.25 W in each of the 100Ω resistors.
If the ten 100Ω resistors are connected in parallel, instead of in series, the total resistance will be 10Ω and require only 5V to dissipate 2.5 watts with a current of 0.5 A, but each resistor will still only dissipate 0.25 W because the total current is equally divided among ten 10Ω resistors (0.05 A per resistor) resulting in a power of I²R watts = 0.25 W in each of the 100Ω resistors.
Last edited: