Peter Onion wrote: > If you already have the code in place for IIR filter, and it has > improved things, then I would try increasing the number of taps in your > filter so that more samples are taken into account. Personally IIR > filters give me nightmares so I stick to FIR ones where I can make a > reasonable prediction of their behaviour with nothing more that a pencil > and a sheet of squared paper ;-) Not all IIR filters are hard to analize or finnicky. Consider FILT <-- FILT + FF*(NEW - FILT) This is a simple single pole low pass filter, and the equivalent of an analog R/C filter. That's about as easy as it gets. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist