Hi all,
I have the need to slow things down a bit. I'm running a 18F1330 at 32 MHz executing a sense loop for ultrasonics each 32 mS. I have tried to use DT's averaging routine with a 250 reading average, but it still reacts way too fast. I need to dampen it to a 2 or 3 second response so that it doesn't drive the mechanical parts nuts.

It doesn't look like I can just change the AvgCount to a larger variable without messing it up.

Anybody ran into this before?

Thanks for any input while I try and think through this.
Bo