Measuring voltage and current
simonl
Posts: 866
Anyone got any idea how I'd measure voltage and current using a Propeller?
I'd like to monitor a LiPo battery (on my R/C helicopter), logging data every 0.25s or so. The voltage would be up to 18.5V, and current could be 74Amp continuous (111Amp bursts).
All help would be greatly appreciated
Cheers,
Simon
I'd like to monitor a LiPo battery (on my R/C helicopter), logging data every 0.25s or so. The voltage would be up to 18.5V, and current could be 74Amp continuous (111Amp bursts).
All help would be greatly appreciated
Cheers,
Simon
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,
Simon
(http://www.maxim-ic.com/quick_view2.cfm/qv_pk/1108)
The max472 returns a voltage proporational to the current supply. It may not be big enough for your application though.
James
http://forums.parallax.com/showthread.php?p=578927
That used an analog to digital converter. Is your goal to do this on the cheap? It is possible to do it without the ADC, using digtal/analog tricks that the propeller is capable of. But I don't think you can get away without having an op amp or similar device to boost the current sense signal. You could try to generate a larger current sense signal, but at 100 amps, even 0.1 volt is 10 watts of power.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Just a word to the wise....
The virtual A/D using a PWM approach works well in an SX.
In the Propeller, there are some issues to be aware of due to the fact that the switching levels are NOT at Vdd/2 as they (nearly) are on and SX. This creates a biased averaging value on the charge balance capacitor, and must be accounted for otherwise severe non-linearity occurs in the reading. While I have not yet pursued this extensively, I have attempted to cancel that effect by having a proportionally longer "low" vs "high" charge duration. For the brief period I was working on that, (other more interesting things were a higher priority) the results were unsatisfactory, and I could not rationalize the error.
I hope to be able to pursue this again later, and I'm confident the proper compensating solution can be found.
Tracy...... that said, my experience is that with some trickery 50 mV on a current shunt resistor is quite readable on an SX virtual A/D without an amplifier. Given of course that the precision will suffer somewhat, but that is offset by the benefit of a minimal component count. The appropriateness all depends on the application requirements.
Cheers,
Peter (pjv)