Measuring voltage
Stevezila
Posts: 35
Can anyone tell me the best way to measure voltage up to 12 vdc with a BS2? I saw in· stampworks a program that uses the adc 0831 to measure voltage but it only measures up to 5 vdc. Does anyone know of a simular device that measures up to 12 vdc.· I have some remote projects that I'm working and it would be really nice to be able to check the condition of the 12v battery supplying the power and maybe flag an output , or prohibit certain events from tacking place when voltage drops below a certain level.
Thanks
Thanks
Comments
12V --- 1K --- 1K ---x--- 1K --- Ground
The voltage between the "x" and Ground will be 1/3 of the voltage across the whole thing (4V in this case). The 1/3 ratio allows for voltages > 12V like for charging while limiting the measured voltage to 5V for an ADC. There's a current drain through this voltage divider of about 4mA. If you need to reduce this, you can use multiples of 1K as long as all 3 resistors have the same value.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
If you are serious about it, look into IC's ·designed for such purpose.
Check TI "Battery fuel gauges" for example.
You just need to use a voltage divider to bring the voltage down to the 0-5v range, and then read it with an ADC0831 (or equivalent). I've attached a schematic that I've used, and it works very well.
This circuit will let you use the sample code for the ADC0831 in Experiment 28 in the Stampworks Manual.
-Jeff
Thanks
At that rate the battery will self discharge before the VD will run it down.
If you use a relay and energize it for 1 second every minute, it·will take more juice to energize the coil than the voltage divider.
You can also change the resistor values to· 100k, 10k ans 220k and the draw will be 36 micro amps.
Good Luck,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Alan Bradford ·N1YMQ
Plasma Technologies
Canaan NH 03741
www.plasmatechnologies.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com