United Kingdom
Asked — Edited

Battery Voltage Monitor

This is really a question aimed at DJ but if anyone else knows the answer please chip in, i want to know how i can use an ADC port to monitor the battery voltage on my 6v battery, my idea is to write a script that will for now just say that the battery voltage is low, by speaking through my laptop, my eventual aim is so that when the roborealm module is done he will sense the battery is low and head for a home base by using the navigation module in roborealm.

Thanks Kurt


ARC Pro

Upgrade to ARC Pro

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!

#10  

Thanks so much for the clarification. Now I've got another question: Is there an easy way to add ammeter functionality? I'm trying to come up with cool stuff to push to an LCD panel tiggered by a voice-activated "Status Report" command.

#12  

@bret.tallent

so......i want one of those....i see it has a 3 pin connector. can you maybe post up some pics on your set up once you get it going. this would look perfect in front of my wall-e

Canada
#13  

@winstn60 I searched and came across this older question, and hoped you would be able to assist again. I would like to do the same thing for voltages up to the maximum that the EZ-B would take (18v). On the EZ-B there are four pins that provide 5v, GND, GND, and Vin (the voltage powering the EZ-B).

I am already using the 5v pin to AD0 and using ACD READ to show me what the voltage load is like when I am testing things out.

I would like to do the same thing for the Vin to AD1 and add another ADC READ showing me the incoming voltage to the EZ-B. How would I go about determining the value of the resistors I would use for say 12v-18v?

Or perhaps, someone could tell me what is the technical term for this circuit and I could Google it to check out myself. Thanks

Canada
#14  

Hmmm, well I think I answered my own question... sometimes just taking the time to ask gets my brains a function'n;) It is called a resistor ladder (I think) and after playing around with a neat electronics simulator app called EveryCircut for my Android, I was able to take my limited electronic comprehension into a practical level. I need to do more then change resistor values, in fact I don't need to change them at all, rather I need to add a 2nd "rung" to drop the voltage again to within 5v (from 18v).

User-inserted image

It might even be simpler then this... If someone knows more, please enlighten me... sometimes I know just enough to be dangerous:P

United Kingdom
#15  

@Gunner not been around so didn't see your post til now

The 2 resistor circuit is called a potential divider which in your circuit is neatly cascaded into two potential dividers. Although I would expect 18v to be divided by 2 so instead of 7.2v you would get 9volts and then 9 divided by 2 you would get 4.5volts. So within tolerance for the EZ-B. The current flowing through the resistors should be the same though in each arm. Best to build it and see what you get with a voltmeter before you connect it all up. Great way of learning stuff))