Added: 1 year ago
From: makemagazine
Views: 62,716
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (284)

Sign In or Sign Up now to post a comment!
  • is'nt the output on Arduino eighter 5+ or GND?

  • This would be better with a pot connected...

  • not related but does the nano have a seperate power input? or is it only USB

  • LOL!! he is stoned in the end of the video

  • oh please never change <3

  • I had this same idea the other day, but with a 3 to 8 line coder or a decade counter

  • Comment removed

  • um, not sure if anyone has ever answered a similar question but... where does Collin get his notebooks?

  • @k1ngdeth Maker Faire... Makershed may carry it as well...

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

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

  • I wish that address was in the description:

    blog.makezine.com/archive/2011­/02/dac.html

  • do you use a microcontroller for a DAC?

  • do you have a translation for stupid people?

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

  • 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.

  • swag

  • Could you use a dip switch comfiguration instead of a microcomtroller?

  • @DactaDork I suppose that it's possible if each input was connected to the same V+.

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

  • I'll buffer your DAC

  • Why don't they use Hexadecimal on that micro? Binary to hex number conversion just makes more sense. like 00000000 = 00, 11111111 = FF, 11110000 = F0, and 00001111 = 0F

  • Collin and Bre are the two coolest guy on Youtube.

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

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

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

  • @schuyoff On arduinos (and most microcontrollers, for that matter) there are analog inputs that will specify the analog input as an integer that ranges from 0-1023, from 0v to 5.0v. Say you gave it 2.5v, the integer would be 512. Hope this helps. And btw, my name is also colin :D

  • @TCinker Well I knew that. I just wanted to know how to do it with basic components.

  • If the code didn't continue in a loop how long would the sound last

  • @megaman1025 You would no longer have a sine wave. You would have a flat line that continued until you stopped it or until the universe implodes.

  • Collin Should Have His Own Channel. I bet he'd get 100,000 Subscribers in the first week. Suck on that, Kipkay!

  • @SabooZX He already had one : /user/collinmel

  • @SabooZX Hey that doesn't mean kipkay's bad. Collin's just a million times better :)

  • @SabooZX comparing kipkay to collin is like comparing a baseball to a basketball.

  • @SabooZX he does, "collinmel" :D

  • @SabooZX they work for the same group! MAKE MAGAZINE >_>

  • @SabooZX kipkay is quite cool too

  • nope, no idea what i just watched.

  • omg a tutorial i know!!! binary conversion ftw

  • will 2x 10k ohm resistors work for 1x 20k ohm resistor?

  • @ktskid you're skipping a ladder step

  • Collin can you please do a tutorial on Oscilloscopes?

  • that's a pretty sweet oscilloscope you got there ...

    and awesome vid, nice explanation

  • SMITH!!!!! i knew it....

  • I guess this is only awesome to the people who have a little knowledge of this. Good job at whatever they call you genius for :)

  • You can make an R-2R DAC with your parallel port and drive it with a simple VB6 program and IO.dll - no need for an Arduino.

  • this video is designed very good :)

  • I want an oscilloscope now... they are so cool.

  • @MegaRad666 An oscilloscope is a very useful tool. Don't make the same mistake I did and wait 10 years before you get one. You can pay a lot of money for a good oscilloscope, but I would recommend trying to get one second-hand from an electronics shop or eBay. At least that way you can see if an oscilloscope really is a tool of use for your projects; and also you wont be too disappointed if in 12 months it becomes a workshop ornament (but I doubt it). Good luck.

  • Well, his forehead anyways, oh and the balding, but that's about it that resembles Q.T.

  • Hey look, it's Quintin Tarrantino's (Or however you spell it) long lost twin, lol.

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

  • DAC's pretty awesome! Pun was intended.

  • amazing! ive never seen someone describe electronics so well!

  • I understood the resistors and binary coding but I didn't get what was going on at all. Man I've been out of the electronics loops for a while. :|

  • 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

  • @judgenap 0000001 lol! you would eventually just hang up!

  • he is the best!!! 

  • I dont know how i got to this video but your sophistication confused the shit out of me :(

  • 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.

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

  • @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

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

  • wait couldnt you make one using an FM board?

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

  • DAC's pretty awesome, no?

  • @rtty21 no.

  • @keat43 OH NO YOU DIDN'T!

  • @DuserProductions I'd rather have a boring smart guy than a peppy dipshit.

  • @GO4TH557 I enjoy his humour and I like the way he talks, is interesting and gets into a good portion of information but isn't boring at all. (Or at least not boring to me)

  • Collins vids has an sort of boring ambientcy but is informing

    Kipkay is informing and adds a bit of excitement

    I Don't know which to pick

  • Collins vids has an sort of boring ambientcy but is informing

    Kipkay is informing and adds a bit of excitement

    I Don't know which to pick

  • I started my school electronics project today and soon realised I'd need a DAC, I go on youtube, check my subscriptions and lo and behold: "Colin, with electronics in laymans terms"!

    Thanks Colin :)

  • I'm not too familiar with computer stuff so I don't understand the practical application of this. It is interesting though! When I began watching this video I thought it had to do with those pens that record digital data as you write and that data can replicate your writing onto a computer screen. If you could show us how to make one of those that'd be cool.

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

  • Great video! Collin explains things so well!

  • Are you sure that works??? I'm perplexed... frist question, how you can have a state high on pin 1,3,5 and 6 whitout have a state high on other pins from 1 through 6? if you apply the divider you should have state high in sequence or not?...

  • Wow thanks! You're the best!!!

  • Seen this 5 times now and think its absolutely awesome!

  • genius!!

  • I am apparently the 3rd 10,000th viewer.

  • ok so what if you add a (2) ???

    1's and 0's AND 2's ??

    im no wizz, but can it be done?

  • @eclipsestorm1975 its binary 1 0. thats it. a combination of 1 and 0's makes numbers. Basically its either on or off. 1 or 0. and the mix of the switches being on and off create the the # represented.

    10101100=172

    00000000=0

    11111111=255

    i dont know binary that well. im sure you can read up about it on google.

  • @eclipsestorm1975 Im sure it could be done, but it would probably be much more expensive to make and not be cost efficient.

  • @esopbelac94

    it doesn't work like that. all that the 1s and 0s are telling the chip/arduino/computer is whether it's on (1) or off (0). and there's nothing extra than on or off. if you want to get a number on the computer (for example 2) you will need a combination of 8 1s or 0s, in this case 00110010.

  • @eclipsestorm1975 oh,it cannot be.because well 0's and 1's are not numbers for a computer.its flow of electric current.in it,whenever a 0 is there,it blocks the current and whenever a 1 is written,it allows the current to pass.so ,the 0's and 1's are like switches for the computer.so how can you add 2 then?

  • @eclipsestorm1975 There's no point, Having anything in between defeats the purpose of being digital, it would become analogue again. Only having 1 or 0 gives you determinability when you add noise to a system. Say you try send a digital [1] over a wire... say 5V at the start, then by the time you get to the end of the wire, you have added noise so it could be 4.6V - 5.2V. Well it doesn't matter, because it's close enough to 5V so it's a digital 1.

  • @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.

  • legend... nuff said...

  • o.O wtf!? im the 10000 too :D

  • 10,000th viewer! awesome job collin!

  • Awesome video, Collin! but what else is new? haha! rate up!

  • can you Use this to make a analog to digital?

  • Collin should have his own channel.

  • Collin your the man, thanks for the info, waiting for vids!

  • Dac video was awesome :3

  • dac was a lame joke, but good video Collin =] i learnt stuff!

  • Collins is the worlds coolest geek ;-) How, how does a ADC work. MUHAHAAA!

  • is a man judged by the size of his DAC? lol

  • WOW

  • Collins is the worlds coolest geek ;-)

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

  • simple, neat and rather ingenious. this is cool.

  • throw a small capacitor on the output, and you get a much smoother wave

  • now i can make an 8bit nes

  • Thanks needed this for college :D

  • 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.

  • We want kipkay again!

  • OMG stop crying for kipkay in every "non-kipkay" video....

  • @webkar

    really, i dont understand why this people are whining about kipkay, he has his own channel. go there damn

  •  i love analog

  • My brain hurts...

  • stay tuned for the Cranium to Digital Converter

  • This is binary to digital!

  • Huhhh, I just watch his vids and I don't understand what he did, well thats why we want Kipkay, because his vids are DIY and EZ & Collins vids are awesome too but you have to be a IT or Computer Science guy or something like that to do it.

  • Title fail: "coliin"

  • Name of the video is "Coliin's Lab: Digital to Analog Converter" Can you see fail? Yes! Coliin's it's two "ii".

  • ARDUINO IS GAY!

  • @xkyuz Just because you are a noob doesn't mean it is gay.

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

  • great!!!!!!!!!!!!!!!!!!!

    

  • Niice one Coliin !

  • #FTW

  • What is it that you cannot do with the Arduino?

  • DACs so cool bro!

  • Wow atleast now i know its cool :)

    p.s. Collins name is spelt Wrong in the title

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

  • Mr. Collin, thank you for posting this video, very informative.

    I was wondering how this was done.

  • Collin's Lab! #FTW

  • Why dont you people go sub too kipkay, this isnt his network

  • I made a ADC with 5 LED bar graph displays to make a neat LED equaliser thingy

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

  • 1 1 1 1 1 1 1 1

    14, 12, 10, 8, 6, 4, 2, 1

    1+2=3 3+4=7 7+6=13 13+8=21 21+10=31 31+12=43 43+14=57

    how'd he get 255? I assume it's the same why he gets 172 latter instead of 34.

    and where did 10101100 come from?

  • @SatanistSin

    each bit is an exponential value of 2, there is no 6, 10, 12, 14..

    1111111=1+2+4+8+16+32+64+128 = 255

  • @DominatorMaster oh shit! why'd I think it was just even numbers? weird ... can you explain how he got 10101100?

  • @SatanistSin It depends on the voltage sent in as far as I know, according to the resistors values.

  • 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.

  • Thanks so much for the vid.

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

  • yeah, now let's all learn to "buffer" our "DACs"

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

  • @Flint41

    this is a good thing for 99.5% of people on YouTube , dont you think ?

  • @Flint41 its a sesame street thing. just like calc

  • 25 years ago this was high tech

  • I thought this was really interesting but I was wondering how this could be used for real world applications.

  • i "like'd" just because of the lame pun at the end lolz

  • I wasn't sold on Collin at first but now I like him just as much as KipKay

  • Coliin make a 8x8 led matrix with these 74HC595

  • @hyper080 FYI there shift registers

  • This guy needs to start a techno band.

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

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

  • THE VIDEO NAME IS SPELT WRONG "COLIINS"

  • with DAC we're able to have music players woots!

  • DAC was cool!

  • dac was pretty awesome collin.

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

  • I thought now days you want to convert analog *to* digital...? And has anyone mentioned that Colin looks like Hugo Weaving?

  • Comment removed

  • To all the engineers out there, if you have an iPhone check out MATSOL look for it in the App Store. you guys will probably like it.

  • thanks, very interesting info!

  • Yes Collin, DAC really awesome indeed...

    :D

  • Dac is awesome almost as awesome as your comb over

  • I dont get it but I like it lol

  • Hey Colin. Do you think. Maybe. You could. Talk. A. LITTLE. BIT. EFFING SLOOOOWER?????!

  • This guy is amazing

  • does anyone else hear a tapping in the background?

  • teach us how to make video games!!!