Comparator tutorial & clapper circuit

Поделиться
HTML-код
  • Опубликовано: 28 дек 2010
  • A tutorial on op-amp comparators, and a demo circuit that lights up an LED when the sound volume reaches a preset threshold.
    Watch this video on peak detectors next! • Peak detector circuit ...
    More electronics at www.afrotechmods.com
  • НаукаНаука

Комментарии • 226

  • @mistythelion
    @mistythelion 6 лет назад +32

    I drove myself mad trying to figure out how comparators work. This made it super easy to understand thank you!!!!

    • @ETAI106
      @ETAI106 3 года назад +1

      Agree.

  • @mkepler5861
    @mkepler5861 2 года назад +9

    thanks again Afro Man, I used this comparator circuit to make my own solar charge controller, and a boost converter to set a reference voltage, with a 555 to time a relay to allow the comparator to sense the battery voltage. its very simple and I can fix it if anything goes wrong. I personally want to thank you and so many others that have contributed to my knowledge base, when I need to design something, I just go back and refamiliarize myself on what I was taught by all of you, thanks mike

    • @mkepler5861
      @mkepler5861 Год назад +3

      I know that making these videos may be time consuming and you probably have something better to do, but when I started to get back into electronics you were the best electronics channel on youtube!!! I image you still have a great deal that you can teach us, and want to thank you again for you help!!! mike

  • @mkepler5861
    @mkepler5861 Год назад +4

    just wanted to let you know I use this circuit quite frequently, and use this video as a reference, thanks AFTROMAN, I wish you would start making videos again. you are and will always be the best in my book!!! mike

  • @MochaMameX
    @MochaMameX Год назад

    spent a large part of yesterday searching for a clear example of the output voltage because everywhere I read it sounded like one of the comparators would become the output and it didn't make sense... this video was perfect for me, thank you!

  • @Fardado07
    @Fardado07 10 лет назад +20

    Dude, this is hilarious and very helpful at the same time, thanks.

  • @andrewferg8737
    @andrewferg8737 4 года назад

    Thanks for the informative video! Was able to apply this in comparator circuit for a thermistor controlled fan in my DIY power supply. Much more sensitive than using a single BJT and easier to adjust. Great voice, by the way.

  • @DiveSafariNZ
    @DiveSafariNZ 8 лет назад +2

    These are good videos, so clear to understand.

  • @scottbaileyActivstudios
    @scottbaileyActivstudios 4 года назад

    Many thanks. I was having trouble understanding opamps and as soon as I saw this i fully understood it's purpose. Especially as i am using one with a transistor to control a USB VCC to power rail when 12v VIN is not present. Thanks!

  • @topten7064
    @topten7064 4 года назад +1

    Your voice and all explain is really great

  • @tempest411
    @tempest411 12 лет назад

    Holy cow...I just tried this circuit and it worked! I'm thinking of using this circuit with two thermistors on the two inputs as part of an automatic temperature compensating thermistor-based low fuel warning system on a motorcycle. The factory ones are thermistor based, but very crude. They only use one thermistor and are subject to temperature extremes that render them inoperable...

  • @MephistoRolling
    @MephistoRolling 13 лет назад

    This one was especially helpful to me, it gave me new insight into some of the circuits i am designing right now.

  • @s.sradon9782
    @s.sradon9782 4 года назад +1

    I can use this in combination with a MOSFET/relay and a voltage divider to create a low/high voltage cutoff. very useful

  • @CoolDudeClem
    @CoolDudeClem 12 лет назад +3

    You could also swap the v+ and v-, giving you a comparatator that turns off when the voltage reaches the threshold.

  • @PabloGonzalez-wi5gq
    @PabloGonzalez-wi5gq 9 лет назад

    Once more, an awesome tutorial.

  • @andresquinones2495
    @andresquinones2495 7 лет назад +7

    You just saved my semester!!!!!!

    • @jstuffss
      @jstuffss 6 лет назад +1

      he just saved my job...

  • @PeperMintification
    @PeperMintification 3 года назад

    Afrotechmods - Thank you!

  • @IgorAlov
    @IgorAlov 11 лет назад

    Hi. Your tutorials are excellent. I'd like to ask you: How should I use Op Amp when I want to check lower and higher voltage limits (when the output signal of the peak detector is in wide range 0 and +5 volts, but Op Amp should be act only when the signal is between +3.0 and +3.5 volts)?
    Should I use two Op Amps or Should I use voltage devider to cut off lower voltage right after output of the peak detector?
    Thanks.

  • @ubuntututorials
    @ubuntututorials 13 лет назад

    @TheJagwtf Think of the ground as just a point where all the "grounds" are connected. Usually the ground is connected to the battery (-) terminal, but *not* always, so don't rely on it unless it isn't specified. Wherever you see a ground symbol, mentally draw a line to the nearest ground. It's convenient because otherwise schematics would just get cluttered with links between all the grounds. It's a similar story for voltage symbols (like 3.3V, 5V etc.)

  • @DarioMoog
    @DarioMoog Год назад

    Hey! This channel is brilliant

  • @duttaaa
    @duttaaa 12 лет назад

    @afrotechmods Hello , I find your videos really helpful. Can you please tell me whether , I can take the output of your clapper circuit , to a 4th order butterworth low pass filter (1hz - 1.5khz) to limit the different frequencies , generated by different sounds , just so that the output of the final circuit with the filter only responds to certain freq's which can be then sent to a pic micro controller .

  • @joshstube
    @joshstube 13 лет назад

    Thanks!
    Can I adjust this circuit low enough to be sensitive to voice (think VOX control) or do I need more amplification/ components?
    Thanks for the video!

  • @fince120
    @fince120 5 лет назад

    Many thanks for this great example, I have tried it and it works correctly on a breadboard but not on a strip board. What sort of decoupling/bypass would I need and where? Also I have also been told to ground the any unused inputs to ground, would this be correct?

  • @naasifn
    @naasifn 5 лет назад

    That was a great explanation!

  • @adithyaa1
    @adithyaa1 10 лет назад

    Dude, your vids are epic! _/\_ Thanks a lot :)

  • @TheJagwtf
    @TheJagwtf 13 лет назад

    hey, amazing videos, love the way they are made, could you please explain, i suck at reading diagrams i don't really understand where do all you ground go ?
    I know what ground is earth - wow captain here
    ground wire, or N wire - 0v
    or its anything that's grounded
    taking into account this circuit where do all the grounds go, please give some examples,
    (taking that im using a retro-fitted Pc PSU will the 0v wire be my ground ?)

  • @alexptvz1076
    @alexptvz1076 Год назад

    maaaan you're God in explaining !!!!!!!

  • @CassetteMaster
    @CassetteMaster 13 лет назад

    @sinupinginaaber Try turning down the power supply to 4 volts or so. I built the peak detector version and at 5 volts it stayed on. At 4 volts it worked right.

  • @MoaazQaddah
    @MoaazQaddah 6 лет назад

    i had to sign in to my google account to subscribe and like the video..i think you know how much i liked it :D

  • @trance183
    @trance183 13 лет назад

    I love this guy! He's Awesome!

  • @ing.biomedicaenlapractica6871
    @ing.biomedicaenlapractica6871 2 месяца назад

    This is pure gold, thankyuo

  • @qsptecnologia
    @qsptecnologia 10 лет назад

    Excelent, very good. Thank you

  • @tanyalobyam
    @tanyalobyam 5 лет назад

    Great video ,just use this for my students

  • @HellaFunnyShorts
    @HellaFunnyShorts 9 лет назад +1

    Hooker detectot, haha. You remind me of one of my favorite EEE professors, very knowledgeable, but not afraid to get us laughing.

  • @URKIDN1
    @URKIDN1 13 лет назад

    this is a awesome tut. :D

  • @NTG56
    @NTG56 13 лет назад

    @Afrotechmods If you used 8 comparators with different resistors (to change the volume threshold), could you make an 8 bit analog to digital circuit?

  • @jdflyback
    @jdflyback 12 лет назад

    Man op amps are awesome.

  • @Thompzy
    @Thompzy 9 лет назад +1

    Could you put a flip flop on the output of the op amp to have it to where you clap to toggle the led?

  • @nickparkin8527
    @nickparkin8527 7 лет назад +1

    Hey Afrotechmods Could I use this in an audio circuit to detect any deviations from the audio input(distortion) and correct it?

    • @Afrotechmods
      @Afrotechmods  7 лет назад

      I wouldn't recommend a simple comparator circuit to try correct distortion. It would likely be a more complicated op amp circuit with feedback.

  • @MsSebaastian
    @MsSebaastian 7 лет назад

    great tutorial

  • @nitinmoolri3708
    @nitinmoolri3708 9 лет назад

    GOOD WORK SIR

  • @free_spirit1
    @free_spirit1 12 лет назад

    the possibilities are ENDLESS!!!

  • @tothlaszlo8008
    @tothlaszlo8008 Год назад

    Good video! Thanks!

  • @HemmderAlvarez
    @HemmderAlvarez 11 лет назад

    Excellent video thanks

  • @ck8koneti
    @ck8koneti 7 лет назад

    @Afrotechmods I used the same circuit with a TL082 op amp. I am using a 100KHz sine wave input 1Vpp and want the circuit to trigger when the signal is at about 90% amplitude.
    However, The circuit's output is not stable. Using my scope, i can see the output is very stable for sometime (1-1.5 mins) and then the amplitude of the output reduces for about a minute and it again stabilises for a minute. rinse and repeat.
    how do i stabilise the output??
    (P.S. the input is perfect, no problems there).
    I could email the screenshots to you if you want to have a closer look.

  • @thewakz
    @thewakz 8 лет назад

    I liked this video about .2s after "hooker detector". Also thx for the video, good stuff, learned a lot!

  • @umargul5644
    @umargul5644 3 года назад

    Well done sir

  • @FungSit
    @FungSit 10 лет назад

    Very interesting. Thank you.

  • @sinupinginaaber
    @sinupinginaaber 13 лет назад

    @CassetteMaster i discovered my problem was actually the tripping voltage. i didn't pay attention to the resistor color scheme, so i used a 100ohm resistor instead of the 10k resistor, and i quess i had too much noise in my room, so the LED couldn't turn off. i changed the resistor and now it works. but thanks anyways.

  • @Gamer-vx1yf
    @Gamer-vx1yf 6 месяцев назад

    So is it a relay but with the switch pulled towards the side with the stronger voltage?

  • @NCYD-bf2kq
    @NCYD-bf2kq 6 лет назад

    Explanation Thank you. It helped.

  • @philipclegg1995
    @philipclegg1995 9 лет назад +51

    I dont mean a hooker detector... Brilliant!

  • @suleimiahmed1055
    @suleimiahmed1055 9 лет назад

    awesome vid, much appreciated

  • @vincezzz9757
    @vincezzz9757 7 лет назад

    Nice Video!

  • @leorodesp
    @leorodesp 7 лет назад +1

    I like the burn traces on your alligator clamps.

    • @aheckers
      @aheckers 3 года назад

      Those are Used roach clips. Dude is cheap... And high~

  • @4dirt2racer0
    @4dirt2racer0 Год назад

    awesome video thanks man :)

  • @00XforsakeNX00
    @00XforsakeNX00 11 лет назад

    how many volts and amps can this op amp handle? would i be able to hook up a car battery to this chip if i use resistors?

  • @axos88
    @axos88 11 лет назад

    How sensitive is this circuit? Does it turn on for other, loud sounds? Like two people rowing, or yelling?

  • @TheBabahand28
    @TheBabahand28 11 лет назад

    What's soft do you use for your shema? (sorry for my verry bad english i am french ^^)

  • @jackshade6882
    @jackshade6882 3 месяца назад

    Could you explain more how you would use a transistor to switch motors on and off. Using MOSFET I assume? I would need to cut off the Hbridge power which is driving my stepper?

  • @WhoWantsToKnow81
    @WhoWantsToKnow81 9 лет назад

    Why do you have a pull up resistor (1K) before the cap and a pull down resistor (100K) after? Is it to make sure that we always have a reference voltage of approx 5V?

  • @silviomartinez7468
    @silviomartinez7468 11 лет назад +1

    what would happen to the circuit if you didnt take off the dc offset with the high pass filter??

  • @lzrdfrt
    @lzrdfrt 11 лет назад

    "and I don't mean a hooker detector" Perfect! ...and excellent comparator explanation.

  • @aphiewbareh9466
    @aphiewbareh9466 4 года назад

    what is the function of that 100k resistor connected from the output to the inverting input

  • @randotrader8658
    @randotrader8658 4 года назад +1

    How do you do the actual pin out on 555? I am banging my head against the wall missing something .... 5 pins are used- I get that/ but I can’t get it to work

  • @Le0nLucky
    @Le0nLucky 13 лет назад

    Thanks it helped me alot

  • @bcsupport
    @bcsupport 13 лет назад

    Thank you so much !

  • @alperenalperen2458
    @alperenalperen2458 10 лет назад

    great video :D

  • @eleazermojica8504
    @eleazermojica8504 8 лет назад +1

    I would like to ask if what will happened if V+ and V- were equal?

  • @mustang921GT
    @mustang921GT 11 лет назад

    Look at the schematic at 1:53. The pot is labeled their (It's the sign that has an arrow pointing at the middle of a resistor symbol)

  • @alewarten
    @alewarten 4 года назад

    Hey, nice tutorial. What would be if we connected the LED through resistor to the output of the first op amp. Why do we need the right part for the LED instead? Thanks

  • @ranganafernando511
    @ranganafernando511 8 лет назад

    good job

  • @lebasson
    @lebasson 2 года назад

    Haha, you think it's kids-friendly education until you're hit with the hooker detector line :D

  • @migm16
    @migm16 5 лет назад

    hey i like this and actually watching this because i wanted to know about real comparators while i learn about them in minecraft lmao, anyway if i wanted to learn more about this kinda stuff u showed in video what field would that be called exactly like if i wanted to look up videos and or go to classes for it?

    • @deskpro256
      @deskpro256 5 лет назад

      That would be Electronics Engineering. Get hooked! Watch his other videos, also AddOhms, EEVBlog, GreatScott, ElectroBOOM just to name a few.

  • @Hellcommander245
    @Hellcommander245 12 лет назад

    I'm thinking about using this circuit in a clap activated outlet plug, so all I have to do is clap and anything plugged into of turns on or off

  • @aelucif
    @aelucif 5 лет назад

    1:51 why is there a resistor before the ground? i think this is too advanced for me, what source would you recommend for learning how to make circuits, specially for audio? this channel is great, but it goes over my head

  • @Knightmetal
    @Knightmetal 12 лет назад

    Did you use only one 5V power supply in that circuit?

  • @jonathans1212
    @jonathans1212 11 лет назад

    damn i have bad luck i have a lm339 quad comparator from radioshack, i hooked it to 5v and GND
    and output to a led
    when i power it up and set the + to 5v and - to GND nothing happens when i switch it samething nothing happens i tried it with 3 different ones =(
    any help would be appreciated

  • @ElectroPrints
    @ElectroPrints 2 года назад

    I’m using a LM741 op amp in my circuit and using this comparator configuration. Power by 9v and ground.
    I’m feeding 3v into the inverting and 5v from a 4081 quad AND gate IC to the non inverting input , but for some reason I get 1.2v output when the inverting is at 3v and the non inverting is at 0v. Why would this be ?

    • @Afrotechmods
      @Afrotechmods  2 года назад

      Don't use the LM741 it is an awful, outdated part with a lot of quirks and nonidealities

  • @erwinboy10
    @erwinboy10 8 лет назад

    Can you make a tutorial explaining how a Schmitt trigger works. Thanks in advance.

  • @reveresm
    @reveresm 11 лет назад

    I'm using two LM741, but for some reason, my LED is always on. I debugged the circuit I found out that I have a high voltage at the first output (3.9V), I apply 5V at inverting of second op-amp, but I still have a problem.

  • @ravjeetsingh2707
    @ravjeetsingh2707 8 лет назад

    thanks a ton broooo

  • @ayelsabbagh
    @ayelsabbagh 8 лет назад

    can u tell me the part list to make this circuit?

  • @rougeleroux6803
    @rougeleroux6803 5 лет назад

    This is hilarious haha 😆 keep it up!

  • @sumuduasiri
    @sumuduasiri Год назад

    Thanks very much

  • @coilsinamotor
    @coilsinamotor 13 лет назад

    qubin black markeket is where i got mine!! ;)

  • @zer0b0t
    @zer0b0t 9 лет назад

    Why my Output needs to be connected to the +5V in order to make the LED light up (with the current limiting resistor of course)? I'm using a LN393.

  • @nahuel915
    @nahuel915 12 лет назад

    Hello, If I have a question?, can you help me?, how I can contact you?, thanks

  • @mpampleki
    @mpampleki 13 лет назад

    Electronics are fast and fun with you!.

  • @CannonBallEddie
    @CannonBallEddie 12 лет назад

    could you please explain to me why my light comes on when my finger moves over the capacitor filtering the mic dc. I am scratching my head as to why this is happening.
    Also more videos please they are great. Nicely explained and easily understood you should become a teacher in this subject.(unless you allready are)

  • @crafter2u
    @crafter2u 12 лет назад

    can you make a circuit board for testing LM324N ?

  • @makingmoneyideaz1
    @makingmoneyideaz1 12 лет назад

    I'm using LM324N. I build exactly the same as your circuit, but the problem is LED always turns on. When i speak in the mic, LED flashes, but why LED is always ON? can u help me please?

  • @JackKirkpatrickVideos
    @JackKirkpatrickVideos 10 лет назад

    Does it matter how many volts go into the op amp? Will 24 kill it?

  • @radu2329
    @radu2329 6 лет назад

    why do we need to remove the offset?? and how the offset can be removed with high pass filter?

  • @matrioshq_8954
    @matrioshq_8954 3 года назад

    3:09
    Hey, may I ask something? Why there is 100k resistor added? If I'm correct, thats voltage divider, but why? Most of voltage goes to transistors gate anyway, because of the resistors values.

  • @1kuhny
    @1kuhny 11 лет назад

    Hey afro how can i hook this up to a arduino

  • @jbrooks4282
    @jbrooks4282 11 лет назад

    OMG you're right... Must have been because of that Cuban black market op.amp

  • @KSITREVS
    @KSITREVS 12 лет назад

    I have a quad 339, under the first test it doesnt work? :/ Could I have a little help please.

  • @vinothkannanr2007
    @vinothkannanr2007 4 года назад

    thank you soooooooo much bro

  • @noospaseisde
    @noospaseisde 13 лет назад

    Afrotechmods Imperial!

  • @crigz8113
    @crigz8113 Год назад

    Man I can make those memes with these