pyr0ball / pyr0piezo

An AVR/ARM based piezoelectric sensor for use in ultra-precise applications
https://docs.pyroballpcbs.com/
Other
71 stars 23 forks source link

Separate trigger duration output and trigger reset delay #28

Closed pyr0ball closed 5 years ago

pyr0ball commented 5 years ago

Currently the trigger output pulse tied to the piezo interrupt function is partially governed by the delay length of the main loop function. I believe this may be part of what's causing the auto bed level on the Monoprice Delta Mini to prematurely trigger on the second tap. To fix it, I need to separate the actual pulse length out from the loop delay duration, and make sure there are some checks in place that assure the trigger delay function doesn't exceed the length of the loop delay to avoid a premature cutoff.