Reading Analog Input
CumQuaT
Posts: 156
Hi all,
I'm trying to use the propeller to read an analogue input between 0V and 3.3VDC and am having troubles. Can the propeller read analogue values with some sort of internal ADC? Or do I need to hook it up to something like the LTC1286? If so, does anyone have an idea of how to code the reading of that? I know that the counter modules can be used for ADC work, but I have no idea how...
Thanks in advance...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who are you, and why are you reading my signature?
Post Edited (CumQuaT) : 11/15/2009 11:09:24 AM GMT
I'm trying to use the propeller to read an analogue input between 0V and 3.3VDC and am having troubles. Can the propeller read analogue values with some sort of internal ADC? Or do I need to hook it up to something like the LTC1286? If so, does anyone have an idea of how to code the reading of that? I know that the counter modules can be used for ADC work, but I have no idea how...
Thanks in advance...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who are you, and why are you reading my signature?
Post Edited (CumQuaT) : 11/15/2009 11:09:24 AM GMT
Comments
I've used the MCP3204 and there's an object for that. (I better be careful using·that phrase, or AT&T·may sue me...lol)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jim Fouch
FOUCH SOFTWARE
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who are you, and why are you reading my signature?
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who are you, and why are you reading my signature?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who are you, and why are you reading my signature?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who are you, and why are you reading my signature?
Realistically speaking, do you think that 5 bit resolution at 2.5MHz would be fast enough to detect quick, sharp impacts in an impact-sensor project?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who are you, and why are you reading my signature?
"real" signals normally are of such an integrating character. For example: speed is the time integrated acceleration. Information like speech or even noise is best characterized by sample points. Then the sampling rate only has to be 1/2 of the highest frequency to measured. A integrating adc must have more then 10 times the speed to show a good signal. But, on the other hand, integration automatically suppresses high frequencies and therefore the original signal is filtered with only little disturbance.
ErNa
Add: And, prop-adc gives you another advantage: if you sample with high speed you see fast changing signals within a short time. But if you add a number of samples in a register, you do the integration internally, which normally is down by the adc itself. So you have high speed low resolution and low speed high resolution in one converter!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
cmapspublic3.ihmc.us:80/servlet/SBReadResourceServlet?rid=1181572927203_421963583_5511&partName=htmltext
Hello Rest Of The World
Hello Debris
Install a propeller and blow them away
Post Edited (ErNa) : 11/16/2009 11:12:20 AM GMT
I just hooked the whole thing up on my Propeller demo board (my favourite toy) and it seems to work pretty well!
Thanks for all the help!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who are you, and why are you reading my signature?