On 7/16/06, Kevin wrote: > I have a pic16f88, I am using the 10 bit ADC to read an > LM34DZ. The LM34DZ puts out 10mV per degree F from 0 F to > 100 F. I have the F88 ADC set to use VSS-VDD for reference, > 0 to 5V. > A couple weeks ago I was asking about a digital filter > to improve the accuracy of the ADC reading. Can anybody > provide me one or point to a web page that explains one. > This is strictly a hobby type project, and the LM34DZ will > be used in my house, so no extreme temps will be monitored. > If someone could provide an example with numbers plugged in > I would appreciate it. > > Thanks, > Kevin > You've received two good replies about filtering. One (average five samples) is called an "FIR" filter and the other (moving average) is called an "IIR" filter. Google these terms if you need more information. I would like to add that it's a good idea to use an analog filter before you sample the voltage. It should be a lowpass filter that removes any noise above half the sampling frequency. The digital filtering will work out better if you're not trying to filter aliased noise too. Regards, Mark markrages@gmail -- You think that it is a secret, but it never has been one. - fortune cookie -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist