Hi,
trying to make a PICAXE circuit which does a few things(not shown) but also monitors the battery voltage by way of taking a reading on the ADC0 input. The voltage divider network I have seems ok. The 14M has 1024 bits of ADC so resolution should be good. From my readingthe voltage on the ADC cannot exceed Vcc for the Picaxe chip so max voltage ever presented no higher than 5V. With the divider network I have 13Volts at the battery should present 5 volts at ADC0. given that the batery will nevr be below 10Volts unless it's dead I would like to make a circuit which gives me the ability to do an offset zero voltage reading. i.e zero Volts at ADC0 input equals 10 Volts battery boltage and 5 Volts ADC0 input equals 13 volts battery voltage. This way I can make maximum usage of the ADC resolution in the practical measuring range required.
all things being equal I plan to make the LED flash in accodance with the battery voltage reading - i.e. display battery voltage in morse code or similar.
appreciate all ideas!
Thanks,
Ian
trying to make a PICAXE circuit which does a few things(not shown) but also monitors the battery voltage by way of taking a reading on the ADC0 input. The voltage divider network I have seems ok. The 14M has 1024 bits of ADC so resolution should be good. From my readingthe voltage on the ADC cannot exceed Vcc for the Picaxe chip so max voltage ever presented no higher than 5V. With the divider network I have 13Volts at the battery should present 5 volts at ADC0. given that the batery will nevr be below 10Volts unless it's dead I would like to make a circuit which gives me the ability to do an offset zero voltage reading. i.e zero Volts at ADC0 input equals 10 Volts battery boltage and 5 Volts ADC0 input equals 13 volts battery voltage. This way I can make maximum usage of the ADC resolution in the practical measuring range required.
all things being equal I plan to make the LED flash in accodance with the battery voltage reading - i.e. display battery voltage in morse code or similar.
appreciate all ideas!
Thanks,
Ian
Attachments
-
26.4 KB Views: 116