{"id":16,"date":"2006-07-28T03:28:23","date_gmt":"2006-07-28T02:28:23","guid":{"rendered":"http:\/\/elektroink.de\/2006\/07\/27\/komparator-mit-hystereseschmitt-trigger\/"},"modified":"2009-06-29T11:38:48","modified_gmt":"2009-06-29T11:38:48","slug":"komparator-mit-hystereseschmitt-trigger-2","status":"publish","type":"post","link":"https:\/\/transistorgrab.de\/en\/2006\/07\/28\/komparator-mit-hystereseschmitt-trigger-2\/","title":{"rendered":"Comparator With Hysteresis(Schmitt-Trigger)"},"content":{"rendered":"<p>In some cases one needs a comparator with a hysteresis. This curcuit suggestion shows further the possibility of a inverting or non-inverting operation.<\/p>\n<div style=\"text-align:center;\"><a onclick=\"window.open('http:\/\/transistorgrab.de\/figures\/komparator_mit_hysterese-1.png','popup','width=658,height=563,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false\" href=\"https:\/\/i0.wp.com\/transistorgrab.de\/figures\/komparator_mit_hysterese-1.png\"> <img data-recalc-dims=\"1\" decoding=\"async\" title=\"Komparator Mit Hysterese und Eingangsspannungsteilern\" src=\"https:\/\/i0.wp.com\/transistorgrab.de\/figures\/komparator_mit_hysterese-1-small.jpg?w=474\" alt=\"Komparator Mit Hysterese und Eingangsspannungsteilern\" \/><\/a><a onclick=\"window.open('http:\/\/transistorgrab.de\/figures\/komparator_mit_hysterese-1.png','popup','width=658,height=563,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false\" href=\"http:\/\/transistorgrab.de\/figures\/komparator_mit_hysterese-1.png\"><br \/>\n<\/a><\/div>\n<div>The ciruit above shows a typical comparator circuit with addional input voltage dividers.<br \/>\nOn the left side are two voltage dividers. <em>R4<\/em> and <em>R5<\/em> divide the input voltage <em>V1<\/em> and generate the voltage <em>V3<\/em>. <em>R6<\/em> and <em>R7<\/em> divide the input voltage <em>V2<\/em> and generate <em>V4<\/em>.<br \/>\nWith <em>R3<\/em> and <em>R2<\/em> the histeresis will be set, the use of <em>R1<\/em> is only this of a current limiter to following circuits.<br \/>\nThe maximum output voltage of this circuit depends on the supply voltage of the OP.<br \/>\nFor the following observations all possible losses are neglegted.<span style=\"font-size:13pt;\"> <\/span><\/div>\n<div><span style=\"font-size:13pt;\"><strong>Observation of an inverting Schmitt-Trigger<\/strong><\/span><\/div>\n<div style=\"text-align:center;\"><a onclick=\"window.open('http:\/\/transistorgrab.de\/figures\/komparator_invertierend.png','popup','width=658,height=563,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false\" href=\"http:\/\/transistorgrab.de\/figures\/komparator_invertierend.png\"> <\/a><a onclick=\"window.open('http:\/\/transistorgrab.de\/figures\/komparator_invertierend.png','popup','width=658,height=563,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false\" href=\"https:\/\/i0.wp.com\/transistorgrab.de\/figures\/komparator_invertierend.png\"><img data-recalc-dims=\"1\" decoding=\"async\" title=\"Komparator Mit Hysterese und Eingangsspannungsteilern\" src=\"https:\/\/i0.wp.com\/transistorgrab.de\/figures\/komparator_invertierend-small.png?w=474\" alt=\"Komparator Mit Hysterese und Eingangsspannungsteilern\" \/><\/a><a onclick=\"window.open('http:\/\/transistorgrab.de\/figures\/komparator_invertierend.png','popup','width=658,height=563,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false\" href=\"http:\/\/transistorgrab.de\/figures\/komparator_invertierend.png\"><br \/>\n<\/a><\/div>\n<p>For the following observations the positive supply voltage is defined to 5 Volts, the negative supply voltage is defined to 0 Volt(supply voltage not shown in the figure).<em><br \/>\nR2<\/em> and  <em>R3<\/em> are defined to 10\u00a0k\u03a9. <em>V3<\/em> will be set as reference voltage to a value of 2.5\u00a0V.<\/p>\n<p><em>V3<\/em> is the reference voltage and defines when the comparator will switch. If the voltage <em>V4<\/em> on the inverting input (\u2212) sinks below the voltage <em>V+<\/em> then the output voltage <em>Va<\/em> of the OP will raise to the value of the positive supply voltage. If the voltage <em>V4<\/em> is higher than <em>V+<\/em> then the output voltage will be the value of the negative supply voltage.<\/p>\n<p><em>R2<\/em> causes a positive feedback.<\/p>\n<p>Lets take a look on the following cases:<\/p>\n<p><strong>1st case<\/strong>: <em>V4<\/em> is higher than <em>V+<\/em><br \/>\nThat leads to: the ouput of the OP has ground potential. So <em>V+<\/em> can be calculated as follows:<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/transistorgrab.de\/figures\/200611112335.jpg?resize=350%2C43\" border=\"0\" alt=\"\" hspace=\"4\" vspace=\"4\" width=\"350\" height=\"43\" \/>.<br \/>\n<em>V3<\/em> is 2.5\u00a0V. Thus <em>V+<\/em>=2.5\u00a0V*(10\/20)=1.25\u00a0V.<br \/>\nFor the comparator to switch\u00a0 (when <em>Va<\/em>=5V), <em>V4<\/em> needs to be less than <em>V+<\/em>, that means less than 1.25\u00a0V.<\/p>\n<p><strong>2nd case<\/strong>: <em>V4<\/em> is less than <em>V+<\/em><br \/>\nThe output is on the level of the positve supply voltage(<em>Va <\/em>= 5\u00a0V). <em>Va<\/em> is greater than <em>V3<\/em>. The voltage divider consisting of <em>R2 <\/em>and <em>R3 <\/em>has an offset to the ground wich is the value of <em>V3<\/em>. That needs to be considered in the calculation. The voltage  <em>V+<\/em> is calculated as follows:<\/p>\n<div><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" title=\"V+=V3+((Va\u2212V3)*R3\/(R2+R3))\" src=\"https:\/\/i0.wp.com\/transistorgrab.de\/figures\/200611112346.jpg?resize=258%2C43\" border=\"0\" alt=\"V+=V3+((Va\u2212V3)*R3\/(R2+R3))\" hspace=\"4\" vspace=\"4\" width=\"258\" height=\"43\" align=\"middle\" \/><\/div>\n<p><em>V+<\/em>=2.5\u00a0V+((5\u00a0V\u22122.5\u00a0V)*(10\/20))=3.75\u00a0V. When the value of <em>V4<\/em> is higher than that voltage the comparator switches.<br \/>\nThe histeresis in this case is (3.75\u22121.25)\u00a0V=2.5\u00a0V.<br \/>\nThe comparator is symmetric to the voltage <em>V3<\/em>.<span style=\"font-size:13pt;\"><strong>Observation of a non-inverting Schmitt-Trigger<\/strong><\/span><\/p>\n<p><strong>1st possibility<\/strong><\/p>\n<div style=\"text-align:center;\"><a onclick=\"window.open('http:\/\/transistorgrab.de\/figures\/komparator_falsch_nicht_invertierend.png','popup','width=658,height=563,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false\" href=\"http:\/\/transistorgrab.de\/figures\/komparator_falsch_nicht_invertierend.png\"> <\/a><a onclick=\"window.open('http:\/\/transistorgrab.de\/figures\/komparator_falsch_nicht_invertierend.png','popup','width=658,height=563,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false\" href=\"https:\/\/i0.wp.com\/transistorgrab.de\/figures\/komparator_falsch_nicht_invertierend.png\"><img data-recalc-dims=\"1\" decoding=\"async\" title=\"Komparator nicht-invertierend (falscher Ansatz)\" src=\"https:\/\/i0.wp.com\/transistorgrab.de\/figures\/komparator_falsch_nicht_invertierend-small.png?w=474\" alt=\"Komparator falsch invertierender Betrieb\" \/><\/a><a onclick=\"window.open('http:\/\/transistorgrab.de\/figures\/komparator_falsch_nicht_invertierend.png','popup','width=658,height=563,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false\" href=\"http:\/\/transistorgrab.de\/figures\/komparator_falsch_nicht_invertierend.png\"><br \/>\n<\/a><\/div>\n<p>If you swap the input terminals of the OP, thus connecting <em>V+<\/em> with the inverting input (\u2212) of the OP and <em>V4<\/em> with the non-inverting input (+), the following behaviour occurs:<br \/>\n<em>V+<\/em> is now connected to the inverting input (\u2212) of the OP.<\/p>\n<p><strong>1st case<\/strong>: <em>V4<\/em> is greater than <em>V+<\/em><\/p>\n<p>That leads to: The voltage on (+) is higher than the voltage on (\u2212), the output has therefore the value of the positive supply voltage.(<em>Va<\/em>=+5\u00a0V). <em>V+<\/em> is calculated as in the <em>case 2<\/em> above: <em>V+=<\/em>3.75\u00a0V. For the comparator to switch the voltage on (+) must be lower than the voltage on (\u2212), that means <em>V4<\/em> must be below 3.75\u00a0V.<strong> <\/strong><\/p>\n<p><strong>2nd case:<\/strong> <em>V4<\/em> is less than <em>V+<\/em><\/p>\n<p>That leads to: The Voltage on (+) is lower than the voltage on (\u2212), because of that the output is on ground level(<em>Va=<\/em>0V). The voltage\u00a0 <em>V+<\/em> is calculated as in the <em>1st case<\/em> of the inverting Schmitt-Trigger: <em>V+=<\/em>1.25\u00a0V. For the comparator to switch the voltage on (+) must be higher than <em>V+<\/em>. If <em>V4<\/em> is higher than 1.25\u00a0V the compatator will switch.<br \/>\n<strong>Conclusion<\/strong>:<br \/>\nLet&#8217;s look on the requirements for the switch in case 1 and case 2: for the ouput voltage to go low (<em>Va=<\/em>0V) <strong><em>V4<\/em><\/strong><strong> must be less than 3.75\u00a0V<\/strong>. For <em>Va=<\/em>5\u00a0V, <strong><em>V4<\/em><\/strong><strong> must be higher than 1.25\u00a0V.<\/strong><\/p>\n<p>Let&#8217;s pretend <em>V4<\/em> is 2.5\u00a0V.<br \/>\nThen\u00a0 <strong>both<\/strong> contitions are true. That may lead to a constant switching of the output of the OP between\u00a0 0\u00a0V und 5\u00a0V: We have created an\u00a0 <strong>oszillator<\/strong>.<br \/>\nObviosly this approach does <strong>not work<\/strong>.<\/p>\n<p>What additional possibilities are there?<\/p>\n<p><strong>2. possibility<br \/>\n<\/strong><\/p>\n<div style=\"text-align:center;\"><img data-recalc-dims=\"1\" decoding=\"async\" title=\"Komparator Mit Hysterese\" src=\"https:\/\/i0.wp.com\/transistorgrab.de\/figures\/komparator_invertierend-small.png?w=474\" border=\"2\" alt=\"Komparator Mit Hysterese\" \/><\/div>\n<p>We connect the reference voltage with the inverting input (\u2212) of the OP and connect the voltage to be monitored on <em>V3.<\/em><br \/>\nLet&#8217;s take a look on that 2nd possibility and use the original circuit. On <em>V4<\/em> is now a voltage of 2.5\u00a0V. On <em>V3<\/em> we connect a variable voltage that can change between 0\u00a0V and 5\u00a0V.<\/p>\n<p>What happens now?<br \/>\nAs long as <em>V4 <\/em>is higher than\u00a0 <em>V+<\/em>, then <em>Va=<\/em>0\u00a0V.<\/p>\n<p>With the given values for the devices we can calculate what value has <em>V+ <\/em>depending on <em>V3<\/em>.<\/p>\n<p>Let&#8217;s have a look on the both possible cases.<\/p>\n<p><strong>1st case<\/strong>: <em>V4<\/em> is higher than <em>V+<\/em><br \/>\n<em>Va=<\/em>0\u00a0V. For the comparator to switch <em>V+<\/em> must be higher than<em> V4<\/em> werden. <em>V4 <\/em>is 2.5\u00a0V. <em>V+<\/em> must be higher than 2.5\u00a0V.<\/p>\n<p>The voltage divider R3\/R2 is now between <em>V3<\/em> and 0\u00a0V. The value of <em>R2<\/em> is 10\u00a0k\u03a9, the value of <em>R3<\/em> too. Ohm&#8217;s Law dictates: <em>V+\/R2 = V3\/(R2+R3)<\/em> thus <em>V3 = V+*(R2+R3)\/R2 = 2,5\u00a0V*<\/em>(20)\/10 = 5\u00a0V.<\/p>\n<p>If <em>V3<\/em> is more than 5\u00a0V the comparator will switch.<\/p>\n<p><strong>2nd case<\/strong>: <em>V4<\/em> is less than <em>V+<\/em><br \/>\n<em>Va=<\/em>5\u00a0V. For the comparator to switch <em>V+<\/em> must be less than<em> V4<\/em> werden. <em>V4=<\/em>2,5\u00a0V.<\/p>\n<p>The voltage divider <em>R2\/R3<\/em> is now between 5\u00a0V and <em>V3<\/em>. <em>V+ = V3 + (<\/em>5\u00a0V<em>\u2212V3) * R3\/(R2+R3) = V3 + (<\/em>5\u00a0V <em>\u2212V3) * <\/em>0,5.<\/p>\n<p>After conversion of this equation we get<em> V3 = <\/em>2<em>*V+<\/em> \u22125\u00a0V = 2*2,5\u00a0V\u22125\u00a0V = 0\u00a0V.<\/p>\n<p>With the given values for <em>R2<\/em> and <em>R3<\/em> this comparator is not usable, because in case 1 <em>V3<\/em> needs to be higher than 5\u00a0V and in case 2 less than 0\u00a0V.<\/p>\n<p>But we excluded these conditions at the start of our observations.<\/p>\n<p><strong>Conclusion:<\/strong><br \/>\nThe resistors <em>R2<\/em> and <em>R3<\/em> need other values.<\/p>\n<p>In the <strong>1st case<\/strong> we want to achieve that <em>V+<\/em> is higher than 2.5\u00a0V when <em>V3<\/em> is less than 5\u00a0V.<\/p>\n<p>We define that <em>V+ <\/em>shall be 2.5\u00a0V when<em> V3 =<\/em> 4\u00a0V.<\/p>\n<p>It makes no sense to change both resistors.<\/p>\n<p>We let <em>R2=<\/em>10\u00a0k\u03a9. <em>V3\/(R2+R3)=V+\/R2<\/em>. Thus <em>R3 = (V3\/V+) * R2\u2212R2 = (<\/em>4\/2,5<em>) * <\/em>10\u00a0k\u03a9\u221210\u00a0k\u03a9 = 6\u00a0k\u03a9.<\/p>\n<p>For the <strong>2nd case<\/strong> that leads to: <em> <\/em><\/p>\n<p><em>V+ = V3 + (Va\u2212V3) * R3\/(R2+R3)<\/em>.<\/p>\n<p>Converted for <em>V3<\/em>:<em> <\/em><\/p>\n<p><em>V3 = ((R2\u00a0*\u00a0V+)\u00a0\u2212\u00a0R3*(Va\u2212\u00a0V+))\/R2 =<\/em>((10k\u03a9*2,5\u00a0V)\u22126\u00a0k\u03a9*(2,5\u00a0V))\/10\u00a0k\u03a9 =(2,5\u00a0\u2212\u00a01,5)\u00a0V\u00a0=1\u00a0V.<\/p>\n<p>The calculations shows that this approach brings the desired success.<\/p>\n<p>It is necessary that the resistors R2 and R3 are <strong>not <\/strong>of the same value.<\/p>\n<p><em>R3<\/em> needs to be less than <em>R2<\/em>.<\/p>\n<p>The exact values depend on the desired threshold and on the desired hysteresis.<\/p>\n<p class=\"important\">The components for the non-inverting Schmitt-Trigger need other values than for the inverting if you want to achieve the same hysteresis.<\/p>\n<p>For comparision we put the values of <em>R2<\/em> and <em>R3<\/em> for the non-inverting Schmitt-Trigger into the formulas for the inverting Schmitt-Trigger.<\/p>\n<p>With that values the threshold voltages of <em>V4<\/em> are 1.56\u00a0V and 3.44\u00a0V.<br \/>\nThe hyteresis with these values of\u00a0 <em>R2<\/em> and <em>R3<\/em> in this case is 1.88\u00a0V for the inverting and 4\u00a0V for the non-inverting Schmitt-Trigger.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In some cases one needs a comparator with a hysteresis. This curcuit suggestion shows further the possibility of a inverting or non-inverting operation. The ciruit above shows a typical comparator circuit with addional input voltage dividers. On the left side are two voltage dividers. R4 and R5 divide the input voltage V1 and generate the &hellip; <a href=\"https:\/\/transistorgrab.de\/en\/2006\/07\/28\/komparator-mit-hystereseschmitt-trigger-2\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Comparator With Hysteresis(Schmitt-Trigger)<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[7],"tags":[34,55,53,33,54,31,32],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-operationsverstarker","tag-berechnung","tag-calculation","tag-comparator","tag-hysterese","tag-hysteresis","tag-komparator","tag-schmitt-trigger"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8KIDw-g","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/transistorgrab.de\/en\/wp-json\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/transistorgrab.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/transistorgrab.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/transistorgrab.de\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/transistorgrab.de\/en\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":0,"href":"https:\/\/transistorgrab.de\/en\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"wp:attachment":[{"href":"https:\/\/transistorgrab.de\/en\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/transistorgrab.de\/en\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/transistorgrab.de\/en\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}