Hi,
I am struggling to read an ADC value, offset this value then convert into a battery voltage.
Below are my value:
* ADC read range (0V - 5V) == (0 - 1023)
* The ADC read range i am interesting in is (1.5V - 2.4V) == (309 - 491)
* I would like to convert 309 ADC value into battery minimum voltage 10V, and 491 ADC value into battery max voltage 14.4V. Also i would like to display all the battery voltages between 309 and 491.
At this point i do not know a conversion factor to convert ADC values into battery voltage. Would this be an ideal application for a look up table?
Look forward to your input.
Thanks,
Rocketman46