Report as Inappropriate

You are reporting a comment on Filament Width Sensor Prototype Version 3 as a violation of the Thingiverse Terms of Service. Thank you for taking the time to bring this matter to our attention. To help our team best respond to this issue please take a few moments to describe what brought this matter to your attention.

The parameter widthfilterparam does not affect the time constant linearly - see the link for the formula that relates the widthfilterparam to the time constant. If you don't want to mess with formulas, you can change it and see what happens - the range is 255 - will provide no filtering, 1 - provides longest time constant.

I did not profile the main routine, but I did some tests where I added debug I/O so that a high pulse was output when the main loop finished and also when the interrupt started and confirmed that the main loop ran with time to spare within the interrupt cycle.

Lowpass filter was there to avoid customer support issues where casual users might assume there is a problem if they see the output vary constantly. I suspect that some filtering is needed but it probably can be reduced.