Peak detector circuit tutorial for beginners

Peak detector circuit tutorial for beginners

Afrotechmods

13 лет назад

216,769 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@alicanturk7713
@alicanturk7713 - 31.05.2023 19:52

Veri explanatory thanks🎉

Ответить
@Bianchi77
@Bianchi77 - 13.05.2023 05:38

Nice info, thanks for sharing it:)

Ответить
@NPC-et9ik
@NPC-et9ik - 13.04.2023 16:07

Afrotechmods, return to us

Ответить
@CARlosDAN783
@CARlosDAN783 - 04.03.2023 00:13

Excellent friend, you earned a new subscriber from Venezuela. Thanks for sharing.

Ответить
@donalddurga9742
@donalddurga9742 - 30.12.2022 13:51

very nice video well explained, got a question can I use this same circuit as an audio peak led, working with my vu meter, I would remove the mic of course and that would be my audio input, what sort of adjustments would I have to make to the present circuit, and I would like the circuit to have a variable resistor to control the led, and what op amp are being used. Thank you
donald

Ответить
@ComputerEngineeringCPE
@ComputerEngineeringCPE - 28.04.2022 06:15

awesome!

Ответить
@hadireg
@hadireg - 14.12.2021 09:36

👍

Ответить
@iamswastik
@iamswastik - 06.12.2021 17:58

You are a gem. Keep it up! 👍

Ответить
@charlestraboue8496
@charlestraboue8496 - 25.10.2021 17:49

Could you please explain why you did not connect the resistor in series with the capacitor instead?

Ответить
@Jarrod_C
@Jarrod_C - 18.08.2021 16:09

wait but i have a few issues here. if you have a bigger capacitor doesnt it take longer to reach the peak that it is detecting, and the bigger the resistor I would think would dissipate the voltage faster or have some other negative tradeoff effect.....hopefully you get what i am trying to say....I imagine there is some balancing act and other considerations not mentioned here....

Please advise.

Ответить
@odedejikehinde6514
@odedejikehinde6514 - 12.03.2021 06:09

Thanks Afrotechmod, this is short, concise and really helpful little circuit 😉 .

Ответить
@duality4y
@duality4y - 29.08.2020 17:48

this cricuit gives me an idea for something fun!

Ответить
@yelectric1893
@yelectric1893 - 19.08.2020 17:58

Could this be made into a sort of amplitude comparator for a direction finder

Ответить
@user-ih4yh9ww2u
@user-ih4yh9ww2u - 15.08.2020 07:12

Thanks, sir, hope you are happy and healthy!

Ответить
@juntendo6104
@juntendo6104 - 06.07.2020 17:18

I find your videos very straight forward and easy to understand!

Ответить
@srinivass6513
@srinivass6513 - 28.04.2020 17:44

This a circuit which is used to charge battery in cheap China made emergency lights

Ответить
@ibnewton8951
@ibnewton8951 - 25.04.2020 01:39

This an absolutely outstanding channel! ⭐️⭐️⭐️⭐️

Ответить
@pl9742
@pl9742 - 07.03.2020 21:32

These are real engineering classes. Our university was completely ignoring the labs that I’m still trying to teach myself 12 years after graduation. It means the theory teaching were in vain as well.

Ответить
@TheVideoVolcano
@TheVideoVolcano - 05.03.2020 04:49

10 years ago, are you kidding me.

Ответить
@htkevo5273
@htkevo5273 - 04.03.2019 19:41

What if you make it that you clap once and it charges the cap, then if you clap again it discharges it immediately

Ответить
@tohtorizorro
@tohtorizorro - 21.01.2019 21:44

2 questions:

While elegant in its simplicity, this implementation of the peak detector seems to have a pretty serious flaw. Judging from how long the led stays on at different occasions (i.e. how much the capacitor has charged) even if the first clap is loudest, the consecutive claps seem to still charge the capacitor. If we think about a more useful implementation where some sort of meter would indicate the level of the loudest clap, it would fail by adding a bit to the reading by every clap even if they were preceded with a louder one.

..As I wrote that I did come to think that this might be only a problem due to the charging time of the capacitor (which of course isn't instant even without notable resistance).. So, if we'd imagine the cap could charge instantaneously while maintaining its discharge properties, would it fix the problem?

I mean, as the capacitor charges, the voltage at the capacitor's 'upper' plate rises and so there would not be potential difference over the diode unless the clap would be louder than its predecessors?

Another thing... wouldn't the level of the peak affect also the hold time? I'm not saying this is necessarily a bad feature, it might even be a preferred one but just want to know if what I've understood so far is correct.

Ответить
@STAR_Boy_6
@STAR_Boy_6 - 14.12.2018 12:57

GOOD Thanks!

Ответить
@137bob3d
@137bob3d - 04.12.2018 05:31

yes , i enjoyed seeing your video as it is close to something i'm working on.
and am tempted to use your MIC amplifier idea instead of the max4466
and 9814 modules bought on ebay. except the 9814 has AGC which
is a problem solver in itself. for my projec tthe comparator step you do w/ an op amp
is handled in code with an if-then statement

overall it includes taking sounds that are brief and intermittent and capture them
with your circuit plus a Picaxe uC with ADC pins. a 20M2 at this time

lots of new ground to tread . with many interesting challenges along the way .
practically everything is an unknown when doing a big project like this for
the first time. here are some of the problems that have arisen along the way :

a) figuring the gain for stage 1 based on the volume
of the incoming sound

