Oversampling analog to digital readings
by
Published on - 15th October 2010 17:51
Number of Views: 10840
Darrel Taylor has a great oversampling include file. This can give you a 10 through 16 bit result from a 10 bit A/D PIC (at the cost of a some micro or milliseconds).
You've probably noticed that when using the Analog to Digital converter, the numbers are NEVER stable. At best, the result will always be bouncing back and forth between two numbers.
While it's extremely annoying, there is a reason for it, and the number of times it bounces between those two numbers is actually indicating the values of more bits of resolution that are not included in the original 10-bit result.
This effect can be exploited to increase the effective number of bits in the result.
By taking a number of consecutive samples and averaging the results with a lower divisor, you can get up to 16-bit accuracy from that poor little 10-bit converter.
http://www.darreltaylor.com/DT_Analog/
An explanation of the Oversampling technique can be found on Wikipedia.
http://en.wikipedia.org/wiki/Oversampling
Re: PIC temperature, when is it too hot
In all the years I've been using PICs I've NEVER had one get even slightly warm.
tumbleweed Today, 15:47They usually only pull a few 10's of mA's max, but I suppose if you had all the IO pins trying to drive too much...