![]() |
Forum Index : Microcontroller and PC projects : Battery Measurement
Author | Message | ||||
lew247![]() Guru ![]() Joined: 23/12/2015 Location: United KingdomPosts: 1702 |
Is the circuit below sufficient to measure voltage on a micromite? The battery I want to measure is a 5V battery. I'm as assuming (hoping) the ADC will be measuring 0-2.5V? Will the resistors drain the battery? ie if I expect the battery to last for a very long time without the circuit will it take much from the battery? |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10250 |
Yes, power consumed is (V*V)/R so in your example roughly 2.6mA There is an easy way round this: Connect the bottom of the divider to another Micromite pin that is set as an input and then just set it to a low output when you want to take the measurement leaving a few milliseconds for the capacitor to charge before taking the reading. Once you have the reading set the MM pin back to an input. |
||||
lew247![]() Guru ![]() Joined: 23/12/2015 Location: United KingdomPosts: 1702 |
Thank you so much ![]() |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10250 |
Sorry should read "2.6mW" or 0.52mA |
||||
bigmik![]() Guru ![]() Joined: 20/06/2011 Location: AustraliaPosts: 2949 |
Hi Lew, I don't think you need the Capacitor at all.. Just the 2 resistors is fine.. You can always increase the values to minimise current drain.. Mick Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |