maybe worth having a look at post can-an-arduino-perform-this-task-pulse-counter which is also measuring RPM
what microcontroller are you using?
maybe worth having a look at post can-an-arduino-perform-this-task-pulse-counter which is also measuring RPM
what microcontroller are you using?