<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ideawaza.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=27.106.85.70</id>
	<title>IdeaWazaWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://ideawaza.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=27.106.85.70"/>
	<link rel="alternate" type="text/html" href="https://ideawaza.com/wiki/Special:Contributions/27.106.85.70"/>
	<updated>2026-11-28T11:18:31Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>https://ideawaza.com/index.php?title=Archive:Comparator_applications&amp;diff=104151</id>
		<title>Archive:Comparator applications</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Archive:Comparator_applications&amp;diff=104151"/>
		<updated>2021-04-30T09:18:42Z</updated>

		<summary type="html">&lt;p&gt;27.106.85.70: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{context|date=March 2014}}&lt;br /&gt;
A [[comparator]] is an electronic component that compares two input voltages. Comparators are closely related to [[operational amplifier]]s, but a comparator is designed to operate with positive feedback and with its output saturated at one power rail or the other. An op-amp can be pressed into service as a poorly performing comparator if necessary, but its [[slew Rate]] will be impaired.&lt;br /&gt;
&lt;br /&gt;
== Comparator ==&lt;br /&gt;
&lt;br /&gt;
:[[Image:Op-Amp Comparator.svg|200px]]&lt;br /&gt;
&lt;br /&gt;
{{main|Comparator}}&lt;br /&gt;
&lt;br /&gt;
[[Bistability|Bistable]] output that indicates which of the two inputs has a higher voltage. That is,&lt;br /&gt;
:&amp;lt;math&amp;gt; V_{\text{out}} = \begin{cases} V_{\text{S}+} &amp;amp; \text{if } V_1 &amp;gt; V_2, \\ V_{\text{S}-} &amp;amp; \text{if } V_1 &amp;lt; V_2, \\ 0 &amp;amp; \text{if } V_1 = V_2, \end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;V_{\text{S}+}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V_{\text{S}-}&amp;lt;/math&amp;gt; are nominally the positive and negative supply voltages (which are not shown in the diagram).&lt;br /&gt;
&lt;br /&gt;
== Threshold detector ==&lt;br /&gt;
[[file:Op-Amp Schmitt Trigger.svg|thumb|Circuit diagram for threshold detector with hysteresis]]&lt;br /&gt;
	&lt;br /&gt;
