Always nice to hear things are working.
Thanks for letting me know peu.
<br>
DT
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
After looking closely at my code, I realized that I had tried to tweak DT's code.... as always, likely a mistake....
Went back to the original and it is working more like need. Further testing.
Move along, Nothing to see here.
Bo
Bookmarks