Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
geko said:If you use a constant voltage source and measure that with the ADC, as the battery voltage falls, the ADC reference falls but the voltage you are measuring doesn't.
Therefore the value you read back from the ADC will increase as the battery voltage drops and you can work out what the battery voltage is.
Yes battery powers regulator, regulator powers PIC,
quickrik said:Excuse my ignorance but doesn't the A/D converter need a reference which in this case would be the supply voltage, which would be dropping at the same rate as the analogue signal of the battery supply.
I'm using a 16F876a
quickrik said:Wow, thanks for all the replies these are all some really good ideas.
I'm going to try leftys voltage divider on the battery to start with because thats simple and I've already got the components