2) determining the R-C values so the cap' voltage fades enough
to be taken as a new sound when the ADC is looping-repeating every 250mS or so

3) test the ADC level output of each sound w/ the uC to be above some threshold in a 0-255 space
and keep track of how many sounds over one second meet a volume spec'. etc.
this is the comparator step mentioned above ... done in code.

4) re-learning the exponential equation for cap's : V=Vc * e ^ t/RC

5) lastly is managing the voltage levels with the FVR2048 voltage reference
directive so the ADC uses its converting voltage space most effectively

a few things yet to learn :
a. how to deal w/ the 9814 and its mid-range DC offset ... what does the ADC do with it ?
b. to store the count of noises in inner 1-dimensional arrays or ext'l EEprom ... ??

another matter is not knowing precisely when the uC samples the ADC pin.
the PIC uC's dont give you access to the inner register bit change when 'GO'
happens. so right now the best i can do is code a 100uS pulse before and
after the readadc command. then , on the scope, the 2 pulses serve to frame
when the adc pin does its sampling. this allows seeing how well the ADC
aligns with the peak detector when the DC voltage is flat

such a simple looking circuit leads to many new directions. and stops your
progress every time you run up against the end of your knowledge.

then you might find yourself searching u-t for others who too have tread this path

i'll be looking thru your other videos to see if you are including uC's ...

Ответить
@Unordung
@Unordung - 24.09.2018 14:53

We miss you man, I hope you are well.

Ответить
@theshitshow6371
@theshitshow6371 - 11.09.2018 02:59

Werent similar circuits used in Attack/release filters in old analog synths?

Ответить
@timonix2
@timonix2 - 06.09.2018 14:36

And if you choose your C and R carefully you get a simple envelope detector. For demodulating
some AM signals

Ответить
@olajideoyekunle9044
@olajideoyekunle9044 - 12.07.2018 02:02

Good one and many thanks. Very short and apt video. Your subscriber base just increased by one.

Ответить
@vishalmayannache5389
@vishalmayannache5389 - 08.07.2018 11:17

U Are Great......!🙏🙏

Ответить
@BertGrink
@BertGrink - 06.04.2018 11:19

+Afrotechmethods
Couldn't you improve the sensitivity of the peak detector by using a germanium diode? I mean, Ge diodes have a forward voltage of around 0.2volts, compared to the typical 0.65 volts of a silicon P-N junction.

Ответить
@thatoneguy99100
@thatoneguy99100 - 19.03.2018 08:04

This counts as studying for my EE final right?

Ответить
@mohammaddanaei2890
@mohammaddanaei2890 - 01.03.2018 07:34

Thank you

Ответить
@StEvUgnIn
@StEvUgnIn - 04.02.2018 10:06

It does explain clearly what would take hours in books such as op amps for everyone

Ответить
@ialeg3710
@ialeg3710 - 07.01.2018 23:51

The capacitor doesn't have a path to discharge? Wouldn't that be ground?

Ответить
@diggydude5229
@diggydude5229 - 13.12.2017 04:56

The peak voltage has to be around 5V to light an LED with this circuit. I tried it with the input signal biased to the middle of the 0 - 5V range (the typical workaround for using CMOS switches with a single voltage supply), and nothing happened.

Ответить
@makharsa12
@makharsa12 - 15.11.2017 22:43

you are an amazing dude

Ответить
@mrcastor9093
@mrcastor9093 - 06.09.2017 15:03

I don't understand why the discharge / charge formula is 5*R*C and not just R*C

Ответить
@ismailagir
@ismailagir - 01.09.2017 14:53

perfect tutorial video I have watched so far

Ответить
@massimilianogilli1164
@massimilianogilli1164 - 20.07.2017 14:20

Can you move the diode+R+C circuit after the amplifier (before the led basically)? Is there a reason why you put it there?

Ответить
@L9X
@L9X - 28.05.2017 00:47

Holy shit, this is how a compressor works. The detected peak is used to pulldown the audio signal.

Ответить
@jitendrasingh8105
@jitendrasingh8105 - 20.02.2017 17:10

dnt know its edited or not but i just love ur voice..

Ответить
@phoenix2464
@phoenix2464 - 06.02.2017 23:46

glad I found your channel

Ответить
@ssikarim
@ssikarim - 12.12.2016 03:17

Thank you

Ответить
@ridiculous_
@ridiculous_ - 06.06.2016 16:35

i know that the discharge time is about the time constant.
But how about the charging time?? why shouldnt the charging time also equal to discharge time?
please anyone

Ответить
@dhruvtali9965
@dhruvtali9965 - 14.05.2016 20:37

Could you show how to wire up a logic flip flop to the comparator's output so it becomes a clap on-clap off switch?

Ответить
@azamquraishi
@azamquraishi - 06.04.2016 19:17

outstanding man

Ответить
@RolandBanc
@RolandBanc - 16.03.2016 20:16

You Sir are amazing! You explained this topic in an interesting, fun, but still usefull way. Thank you for makeing so great and understandable videos!

Ответить
@aLQuarter
@aLQuarter - 04.03.2016 19:27

Yes!!

Ответить
@FrankLopezx
@FrankLopezx - 19.02.2016 02:15

was this schematic built using spiceLT ? also can we use this sim prog to make our own passive components ? sorta like prototyping a new type of component ?

Ответить