Thank you, NG, KISS.
Please note that queries in Section 1 are not that much important but queries contained in Section 2 and 3 are crucial for my understanding of this topic. Besides I understand that these are quite a few queries for a single post but you will see they are related to each other and asking them together was rather a good idea. Thank you.
Section 1:
So, for perturb and observe algorithm the temperature sensor is not required.
Do you think that we need to turn off the mppt charge controller unit and also disconnect the panel? Wouldn't turning off the controller be enough? I think the panel needs to be disconnected so that for some reason battery doesn't get discharged through the panel at night.
NorthGuy said:
For the night disconnect you need a latching relay. You could use a diode, but that would mean loosing diode drop continuously.
Can't we just use simple a
**broken link removed** as the one used in automatic light switches instead of
latching relay? Actually I'm unable to picture what you are saying.
NorthGuy said:
Disconnecting when a battery is charged is not a good idea. Say, you have some loads connected to the battery. If you disconnect, loads will be discharging the battery while you're wasting solar energy. The standard way is to drop voltage to about 2.2V/cell and let loads use solar energy without dischargng the battery.
First I didn't know that we also need to program the microcontroller to regulate the battery charging. I had thought we only need to track the maximum power point. Now it's clear that mppt charge controller needs two kinds of coding - one to track maximum power point and the other to track the charging of the battery. By the way, I do think that for a school project we can omit battery charge controlling part from the mppt controller and perhaps use some
separate IC to protect the battery.
I don't really understand the standard way you mentioned to drop voltage to about 2.2V/cell. It might make sense to implement this standard procedure in commercial charge controller units. But I think for a school project we can use some other simple way. Let's say if there is light outside (for which light sensor can be used) and the battery is fully charged then check the battery charging after every 15 minutes. And if there is no light outside then shut down the charge controller.
I think the only way, at least a simple one, to track charging of a battery is to already know the pattern of battery charging and it's only possible if manufacturer has provided some kind of data like
this one.
Section 2:
I understand the operation of a standalone buck converter. It's output voltage is less than or equal to the input voltage and depends on input voltage and duty cycle. If duty cycle is increased, output voltage increases. Likewise if input voltage is increased while keeping the duty cycle constant, the output voltage also increases. If both input voltage and duty cycle are increased, the output voltage also increases. But I get confused when buck converter is used as part of mppt charge controller. If you have some more time, please give
this video a look. Now please proceed to the queries below.
I think the capacitor C_in in
Figure 2 plays the role of input voltage source for the buck converter and at the same time also functions as dummy load or resistance to the panel.
An mppt charge controller is only programmed to find the maximum power point (ignoring the battery charging algorithm). An mppt only varies the rate of pulse width modulation to the switch such as MOSFET of buck converter to find maximum power point. In
Figure 1, it is shown that maximum power point occurs at the same voltage for several curves. Perhaps, in reality this is not really true and maximum power point occurs at slightly different voltage values. But I would say the difference between those real voltage values won't be too much because if it were then the output voltage will vary. But as it is evident from the linked video above, the output voltage doesn't change. So, what do we conclude from this? My first conclusion would be that maximum power point occurs at roughly same voltage. My second observation would be that during search for maximum power point output voltage continuously varies because the rate of pulse width modulation is constantly changed.
Section 3:
When P_new is less than P_old then according to
the flowchart the duty cycle is decreased. To me decreasing the duty cycle would mean that the charge on capacitor would increase and hence more voltage on it. Let's say P_new is the green point "A" in the power figure. To get back to maximum power point, the capacitor needs to lose some of its charge and hence voltage on it, and for this duty cycle needs to be increased and not decreased, so that the charge can get more time to flow toward the output load. Where do I have it wrong?
When P_new is greater than P_old then according to
the flowchart P_old is updated with P_new and duty cycle is increased. Again, it seems kinda contradictory to me. Let's say P_new is red point "C" in the power figure and P_old is the blue point "B". Clearly P_old should be updated with P_new but I don't see why duty cycle should be increased. In my view duty cycle should either be held constant or decreased so that more charge can accumulate in capacitor which will raise it voltage. Where am I going wrong?
Please also have a look on this
pseudocode.
Thanks a lot for the help.
Regards
PG