Dissecting an internet “tutorial” and an intuitive explanation of the Schmitt trigger

  Рет қаралды 7,453

Sam Ben-Yaakov

Sam Ben-Yaakov

Күн бұрын

Пікірлер: 47
@sam7901
@sam7901 3 жыл бұрын
A very useful explanation once again. We encountered a situation in motor control where we are faced with exactly this dilemma of using an opamp instead of a comparator. Basically we want to switch the commutation when we detect zero crossings of the backemf. However the mcu has only 1 built in comparator and we need 2 more. So we've been looking at the possibility of configuring the internal (to the mcu) opamps as Schmitt triggers. Probably the lower slew rate won't be an issue but the offset from rail voltage could be.
@sambenyaakov
@sambenyaakov 3 жыл бұрын
Thanks for sharing your experience.
@sephyp1611
@sephyp1611 3 жыл бұрын
As always, clear and proffesional. I am always excited to see every video you upload. Thank you for this work. Please keep up the good work.
@sambenyaakov
@sambenyaakov 3 жыл бұрын
Thanks for king note.
@SteelBlueVision
@SteelBlueVision 3 жыл бұрын
Aside from the very helpful guidance that Sam always provides in his videos, a lesson to be learned here is not to trust some random tutorial on the internet. One shouldn't assume that some sloppily put together guide that was never peer reviewed or even edited by someone other than the original author, is a good cohesive and correct representation of reality, let alone a good unambiguous and comprehensive explanation of a particular subject matter. The virtual students of such tutorials often blame themselves for not understanding the subject being presented, in whatever manner it is being presented. More often than not, unfortunately, the lack of understanding among said students stems from a deficient or downright awful presentation. The presenter is the one at fault, often lacking the qualifications that should be a pre-requisite for teaching the subject matter, and once again, more often than not, those qualities that make one a good instructor or teacher. Members of the audience being presented to, assuming of course that they meet the qualifications of the target audience for whom the presentation was originally created, should feel the urge to just give up and assume the subject being presented is too complicated for them and it is their fault for not understanding it. Fortunately, there are brave caring souls, like Sam in this video, that when given the opportunity or while feeling a compulsion to act, voice their disdain for these sorts of presentations/tutorials, and make explicit the various inaccuracies, ambiguities, and shortcomings found therein.
@sambenyaakov
@sambenyaakov 3 жыл бұрын
Thanks for note and discussion.
@xDR1TeK
@xDR1TeK 3 жыл бұрын
Remarkable! Thank you professor. This reminds me of the physics wars back in Einstein days, when physicists would call eachother's physics as rubbish. Except your engineering is superb. If I'm permitted to use the colloquial term, you the man.
@sambenyaakov
@sambenyaakov 3 жыл бұрын
Thanks for warm words. Comments like yours keep me going.
@gregorymirsky8707
@gregorymirsky8707 3 жыл бұрын
Actually, NOT every operational amplifier (OA) can be a comparator, and the reason is NOT the phase-compensation capacitor. The reason is different: to be a comparator an OA should have a significant admissible input differential voltage that is comparable to the power supply voltage. It is necessary to make a comparator usable within an undetermined input differential voltage range and assert the Schmitt trigger state by setting the hysteresis to +/- 1 or more volts. Modern OAs have anti-parallel protection diodes between the inputs, which makes the admissible input differential voltage just +/- 0.5V. This is why many manufacturers do not even publish the admissible or maximum differential input voltage in the spec since these OAs are NOT INTENDED for work as comparators. Nowadays, you can find just a few models of OAs that have no anti-parallel input protection diodes and can be used as comparators. OA manufacturers do not even show protection diodes in the datasheet, although they are used everywhere, even in comparators, not between the inputs like in OAs, but between each input and power supply rails.
@sambenyaakov
@sambenyaakov 3 жыл бұрын
Hi Gregory, thanks for contribution. The compensating capacitor slows down the OA. Other restriction when OA is used as a Schmitt trigger apply, like common mode range at the input, output, and maximum differential input voltage. This presentation was referring to the LM741 Schmitt trigger design demo and it does not cover all the issues. I would disagree though with two of your assertions. The facts are: 1. Most, if not all, modern OA do not have diode protection between the inputs. 2. All datasheets specify the maximum permissible voltage between the inputs which is normally the full swing of the power supply. And one more point: if diodes are present between the inputs, the OA can still be used even with large hysteresis band. This is because it is OK to exceed the diode voltage if the current of the diodes is limited to a safe value (which is normally specified in datasheet). So by, for example, adding two resistor in series with the inputs, the diode restriction can be circumvented.
@gregorymirsky8707
@gregorymirsky8707 3 жыл бұрын
@@sambenyaakov Hi Sam, please read the article at www.analog.com/media/en/technical-documentation/application-notes/AN-849.pdf
@sambenyaakov
@sambenyaakov 3 жыл бұрын
@@gregorymirsky8707 So? This article also refutes your assertions: "the outputs of most modern op amps can swing close to their supply rails". So modern Op Amps do not have diodes between the input terminals. And :"It is necessary to read the data sheet very carefully to determine if the worst-case voltages expected in the comparator application sufficiently affects the op amp performance to prevent proper operation" so datasheets do include the information. All the best. Sam
@gregorymirsky8707
@gregorymirsky8707 3 жыл бұрын
@@sambenyaakov Sam, I have never written what you are referring to above: I was not referring to the outputs. That was probably a different person. All our correspondence is above. Also, the article I provided the link to, on page 3 (Fig. 9), shows the said protection diodes between the inputs of the OA, therefore not refuting my assertions. The person above interfered with my account.
@popovlist
@popovlist 3 жыл бұрын
very educative and explanatory, thank you
@sambenyaakov
@sambenyaakov 3 жыл бұрын
Thanks
@ianleitch9960
@ianleitch9960 3 жыл бұрын
First op amp on the market was uA709, circa 1969 or 1970ish, later superceded by the uA741
@sambenyaakov
@sambenyaakov 3 жыл бұрын
Hi Ian, thanks for clarification.
@alexandrosantos4099
@alexandrosantos4099 3 жыл бұрын
Great job!!!, Greetings from an EE from México
@sambenyaakov
@sambenyaakov 3 жыл бұрын
😊🙏
@NNNILabs
@NNNILabs 3 жыл бұрын
Hello, this is the author of the article mentioned in the video. I have made an apology/explanation video which I will link here: kzbin.info/www/bejne/eYrEZHZmiaaojdE
@taharmouz8864
@taharmouz8864 3 жыл бұрын
Good tutorial The comparator have an open collector output
@sambenyaakov
@sambenyaakov 3 жыл бұрын
Thanks. Not all😊 see the datasheet of the analog unit mentioned in video.
@power-max
@power-max 3 жыл бұрын
I think it is incredible that their definition of "high speed" is ~10uS slew rate, for a digital circuit nonetheless! I guess it is high speed in the context of morse code but that's about it. The voltage level issues could be somewhat alleviated by using some diodes to introduce voltage offsets. I've commonly seen a couple diodes stacked in series with the output to an indicated LED or input to an arduino. The uA741 can't swing the output to the rails obviously, but do the inputs even work down near the rails?
@sambenyaakov
@sambenyaakov 3 жыл бұрын
Thanks for comment. Yes, the input common mode voltage is even worse but in the "tutorial" they have set the reference around 6V, mid point of the supply.
@SteelBlueVision
@SteelBlueVision 3 жыл бұрын
High speed for those ancient 74XX series TTL chips, maybe.
@kung-fu_panda
@kung-fu_panda 3 жыл бұрын
Hello Professor, I am a big fan of your videos and how simple you make the concepts sound! I was wondering if you could add to your igbt/gate driver series? In particular, how to design working circuits with them and how how ensure all the chosen circuit elements will not blow up or cause the circuit to malfunction. There's just not enough resources out there showing the full circuit with gate drivers and igbts together! Thank you!
@sambenyaakov
@sambenyaakov 3 жыл бұрын
Thanks for comments. Will try.
@weinihao3632
@weinihao3632 3 жыл бұрын
Not only is the LM741 a poor choice for the given problem, the tutorial also fails to mention that the output signal might exhibit a phase reversal if the input signal happens to get too close to the supply rails.
@sambenyaakov
@sambenyaakov 3 жыл бұрын
Thanks Wei, excellent point! More to the down side of the 741 in this application.
@mayurkanani746
@mayurkanani746 3 жыл бұрын
Great work sir.....
@sambenyaakov
@sambenyaakov 3 жыл бұрын
Thanks
@mohammadhassanzade6893
@mohammadhassanzade6893 3 жыл бұрын
Great ! thank you professor
@sambenyaakov
@sambenyaakov 3 жыл бұрын
Thanks
@Antyelektronika
@Antyelektronika 3 жыл бұрын
Hi , in minute 4:04 vref go to the minus terminal of opamp and signal through resistor to plus, but later on like in minute 4:40 vref go to plus and signal to minus, this is correct? Or not
@sambenyaakov
@sambenyaakov 3 жыл бұрын
You seem to have skipped or not reached 😊kzbin.info/www/bejne/r3XMlJ56Z9l9iZI
@cuchulainkailen
@cuchulainkailen 3 жыл бұрын
Thanks for all this... 1) The comparator vs. op-amp info ... 2) The vital service of revealing yet another source of BS on the web. You're like the street-sweeper guy in the Bullwinkle cartoons, identifying for removal just a bit of the tons of detritus that pervades the public streets. Why do these people seek to advertise their ignorance and incompetence? An interesting question. It occurs in all arenas of life.
@sambenyaakov
@sambenyaakov 3 жыл бұрын
Thanks for sharing you thoughts. Good points. In the making are educational websites that will post reviewed (by expert) videos.
@tamaseduard5145
@tamaseduard5145 3 жыл бұрын
👍👍👍🙏👍👍👍
@sambenyaakov
@sambenyaakov 3 жыл бұрын
😊👍
Deciphering switching noises in PWM converters
19:49
Sam Ben-Yaakov
Рет қаралды 6 М.
Electronic Basics #35: Schmitt Trigger and when to use them
6:47
GreatScott!
Рет қаралды 188 М.
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 7 МЛН
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 1,6 МЛН
Happy birthday to you by Secret Vlog
00:12
Secret Vlog
Рет қаралды 6 МЛН
MOSFETs’ Vgs flatness during transitions: An intuitive explanation
14:56
What made the LM324 revolutionary?
25:42
Sam Ben-Yaakov
Рет қаралды 7 М.
A bit of Op-Amp History and Applications
34:13
Thoren Scientific
Рет қаралды 19 М.
Op-Amps  - Using Operational Amplifiers
44:21
DroneBot Workshop
Рет қаралды 296 М.
Basics of grounding and bypassing in power electronics PCB layout
26:50
Ferrite beads in power electronics
29:58
Sam Ben-Yaakov
Рет қаралды 37 М.
Basic components #002 - Schmitt Trigger | configurations
8:57
Electronoobs
Рет қаралды 25 М.
CMOS Schmitt trigger and its application
11:39
Computer&Electronics
Рет қаралды 4 М.
PSRR of LDOs: An intuitive analysis
29:59
Sam Ben-Yaakov
Рет қаралды 11 М.
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 7 МЛН