i am trying to understand how to convert sine wave to square wave:
i found this over the internet:
**broken link removed**
however i didnt understand some points and i will be happy for explanations:
1. where is connect the second input of the operational amplifier? (i see that it has only one input, however as i know the operational amplifier has 2 inputs)
as u can c, pin1 of the device is grounded. so when the voltage at pin3 is positive, the output goes to +Vsat; 'n when the voltage at pin3 is negative, the output goes to -Vsat. thus, the sine wave at the input is converted to a square wave at the output of the op-amp (oh yes, the schmitt trigger is an application of the op-amp).
hope this helped
soi want to understand something..can i connect the capacitor derectly to op-amp that the second input to zero and then i will have a sine to square wave converter...
If you are going to use an opamp, you MIGHT want to add a little positive feedback to avoid oscillation. It may not be necessary depending on your application, your input an d your opamp.
In general, though you CAN use an opamp like a comparator, (and it often is) it is always better to use an IC which is designed to be a comparator. Like LM311 & similar.
No, I meant POSITIVE feedback (or hysteresis, if you prefer). And, I agree with rohitkhanna that a comparator might be better; but in many applications an opamp will work just fine.