Odysseas
Member
Hi there,
I want to count the time with a µController (counting the 50 Hz power line freq). For this, I need to turn the sine-wave into a square signal with a schmitt trigger.
Now I have no idea what values to use for the hysteresis resistors. I'd have guessed the pre-resistor to be, say 1k, and the feedback-loop resistor 10 Ohms??? Would that work? And btw, can I use the LM 358 (using only one channel), it's the cheapest Op-Amp I've found. I want to use the 6 Volt out from a simple transformer. Will I need a galvanic isolation between the input signal for the Op-Amp and it's power supply??
Sorry for being so unexperienced with Schmitt Triggers...
Many thanx
I want to count the time with a µController (counting the 50 Hz power line freq). For this, I need to turn the sine-wave into a square signal with a schmitt trigger.
Now I have no idea what values to use for the hysteresis resistors. I'd have guessed the pre-resistor to be, say 1k, and the feedback-loop resistor 10 Ohms??? Would that work? And btw, can I use the LM 358 (using only one channel), it's the cheapest Op-Amp I've found. I want to use the 6 Volt out from a simple transformer. Will I need a galvanic isolation between the input signal for the Op-Amp and it's power supply??
Sorry for being so unexperienced with Schmitt Triggers...
Many thanx