I'm confused with the next issue from school that I can't figure out and wasn't able to solve (this is homework already graded, but the teacher refused to explain me).
I was asked to design and implement a zero crossing detector using an op-amp (any op-amp, even the 741). I understand there are several ways to do this with opto, transformers,etc.
But the real issue was that this device must be able to detect the zero crossing and when the signal is at 90 degrees (in the positive and negative cycle).
So I made the circuits but separately. As in the next window detector:
(between 4.5 V and 5.5 V ) and
A non-zero level detector modified with the DC voltage source set to zero volts. If the sin-wave input voltage (Vin) is less than (Vref), the output remains at the maximum negative level. When Vin exceeds Vref, the output reaches its maximum positive value.
But if the output of the window is passed to the level detector it gets wrong result, since the level detector isn't a sinus signal but the square one, so how must they be wired together to make the 2 functions at the same time?
And is it valid to apply superposition to get the transfer function?
Thanks for your help.