Voltage monitor
Archon
Posts: 2
Hi, I am part of the Bluefield State College robotics team and we are currently working on integrating a propeller into the our newest robot. This forum and the entire parallax site has been a great help and I think the chip will work very well for us.
There is still some information I haven't found yet. A voltage monitoring system needs to be integrated into our propeller based controller to stop the robot if the batteries get too low and to give us current battery status. While I've found alot about analog outputs on these chips I have found little on inputting an analog signal to a propeller. Is it possible to just tie an input to the battery (with the correct voltage levels) and the propeller convert that to a digital value? Or does there need to be a circuit to convert the analog signal to a digital signal the propeller can understand?
If there is any spin code available that works the same way a link to that would be great too.
There is still some information I haven't found yet. A voltage monitoring system needs to be integrated into our propeller based controller to stop the robot if the batteries get too low and to give us current battery status. While I've found alot about analog outputs on these chips I have found little on inputting an analog signal to a propeller. Is it possible to just tie an input to the battery (with the correct voltage levels) and the propeller convert that to a digital value? Or does there need to be a circuit to convert the analog signal to a digital signal the propeller can understand?
If there is any spin code available that works the same way a link to that would be great too.
Comments
If you are using Lithium-Polymer batteries, there's several ICs that monitor the charging and the voltage, most can be queryied for current voltage. If only a defined low voltage level alarm is required then you could use voltage monitoring ICs like the one used as mcu supervisors: they provide an active low (or high) when the set (or preset) voltage is reached. Some are also programmable.
Cheers,
Alex
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i@arrl.net
Also take into account that batteries rebound in voltage significantly when they are not under load so you have to make sure your design or program latches to it's tripped state even if the voltage bounces back up by a volt. My NiMH pack of 6AAs will bounce back from 6.05V to over 7.0v when the load is removed from them. After a few hours they will reach 7.2 or more.
Post Edited (photomankc) : 9/8/2009 5:21:36 PM GMT
I have also, in the past used a very simple RC circuit to get a rough approximation (very rough) of current voltage. It works best (most linearly) with high input voltages.
The cost of the ADCs are low enough that the precision and support available for them outweighs foreseeable problems with them. Ultimately using ADCs with the Obex-supplied drivers is very easy, and worth while.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
April, 2008: when I discovered the answers to all my micro-computational-botherations!