Another design flaw I noted is the lack of limiting resistor on trimmer, so by accidentally setting it to minimum will short the ADC pins and burn the trimmer.
The only flaw is in your knowledge of how an ADC works or is used.
Go look up how an ADC works, how much current is going into (or out of with your assumption) the ADC pin and then come up with the solution for your trimmer going up in flames because someone with minimal knowledge accidentally turned it to zero.
Hint: none needed
Posted on: March 06, 2016, 04:42:54 04:42 - Automerged
I used 2 batteries...problem is when the battery is connected to charger, and the ADC will sample it will be detected as FLOAT since the charger is connected..
I think a much better approach is to disconnect the charger before sampling the battery voltage..
Regards.
The relays do that for you if you wrote the code correctly.
Sounds to me like you swapped the N/C and N/O on RL3. Next likely is RL3 is not being energized.