Kevin dca.net> writes: > > 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. I use a simple averaging for this. I have a thermometer where 18F2542 reads LM34 and displays temp on LCD. The ADC reads 5 samples with 10 ms delay, then average is used to calculate temp and display it in C or F. Very simple filter, but god enough to prevent large accidental spikes due to noise. Sergey http://beaglerobotics.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist