I would have thought it better to use the tach signal as an interrupt.. and every time the interrupt is serviced, check 'millis' and see the time difference.. Divide that result by the number of milliseconds in 1 minute. Average the value over about 10 pulses or so to get a somewhat stable signal and you should have what you are looking for.Then you need to divide that number by the number of pulses per revolution... IE: for most 4cyl it is 2 pulse per rev.You will want very efficient code... if you load down too much process time your RPM result will be inaccurate.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16