I want to measure rpm of motorcycle's engine. The engine is 4 stroke, one cylinder. So in one cycle, the crankshaft rolls 2 revolutions, the spark plug sparks 1 time. So I need to count time the spark plug sparks in one second to measure rpm.
To count time the spark plug sparks, I use the hall sensor place near motorcycle spark plug wire, then use an op-am to compare the Voltage that hall sensor gives back with the V ref. Then read the result form the op-am by the MCU.
Is that a good idea? Any suggest ?
Thank you guys. Sorry for my English.