Sigma Delta ADC or Dedicated ADC Chip
william chan
Posts: 1,326
This may seem like a stupid question....
Which is better, more accurate, faster, more flexible, less noise and uses less code?
1. Sigma Delta ADC using 2 pins on the Propeller or
2. Using a dedicated ADC chip connected to the Propeller.
I am very surprised with the flexibility of the Sigma Delta ADC code to change the sample bits easily.
Will the feedback pulses from the Sigma Delta ADC add noise to the source signal? ( Mic )
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.fd.com.my
www.mercedes.com.my
Which is better, more accurate, faster, more flexible, less noise and uses less code?
1. Sigma Delta ADC using 2 pins on the Propeller or
2. Using a dedicated ADC chip connected to the Propeller.
I am very surprised with the flexibility of the Sigma Delta ADC code to change the sample bits easily.
Will the feedback pulses from the Sigma Delta ADC add noise to the source signal? ( Mic )
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.fd.com.my
www.mercedes.com.my
Comments
A dedicated ADC will always be better, can be faster, probably has less noise. More flexible
depends on what you're comparing. Some external ADCs may not be very flexible at all.
Neither the Propeller-based ADC nor most external ADCs will take much code to implement.
It's hard to compare them on this.
The feedback pulses will add noise to the signal source. How much noise and whether that
will make much difference will depend as much on layout and care in filtering and shielding
as it does on the method used for ADC.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (Paul Baker (Parallax)) : 3/12/2008 1:58:29 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.fd.com.my
www.mercedes.com.my
*Peter*
I'd rather not use a dedicated chip like the MCP3208.
Would someone please point me to the simplest circuit and supporting code?
Thanks for your help.
Jim
Peter Verkaik then posted the following circuit:
So somebody with knowledge of the Propeller could write code to generate a PWM signal on the ADC out, and then read the state of ADC in.
Kind regards,
Robot Freak
Have you looked at the AN001 application note? This describes the sigma-delta ADC we've been talking about including code to make it work. You can find this off Parallax's Propeller page. Go to that, then Downloads, then you'll see the link.
Robot Freak,
william chan also posted a slow simple ADC that works much the same way: http://forums.parallax.com/showthread.php?p=714954.
Post Edited (Mike Green) : 3/12/2008 3:53:59 PM GMT
It also has a way of balancing out any leakage effects within the capacitors when you use two·that are identical.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Although you could use an ADC to read a pot there is another way and that is simply to add a capacitor and treat the circuit as an RC timing circuit. There are numerous examples of doing this on the prop but simply it's a matter of either charging/discharging the cap and measuring the time it takes to switch levels. So your pot would be a two terminal device variable resistor in this instance instead of a three terminal voltage divider. BTW, only one I/O pin is required.
*Peter*
P.S. mynet43, you should ask this on a new thread as this thread was started by William and you could end up "hijacking" the thread which is a big no-no.
Post Edited (Peter Jakacki) : 3/12/2008 10:54:07 PM GMT
look for the·labs sticky in the main prop forum, then go down to the counters lab. One experiment goes into detail about using the counters for sigma delta in an RC/Time sort of way, minimal coding, good results.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
E3 = Thought
http://folding.stanford.edu/·- Donating some CPU/GPU downtime just might lead to a cure for cancer! My team stats.
P.S. mynet43, you should ask this on a new thread as this thread was started by William and you could end up "hijacking" the thread which is a big no-no.
Don't worry, any topics about ADC is fine on this thread.
Does anyone know what happens if the capacitor value is too small?
Answer : The sampled value will hover around 0.5 of max value.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.fd.com.my
www.mercedes.com.my
Mike's answer pointed me to the answer I was asking for. Other answers pointed me to even simpler solutions.
Thanks all for the great support!
Jim