Using a LTC1298 to measure a 12 Volt Battery
What is the most effective way to measure the voltage of 12 Volt battery using the LCT1298 ADC that is designed for 5 Volts.
I was thinking of just a basic voltage divider using a 8.2V Zener and a small sense resistor like 220ohms to measure across.
I also don't want to measure all the time maybe once every every minute which case the zener and the resistor would basically be just wasted battery juice... Hmmm. Maybe there is a way that this measurement circuit would be out of the circuit until it's time for the measurement. I'm just thinking here and looking for any guru insight.
Thoughts?
Thanks,
Eric
I was thinking of just a basic voltage divider using a 8.2V Zener and a small sense resistor like 220ohms to measure across.
I also don't want to measure all the time maybe once every every minute which case the zener and the resistor would basically be just wasted battery juice... Hmmm. Maybe there is a way that this measurement circuit would be out of the circuit until it's time for the measurement. I'm just thinking here and looking for any guru insight.
Thoughts?
Thanks,
Eric
Comments
Thanks...I did forget to mention that this 12 volt source (Battery) will be measured in circuit to be used as a Gas Gauge. Will the Voltage Divider still be my best alternative. This battery is going to be feeding a 5v / 3.3 volt buck switching regulator for all of my logic and the 12 volts will also feed directly to motor. I'm looking to have just one 12V source to power my Robot and I want it to know if it's getting hungry.
Speaking of the motors. What is a good was to prevent the motors from causing noise.
Steve,
I wouldn't say this is the best way to go, I just have these parts laying around. I played with the OP-Amp aproach, but that only gives me a High / Low indication.. I was looking for something a little more analog.
2) Filter / filter / filter. Use 0.1uF bypass capacitors near the motor and near the regulators running off the 12V. Use large filter capacitors at the input to the regulators (1000uF for sure). You could also use a small inductor in series with the 12V to the regulators (see the schematic for the Propeller Protoboard for an example in the servo motor power feed).
3) Make sure you don't have ground loops. Connect the motor ground and the logic / regulator ground to the battery at one point only using separate wires.
Ground loop? Are you refering to a loop circling the board, like an antenna of sorts.
I think I am going to try http://www.uoguelph.ca/~antoon/circ/batmon12.htm as my approach... I'll let you know how it goes.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Rick
Steve, The "Basic Analog and Digital" is a good place to start.
http://www.phanderson.com/stamp/tutorial_9.html
Do a google search.. This part has been around a while.
The components for the RCtime circuit should be mounted close to the Stamp. It is not the highest precision circuit (about 8 bits), and it does require an initial calibration step, but you can't beat it for cheap.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
I'm assuming that I can have 8 of these things running at the same time and that this setup will also work with the SX Chips... I don't have any Stamps. [noparse]:)[/noparse]
Eric
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Mike good advise, but I am a little unsure how to make sure I'm designing a circuit right the first time without too much trial and error...
Picture my home made PCB it has two dual H-Bridge motor control IC's and an SX48 to create the PWM ,do comms with the host MCU, and control a few indicator LED's. All of this is on one circuit board. This seem to work ok, but I want to bullet proof this board.
The board has 12V Battery in 5 Volt In A serial port and two motor hook ups.
The capacitor and inductors you mention above.. What types of things should I be looking at while selecting my Items.
Would you be willing to look
Akin to the ADC0832 is the 8-bit (versus 12 bit LTC1298) ·TLC549 (Which I personally like) at $2.38 from Mouser.·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There's nothing like a new idea and a warm soldering iron.
Post Edited (pwillard) : 11/29/2007 11:27:35 PM GMT