Electronic Basics #27: ADC (Analog to Digital Converter)

Поділитися
Вставка
  • Опубліковано 6 лип 2024
  • Previous video: • 600$ Electric Skateboa...
    Electronic Basics #10: DAC: • Electronic Basics #10:...
    Facebook: / greatscottlab
    Twitter: / greatscottlab
    Support me for more videos: www.patreon.com/GreatScott?ty=h
    ADS7816 + AnalogReadSpeed Code: www.mediafire.com/file/3n0ylrh...
    In this episode of Electronic Basics I will tell you about the most important specifications of an ADC, how an approximate successive ADC works and why it is difficult to build one by yourself.
  • Наука та технологія

КОМЕНТАРІ • 352

  • @hole1stdrillpresschannel
    @hole1stdrillpresschannel 7 років тому +161

    Only knew AC/DC but that seems to be quite interesting too!

  • @josephtobin4831
    @josephtobin4831 7 років тому +123

    I understand 10% of these videos... but I still watch them

    • @joshuanulton1403
      @joshuanulton1403 7 років тому +17

      Joe Toe me too. But each video you watch you understand 1 percent more than the last. If you watch 20 videos, then start the playlist over again, you would understand more and more each cycle.

    • @shivahara4031
      @shivahara4031 5 років тому

      lol me too😁😁

    • @vapourmile
      @vapourmile 4 роки тому

      It's really very well produced but to him I think all the concepts are far too basic for an explanation, for us it's quite hard to follow, even though it's interesting.

    • @aussiegruber86
      @aussiegruber86 4 роки тому +1

      What's the good old saying..... "Throw enough sh&t at a wall some will stick"

    • @igmpvgoa1837
      @igmpvgoa1837 3 роки тому

      Same. Gotta watch it in .75 ha

  • @LeoTakacs
    @LeoTakacs 7 років тому +134

    Damn.... your videos are addicting, interesting, and straight to the point. I also like how you record and document your trial-and-error process on some videos. Excellent videos, dude!

    • @greatscottlab
      @greatscottlab  7 років тому +9

      Thanks mate :-)

    • @aayush3782
      @aayush3782 7 років тому

      Leo Takacs // Scam Baiting 100% Agree

    • @aayush3782
      @aayush3782 7 років тому +1

      GreatScott! Can You Please Explain How Metal Detectors Work? Cause Im Not Able To Find Nice Videos Anywhere Else On YT

    • @teadrinkingilluminati9173
      @teadrinkingilluminati9173 7 років тому

      AAYUSH AGRAWAL I remember julian illet had a video on them.

    • @Inesophet
      @Inesophet 7 років тому

      i build a VERY basic one recently. Basically a metal detector works(in my mind) by having a coppercoil connected to some OPamps. Ferric metal creates an inductive load and opamps are sensitive enough to pick up on it. Mine isnt very sophisticated and i just made it with a mains transformer and a LM358 connected to some (rather pretty) LED ladder.

  • @PodbevsekMiha
    @PodbevsekMiha 7 років тому +17

    You do realize that some of your diagram drawing edits for the sake of animation are so good that at least half the viewers aren't aware of them? Oh, and the diagrams are perfect as well :D mad respect on both counts :D
    Cheers from Slovenia

  • @costa_marco
    @costa_marco 7 років тому +42

    You only need 2 times the maximum frequency (call it f) for the sampling frequency. The imperfections you get have higher frequency components that were not present on the sampled signal, so the reconstructed signal will be exactly the sampled signal, if you pass it through a low-pass filter with a cutoff frequency equal to f. In the real world, you want to sample at a slightly higher frequency than 2f, because filters are not perfect. This is the reason for 44100Hz sampling frequency of CD, you get 22050Hz as your maximum frequency, but your low-pass filter is set to about 20000Hz, to remove the sampling artifacts.

    • @TheJigglicious
      @TheJigglicious 7 років тому +1

      Good knowledge!!

    • @Jefferson-ly5qe
      @Jefferson-ly5qe 6 років тому +8

      This is true for audio applications, where phase is not critical. In other applications, such as oscilloscopes, having a sampling frequency only slightly above the Nyquist minimum will necessitate a very steep filter, which will invariably result in hefty phase shift. In these applications, you're better off with a sampling frequency around 5× the highest measured frequency (or more), and a shallower filter.

    • @askkaereby
      @askkaereby 5 років тому

      Which is what any decent and recent audio ADC does, by means of oversampling

    • @vapourmile
      @vapourmile 4 роки тому

      I don't see how this can be the case.
      The point of the nyquist limit is it's the minimum frequency you need to sample at to reproduce the frequency of the sampled signal, but as he says, you'll get the right frequency but you won't have a remotely accurate wave shape: It will just turn everything into a triangle wave. You will also have potentially horrible aliasing distortion.

    • @NamelessSmile
      @NamelessSmile 4 роки тому

      @@vapourmile the interpolation in audio applications isn't necessarily linear. So good sine functions are created from few samples

  • @billcodey1430
    @billcodey1430 7 років тому +20

    You have great penmanship.

  • @victorchorques4893
    @victorchorques4893 7 років тому

    Awesome, as always! Thanks a lot. I'm and Electronics Engineer and you refresh my knowledge in few minutes. Even far better explained than my professors at college.

  • @ndgoh67
    @ndgoh67 4 роки тому +1

    It's so in details and it's so technically in-depth in its description that I've no idea what he's talking about. It's nice to watch anyway... One day, I will understand what you are trying to say...

  • @ilhomjonmatjokubow7746
    @ilhomjonmatjokubow7746 Рік тому

    Ohne dass ich das Video anschaue weiß ich schon, dass du das perfekt erklären wirst. Du bist eif der Beste.

  • @GeorgesSaliba
    @GeorgesSaliba 7 років тому +3

    I never really liked electrical circuits or electronics before finding this channel. You are awesome!

    • @greatscottlab
      @greatscottlab  7 років тому +1

      Thanks mate :-) Always a pleasure to show people how awesome electronics can be.

  • @zanidd
    @zanidd 4 роки тому +1

    the handwriting and drawings are so satisfying

  • @nirbhayparmar
    @nirbhayparmar 3 роки тому +1

    your explanations are so easy and to the point that I can easily digest your understandings more easily than our professor's.

  • @anaglog77
    @anaglog77 7 років тому +1

    i love how neat your schematics are

  • @sinan4495
    @sinan4495 4 роки тому +1

    Ok this is amazingly comprehensive and informative

  • @aclsp91
    @aclsp91 Рік тому

    What can I say to you Scott, thank you every day!!!

  • @semidemiurge
    @semidemiurge 7 років тому

    Very informative. You are skilled in both your pedagogy and video editing, excellent work.

  • @mankav
    @mankav 7 років тому

    I am writing an exam on mixed analog and digital circuits this week. This video was a good revision on flash and sar adcs!

  • @yeeboi5545
    @yeeboi5545 7 років тому

    I really like this series please make more.

  • @str0g
    @str0g 7 років тому

    love your tutorial videos! keep up the great work.

  • @willianvasquez7972
    @willianvasquez7972 7 років тому

    Thanks for share your knowledge. This playlist is awesome. I will waiting for video #28.

  • @rishabhkumar12
    @rishabhkumar12 7 років тому +1

    i always wait for the videos the are quite helpful to me

  • @shivanshpuri3065
    @shivanshpuri3065 7 років тому

    you are the best great scott

  • @kingsarkasmus6634
    @kingsarkasmus6634 7 років тому +1

    Great.... now my brain is melting down xD. Tolles Video Scott :3

  • @vidanatural_oficial
    @vidanatural_oficial 7 років тому

    What amazing video, keep going on!!

  • @jimbobillybob1959
    @jimbobillybob1959 7 років тому

    Awesome job! Love your videos, Love your teaching skills, You are just awesome!!

  • @Rahuldhebri
    @Rahuldhebri 7 років тому

    Awesome video and love your work

  • @anjayv8347
    @anjayv8347 7 років тому

    Great video !

  • @fieldsofomagh
    @fieldsofomagh 7 років тому +1

    Great insight into ADC'S.

  • @JohnyRodri
    @JohnyRodri 5 років тому

    Thank you very much for such awesome content all the time :D

  • @sandrajerez6903
    @sandrajerez6903 5 років тому

    hey great job, understood SAR method, I had my doubts but your video made it clear, thanks

  • @learnayg
    @learnayg 7 років тому

    Nice video GS

  • @illshootyou5199
    @illshootyou5199 7 років тому

    DUDE you always release videos about things im working on at the time! When can we expect a video on mind reading? ;) lol You're awesome! Keep the videos coming! Chur from NZ!

  • @StevePietras
    @StevePietras 7 років тому

    GREAT SCOTT! Yet another good video :) Nyquest Shannon also applies to those USB desktop audio converters for recording your own music or voice at home. Stepping up to a 24bit 48kHz sampling, A very noticeable difference when recording a piano or guitar compared to the basic 16 bit card that is in your PC. Bravo and well done explanation.

  • @abdulazeez.98
    @abdulazeez.98 7 років тому

    That was very informative !

  • @rehmankhan-ve9vo
    @rehmankhan-ve9vo 2 роки тому

    Next level demonstration
    Love it ❤️❤️❤️❤️

  • @ArduinoHocam
    @ArduinoHocam 6 років тому

    Everytime i surprise when i see the Nyquist ratio, In order to reconstruct your signal perfectly you have to choose your sampling frequency greater then your signal (maximum frequency of the bandwith of your signal) otherwise there will be aliasing and that cause loss of information. That is actually fantastic.

  • @moomooproductions8735
    @moomooproductions8735 7 років тому

    Does anyone else think about this but this guy has amazing hand writing!

  • @gauravmg
    @gauravmg 6 років тому

    Really very informative. Wish they were longer by a couple of minutes and explain the quantization error in the ADS's real quick. Keep up the good work please!!

  • @tmarchiduran
    @tmarchiduran 7 років тому

    I liked the new intro!

  • @FabiiFK94
    @FabiiFK94 7 років тому

    Good video.
    Funny: ADC was one part of my "Messtechnik" - exam yesterday. :)

  • @amtpdb1
    @amtpdb1 7 років тому

    It would be great if a project was picked and this type of explanation was used showing all the used components and what happens if you used to strong or weak a unit. Thanks for the video.

  • @agumonkey
    @agumonkey 7 років тому +1

    Next: #10 DAC (thanks, very interesting to learn about the lowest level details of such components)

  • @Snake14777
    @Snake14777 7 років тому +2

    I love watching your videos even though I don't understand most of it 😂

    • @PolntBlank
      @PolntBlank 7 років тому

      same lol i feel like im watching chinese

  • @enricorov
    @enricorov 7 років тому

    I've experimented with AD conversion using an Arduino in the past: my goal was to sample an audio signal, filter the lows, mids and highs, get their amplitudes, and appropriately analogWrite() the R, G and B lines of an LED strip.
    Then Signal Theory hit me, with a *heavy* stick called FFT, and the computational cost of such filtering. Luckily, I also bumped into the wonders of analog electronics, and eventually built a low, band, high pass filter using OPAMPS. Good times.

  • @rondlh20
    @rondlh20 7 років тому +4

    Good stuff. Don't use straight lines to reconstruct samples, use low frequency sine waves.

  • @princeofodd
    @princeofodd 7 років тому

    great video!!!!!!!

  • @santihegames7588
    @santihegames7588 7 років тому

    this video was very fany, congratulations your videos inspire me for mi projects

  • @Majk369
    @Majk369 4 роки тому +2

    About the nyquist shannon theorem: if you use a low pass filter on the output, the double frequency of sample rate would be sufficient to recreate the sine. This is what the theorem stands upon. Its the backbone of digital audio. It has to do with fourier transform. Check Technology Connections video on the subject about nyquist shannon theorem.

  • @Logical19
    @Logical19 7 років тому +1

    holy hell, i have alot to learn!

  • @oldman263
    @oldman263 7 років тому

    I don't know what are you talking about but it looks awesome hehehe. I will try to figure it out in the future, well-done bro :D

  • @MDFRESCUER
    @MDFRESCUER 7 років тому

    Good video.

  • @saipulimamidi7798
    @saipulimamidi7798 3 роки тому

    Thank you I got some grip on this topic.🙏🙏🙏❣️🥰🥰

  • @CasperBHansen
    @CasperBHansen 6 років тому +2

    Looks to me like you've misunderstood the sampling theorem, by the drawing and argument you made :) Oscillating between 1 and -1, that is the fastest frequency you can reproduce. That frequency should be reflected in your system by the sampling-rate. In the case of human hearing, we can detect up to around half of 20kHz, which is reflected in the common audio sampling-rate 44.1kHz, allowing us to reproduce a maximum frequency of ~22kHz. I have no idea where you got the 10-times rule you're mentioning, but sampling at twice the maximum of required frequency range is quite enough.

  • @coxsj
    @coxsj 7 років тому +1

    Jee man, I love watching you write and draw! That is some seriously good drafting skills!!!

  • @cessnachannel4285
    @cessnachannel4285 7 років тому

    Good Job you are awesome!!

  • @Yasin-98
    @Yasin-98 7 років тому

    Better explainations than my teacher !

  • @fritzenlab_net
    @fritzenlab_net 7 років тому

    When it comes to ADC I personally love the theory over the practice of it... I mean, how beautiful and round is the entire concept of converting real world information to bits?. Now, the practive of it (sampling, aliasing, noise, etc) is dirty!

  • @aannoonniimmss
    @aannoonniimmss 7 років тому

    that's more like electronic advanced than basic. hope to understand that in the future

  • @SwipeKun
    @SwipeKun 7 років тому

    Ooooh the old intro ❤️.❤️ :3 !!!

  • @908hanhouni
    @908hanhouni 7 років тому

    Hey @GreatScott
    I really enjoy watching your electronics basics videos! Can you make a video about how to develop a project from a Breadboard on to a strip board, more specifically how to construct a circuit on a strip board? Thanks!

  • @sternenschauer
    @sternenschauer 7 років тому +2

    can you make a video where you show us how „Tesla Coils“ work? could be interesting.

  • @music99matt
    @music99matt 5 років тому

    you can get a nice signal out of 2 samples per period but in post-procesing, when you already have future samples - use some sort of spline (cause we can't get the ideal shannon interpolation formula). You can also get a good result if you delay the output by 4 or 5 samples and do a spline over them. (similar to matlabs interp1 with spline function). but the more samples you can get the better

  • @SkuldChan42
    @SkuldChan42 7 років тому

    You have such lovely penmanship :).

  • @lyaeusv3828
    @lyaeusv3828 4 місяці тому

    woow so good ty !

  • @TheIdiotPlays
    @TheIdiotPlays 7 років тому +10

    I should be studying geometry, but this is more interesting :3

    • @mchas2133
      @mchas2133 3 роки тому +1

      actually geometry is very usefull in signal processing :D

  • @avejst
    @avejst 7 років тому

    good introduction 👍😀

  • @TheVirIngens
    @TheVirIngens 7 років тому +1

    Strictly speaking, the Nyquist-Shannon sampling theorem does not state that the sampling rate must be higher than twice the highest frequency of the signal, but higher than the signal's bandwidth. So if you sample at 20 kHz and have a signal with frequencies ranging from 90 kHz to 100 kHz, you can still perfectly reconstruct the signal, since if your digital version of the signal contains a frequency of x kHz, you know the original signal must have been at (x + 90) kHz (the signal is "aliased" to below 10 kHz). This is called undersampling and is frequently done in ultrasonic positioning systems, where your signal can be bandpass-filtered in hardware, before being sampled at a sample rate much lower than the signal's frequency, which decreases the computational cost of analysing the signal.

    • @jasonc3a
      @jasonc3a 4 роки тому

      Thanks. Nyquist-Shannon is super interesting.

  • @sensiblewheels
    @sensiblewheels 7 років тому +1

    very well presented.. I'm an electronics engineer and can say that you did an amazing job as compared to the text book or a lecture on this. keep up the good work ! will be your patron soon :)

  • @nicholasofalexandria1286
    @nicholasofalexandria1286 7 років тому

    I have no idea what you just said, but I believe you.

  • @matiasacevedo2383
    @matiasacevedo2383 2 роки тому +1

    If you have a 12-bit SAR converter operating at 1MHz, what will be the maximum sampling frequency to use in hertz?

  • @brinjoness3386
    @brinjoness3386 7 років тому

    neatest left hander ever, or second after Flanders

  • @guillermolopez9130
    @guillermolopez9130 7 років тому +2

    Hey Scott can you build a smart whatch with an arduino pro mini

  • @vishal01mehra
    @vishal01mehra 7 років тому

    like it! thanks for video.

  • @p1nesap
    @p1nesap 7 років тому +9

    Nice drawings, what kind of pen do you use?

    • @elias549
      @elias549 7 років тому +1

      Project Paul he is using a black stabilo fineliner

    • @p1nesap
      @p1nesap 7 років тому

      Thanks.

    • @mathieuclement8011
      @mathieuclement8011 6 років тому +1

      Your question reminds me of those people thinking that cameras take pictures. By that logic, pens write poetry.

  • @wolvenar
    @wolvenar 7 років тому

    Good gravy. You may have just set some sort of record on how to teach the basics of ADC circuits. That was very short and yet effectively conveyed how ADC work.

  • @happyday.mjohnson
    @happyday.mjohnson 6 років тому

    Excellent video. Thank you. What do you recommend for the sampling length? Is this another parameter we can tweak to increase the sampling rate?

  • @kamranabbasov6408
    @kamranabbasov6408 5 років тому

    so should sampling rate be high in order to have good quality or low? i have geophysics course where it's mentioned that sampling rate should be small in order to observe the phenomenon "adequately described"

  • @CharlesAugustosc
    @CharlesAugustosc 7 років тому

    Cool!! Thank you Proffessor! I would like to know about amplifiers.
    Please!

  • @antonmilosevic
    @antonmilosevic 5 років тому

    Thank you so much! Now I know how to write my own SPI communication examples!
    One question tho, how do i know the exact SPI speed (frequency)?

  • @VoidHalo
    @VoidHalo 5 років тому

    I gt an adc0808 the other day. Its a nifty chip. It has an 8 channel mux on the input so you can connect 8 analog signals to it. Of course you can only convert one channel at a time.

  • @KaienSander10Official
    @KaienSander10Official 7 років тому +16

    0:22 devil confirmed? XD

  • @JickFincter
    @JickFincter 5 років тому

    Where do you get this thing? I bought some from Texas instruments but they were too small to use.

  • @cryora
    @cryora Рік тому

    Do ADC's have the oscilloscope equivalent of "bandwidth" in that if the frequency gets too high, it may not have a strong response even though it has enough samples per second to read it? Or are ADC's typically responsive to all frequencies up to their sampling frequency?

  • @ManuelGx2
    @ManuelGx2 7 років тому

    Hey Scott, thank you for this video it helps a lot to understand the way an ADC works. I've been working with an ADC10158 and i have a question, have you ever used a pin in an ADC called VREF_OUT pin?
    The ADC itself has Vref+ and a Vref- pins for its bipolar mode of operation, but it also has this other pin which the datasheet recommends to bypass to ground with a 330uF cap but i'm not sure i'm doing things right because when i do this the ADC throws out incorrect values.

  • @Juhuuu
    @Juhuuu 7 років тому +60

    why does it have to be 666? just saying...
    BTW, dang your handwriting is amazing. not a lot of people have that skill anymore, due to computers being more popular.

    • @Azagro
      @Azagro 7 років тому +21

      Juho L Because science is the work of the devil.

    • @chrono0097
      @chrono0097 7 років тому +3

      My handwriting was bullshit even before i started to use computers .-. I just didn't learn it properly and well...

    • @leedaniel2002
      @leedaniel2002 7 років тому

      Damián Cupo my handwriting was fantastic in cursive but I had to switch to print and now it's shit again

    • @chrono0097
      @chrono0097 7 років тому

      I always write in print, my cursive is just... not easy to te eye, why you had to switch to print?

    • @leedaniel2002
      @leedaniel2002 7 років тому

      Damián Cupo I grew up right as many schools in my area stopped teaching cursive. I learned it but many of my peers didn't and can't read it

  • @Art-qr2ok
    @Art-qr2ok 7 років тому

    Great!

  • @RicheyAmigoHerplerGaming
    @RicheyAmigoHerplerGaming 7 років тому

    hey Scott i want to start working on a special project. A DIY multi channel mixer. about 32 channels. kind of an ambitious project, but i have everything figured out, except the equalizer. i tried to watch some videos but they were not helpful at all, it would be awesome if you could maybe do a video on how to make a 3 band parametric eq? i am personally going to try to be using some rotary pots, but i dont know how to link them to a rang of a frequency, so yea. hell even a whole thing on making mixer would kinda of a fun project. i tried looking at videos and none of them explain it all that well, and your style realy works for me!

  • @juanpabloarenas6707
    @juanpabloarenas6707 7 років тому

    Hey Scott, I have one question. Why do you divide the analog reading of the Arduino (which returns a value between 0 and 1023) by 1024? If the maximum value that the Arduino returns is 1023, shouldn't you be dividing by 1023?

  • @godissogoodtome
    @godissogoodtome 7 років тому

    I am using a Raspberry Pi and want to convert 2 signals: the Energy in Joules on the cap bank and the power delivered to the load. Then I plan to display this info on a 7-seg after processing in the RPi. Would the 12 bit ADC in this video work for that application?

  • @HalfLife2Beta
    @HalfLife2Beta 7 років тому

    Hey, sorry for being off topic but can you answer on the arc lighter video, can we re-use the ccfl inverter from a scanner? I heard the voltage from a scanner ccfl inverter were low compared to a LCD ccfl inverter. I would also like deeper explanations regarding the pinout of the transformers on ccfl boards, and how you successfully rewind it. Thanks in advance.

  • @tomboardman8039
    @tomboardman8039 7 років тому

    I have no clue what you are talking about...worrying when this is called 'basic'!! Nevertheless I still watch everyone of your vids lol! If nothing else you make me want to learn which I guess is the whole point. Keep it up!

  • @TheKris00000
    @TheKris00000 4 роки тому

    Good Video. Thanks. Can you suggest on converting analog video signals to digital. Say for ex: from Analog CCTV to IP CCTV using may be Orange Pi ?

  • @justinparry5197
    @justinparry5197 3 роки тому

    Why was the signal being reconstructed with straight lines? My DSP class taught we use the lowest frequency sinusoid and that is why we worry about aliasing.

  • @zippy7262
    @zippy7262 7 років тому

    Try using voltage references that match bit resolution, I.e, 2.048V or 4.096V.

  • @TheBananaJoint
    @TheBananaJoint 6 років тому

    Scott du bist n geiler Leo, 4 Vorlesungen in einem Video erklärt!

  • @Marc_Wolfe
    @Marc_Wolfe 7 років тому

    What do you think about creating an adjustable switching bench power supply? Should be able to at least use the entire primary side of a PC power supply, since it boosts voltage to over 300 volts. You could either make a new secondary side, or just upgrade the secondary side with higher voltage rated caps and whatever other components need upgraded. The power monitor chip is probably just powered off the 5 volt stand-by transformer. Should be as simple as hooking up your secondary side's output to a variable voltage divider so the the voltage monitor chip always see's 12 volts; and, when you dived the voltage more the actual output goes up. i guess to get less than 12, you could use a simple linear regulator.

  • @salutoitoi
    @salutoitoi 7 років тому

    The Serial output makes the Arduino run slower.
    That's why you have 9 kHz. Normally it takes 100 microseconds, so more something like 10 kHz to read analog inputs.

  • @mums2109
    @mums2109 Рік тому

    I wish you were my electrical engineering professors.

  • @gogolego7869
    @gogolego7869 7 років тому

    49TH
    This was very useful to me! i couldnt figure it out! :D

  • @prabhacar
    @prabhacar 4 роки тому

    you rock!