Getting started with Analog
Botulism
Posts: 18
in Propeller 1
I'm starting to learn how the Propeller handles A/D. The information I can find feels limited, in C, or dated with broken links.
Is there a resource I should be using to learn this? I would like to remain with the Propeller family using Spin. I would like to ignore the C language as much as possible. (I invited that clown to a birthday party once and scared the kids!)
I get the impression a naked Propeller can handle A/D from devices like accelerometers, but many people use an external ADC chip. Which direction should I go?
I don't have an application yet as I'm simply learning.
Is there a resource I should be using to learn this? I would like to remain with the Propeller family using Spin. I would like to ignore the C language as much as possible. (I invited that clown to a birthday party once and scared the kids!)
I get the impression a naked Propeller can handle A/D from devices like accelerometers, but many people use an external ADC chip. Which direction should I go?
I don't have an application yet as I'm simply learning.
Comments
Accelerometers and the likes do the ADC in the addon chip presenting the info usually on an I2C bus and is easy with a software driver on the prop.
Other interfaces depends on what you are trying to do. If you are trying to just read a voltage then you can do it inside the prop. More complex stuff or better accuracy might require an external ADC chip.
There is an ADC app note for the prop - should be on the main parallax website. Might come with proptool ??? The P1 prop doesn’t have inbuilt ADC but you can use sigma delta as described in the app note. Sorry I don’t have a link.
Jim
If you want to learn about RC charge-discharge timing for reading a pot, go to the Help menu in Propeller Tool and open the PEK documentation; it's covered in there.
I've attached my MCP3208 object to help yo get started.
Since you're new to the Propeller, you *might* find this presentation helpful.
--
It's a bit long, but many said they found it very helpful. Your mileage may vary.