So, an op-amp will convert a sine wave into a square wave.
No.
Simplified: An opamp, short for operational amplifier, is a differential amplifier with a very high gain. This universal amplifier is set up for specific operation by adding a suitable feedback network. Depending on the kind of feedback network the operational amplifier can be used for various purposes such as,but not exclusively, e.g.:
- linear amplifier
- filter
- non-linear amplifier (e.g. guitar distortion)
- analog math element (adder, subtractor, integrator, differentiator)
- lots more
You'll find lots of examples and tutorials easily with a quick web search.
So, an op-amp will convert a sine wave into a square wave.
One can use an opamp as a comparator, but this is not recommended. An opamp is not dsigned to go into saturation, which is, however, what happens when used as a comparator. Most opamps will be rather slow to come out of saturation. There are even examples of opamps which flip the output when saturated.
A comparator circuit on the contrary is designed to switch very fast. It will not show the lag or even flipping of the output. The design of opamps and comparators may seem similar, but it is loosely related at best.
this guy on you tube, built a schmitt trigger from 2 transistors-
A Schmitt-trigger is not a comparator. My impression is you're mixing up terms and concepts. A Schmitt-trigger circuit is one that reacts on the input signal with two different thresholds, typically:
- a high level threshold to turn on
- a low level threshold to turn off
This is used to make the input less sensitive to a noisy input signal. You will also find heaps on detailed info with a quick web search.
Would someone like to draw this little circuit out for me?
I doubt you'll find someone here to do this chore for you. Why don't yu give it a try yourself and show us your result? You can even use a simulator like e.g. falstad or LTSpice to check your analysis without building the real thing.
So what is the op- amp version?
Why use an opamp when 2 transistors are enough?
But if you insists: There are also tons of tutorials on this on the internet.
Obviously you know how to use a search engine, otherwise you wouldn't have found us.
You're welcome to ask specific questions when you fail to understand what's already availabel, but we're not going to do the search for you.