
pacomms
United Kingdom
Asked
— Edited
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
Thanks winstn60, I will use this. I also found this little gem on ebay. It should look good on the front of my bot. http://www.ebay.com/itm/150707159819?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1423.l2649
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.
Yes, what you need is a current sensor board for a micro controller, meaning something with a 0-5V output, like these from eBay:
For 5A max in/out For 20A max in/out For 30A max in/out Pay attention to the 3-pin connection on these, they're in a different order than on the EZ-B.
For higher amps, I would go non-invasive with one of these guys: Non-Invasive Hall Effect Current Sensors
@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
@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
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).
It might even be simpler then this... If someone knows more, please enlighten me... sometimes I know just enough to be dangerous
@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))
Gunner love the app EveryCircuit that will come in very handy