I'm working on building a circuit that will be powered by a 6.3 volt sinusoidal source. I need to convert the sine wave to a square pulse in order to connect it to a counter that will be connected to a seven segment display. I want the display to count to 8 and then trigger a relay to power an led.
I'm trying to simulate the circuit in PSpice before building it, and I'm stuck trying to convert the input. After searching on here I believe I can do it with a comparator circuit, but I'm not sure how to calculate the resistor value and what is the value of Vref? Next, what is the best way to control the frequency in order for the counter to change every second? On a side note, I tried looking a schmitt triggers first because it seemed like they could be used to control the frequency and the conversion of the sine wave. Would a schmitt trigger work better? Both circuits seem very similar. Any help would be appreciated. I've been looking for awhile and haven't been able to figure any of this out. I'm attaching a simple block diagram. I'm not sure about the dividing by 60 part.
I'm trying to simulate the circuit in PSpice before building it, and I'm stuck trying to convert the input. After searching on here I believe I can do it with a comparator circuit, but I'm not sure how to calculate the resistor value and what is the value of Vref? Next, what is the best way to control the frequency in order for the counter to change every second? On a side note, I tried looking a schmitt triggers first because it seemed like they could be used to control the frequency and the conversion of the sine wave. Would a schmitt trigger work better? Both circuits seem very similar. Any help would be appreciated. I've been looking for awhile and haven't been able to figure any of this out. I'm attaching a simple block diagram. I'm not sure about the dividing by 60 part.
Attachments
-
3 KB Views: 23