Measurement of Battery Voltage
-
Hi,
first of all i like to thank you for your work on this projekt - I like mysensors very much!
I have a question regarding voltage measurement of a battery.
On this site (http://provideyourown.com/2012/secret-arduino-voltmeter-measure-battery-voltage/) i read, that you can measure the voltage of the battery without the need of seperate analog pin using the internal reference only.
In the Guide on mysensors (Battery powered sensor) you use two resistors and an analog pin to read the voltage.From my perspective the way only using the internal refenrece voltage of 1.1V needs fewer components (no additional resistors, no analog pin) and should save some current that would otherwise flow through the resistors.
Is there any advantage in doing it the way described on mysensors that i am missing?
Thank you for your help!
Kindly Regards
Bene -
Hi,
first of all i like to thank you for your work on this projekt - I like mysensors very much!
I have a question regarding voltage measurement of a battery.
On this site (http://provideyourown.com/2012/secret-arduino-voltmeter-measure-battery-voltage/) i read, that you can measure the voltage of the battery without the need of seperate analog pin using the internal reference only.
In the Guide on mysensors (Battery powered sensor) you use two resistors and an analog pin to read the voltage.From my perspective the way only using the internal refenrece voltage of 1.1V needs fewer components (no additional resistors, no analog pin) and should save some current that would otherwise flow through the resistors.
Is there any advantage in doing it the way described on mysensors that i am missing?
Thank you for your help!
Kindly Regards
Bene@Bene Hi and welcome to the forum!
Some time ago I wrote a library which exactly implements the method described on the site you mentioned.
There's a topic devoted to this Vcc library, which you can find here.
The drawbacks of this method are:- you cannot use it when a regulator is used to power the AVR; it needs to be directly powered from the battery
- it isn't very accurate, but can be calibrated to increase accuracy.
-
@Yveaux Many Thanks for your answer!
Unfortunately, I had not found your article and sketch on the search.
That explains a lot :-)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login