Tachometer Rpm Speed Meter Using Ir Sensor And Arduino, Here is one simple solution.