Help with battery tester for robot??
Hello all,
I am entering the wonderful world of STAMPing!!
I am building a robot Tank with 2 STAMPs, one on the Tank end and one on the Remote end. I am going to build transceivers on each side, so I can relay information back to my STAMP in the Remote for a status readout on the Remote Control.
I want to have the ability to test the status of the batteries in the Tank and transmit that back to the Remote. I have found the ADC0831 to test the battery status digitally and then I can send it back serially to the Remote. I was wondering if it would be easier to use a resistor/cap diagram to test the voltage? or would it be safer (for the STAMP) to use the ADC?
I am going to use 9.6V NiMH batteries with a 5 voltage regulator for my STAMP and TTL circuits and a 3V regulator for the motors. I think that the 9.6V should last a little while under these conditions, so I would want to relay back to the Remote the status as the voltage drops. I will use some LED's on the Remote to give me a status of Voltage.
I studied Electronics and MicroControllers (PICs) in college for two years, I know some, but not all...... will you guys help me out??
J
US Army
Mannheim, Germany
I am entering the wonderful world of STAMPing!!

I am building a robot Tank with 2 STAMPs, one on the Tank end and one on the Remote end. I am going to build transceivers on each side, so I can relay information back to my STAMP in the Remote for a status readout on the Remote Control.
I want to have the ability to test the status of the batteries in the Tank and transmit that back to the Remote. I have found the ADC0831 to test the battery status digitally and then I can send it back serially to the Remote. I was wondering if it would be easier to use a resistor/cap diagram to test the voltage? or would it be safer (for the STAMP) to use the ADC?
I am going to use 9.6V NiMH batteries with a 5 voltage regulator for my STAMP and TTL circuits and a 3V regulator for the motors. I think that the 9.6V should last a little while under these conditions, so I would want to relay back to the Remote the status as the voltage drops. I will use some LED's on the Remote to give me a status of Voltage.
I studied Electronics and MicroControllers (PICs) in college for two years, I know some, but not all...... will you guys help me out??
J
US Army
Mannheim, Germany
Comments
Thanks for serving ... I was a Radar/ECM guy in the USAF.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
What would you recommend for the voltage divider?
a POT?
but won't the output fluctuate due to voltage drop? so therefore, it won't be a true divider?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
J
Assuming you use a divider with both resistors being the same value, you can calulate the counts from you ADC for a given voltage like this:
· (raw_volts / 2) / 5.0 x 255
So from my example above, (7 / 2) / 5 x 255 = 178
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Post Edited (Jon Williams (Parallax)) : 6/4/2005 3:05:02 PM GMT
http://www.emesystems.com/BS2rct.htm#B_voltage
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
·
Putting two 50K between the 9.6V and GND will give me the situation that I want, plus will keep me from dropping very much current out of the batteries....
·
Thanks again,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
J
so based on your equation. (raw_volts / 2) / 5.0 x 255
if i am using a 11.1 v lithium battery that i want to monitor the math would be. ( 11.1 / 2 ) / 5.0 x 225. is this correct? for this voltage would i also use the same 50k resistors?
·· (raw_volts / 3) / 5.0 x 255
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Note that V_Mon is your 11.1 volt input.· If you need more information on the ADC0831 this article may help:
http://www.parallax.com/dl/docs/cols/nv/vol6/col/nv118.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Post Edited (Jon Williams (Parallax)) : 7/29/2005 6:00:15 PM GMT