ESP32 features a peripheral called pcnt - pulse counter, which allows counting pulses on any GPIO pin, combined with a timer. We can entirely count the number of pulses over time to calculate the frequency. And here is how I use it to measure the frequency with Felini.

Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.