Great! Actually, if you looked at the time between pulses, rather than the number of pulses in a period, I guess you might get a more accurate speed value?
but what about having a deep sleep with a setWatch() on a pin with a coil connected
Hmm, maybe - but then why not just use a reed switch instead of the coil and you could do everythig, with great battery life :)
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.
Great! Actually, if you looked at the time between pulses, rather than the number of pulses in a period, I guess you might get a more accurate speed value?
Hmm, maybe - but then why not just use a reed switch instead of the coil and you could do everythig, with great battery life :)