Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

sine to square wave converter

Status
Not open for further replies.

yanivdan98

Newbie level 6
Joined
Dec 17, 2012
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,368
hi

i am trying to understand how to convert sine wave to square wave:

i found this over the internet:

http://www.wenzel.com/documents/waveform.html

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)

2. why do we need the capacitor?

thanks alot
 

barry

Advanced Member level 5
Joined
Mar 31, 2005
Messages
5,006
Helped
1,096
Reputation
2,202
Reaction score
1,080
Trophy points
1,393
Location
California, USA
Activity points
27,415
That's not an opamp. If you read the text, it tells you it's a schmitt trigger, it said nothing about opamps.

You need to the capacitor so that the input to the schmitt trigger doesn't go below the negative rail.
 

bijaypaudel

Member level 1
Joined
Dec 14, 2011
Messages
32
Helped
4
Reputation
8
Reaction score
4
Trophy points
1,288
Activity points
1,489
to get the square wave from sinusodial wave you can simply connect input waveform to two pins + and - of a comparator i.e. LM324
 

vishnu.mthss

Newbie level 6
Joined
Jan 3, 2011
Messages
13
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Location
Bangalore
Activity points
1,355
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 :)
 

yanivdan98

Newbie level 6
Joined
Dec 17, 2012
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,368
thanks you all my friends!

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...

only to be sure..it right?
 

barry

Advanced Member level 5
Joined
Mar 31, 2005
Messages
5,006
Helped
1,096
Reputation
2,202
Reaction score
1,080
Trophy points
1,393
Location
California, USA
Activity points
27,415
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.
 

vishnu.mthss

Newbie level 6
Joined
Jan 3, 2011
Messages
13
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Location
Bangalore
Activity points
1,355
@barry: did u mean 'negative feedback to avoid oscillations'? 'cause i believe positive feedback makes oscillations, rather than preventing them!
 

rohitkhanna

Banned
Joined
May 1, 2012
Messages
341
Helped
76
Reputation
150
Reaction score
75
Trophy points
1,308
Location
New Delhi, India
Activity points
0
i think he meant 'hysteresis'.

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.
 

barry

Advanced Member level 5
Joined
Mar 31, 2005
Messages
5,006
Helped
1,096
Reputation
2,202
Reaction score
1,080
Trophy points
1,393
Location
California, USA
Activity points
27,415
@barry: did u mean 'negative feedback to avoid oscillations'? 'cause i believe positive feedback makes oscillations, rather than preventing them!
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.
 

vishnu.mthss

Newbie level 6
Joined
Jan 3, 2011
Messages
13
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Location
Bangalore
Activity points
1,355
sorry but i lost u guys there..! can u please elaborate on how hysteresis can be reduced by positive feedback?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top