Hi,
Need to Monitor the Input voltage, which Comes from two 12V Pb accus. So, Minimum is expected at 21.6V and max at 28.8V. My ADC has an Input range og 0-2.5V.
To get the interesting range with max. Resolution, I want to map ~21V to 0V out and 30V to 2.5V.
Here my solution, but maybe there is a smarter way to do this.
Thanks for helping.
I also used the measured value together with the measured current to calculate the used energy.
With best regrads
Gerhard