> Anybody got a good averaging algorithm? > > I've got a stream of numbers from 0 to 15 coming out of a PIC '620 > comparator representing temperature of an appliance. When I turn on > the flourescent lamp on my bench, the program...... I have another question about this. One of my pic aplications is a cow scale, I do my best to keep it still but you can imagine how the cow listen to me, it don't keep still at all. The filtering I'm doing is: VAL=(LASTVAL/7+NEWVAL)/8 I know thie is not the best way, is the median average better in this case? Regards, Octavio ====================================================== Octavio Nogueira - e-mail: nogueira@mandic.com.br http://www.geocities.com/~oct_nogueira "ProPic" Production PIC Programmer Windows under US$20 ======================================================