The threshold detector with [[hysteresis]] consists of an [[operational amplifier]] and a series of [[resistors]] that provide hysteresis.&amp;lt;ref&amp;gt;{{cite web|title=AN-49 Application Note, Rev. A|url=http://www.analog.com/media/en/technical-documentation/application-notes/AN-849.pdf|publisher=[[Analog Devices]]|accessdate=26 August 2017|format=PDF}}&amp;lt;/ref&amp;gt;{{rp|5}}&amp;lt;ref&amp;gt;{{cite web|author1=Chaniotakis|author2=Cory|title=MIT OCW: Operational Amplifier Circuits: Comparators and Positive Feedback|url=https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-071j-introduction-to-electronics-signals-and-measurement-spring-2006/lecture-notes/24_op_amps3.pdf|publisher=[[Massachusetts Institute of Technology]]|accessdate=26 August 2017|format=PDF|date=2006}}&amp;lt;/ref&amp;gt;{{rp|7}}&amp;lt;ref&amp;gt;{{cite web|first1=Art|last1=Kay|first2=Timothy|last2=Claycomb|title=Comparator with Hysteresis Reference Design|url=http://www.ti.com/lit/ug/tidu020a/tidu020a.pdf|publisher=[[Texas Instruments]]|accessdate=26 August 2017|format=PDF|date=2014}}&amp;lt;/ref&amp;gt; Like other detectors, this device functions as a [[voltage]] switch, but with an important difference. The state of the detector output is not directly affected by input voltage, but instead by the voltage drop across its input terminals (here, referred to as Va). From [[Kirchhoff&#039;s circuit laws|Kirchhoff&#039;s Current Law]], this value depends both on Vin and the output voltage of the threshold detector itself, both multiplied by a resistor ratio.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;V_a={R_1 \over {R_1 + R_2}}V_{in} + {R_5 \over {R_1 + R_2}}V_{THRout}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unlike the zero crossing detector, the detector with hysteresis does not switch when Vin is zero, rather the output becomes Vsat+ when Va becomes positive and Vsat- when Va becomes negative. Further examination of the Va equation reveals that Vin can exceed zero (positive or negative) by a certain magnitude before the output of the detector is caused to switch. By adjusting the value of R1, the magnitude of Vin that will cause the detector to switch can be increased or decreased. Hysteresis is useful in various applications. It has better noise immunity than the level detector, so it is used in interface circuits. Its positive feedback has a faster transition, so it is used in timing applications such as frequency counters.  It is also used in astable multivibrators found in instruments such as function generators.&lt;br /&gt;
{{clear}}&lt;br /&gt;
&lt;br /&gt;
== Zero crossing detector ==&lt;br /&gt;
A &#039;&#039;zero crossing detector&#039;&#039; is a comparator with the reference level set at zero. &lt;br /&gt;
It is used for detecting the zero crossings of AC signals. It can be made from  an [[operational amplifier]] with an input voltage at its positive input {{clarify|date=August 2017|reason=Which diagram?| text=(see circuit diagram)}}.&lt;br /&gt;
&lt;br /&gt;
When the input voltage is positive, the output voltage is a positive value, when the input voltage is negative, the output voltage is a negative value. The magnitude of the output voltage is a property of the operational amplifier and its power supply.&lt;br /&gt;
&lt;br /&gt;
Applications include converting an analog signal into a form suitable to use for frequency measurements, in [[phase locked loop]]s,  or for controlling power electronics circuits that must switch with a defined relationship to an alternating current waveform.&lt;br /&gt;
&lt;br /&gt;
This detector exploits the property that the instantaneous frequency of an [[Frequency modulation|FM]] wave is approximately given by&lt;br /&gt;
&amp;lt;math&amp;gt;f_i=\frac{\Delta t}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\Delta t&amp;lt;/math&amp;gt; is the time difference between adjacent zero crossings of FM wave&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;ref&amp;gt;[http://sound.whsites.net/appnotes/an005.htm Elliott Sound Products] Application Notes : Zero Crossing Detectors and Comparators&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schmitt trigger ==&lt;br /&gt;
&lt;br /&gt;
{{main|Schmitt trigger}}&lt;br /&gt;
&lt;br /&gt;
A [[bistable multivibrator]] implemented as a [[comparator]] with [[hysteresis]].&lt;br /&gt;
&lt;br /&gt;
[[Image:Op-Amp Schmitt Trigger.svg|300px]]&lt;br /&gt;
&lt;br /&gt;
In this configuration, the input voltage is applied through the [[Voltage divider#Resistive_divider|voltage divider]] formed by &amp;lt;math&amp;gt;{R_1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;{R_2}&amp;lt;/math&amp;gt; (which may be the source internal resistance) to the non-inverting input and the inverting input is grounded or referenced. The hysteresis curve is non-inverting and the switching thresholds are &amp;lt;math&amp;gt;\pm \frac{R_1}{R_2}V_{\text{sat}}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;V_{\text{sat}}&amp;lt;/math&amp;gt; is the greatest output magnitude of the operational amplifier.&lt;br /&gt;
&lt;br /&gt;
{{clear}}&lt;br /&gt;
&lt;br /&gt;
[[File:Op-Amp Inverting Schmitt Trigger.svg|300px]]&lt;br /&gt;
&lt;br /&gt;
Alternatively, the input source and the [[electrical ground|ground]] may be swapped. Now the input voltage is applied directly to the inverting input and the non-inverting input is grounded or referenced. The hysteresis curve is inverting and the switching thresholds are &amp;lt;math&amp;gt;\pm \frac{R_1}{R_1 + R_2} V_{\text{sat}}&amp;lt;/math&amp;gt;. Such a configuration is used in the [[#Relaxation_oscillator|relaxation oscillator]] shown below.&lt;br /&gt;
&lt;br /&gt;
== Relaxation oscillator ==&lt;br /&gt;
&lt;br /&gt;
{{main|Relaxation oscillator}}&lt;br /&gt;
&lt;br /&gt;
[[File:Op-Amp Relaxation Oscillator.svg|300px]]&lt;br /&gt;
&lt;br /&gt;
By using an [[RC network]] to add slow [[negative feedback]] to the inverting [[#Schmitt_trigger|Schmitt trigger]], a [[relaxation oscillator]] is formed. The feedback through the RC network causes the Schmitt trigger output to [[oscillate]] in an endless symmetric [[square wave]] (i.e., the Schmitt trigger in this configuration is an [[astable multivibrator]]).&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Electronic amplifiers]]&lt;br /&gt;
[[Category:Analog circuits]]&lt;/div&gt;</summary>
		<author><name>27.106.85.70</name></author>
	</entry>
</feed>