Reading voltages via ADC ports
Posted: Fri Jun 22, 2018 2:57 pm
Hello,
I have tried my hand at designing a solar charge controller based on the 0-15V voltmeter that Martin (Medelec) posted to the forum, I have tweaked certain formulas to obtain certain readings to make it work on 24V, however, I am experiencing some difficulties mainly due to inexperience and am asking for some kind assistance please.
Have not used this before to read voltages.
The controller works on two 12V batteries connected in series (24V) and the PV panel is open circuit at 36V.
I have chosen voltage dividers as follows to give me a range of 33V each for Battery and PV panel: (Do not know if this is correct??)
33V
|
330K
|______ To ADC port This giving me 33 volts at 5v on the ADC
|
100K
|
------
My problem is that this program works perfectly on the simulator, however, having built the circuit complete, I find that the voltage dividers and my modified formulas are not registering correctly in real life scenario with change in voltages.
Am posting my flowchart, any help would be greatly appreciated!!!
Kind regards
Ted
I have tried my hand at designing a solar charge controller based on the 0-15V voltmeter that Martin (Medelec) posted to the forum, I have tweaked certain formulas to obtain certain readings to make it work on 24V, however, I am experiencing some difficulties mainly due to inexperience and am asking for some kind assistance please.
Have not used this before to read voltages.
The controller works on two 12V batteries connected in series (24V) and the PV panel is open circuit at 36V.
I have chosen voltage dividers as follows to give me a range of 33V each for Battery and PV panel: (Do not know if this is correct??)
33V
|
330K
|______ To ADC port This giving me 33 volts at 5v on the ADC
|
100K
|
------
My problem is that this program works perfectly on the simulator, however, having built the circuit complete, I find that the voltage dividers and my modified formulas are not registering correctly in real life scenario with change in voltages.
Am posting my flowchart, any help would be greatly appreciated!!!
Kind regards
Ted