How would I use the Propeller to take voltage readings (very low frequency A/D)
Dennis Ferron
Posts: 480
I read the forum postings about using the propeller to take high frequency a/d samples, but the caveat is that the breadboard introduces too much parasitic loading. What if I only want to take voltage measurements over a longer period of time? I assume the breadboard electrical loading would be negligible at low frequencies - right? How would I change the circuit to do low speed A/D conversion?
I'm building a motor controller and I want to measure back emf to guess current. Essentially what I will be doing is spinning up a motor, then turning off power to the motor for 100 ms and measuring how much voltage the motor generates free spinning. Supply voltage minus back emf voltage gives me effective voltage. Effective voltage divided by the motor's parasitic resistance gives me estimated current. At a stroke I get a rough measure of how fast the motor is (probably) spinning and how much current the motor is (probably) drawing.
Edit:
Is the estimate accurate? Maybe not - on the other hand, maybe it will turn out to be almost 100% accurate. But I need to build a test rig on the breadboard to find out!
I'm building a motor controller and I want to measure back emf to guess current. Essentially what I will be doing is spinning up a motor, then turning off power to the motor for 100 ms and measuring how much voltage the motor generates free spinning. Supply voltage minus back emf voltage gives me effective voltage. Effective voltage divided by the motor's parasitic resistance gives me estimated current. At a stroke I get a rough measure of how fast the motor is (probably) spinning and how much current the motor is (probably) drawing.
Edit:
Is the estimate accurate? Maybe not - on the other hand, maybe it will turn out to be almost 100% accurate. But I need to build a test rig on the breadboard to find out!
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
...
·
Very simply, I would like my robot to be able to check the voltage on the motor batteries and logic batteries no more often than every 5 seconds, more likely once per minute.· So, my ADC consecutive reading rate would be VERY slow.· And I would certainly not need more than 8-bits of resolution.· Given these circumstances, is the parts layout of the ADC circuit critical?
·
And, I have not delved into the program for the ADC, but would be be easy/pratical/worth while to modify it to do only 6 or 8 bits of resolution?
Stan Dobrowski
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (originator) : 1/10/2007 1:20:39 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NerdMaster
For
Life
Mike, thanks for the reference to Tracy Allen's information site.··There is some very interesting and useful stuff there.· Using an RCtime function for a simple ADC to measure battery voltage will be just what I need.· Perfect.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Stan Dobrowski