Battery Status?
computer guy
Posts: 1,113
Is there a cheap and easy way to get the propeller to determine the status of a 9V battery? i.e 0-100%, how much charge is remaining.
edit: Li-Ion 9V battery.
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"powered by Propeller" domed stickers $1.50 - Find them here
Check out my Design and Technology project for my Higher School Certificate www.ecosureblog.net
The Sarah Myatt Fund - Help Sarah and Her Family Fight Quadriplegia HERE
Post Edited (computer guy) : 5/23/2010 1:34:31 AM GMT
edit: Li-Ion 9V battery.
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"powered by Propeller" domed stickers $1.50 - Find them here
Check out my Design and Technology project for my Higher School Certificate www.ecosureblog.net
The Sarah Myatt Fund - Help Sarah and Her Family Fight Quadriplegia HERE
Post Edited (computer guy) : 5/23/2010 1:34:31 AM GMT
Comments
So this requires a shunt-resistor which should have a low value dependning on the current 1 ohm down to 0,01 ohm.
The value should be low like this to keep the wasted energy low that is dissipated in the resistor.
You would measure the voltagedrop across the shunt-resistor. Which could be done by the ADC-circuit using a propeller-counter
or with any kind of adc-chip.
Another idea is: to watch the voltage-level of the accumulator accurately over time. I have no practical experience with that.
It MIGHT be possible to conclude surely from the voltage-level to the remaining charge.
If the current is always on the SAME level you could simply add a constant (representing the current) over time.
If you have different states that are absolutely deterministic you could include this information to add several constant values depenending on the state of your program
Before using this technique in situations where you have to rely on a proper function I would test it dozens of times with different accumulators etc.
another idea:
counting pulses from a voltage controlled oscillator (VCO)
The voltagedrop across a shunt-resistor determines the frequency of a VCO and a propeller-counter counts and summarises the pulses.
best regards
Stefan
If you regard all these things it might be the better solution to buy a ready to use mAh-meter (milliampere-HOUR-meter) from the shelf and add it to your application
Ray
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
My Prop Products:· http://www.rayslogic.com/Propeller/Products/Products.htm
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
My Prop Products:· http://www.rayslogic.com/Propeller/Products/Products.htm
The resistor for measuring the current has to be a small value. The voltagedrop across this resistor could be amplified with a
OP-Amp. Then the outputvoltage of the OpAmp could "drive" the diodes. To keep the current low you would have to use so many didodes that
NEVER all diodes would switch through. This would mean a high current emptying the acumulator quickly
best regards
Stefan
Post Edited (StefanL38) : 5/22/2010 4:39:50 PM GMT
You can use a "gas gauge" chip. Grab a free sample here http://focus.ti.com/docs/prod/folders/print/bq27210.html#samples