I'm trying to measure the speed of a washing machine motor. The motor has a speedometer attached to it, which generates a sine wave with frequency equal to rotation frequency of the motor. I'm attaching the image of the sensor output signal below:
I'm trying to convert the signal to a 0-5V TTL signal for a MCU to measure the frequency. What is the best approach ?