Тёмный

Comparator tutorial & clapper circuit 

Afrotechmods
Подписаться 794 тыс.
Просмотров 422 тыс.
50% 1

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

Наука

Опубликовано:

 

28 дек 2010

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 227   
@mistythelion
@mistythelion 6 лет назад
I drove myself mad trying to figure out how comparators work. This made it super easy to understand thank you!!!!
@ETAI106
@ETAI106 3 года назад
Agree.
@mkepler5861
@mkepler5861 2 года назад
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 Год назад
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 Год назад
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
@Fardado07
@Fardado07 10 лет назад
Dude, this is hilarious and very helpful at the same time, thanks.
@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!
@andrewferg8737
@andrewferg8737 5 лет назад
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.
@CoolDudeClem
@CoolDudeClem 12 лет назад
You could also swap the v+ and v-, giving you a comparatator that turns off when the voltage reaches the threshold.
@DiveSafariNZ
@DiveSafariNZ 9 лет назад
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!
@tempest411
@tempest411 13 лет назад
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.
@topten7064
@topten7064 4 года назад
Your voice and all explain is really great
@s.sradon9782
@s.sradon9782 4 года назад
I can use this in combination with a MOSFET/relay and a voltage divider to create a low/high voltage cutoff. very useful
@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.)
@brentacus76
@brentacus76 Месяц назад
Awesomely put, I finally understand how op amps work❤
@andresquinones2495
@andresquinones2495 7 лет назад
You just saved my semester!!!!!!
@jstuffss
@jstuffss 6 лет назад
he just saved my job...
@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?
@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.
@Thompzy
@Thompzy 10 лет назад
Could you put a flip flop on the output of the op amp to have it to where you clap to toggle the led?
@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.
@PabloGonzalez-wi5gq
@PabloGonzalez-wi5gq 9 лет назад
Once more, an awesome tutorial.
@eleazermojica8504
@eleazermojica8504 8 лет назад
I would like to ask if what will happened if V+ and V- were equal?
@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!
@DarioMoog
@DarioMoog Год назад
Hey! This channel is brilliant
@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.
@WhoWantsToKnow81
@WhoWantsToKnow81 10 лет назад
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?
@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 ?)
@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 .
@silviomartinez7468
@silviomartinez7468 11 лет назад
what would happen to the circuit if you didnt take off the dc offset with the high pass filter??
@adithyaa1
@adithyaa1 10 лет назад
Dude, your vids are epic! _/\_ Thanks a lot :)
@HellaFunnyShorts
@HellaFunnyShorts 10 лет назад
Hooker detectot, haha. You remind me of one of my favorite EEE professors, very knowledgeable, but not afraid to get us laughing.
@PeperMintification
@PeperMintification 3 года назад
Afrotechmods - Thank you!
@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
@erwinboy10
@erwinboy10 9 лет назад
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.
@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
@Gamer-vx1yf
@Gamer-vx1yf 8 месяцев назад
So is it a relay but with the switch pulled towards the side with the stronger voltage?
@aphiewbareh9466
@aphiewbareh9466 4 года назад
what is the function of that 100k resistor connected from the output to the inverting input
@radu2329
@radu2329 6 лет назад
why do we need to remove the offset?? and how the offset can be removed with high pass filter?
@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.
@nickparkin8527
@nickparkin8527 7 лет назад
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.
@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?
@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
@naasifn
@naasifn 5 лет назад
That was a great explanation!
@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.
@axos88
@axos88 11 лет назад
How sensitive is this circuit? Does it turn on for other, loud sounds? Like two people rowing, or yelling?
@jackshade6882
@jackshade6882 5 месяцев назад
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?
@randotrader8658
@randotrader8658 5 лет назад
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
@madhuradharme9131
@madhuradharme9131 4 года назад
Lol IC 555 is not an op amp It is timer ic
@leorodesp
@leorodesp 7 лет назад
I like the burn traces on your alligator clamps.
@aheckers
@aheckers 3 года назад
Those are Used roach clips. Dude is cheap... And high~
@ayelsabbagh
@ayelsabbagh 8 лет назад
can u tell me the part list to make this circuit?
@jonathans1212
@jonathans1212 12 лет назад
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
@tanyalobyam
@tanyalobyam 5 лет назад
Great video ,just use this for my students
@trance183
@trance183 13 лет назад
I love this guy! He's Awesome!
@alexptvz1076
@alexptvz1076 Год назад
maaaan you're God in explaining !!!!!!!
@JackKirkpatrickVideos
@JackKirkpatrickVideos 10 лет назад
Does it matter how many volts go into the op amp? Will 24 kill it?
@philipclegg1995
@philipclegg1995 9 лет назад
I dont mean a hooker detector... Brilliant!
@GarrettDhoore
@GarrettDhoore 10 лет назад
Can you make a video tutorial on a transistor comparator?
@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)
@holyrunner1973
@holyrunner1973 7 лет назад
i notice your bread board setup.. care to explain?
@qsptecnologia
@qsptecnologia 10 лет назад
Excelent, very good. Thank you
@00XforsakeNX00
@00XforsakeNX00 12 лет назад
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?
@dakotaklitzke9907
@dakotaklitzke9907 11 лет назад
when you say i could compare audio signals how would that be wired? im trying to have the gate be opened whenever an audio signal is present, with the reference voltage being 0v so that way any voltage on the other side opens the gate, and the voltage comes from an audio signal. HELP!!!
@free_spirit1
@free_spirit1 12 лет назад
the possibilities are ENDLESS!!!
@jdflyback
@jdflyback 12 лет назад
Man op amps are awesome.
@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
@aayush3782
@aayush3782 7 лет назад
What if V+ V- Is equal?
@sinupinginaaber
@sinupinginaaber 13 лет назад
my LED just stays on. i have checked the circuit 6 times and made sure everything was exactly like in the schematic. I need a solution, please.
@eat-myshorts
@eat-myshorts 2 года назад
how to solve the output voltage if Vref > Vin?
@infeazharinc.2856
@infeazharinc.2856 8 лет назад
could I use this for a Li ion battery protection?
@cameraman1234567890
@cameraman1234567890 3 года назад
Technically yes, If you used the high output to control a transistor because obviously the output of the comparator isnt powerful enough to power anything. Youd also need an external power source with regulator to power the comparator and a voltage divider for one of the input pins and divide the voltage to 3.7 volts for a single cell lithium battery. If you used another comparator you could make another circuit similar but for overcharging protection
@FungSit
@FungSit 10 лет назад
Very interesting. Thank you.
@boggless2771
@boggless2771 4 года назад
Great vid, but HOW does a comparator work. Not what does a comparator do. I am so curious but Incant find it anywhere
@MsSebaastian
@MsSebaastian 7 лет назад
great tutorial
@Knightmetal
@Knightmetal 12 лет назад
Did you use only one 5V power supply in that circuit?
@URKIDN1
@URKIDN1 13 лет назад
this is a awesome tut. :D
@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?
@matrioshq_8954
@matrioshq_8954 4 года назад
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.
@nitinmoolri3708
@nitinmoolri3708 10 лет назад
GOOD WORK SIR
@lzrdfrt
@lzrdfrt 11 лет назад
"and I don't mean a hooker detector" Perfect! ...and excellent comparator explanation.
@TheBabahand28
@TheBabahand28 11 лет назад
What's soft do you use for your shema? (sorry for my verry bad english i am french ^^)
@KSITREVS
@KSITREVS 12 лет назад
I have a quad 339, under the first test it doesnt work? :/ Could I have a little help please.
@power-max
@power-max 12 лет назад
did anyone notice the nuclear detonator 3:00?
@thewakz
@thewakz 8 лет назад
I liked this video about .2s after "hooker detector". Also thx for the video, good stuff, learned a lot!
@TheMinecraftMovies12
@TheMinecraftMovies12 11 лет назад
What is V- = V+ ?
@jbrooks4282
@jbrooks4282 11 лет назад
OMG you're right... Must have been because of that Cuban black market op.amp
@NCYD-bf2kq
@NCYD-bf2kq 6 лет назад
Explanation Thank you. It helped.
@1kuhny
@1kuhny 12 лет назад
Hey afro how can i hook this up to a arduino
@HemmderAlvarez
@HemmderAlvarez 11 лет назад
Excellent video thanks
@MrJohnDevour
@MrJohnDevour 12 лет назад
but..! what happens if V- and V+ on the op-amp is EXACTLY the same??
@ing.biomedicaenlapractica6871
@ing.biomedicaenlapractica6871 3 месяца назад
This is pure gold, thankyuo
@memoadam5097
@memoadam5097 6 лет назад
Does it matter if we connected the LED before or after the resistor?
@marcussprring5292
@marcussprring5292 5 лет назад
no
@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)
@TheMinecraftMovies12
@TheMinecraftMovies12 11 лет назад
3:40 is that circuit same for all Microphones?
@crafter2u
@crafter2u 12 лет назад
can you make a circuit board for testing LM324N ?
@drumrocket99
@drumrocket99 11 лет назад
i have a question : whererfore is the 100K Resistor at the scematics in 3:00 thanks in advance :-D
@umargul5644
@umargul5644 3 года назад
Well done sir
@MrMember12
@MrMember12 10 лет назад
you didn't tell as what happens if we feed the inputs the exact same voltage. Will output be high or low?
@Canoxix
@Canoxix 3 года назад
This is really old, but it depends if the op amp implements a schmitt trigger response. If it does, it will most likely switch to one of the rails and stop because the difference between the two is close enough to zero.
@JS7457
@JS7457 8 лет назад
what's the difference between a comparator and a op-amp ?
@hugovanrossum7829
@hugovanrossum7829 8 лет назад
A comparator is not different from an opamp, it is more like one of the functions of an opamp.
@JS7457
@JS7457 8 лет назад
Hugo van Rossum ty
@alaguraja6660
@alaguraja6660 Год назад
Comparator is fast response than opamp i heard so in net
@JS7457
@JS7457 Год назад
@@alaguraja6660 thanks for your answer, even if my question was 7 years ago 😂
@diogomiguel5477
@diogomiguel5477 7 лет назад
hello afromods, i can't do the comparator, i followed the schematics, i'm using a 741 with a 9v battery, i've played with resistors but still can't get any output voltage, what am i doing wrong?
@Afrotechmods
@Afrotechmods 7 лет назад
Don't use an LM741, it's a terrible op amp. Try an LM324 or better.
@migm16
@migm16 6 лет назад
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.
@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
@vincentiusdhimasr.p.2695
@vincentiusdhimasr.p.2695 5 лет назад
It's voltage divider
Далее
КРАСИМ ДЕНЬГИ В РОЗОВЫЙ!
01:01
Просмотров 527 тыс.
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
What is a MAGNETRON - How Does it Work
10:41
Просмотров 1,1 млн
Let's build a voltage multiplier!
16:32
Просмотров 2 млн
MAGNETRON - Teardown + How It Works - Dangerous!
14:07
Просмотров 897 тыс.
How Op Amps Work - The Learning Circuit
8:45
Просмотров 756 тыс.
Window Comparators
8:18
Просмотров 6 тыс.
Let's talk about comparators
10:30
Просмотров 21 тыс.
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
ЗАБЫТЫЙ IPHONE 😳
0:31
Просмотров 19 тыс.