Collin's Lab: Digital to Analog Converter

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ก.พ. 2011
  • The Digital to Analog Converter (DAC) turns bits into waves using a surprisingly simple circuit built from little more than a few resistors. Learn how to build your own R-2R DAC and use it to generate waveforms with a microcontroller
    Find more at the Maker Shed: makershed.com
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 294

  • @tobortine
    @tobortine 10 ปีที่แล้ว +21

    Best explanation of a DAC I've ever seen.

  • @Daski69
    @Daski69 9 ปีที่แล้ว +11

    after watching entire lectures on this, I still wasn't getting the principal concept of how a DAC/ADC works, how it's all about matching the curve with the right voltages. Best video of all time!

    • @SE45CX
      @SE45CX 8 ปีที่แล้ว +3

      +Daski69
      If you want a smooth signal out of the DAC. You use that DAC and place an analog filter on the output.

    • @AWESOMEEVERYDAY101
      @AWESOMEEVERYDAY101 6 ปีที่แล้ว

      Daski69 try great scott

  • @Cerenth
    @Cerenth 13 ปีที่แล้ว +1

    Awesome tutorial as aways! I really love the way you explain these things in such simple terms. I've learnt more from you in 4 and a half minutes than I have in an hour with a teacher. Can't wait to see more videos!

  • @tophattommy2
    @tophattommy2 4 ปีที่แล้ว

    After 20 some videos... I find this gem of simple understanding!!!!! Thank You!

  • @Abihef
    @Abihef 3 ปีที่แล้ว

    This is great beyond comprehension, or at least my explanation of how useful this is for me right now and great to find.

  • @Dylanjraub
    @Dylanjraub 13 ปีที่แล้ว +1

    Holy crap! This design is freaking perfect! You are a genius.

  • @griffgriffo9746
    @griffgriffo9746 9 ปีที่แล้ว +6

    Fantastic,,Now it is easy to understand DAC conversion...Very good tutorial

  • @Norfeldt
    @Norfeldt 13 ปีที่แล้ว

    Seen this 5 times now and think its absolutely awesome!

  • @TheBlackhawk2399
    @TheBlackhawk2399 12 ปีที่แล้ว

    i think that the best part of your videos are that when you assemeble or review or open a kit!

  • @Spacekriek
    @Spacekriek 6 ปีที่แล้ว

    Excellent video. I love programming the 16F PIC series microcontrollers and anyone familiar with them will know that the majority of these PICs lack a basic DAC. It seems that the opinion is once you have converted an analogue quantity into a digital value you very seldom want to go back to the analogue side of things. At least, maybe that's how things turn out in the industrial world for which PICs are well suited. Using the knowledge acquired in this tutorial many of us will now be able to give our microcontrollers the ability to act like DACs, even extending it to 16 or 24 bit capability with the larger type.

  • @homosapienssapiens19
    @homosapienssapiens19 13 ปีที่แล้ว

    amazing! ive never seen someone describe electronics so well!

  • @StarfieldBound
    @StarfieldBound 10 ปีที่แล้ว

    Excellent demo. Great work!

  • @LudwigSpiegel
    @LudwigSpiegel 13 ปีที่แล้ว

    I wish I had an electronics Professor like you back in the days!

  • @norsktysker
    @norsktysker 13 ปีที่แล้ว

    Great video, as usual.
    I really like your style of explaining. And I think I actually understood how it works^^

  • @buttersstotch2014
    @buttersstotch2014 3 ปีที่แล้ว

    Miss colins lab. This got me into electronics like 10
    years ago

  • @giovannicriscwcc4249
    @giovannicriscwcc4249 3 ปีที่แล้ว

    The best teachers are on youtube, I always confirm

  • @Dechristian3
    @Dechristian3 11 ปีที่แล้ว

    This helped alot in my understanding of electronics! Thanks!

  • @Kethlar
    @Kethlar 13 ปีที่แล้ว

    Awesome Video, keep up the videos... from the looks of it all of us makers are wanting more and more to feed our brains...... brains....... feed our brains.

  • @qeaq3184
    @qeaq3184 2 ปีที่แล้ว

    Holy***, well done man .

  • @solidacid1337
    @solidacid1337 13 ปีที่แล้ว

    thanks again Colin, keep the videos coming! :D

  • @HavokTheorem
    @HavokTheorem 13 ปีที่แล้ว

    Collin, you are great at explaining stuff :) I just figured out how a computer turns electricity into lights and sounds.

  • @jasonsweet228
    @jasonsweet228 11 ปีที่แล้ว

    I just made one over the past couple days and voila, it works! I used twenty-five 150 Ohm resistors :) It overdrives the baselines and makes the bass sound like an overdrive gutar but mids are normal. I'm glad it works, first hardware project ever. I couldn't write all pins at once, so I had to toggle each individual pin and comparing the byte to 128,64,32,16,8,4,2, and 1. I didn't check the KHz on a toggle test yet, but its playing everything except the high end. Maybe my DAC cut the highs.

  • @NikolajLepka
    @NikolajLepka 13 ปีที่แล้ว

    collin be my teacher! your video submissions are so informative!

  • @guitarplayer1293
    @guitarplayer1293 13 ปีที่แล้ว

    that's a pretty sweet oscilloscope you got there ...
    and awesome vid, nice explanation

  • @maurerpe
    @maurerpe 13 ปีที่แล้ว

    Good explanation of how a DAC works.
    Note that as the number of bits in the ladder increases the tolerance of the resistors becomes more important. Using economically available 1% resistors 5 bits is no problem, 6 bits will likely have good results, and 8 bits will rarely be monotonic (which is bad for controls).
    Also, you can add 8 effective bits to your DAC by using PWM on the LSB of this ladder. 6 bit ladder with 1% resistors and 8 bit PWM = 14 bit monotonic DAC.

  • @Norfeldt
    @Norfeldt 13 ปีที่แล้ว

    This video is awesome! Just like all the other Collins vids

  • @MrBetronick
    @MrBetronick 12 ปีที่แล้ว +1

    Woooow men!!! this is incrediblee!! thnx4this!! Congratulationss!!

  • @Rewskidoo
    @Rewskidoo 13 ปีที่แล้ว

    Wow Collin sounds so natural in this video, very refreshing compared to his usual awkwardness Collin FTW!

  • @kdknitro
    @kdknitro 13 ปีที่แล้ว

    cool as long as you understand it, keep it up coliin

  • @zaredtokarz7340
    @zaredtokarz7340 4 ปีที่แล้ว

    One of the coolest videos I've ever seen user get an immediate sub

  • @FYGOKENTROSS
    @FYGOKENTROSS 9 ปีที่แล้ว

    Great video!
    THANKS!

  • @ChrisLeeW00
    @ChrisLeeW00 6 ปีที่แล้ว

    DACs Pretty Wild Man

  • @JohnIvoryMusic
    @JohnIvoryMusic 6 ปีที่แล้ว +62

    Bruh we dont even need college anymore everything is on the internet

  • @tw34kd
    @tw34kd 13 ปีที่แล้ว

    Cool informative video, Thanks!

  • @tzkelley
    @tzkelley 13 ปีที่แล้ว

    The old Radio Shack Color Computer used a similar circuit and a comparator for an analog to digital comparator. The analog voltage in was compared to an analog voltage from this type of DAC circuit. If the input voltage was higher than the voltage coming from the DAC, then the number written to the DAC was increased. Similarly, the number was decreased for lower voltage. The process continued until a suitable number was found to represent the input voltage.

  • @nishilsb
    @nishilsb 8 ปีที่แล้ว +3

    A beautiful information

  • @Lovethempeas
    @Lovethempeas 13 ปีที่แล้ว

    More Collin, MORE!

  • @BetaThings
    @BetaThings 13 ปีที่แล้ว

    Nice Video! very well explained like sesame street for electronics.

  • @AxelTiger
    @AxelTiger 13 ปีที่แล้ว

    DACs so cool bro!

  • @RhodderzX
    @RhodderzX 13 ปีที่แล้ว

    Thanks needed this for college :D

  • @jericotyler
    @jericotyler 13 ปีที่แล้ว

    Dac video was awesome :3

  • @Skegon
    @Skegon 13 ปีที่แล้ว

    I have no idea what he's talking about.. but I still think it's awesome!

  • @trexlm
    @trexlm 13 ปีที่แล้ว

    this video is designed very good :)

  • @Happilymarrieddad
    @Happilymarrieddad 7 ปีที่แล้ว

    Dacs REALLY cool.. lol Collin, you're awesome lol!

  • @jdsweet3657
    @jdsweet3657 11 ปีที่แล้ว +1

    I tried it and got mine to work on the first time. You can turn one pin on at a time too

  • @krist0sh
    @krist0sh 13 ปีที่แล้ว

    I TOTALY LOVE YOUR MUSIC! IT SOUNDS LIKE MY GRANDFATHERS OLD CASIO KEYBOARD :D

  • @benlogic8592
    @benlogic8592 5 ปีที่แล้ว

    thank you colin

  • @seppa340
    @seppa340 7 ปีที่แล้ว

    MUCH Better learning compared to the most of the universities!

  • @Poopdudeification
    @Poopdudeification 12 ปีที่แล้ว

    This hurts my brain, but is AWESOME!

  • @jekader
    @jekader 13 ปีที่แล้ว

    thanks, very interesting info!

  • @vladpuha
    @vladpuha 6 ปีที่แล้ว

    thank you for your video. great explanation. why the 10k and 20k?

  • @rb5046_
    @rb5046_ 13 ปีที่แล้ว

    Very neat! Thanks!

  • @3er24t4g1
    @3er24t4g1 11 ปีที่แล้ว

    I want more Collins lab and circuit skills

  • @tomattosfutleimierda
    @tomattosfutleimierda 12 ปีที่แล้ว +1

    oh please never change

  • @ObiTrev
    @ObiTrev 11 ปีที่แล้ว

    Thanks! I wasn't sure if a DVI to VGA dongle would work!

  • @matteopiccioni196
    @matteopiccioni196 5 ปีที่แล้ว

    Clear and educational,but how can you modulate the 0 or 1 in each pin using the R to R deck? It was told that current flows in each branch of the circuit ""isotopically""

  • @NewProductions
    @NewProductions 13 ปีที่แล้ว

    DACS PRETTY AWESOME BRAH.

  • @edwardholmes91
    @edwardholmes91 13 ปีที่แล้ว

    Love how he just draws the circuit! Even with squared paper I find it hard to draw a circuit! I need a ruler or piece of software if I'm going to do a neat job lolo.

  • @HVBasti
    @HVBasti 13 ปีที่แล้ว

    @mirandabone
    U are right! I also miss the weekend projects. Where have they gone?

  • @SacreDro
    @SacreDro 13 ปีที่แล้ว

    Thanks so much for the vid.

  • @KHA7V
    @KHA7V 8 ปีที่แล้ว +2

    dacs very cool and entertaining

  • @INSULTMANFROMEBAUMS
    @INSULTMANFROMEBAUMS 13 ปีที่แล้ว

    Collin should have his own channel.

  • @russelljenkinsfearn
    @russelljenkinsfearn 13 ปีที่แล้ว

    Niice one Coliin !

  • @judgenap
    @judgenap 13 ปีที่แล้ว

    Thanks that helps . I did think on those lines . But you are applying 5V ( 1) at different points on the ladder and 0 s too depending on the value outputed . That is what confuses me . Also lets say the least value is 00000001 then the voltage is going to be very small indeed.
    Wiki has good info to .
    Thanks again

  • @2454014
    @2454014 13 ปีที่แล้ว

    Nice video I am sure you know a lot about computer engineering.

  • @anthonyvolkman2338
    @anthonyvolkman2338 5 ปีที่แล้ว +4

    Good pun there! "DACs pretty cool"

  • @saurabhgolam9779
    @saurabhgolam9779 11 ปีที่แล้ว

    woah.. u made it look like a piece of cake
    !!

  • @judgenap
    @judgenap 13 ปีที่แล้ว

    Hi Colin thanks a bunch , if the the pins are all 1 s what is the votage out? I cant work out the voltages for the different binary values. Help!

  • @Migueldeservantes
    @Migueldeservantes 12 ปีที่แล้ว

    Hey any possibilities that you will talk of how to make a soldering nozzle like the one that you use on every single video? I have many and never have found the one that you work with! Thanks in advance!
    Mark.

  • @goompapa
    @goompapa 13 ปีที่แล้ว

    legend... nuff said...

  • @eddiea6987
    @eddiea6987 13 ปีที่แล้ว

    the end made me laugh lol . but yes collin def needs his own channel.

  • @pablo1588
    @pablo1588 12 ปีที่แล้ว

    Hi Collin, how can you control the frequency of the output ? if any value between 0 and 255 represents 0 to 5 volts, that means it would modulate the amplitude of the wave, but what about the freq ?. Just trying to understand, anyway Great videos !!

  • @konsul2006
    @konsul2006 13 ปีที่แล้ว

    all teachers should be like Coliin :)

  • @MrSoundshark
    @MrSoundshark 12 ปีที่แล้ว

    Looking at the out put wave it looks very much like the output from pwm, i could be wrong im self taught :) but could that set up be used in a similar way to a pwm setup?

  • @DacoTaco
    @DacoTaco 13 ปีที่แล้ว

    @judgenap i dont know much about about electronics and that stuff, but the highest your analog signal you can get is , if im correct, the highest voltage you can get out of 1 pin -> the voltage youre working with. in collin's case this is 5v. if he passes his 5v(as a 1 signal) trough all 8 pins, he should give out 254(11111111) which equals to 5v

  • @mattswinn
    @mattswinn 13 ปีที่แล้ว

    Dac is awesome almost as awesome as your comb over

  • @siliconwitch
    @siliconwitch 12 ปีที่แล้ว

    @eclipsestorm1975 There are times where you can add more increments in between because it can increase you data transfer. In radio communications, this is the trade off that reduces accuracy and makes your signal more likely to get screwed up along the way.

  • @IsaacC20
    @IsaacC20 12 ปีที่แล้ว

    3:22 Will the output voltage measure differently if for a single DAC value we measure from the T-intersection at the 4th bit?

  • @ObiTrev
    @ObiTrev 11 ปีที่แล้ว

    I have seen that old Digital Video Stabilizers (made in the 80s for private home VHS copying) also works at removing copyright restrictions on DVDs. If the signal is converted from Digital to Analog, would the DVS work to remove the restriction encoded in the signal from the DVI out? .

  • @MrGoatflakes
    @MrGoatflakes 11 ปีที่แล้ว

    It a microcontroller, a very small & cheap ($15 but you can get $2 cut down versions) computer that can interface to electronics you want to control or receive data from & also it connects to USB. You can also get "shields", boards that plug into it & provide functionality, such as Ethernet shield, SD Card shield, etc.
    Microcontrollers have been around for ages (longer than PCs) but until recently needed expensive hardware & software to develop with so weren't really that good for hobbyists.

  • @luiscruz149
    @luiscruz149 13 ปีที่แล้ว

    really cool

  • @RyanJensenEE
    @RyanJensenEE 13 ปีที่แล้ว

    10,000th viewer! awesome job collin!

  • @aayush10001
    @aayush10001 13 ปีที่แล้ว

    genius!!

  • @m42uko
    @m42uko 13 ปีที่แล้ว

    Cool! Could you please also do a video on analog to digital converters?

  • @edwardholmes91
    @edwardholmes91 12 ปีที่แล้ว

    Is there a possibility of a video on how Analogue to Digital conversion? How to make a ADC.

  • @FrigginSmift
    @FrigginSmift 13 ปีที่แล้ว

    Collins for president!

  • @rbl777
    @rbl777 13 ปีที่แล้ว

    similar to computer chips recognizing ones and zerors, we sense pain or pleasure
    wat is life and reality? you gave me a hint thats its a system of resistors and what not.
    thank you!

  • @HandPickedArtwork
    @HandPickedArtwork 6 ปีที่แล้ว

    I love Dac

  • @thishasgottobecrazy
    @thishasgottobecrazy 13 ปีที่แล้ว

    @maribakumon 0-255 is 256 different values (2^8)

  • @aki21
    @aki21 13 ปีที่แล้ว

    whoah! can i use that to create a pure sine wave? that would be great!

  • @keoni29
    @keoni29 12 ปีที่แล้ว

    Use a demultiplexer in combination with this. It saves arduino pins and the output is buffered.

  • @ObiTrev
    @ObiTrev 11 ปีที่แล้ว

    I know that LCD TVs that provide analog connections convert the signal to a digital one, so the hardware can form a picture. VGA is also converted to digital on LCD monitors. So, is it possible to convert HDMI to S-Video with similar components?
    I have a 12" Color TV that I use to preview old VHS Tapes before I capture them for clients. However, I can't play the captures from the PC to the TV. My video card only has DVI or HDMI outs and the HD screen poorly represent the old footage very well.

  • @StarTrooper47
    @StarTrooper47 9 ปีที่แล้ว +1

    dude your oil lamp is wicked.

  • @schuyoff
    @schuyoff 13 ปีที่แล้ว

    Can you do a tutorial on analog to digital conversion? I have an idea, but I want the coolness and verification of Collin

  • @therealjammit
    @therealjammit 12 ปีที่แล้ว

    I remember doing this before sound cards were created. I'd make an R/2R ladder and use my parallel port to drive it.

  • @ubito_san
    @ubito_san 13 ปีที่แล้ว

    DAC was cool!

  • @pibyte
    @pibyte 3 ปีที่แล้ว

    You rule!

  • @rockerzac99
    @rockerzac99 12 ปีที่แล้ว

    So to generate a waveform, you run the pins consecutively?

  • @intergalacticoverdri
    @intergalacticoverdri 8 ปีที่แล้ว +1

    where are hardcover bound (non cheap spiral bound) graph notebooks like this found, especially in that kind of blue color. where is that type of notebook found/available?

    • @wewhippedemdidntwe
      @wewhippedemdidntwe 8 ปีที่แล้ว

      +intergalacticoverdri Yeah I'm interested in that as well, much more convenient than a pile of loose sheets

    • @ArsyadKamili
      @ArsyadKamili 8 ปีที่แล้ว

      You can find them on bookstores.

    • @intergalacticoverdri
      @intergalacticoverdri 8 ปีที่แล้ว

      thanks

  • @delbomb3131
    @delbomb3131 13 ปีที่แล้ว

    @konsul2006 i totally agree. he reminds me of my 10th grade physics teacher i had and that was one of my favorite classes