Pages: 1 [2]   Go Down
Author Topic: Problems finding Vcc using bandgap voltage method  (Read 11729 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 1
Posts: 68
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, I do have a spare analog input.

Would you mind giving more details (or other pointers) ? I am total beginner in this area.

Thanks again,


If you have a spare analog input pin, then a simple solution for any micro is to just wire a precision voltage reference chip to one input and use that value to map the correct range used for the other analog inputs of the ADC.
One of many possible examples:
http://www.analog.com/en/special-linear-functions/voltage-references/ad580/products/product.html

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I plan to use this method to protect my LiPo battery pack. Does it make sense to monitor vcc to determine if there is enough power in my 7.4 V battery connected to Vin ? I hope drop in Vcc signals battery undervoltage but I have doubts.
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17294
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I plan to use this method to protect my LiPo battery pack. Does it make sense to monitor vcc to determine if there is enough power in my 7.4 V battery connected to Vin ? I hope drop in Vcc signals battery undervoltage but I have doubts.

No it won't. The Vin voltage goes to a voltage regulator that maintains a steady Vcc voltage even as Vin is dropping over time. A LiP0 two cell battery will have a voltage output from 8.4 vdc at full charge down to 3  6 vdc where most recommend to stop drawing power from it. You are better off using a voltage divider and measuring the battery directly via a analog input pin to decide when to alarm or shutdown.

« Last Edit: June 11, 2014, 12:39:45 pm by retrolefty » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just as I guessed. One analog pin lost. smiley-sad
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

And if I have two single cell batteries with a tap between them? Is it enough to measure the voltage at the tap without the divider?
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17294
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

And if I have two single cell batteries with a tap between them? Is it enough to measure the voltage at the tap without the divider?

Sounds good to me, saves needing the voltage divider.
Logged

Pages: 1 [2]   Go Up
Jump to: