Building a Window Comparator With a Single Op-Amp

  Рет қаралды 50,743

devttys0

devttys0

Күн бұрын

Here's how to build a window comparator that detects three different voltage levels with just one op-amp! www.analogzoo.com/?p=1330

Пікірлер: 70
@alperenalperen2458
@alperenalperen2458 7 жыл бұрын
Old analog books usually contains a lot of clever circuits as you pointed out. I like to read them as well. Great video.
@RakeshYadav-lu9oc
@RakeshYadav-lu9oc 2 жыл бұрын
can you pleas tell me author name??
@TheCrazyStudent
@TheCrazyStudent 8 жыл бұрын
That's a really interesting little circuit. I will certainly keep it in mind if I ever need to incorporate a window comparator in a future project. Thanks for sharing.
@mex900
@mex900 7 жыл бұрын
Wow, the way you explained this was amazing. This is probably the first time I fully understand the concept of window comparators lol. Great job. Thanks!
@deweywsu
@deweywsu 3 жыл бұрын
Wow. Thank you for giving your video to the internet at large for the rest of us to learn from. I really like the way you've changed the visual by updating the values to show the effect of different inputs. Jim WIlliams would be proud.
@dmeemd7787
@dmeemd7787 4 жыл бұрын
Seriously, I have found some of the absolute best circuit designs or gotten the most 'ah ha!' moments from older books anywhere from Forrest Mims Radio Shack mini notebooks to stuff like you're showing at the intro! There is always so much to learn in the world and I can't learn enough, fast enough and it drives me crazy 😊 -- anyone else relate to any of the aforementioned? Take care! 😊
@harrisaastamoinen
@harrisaastamoinen 3 жыл бұрын
You could slide both low and high thresholds to positive (or negative) by just sliding the non-inverting input of the op-amp with a voltage divider (a trimpot).
@jeffstaley7285
@jeffstaley7285 8 жыл бұрын
Once again a wonderful job of explaining the circuit. I always look forward to new additions to your channel.
@Analogzoo
@Analogzoo 8 жыл бұрын
+Jeff Staley Thanks Jeff, more coming soon!
@SparrowHawkPilot
@SparrowHawkPilot Жыл бұрын
I used this so many tmes in my projects way back when. Nice to see it's appreciated today. Good to see this today! 😊 :-D
@PelDaddy
@PelDaddy 7 жыл бұрын
Awesome little circuit. One of your other vids already inspired me to order that book. It looks to be full of goodies. You do a nice job explaining things. Thanks for sharing.
@RakeshYadav-lu9oc
@RakeshYadav-lu9oc 2 жыл бұрын
can you please tell book name and author??
@subhankarde3300
@subhankarde3300 8 жыл бұрын
Happy New Year Craig. Another Great Video.
@Analogzoo
@Analogzoo 8 жыл бұрын
+Subhankar De Thanks, and the same to you too!
@PapasDino
@PapasDino 8 жыл бұрын
Nicely done Craig, happy new year!
@Analogzoo
@Analogzoo 8 жыл бұрын
+Dino Papas And the same to you too!
@notohypocrisy
@notohypocrisy 4 жыл бұрын
Thanks for the wonderful video clip. Your treatment is quite comprehensive, especially considering you mentioned, at the end, some shortcomings of the circuit. I guess Hysteresis is another one...
@RupertHandford
@RupertHandford 8 жыл бұрын
Cool little circuit, clearly explained. Thanks for sharing. All the best for 2016
@Analogzoo
@Analogzoo 8 жыл бұрын
+rupert handford Thanks, and the same to you!
@ccv3237
@ccv3237 6 жыл бұрын
Very well explained useful circuits. Thank you much.
@twobob
@twobob 4 жыл бұрын
Sadly missed. Come Back :) Great circuit
@friedmule5403
@friedmule5403 5 жыл бұрын
Wow what a neat circuit and wow a great video you have made! I am a noob but could follow every step all the way, thanks to your step by step understanding method. Maybe a little question, could you not make the comparator more precise by using variable resistors instead of standard value resistors?
@k7iq
@k7iq 6 жыл бұрын
I have (or used to have ?) that BB book ! Excellent topic
@Avionics1958
@Avionics1958 4 жыл бұрын
Nicely explained!
@UpcycleElectronics
@UpcycleElectronics 6 жыл бұрын
Thanks for the great explanation and clever circuit. You sold me on the idea of looking for some old databooks and reference notes. I've been playing around with the cheap little $2 Chinese dual volt/current meter circuit lately. They only used 1/2 of the LM358 for their current sense amp on the device. That got me looking into ways of creating a crude auto-ranging design using the other 1/2 of the op amp. I never imagined there was a way of using one op amp for a 3 way comparator (mind blown). I don't want to build a dual polarity supply for a circuit like a simple low resolution meter but it's definitely a little circuit I want to try out. As a simple hobbyist myself, I have had a hard time finding examples of simple and easy to understand switching networks that work. I haven't gone through all of your uploads yet (but will shortly). The two places I've struggled with when it comes to switching networks are how to vary the gain to a meter while maintaining linearity, and how to build a switching network for an adjustable linear power supply somewhere between multiple secondary windings of a transformer and the regulator IC. Both are rather simple design elements. I feel like I'm beginning to understand circuit design well enough to figure these out on my own but I could really use a working example instead of learning to design through the magic smoke of failures. I don't expect you to do anything I ask or request or anything like that. I'm not trying to tell you what to create content about. I'm simply trying to relate an area of interest that seems lacking in visual instruction on this platform. Again, I'm just a simple hobbyist. I got into electronics a few years ago after becoming partially disabled. This account is not monotized, nor do I plan on it becoming so. I'm just here to learn and share a thing or two if I come across something interesting. I added this video to my op amp notes playlist and I'm sure I will add many more of your videos to my list of things to goof around with. Thanks again for taking the time to share and explain this circuit to strangers like me. -Jake
@docfoot316
@docfoot316 4 жыл бұрын
Well explained and learn't alot ,Many thanks
@aduedc
@aduedc Жыл бұрын
Nice circuit. You could use this as a building block for logic circuit with base 3.
@sundayagudosi5184
@sundayagudosi5184 7 жыл бұрын
you have a way of bringing out the genius in people
@ProtoG42
@ProtoG42 8 жыл бұрын
Great job, subscribed!
@Analogzoo
@Analogzoo 8 жыл бұрын
+Proto G Thanks, ditto!
@glenndoiron9317
@glenndoiron9317 4 жыл бұрын
I'd only add that this circuit falls apart under high speed operations, for two reasons. 1. The opamp is being driven into saturation, and it takes time for it to drop from the rail down to 0 volts. 2. Diodes have a capacitance associated with them, which forms a low-pass filter in conjunction with Rin.
@breedj1
@breedj1 8 жыл бұрын
Very interesting!. Thanks for the explanation.
@Analogzoo
@Analogzoo 8 жыл бұрын
+Joost B I thought it was a pretty neat circuit, glad you found it interesting too!
@sundayagudosi5184
@sundayagudosi5184 7 жыл бұрын
great video
@paulp1204
@paulp1204 3 жыл бұрын
Nice circuit indeed. I think the better explanation of the 0.65 V output in the first example would be better started as "the inverting input is held at 0V by the virtual short between the opamp (with feedback path) inputs, and the fact the non inverting input is tied to ground.". It's not set by the diode forward voltage drop, the opamp output is, though.
@LousyPainter
@LousyPainter 2 жыл бұрын
Mega cool! Thanks.
@Myccsf
@Myccsf 8 жыл бұрын
Thanks indeed!
@zinahe
@zinahe 8 жыл бұрын
Happy new year and thanks for sharing. Talking about oldies-but-goodies, do you have other books (beside this and Jim's) that you recommend ?
@Analogzoo
@Analogzoo 8 жыл бұрын
+Zinahe Asnake Any of Jim Williams’ books and/or app notes are excellent reading! "The Art of Electronics" is of course an all-around classic, and a great reference to have around. Jerald Graeme has written several books on op amps (including this one), all of which I liked, and there’s always Walter Jung’s "IC Op-Amp Cookbook" too. For filter design, I really like "RF Circuit Design" by Chris Bowick and "Electronic Filter Design Handbook" by Arthur Williams. If you’re looking to learn about oscillator circuits, IMHO "Crystal Oscillator Circuits" by Robert Matthys is probably the best intro book on the subject. One of my favorite books though is "Modern Electronic Circuits Reference Manual" by John Markus. It’s one of those books that was relevant before you could find everything on the internet (I have the one from 1980), but it has thousands of circuits, each nicely categorized into specific sections, and tells you what book/magazine each circuit came from (which can help lead you to other books on a specific subject of interest). It’s especially useful when you might not know exactly what to Google for, or for just perusing (“Hey, that’s a really useful circuit, I’ll have to keep that in mind for my next project!”).
@zinahe
@zinahe 8 жыл бұрын
+devttys0 Thank a lot. I bought Jung's book (third edition) off ebay. Cheers.
@manne3d
@manne3d 7 жыл бұрын
good stuff thank you Sir
@Flounderhouse
@Flounderhouse 3 жыл бұрын
Maybe instead of using a summing node to offset you can change the non-inverting input to something other than ground?
@fer_fdi
@fer_fdi 5 жыл бұрын
great! thank you very much, excellent
@suppersreadysuppers1822
@suppersreadysuppers1822 8 жыл бұрын
Very interesting and usefull
@fritt_wastaken
@fritt_wastaken 5 жыл бұрын
why add 2 additional diodes, when you can just change your ground point?
@alanh8664
@alanh8664 5 жыл бұрын
Greetings. I assume the op-amp is operated from +5 / -5.
@wilmdrdo1228
@wilmdrdo1228 4 жыл бұрын
Is not the inverting terminal at the virtual ground?
@conqueror1018
@conqueror1018 5 жыл бұрын
Does this circuit really work?? If it does it's amazzzzzing
@klosskopfder1.762
@klosskopfder1.762 4 жыл бұрын
Shouldn't R1 be replaced by R1 * 0.5 in the Formula with two inputs?
@ihatenumberinemail
@ihatenumberinemail 5 жыл бұрын
Neat! I would have answered "Use a $0.1 microcontroller with a built-in ADC" :P
@trevorvanbremen4718
@trevorvanbremen4718 3 жыл бұрын
How about using a voltage divider (2 resistors) on the non-inverting input? I haven't done the math, but my 'Mark-1' brain tells me that this might obviate the need of the summing network?
@wagdysamih8974
@wagdysamih8974 7 жыл бұрын
amazing =D
@avin6602
@avin6602 Жыл бұрын
From which book is that?
@gyrgrls
@gyrgrls 3 жыл бұрын
Schmitt trigger input op-amp
@DevangsinghSankhala
@DevangsinghSankhala 7 жыл бұрын
The question to test a designer's IQ would be this: if you had no other source other than the battery to be tested for voltage levels, how would you design that circuit for battery level indication?
@alphahelix91
@alphahelix91 4 жыл бұрын
Up and down step Gleichrichter auch bei höheren Peaks.
@n3tpr0b3
@n3tpr0b3 8 жыл бұрын
So... the equations for E1 and E2 in the book are wrong, the equation for E1 should be for E2 and vice-versa. Also they are missing a (-) sign in front of the R1/R2 term. Right ?
@n3tpr0b3
@n3tpr0b3 8 жыл бұрын
I think I see what the author has done. If you take V_ and V₊ to be equal in magnitude (absolute values), but opposite in signs i.e. V_ is negative and V₊ is positive, then the equations for Vtl (E2) and Vth (E1) are correct. But if you take them to be with different magnitudes from one another, then the equations don't add up because Vtl (E2) is tied analytically with V₊ and Vth (E1) with V_
@Analogzoo
@Analogzoo 8 жыл бұрын
+n3tpr0b3 Yes, I see what you're saying; the equations in the book are also somewhat ambiguous in that there are two resistors labelled R2. If both R2 resistors are equal value, and if V+ and V- are of equal magnitude, the equations in the book work as-is. If, however, you use the book's equations with the absolute value of ER (the offset voltage), then they will work regardless of the magnitude of V+ and V- or the values of the two R2 resistors, provided you then take the absolute values of the resulting E1 and E2 voltages. Note that in doing so, E1 then becomes the low trip voltage, and E2 is the high trip voltage.
@n3tpr0b3
@n3tpr0b3 8 жыл бұрын
+devttys0 Yeah, that will work too, but then the graph provided will not make sense. I think that the author should have been a bit more specific about it :-)
@Analogzoo
@Analogzoo 8 жыл бұрын
+n3tpr0b3 Agreed, as it's written, it's a bit confusing. :)
@aminnima6145
@aminnima6145 2 жыл бұрын
You make simple circuuts look comlicated... I don't know why
@gamvin2107
@gamvin2107 3 жыл бұрын
I believe the op amp needs a dual power supply. To do the job. Single supply will not do it.
@km4hr
@km4hr 3 жыл бұрын
Why would circuits like this be considered "old?. Has something "new" made the obsolete?
@bixenbaer
@bixenbaer 2 жыл бұрын
Maybe some 0.1 dollar uC with build in ADC ;)
@cricketanalystanddailyfrau4063
@cricketanalystanddailyfrau4063 2 жыл бұрын
Please tell the text book name
@barsbuyukylmaz814
@barsbuyukylmaz814 2 жыл бұрын
A designers guide to Innovative linear circuits
@phasorsystems6873
@phasorsystems6873 3 жыл бұрын
Hey could you try this software? Check out androidcircuitsolver on google
Precision Op Amp Rectifier Circuits
14:18
devttys0
Рет қаралды 51 М.
Negative resistance and the Negative Impedance Converter
17:14
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 61 МЛН
Window Comparators
8:18
Vern Nelson
Рет қаралды 6 М.
Op-Amps  - Using Operational Amplifiers
44:21
DroneBot Workshop
Рет қаралды 270 М.
The world's worst video card?
32:47
Ben Eater
Рет қаралды 6 МЛН
Jim Williams' Test Your Analog Design IQ #8
27:29
devttys0
Рет қаралды 66 М.
EEVblog #490 - Peak Detector Circuit
35:03
EEVblog
Рет қаралды 234 М.
Let's build a voltage multiplier!
16:32
Ben Eater
Рет қаралды 1,9 МЛН
Small Signal Amplifiers
57:53
Vocademy - Electronics Technology
Рет қаралды 306 М.
A 100kHz Zero Droop Precision Peak Detector
10:42
devttys0
Рет қаралды 30 М.
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 112 М.
Хотела заскамить на Айфон!😱📱(@gertieinar)
0:21
Взрывная История
Рет қаралды 4,2 МЛН