Measure time between pulses with ESP32 and interrupt

Don't feel offended your 1st example helped me a lot!

1 Like

Oh, not offended - glad it helped! Just saying it has some rough edges.

If you're testing your application in Wokwi, you can create another independent PWM generator to represent your second motor by selecting it, then press "d" to duplicate.

It easy to deal with max rpm as the pulses (interrupts) are quite frequent, but dealing with minimum rpm is a bit more challenging. At some rpm value below 60 or so, you might just want the rpm to display 0 rather than wait for the next interrupt. Also might need a timeout value that will make the rpm display sero if the interrupts occur too slowly or are stopped.

1 Like

Ahhh clear thanks I'll have it a try layer today

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.