@NoobJS, it depends what the callback has to do... 14000 / 60 = 234 events per second... You can try...
The setup for doing something like that is usually a bit different: a counter is connected to the pulse sensor and is made to measure for a calibrated time. The counts are then translated into RPM. Checkout this https://www.espruino.com/STM32+Peripherals out.
With the setWatch() you may try by making sure nothing else is eventing and watch only for a given time.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@NoobJS, it depends what the callback has to do... 14000 / 60 = 234 events per second... You can try...
The setup for doing something like that is usually a bit different: a counter is connected to the pulse sensor and is made to measure for a calibrated time. The counts are then translated into RPM. Checkout this https://www.espruino.com/STM32+Peripherals out.
With the setWatch() you may try by making sure nothing else is eventing and watch only for a given time.