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

Sdílet
Vložit
  • čas přidán 2. 08. 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.
  • Věda a technologie

Komentáře • 353

  • @hole1stdrillpresschannel
    @hole1stdrillpresschannel Před 7 lety +161

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

  • @LeoTakacs
    @LeoTakacs Před 7 lety +133

    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  Před 7 lety +9

      Thanks mate :-)

    • @aayush3782
      @aayush3782 Před 7 lety

      Leo Takacs // Scam Baiting 100% Agree

    • @aayush3782
      @aayush3782 Před 7 lety +1

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

    • @teadrinkingilluminati9173
      @teadrinkingilluminati9173 Před 7 lety

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

    • @Inesophet
      @Inesophet Před 7 lety

      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.

  • @josephtobin4831
    @josephtobin4831 Před 7 lety +122

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

    • @joshuanulton1403
      @joshuanulton1403 Před 7 lety +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 Před 5 lety

      lol me too😁😁

    • @vapourmile
      @vapourmile Před 4 lety

      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 Před 4 lety +1

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

    • @igmpvgoa1837
      @igmpvgoa1837 Před 3 lety

      Same. Gotta watch it in .75 ha

  • @PodbevsekMiha
    @PodbevsekMiha Před 7 lety +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

  • @billcodey1430
    @billcodey1430 Před 7 lety +20

    You have great penmanship.

  • @victorchorques4893
    @victorchorques4893 Před 7 lety

    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 Před 4 lety +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...

  • @costa_marco
    @costa_marco Před 7 lety +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 Před 7 lety +1

      Good knowledge!!

    • @Jefferson-ly5qe
      @Jefferson-ly5qe Před 6 lety +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 Před 5 lety

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

    • @vapourmile
      @vapourmile Před 4 lety

      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 Před 4 lety

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

  • @GeorgesSaliba
    @GeorgesSaliba Před 7 lety +3

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

    • @greatscottlab
      @greatscottlab  Před 7 lety +1

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

  • @ilhomjonmatjokubow7746

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

  • @zanidd
    @zanidd Před 4 lety +1

    the handwriting and drawings are so satisfying

  • @nirbhayparmar
    @nirbhayparmar Před 3 lety +1

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

  • @semidemiurge
    @semidemiurge Před 7 lety

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

  • @anaglog77
    @anaglog77 Před 7 lety +1

    i love how neat your schematics are

  • @WhyDoesMyCodeNotCompile
    @WhyDoesMyCodeNotCompile Před 4 lety +1

    Ok this is amazingly comprehensive and informative

  • @mankav
    @mankav Před 7 lety

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

  • @willianvasquez7972
    @willianvasquez7972 Před 7 lety

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

  • @aclsp91
    @aclsp91 Před rokem

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

  • @yeeboi5545
    @yeeboi5545 Před 7 lety

    I really like this series please make more.

  • @str0g
    @str0g Před 7 lety

    love your tutorial videos! keep up the great work.

  • @fieldsofomagh
    @fieldsofomagh Před 7 lety +1

    Great insight into ADC'S.

  • @Snake14777
    @Snake14777 Před 7 lety +2

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

    • @PolntBlank
      @PolntBlank Před 7 lety

      same lol i feel like im watching chinese

  • @sandrajerez6903
    @sandrajerez6903 Před 5 lety

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

  • @jimbobillybob1959
    @jimbobillybob1959 Před 7 lety

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

  • @gauravmg
    @gauravmg Před 6 lety

    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!!

  • @Majk369
    @Majk369 Před 4 lety +3

    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.

  • @rondlh20
    @rondlh20 Před 7 lety +4

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

  • @rishabhkumar12
    @rishabhkumar12 Před 7 lety +1

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

  • @illshootyou5199
    @illshootyou5199 Před 7 lety

    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 Před 7 lety

    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.

  • @FabiiFK94
    @FabiiFK94 Před 7 lety

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

  • @shivanshpuri3065
    @shivanshpuri3065 Před 7 lety

    you are the best great scott

  • @vidanatural_oficial
    @vidanatural_oficial Před 7 lety

    What amazing video, keep going on!!

  • @JohnyRodri
    @JohnyRodri Před 5 lety

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

  • @santihegames7588
    @santihegames7588 Před 7 lety

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

  • @oldman263
    @oldman263 Před 7 lety

    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

  • @ArduinoHocam
    @ArduinoHocam Před 6 lety

    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.

  • @rehmankhan-ve9vo
    @rehmankhan-ve9vo Před 2 lety

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

  • @Rahuldhebri
    @Rahuldhebri Před 7 lety

    Awesome video and love your work

  • @agumonkey
    @agumonkey Před 7 lety +1

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

  • @Logical19
    @Logical19 Před 7 lety +1

    holy hell, i have alot to learn!

  • @tmarchiduran
    @tmarchiduran Před 7 lety

    I liked the new intro!

  • @Yasin-98
    @Yasin-98 Před 7 lety

    Better explainations than my teacher !

  • @amtpdb1
    @amtpdb1 Před 7 lety

    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.

  • @abdulazeez.98
    @abdulazeez.98 Před 7 lety

    That was very informative !

  • @SwipeKun
    @SwipeKun Před 7 lety

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

  • @moomooproductions8735
    @moomooproductions8735 Před 7 lety

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

  • @kingsarkasmus6634
    @kingsarkasmus6634 Před 7 lety +1

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

  • @CasperBHansen
    @CasperBHansen Před 6 lety +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.

  • @TheIdiotPlays
    @TheIdiotPlays Před 7 lety +10

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

    • @mchas2133
      @mchas2133 Před 4 lety +1

      actually geometry is very usefull in signal processing :D

  • @908hanhouni
    @908hanhouni Před 7 lety

    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!

  • @SkuldChan42
    @SkuldChan42 Před 7 lety

    You have such lovely penmanship :).

  • @saipulimamidi7798
    @saipulimamidi7798 Před 3 lety

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

  • @learnayg
    @learnayg Před 7 lety

    Nice video GS

  • @coxsj
    @coxsj Před 7 lety +1

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

  • @anjayv8347
    @anjayv8347 Před 7 lety

    Great video !

  • @avejst
    @avejst Před 7 lety

    good introduction 👍😀

  • @TheVirIngens
    @TheVirIngens Před 7 lety +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 Před 4 lety

      Thanks. Nyquist-Shannon is super interesting.

  • @enricorov
    @enricorov Před 7 lety

    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.

  • @KaienSander10Official
    @KaienSander10Official Před 7 lety +16

    0:22 devil confirmed? XD

  • @cessnachannel4285
    @cessnachannel4285 Před 7 lety

    Good Job you are awesome!!

  • @sensiblewheels
    @sensiblewheels Před 7 lety +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 :)

  • @aannoonniimmss
    @aannoonniimmss Před 7 lety

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

  • @fritzenlab_net
    @fritzenlab_net Před 7 lety

    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!

  • @MDFRESCUER
    @MDFRESCUER Před 7 lety

    Good video.

  • @Juhuuu
    @Juhuuu Před 7 lety +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 Před 7 lety +21

      Juho L Because science is the work of the devil.

    • @chrono0097
      @chrono0097 Před 7 lety +3

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

    • @leedaniel2002
      @leedaniel2002 Před 7 lety

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

    • @chrono0097
      @chrono0097 Před 7 lety

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

    • @leedaniel2002
      @leedaniel2002 Před 7 lety

      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

  • @happyday.mjohnson
    @happyday.mjohnson Před 6 lety

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

  • @sternenschauer
    @sternenschauer Před 7 lety +2

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

  • @CharlesAugustosc
    @CharlesAugustosc Před 7 lety

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

  • @wolvenar
    @wolvenar Před 7 lety

    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.

  • @music99matt
    @music99matt Před 5 lety

    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

  • @brinjoness3386
    @brinjoness3386 Před 7 lety

    neatest left hander ever, or second after Flanders

  • @TheBananaJoint
    @TheBananaJoint Před 6 lety

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

  • @antonmilosevic
    @antonmilosevic Před 5 lety

    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)?

  • @princeofodd
    @princeofodd Před 7 lety

    great video!!!!!!!

  • @p1nesap
    @p1nesap Před 7 lety +9

    Nice drawings, what kind of pen do you use?

    • @elias549
      @elias549 Před 7 lety +1

      Project Paul he is using a black stabilo fineliner

    • @p1nesap
      @p1nesap Před 7 lety

      Thanks.

    • @mathieuclement8011
      @mathieuclement8011 Před 6 lety +1

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

  • @nicholasofalexandria1286

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

  • @fartbubble99
    @fartbubble99 Před 7 lety

    greatscott! what would be a good way to learn more in depth about the components and boards themselves and their inner workings? i dont know where to start, but i think a mechanical and physic understanding of all these parts would greatly help me understand all the things you say that i currently dont

  • @vishal01mehra
    @vishal01mehra Před 7 lety

    like it! thanks for video.

  • @moth.monster
    @moth.monster Před 6 lety

    Now i can build an ADC in minecraft, thanks!

  • @mums2109
    @mums2109 Před rokem

    I wish you were my electrical engineering professors.

  • @VoidHalo
    @VoidHalo Před 5 lety

    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.

  • @tomboardman8039
    @tomboardman8039 Před 7 lety

    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!

  • @gogolego7869
    @gogolego7869 Před 7 lety

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

  • @mickolesmana5899
    @mickolesmana5899 Před 7 lety

    How on Earth this is a BASIC electronic , for me it is very advance , but weirdly i am keep watching, good vid

  • @zippy7262
    @zippy7262 Před 7 lety

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

  • @lyaeusv3828
    @lyaeusv3828 Před 5 měsíci

    woow so good ty !

  • @RicheyAmigoHerplerGaming

    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!

  • @roopey
    @roopey Před 7 lety

    Nice Video! Could you please also talk a bit about oversampling? Thanks

  • @claudiocastillo8235
    @claudiocastillo8235 Před 4 lety

    thank you very much :)

  • @guillermolopez9130
    @guillermolopez9130 Před 7 lety +2

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

  • @TheKris00000
    @TheKris00000 Před 4 lety

    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 ?

  • @danielgodlewski9932
    @danielgodlewski9932 Před 3 lety

    I need to learn some basics basics and then maybe go back to check this tutorial.

  • @flywittzbeats4008
    @flywittzbeats4008 Před 10 měsíci

    "we get complete bullsh**" ...I died laughing lol

  • @mjtsquared
    @mjtsquared Před 7 lety

    I actually understood this video! Am I smart now?

  • @arnislacis9064
    @arnislacis9064 Před 3 lety

    ADC is inside in computer's soundcard, it's used for audio recording.

  • @salutoitoi
    @salutoitoi Před 7 lety

    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.

  • @ManuelGx2
    @ManuelGx2 Před 7 lety

    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.

  • @marius0033
    @marius0033 Před 7 lety

    idk why i watch because i dont get anything but i like his voice

  • @bojanm6033
    @bojanm6033 Před 7 lety

    You should have used serial plotter at the beginning to see what we get when the prescaler is 128 and 16, to see the difference, then we could see what we get on oscilloscope and on arduino