G’day,
I have several battery powered RF remote 2553’s sending back temperatures from one wire sensors.
I need a way of measuring the battery voltage in a single byte.
Have the idea of using the 2V5 reference and dividing the battery voltage down to 2.3V.
As the operating range of the 2553 is 1.8 to 3.6 volts I could have 180 different readings(that can be covered by a byte) each corresponding to 10mV, that will be added to the offset of 1.8 volts. Hence can measure between 1.80 to 3.60 volts.
Can the bulk of the work be done with a map function. Or has someone already produced code that allows this resolution to be to achieve.
Grant.