You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Nikos, thank you for the code, works well with proper edges, e.g. from function generator.
I use your module for RPM measurement on my CNC DC-spindle. I added a line-follower-module for RPM measurement, which provides a pretty good, but not perfect rectangle edge.
Bouncing I suppressed with 0.1 nF capacitor at input, and the following code hack in your module.
Although I was not able to see any bouncing on my input signal, I found similar issues that were solved by configuring the glitch filter. More info here: espressif/arduino-esp32#8368
Hi Nikos, thank you for the code, works well with proper edges, e.g. from function generator.
I use your module for RPM measurement on my CNC DC-spindle. I added a line-follower-module for RPM measurement, which provides a pretty good, but not perfect rectangle edge.
Bouncing I suppressed with 0.1 nF capacitor at input, and the following code hack in your module.
Any better / alternative idea ?
Greetings from Wolf Ludwig, ludwolf@t-online.de :-)
void IRAM_ATTR onRise()
{
portENTER_CRITICAL_ISR(&_FreqCountESP::sMux);
if(digitalRead(FreqCountESP.mPin)){
_FreqCountESP::sCount++;
}
portEXIT_CRITICAL_ISR(&_FreqCountESP::sMux);
}
The text was updated successfully, but these errors were encountered: