Yes he do really deserve a big thanks because he do that! It is genius, simple and so illustrative that I hope everyone else would do the same! w2aew, thank you for doing that extra work and for sharing your knowledge with us!!
You are the master of demonstrating complex things in the easiest manner. Even a small kid now can understand how R-2R DAC works. I am sure it would be less noisy than PWM DAC without all the switching noise?
You know, I learned all this stuff in college, but Alan -your K.I.S.S. approach, crystal clear presentations and concise treatment of these subjects are now streamlining my brain! (Which I really need in my advancing age.) Very much appreciated!
Really good. Thank you. I remember my undergrad p-chem lab exam had us doing the derivation of this. I flunked. Nice to see a master do it right. Please do more of this sort of thing. The Arduino kids are really learning almost nothing but silly cutesy junk. They can really benefit from people who meet them half way.
Seriously good, informative video on a resistor ladder for digital to analog conversion. And yes, I do look at videos like this on a Saturday Morningside for fun :)
I really enjoy these videos. Your preparation and attention to detail, without becoming too technical, has allowed me to learn and understand at a level that I will likely use the stuff you are presenting. Thanks a whole bunch! Keep up the great work!
I am learning electronics buy myself and your video has made allot of things make sense now. From how digital outputs work (constant voltage) to how transistors control voltage, and even how capacitors are used to clean up ac from a dc voltage signal. Great I can not thank you enough for your clean and detailed walk-though explanation! I have just purchased an old analog oscilloscope, cant wait to see pulses that can otherwise not be perceived :-)
Only after i read "Art of Electronics" chapter 1 with voltage dividers and such i have now fully appreciated and went ahead of 3:10 for a magical "AHA!" in my head. What i mean is, i finally understood how does it become a "resistance = R". But that is not your fault, it is more of a personal obsession of mine. 4 months ago i had been jumping around many different topics and things i've watched were nowhere near close to each other (one time, what is oscilloscope, watching several GHz oscilloscopes and "WOW he can view gigabit ethernet, or transmission through wireless, does it really look like this??", another about what is a mixer, how to manufacture projects from Dave from EEVBlog... you get the point) but after i started reading this (very slowly btw, i should progress faster) book, everything seemed to finally click rather than being chaotic collection of facts.
Excellent video. Thanks for the great explanation of how everything works in a D/A resistor ladder converter. Very clear drawings and explanations. I learned this easily watching your video while the book I was reading was kind vague on what your video covered. Thanks again for showing me how it works. I will definitely be checking out your channel, from this video I can tell that you know exactly what why and how this stuff works and you are very good at explaining it in a very easy to comprehend way that the books don’t. Thanks again. I have said that too many times.
This helped me understand r-r2. I have resolved to watching this video as my electronics book didn't help me understand it much for my course. I shall share this with my fellow students.
I'm glad you found the video useful. Let me know if there are other topics that you and your fellow students have difficulty with, and maybe I'll do a future video on them.
I remember learning a little about MIDI sequencing when I was younger, and I never quite got the concept of MSB and LSB until I learned about A/D and D/A resistor networks. Your video is by far one of the best on TH-cam about explaining the concept of parallel D/A conversion. Thanks for making your videos. I should make some videos about own about my profession, but audio mixing and mastering really isn't one of those necessary things in life as electronics is.
great video bud. The gag with the pages flipping over, demonstrating the current flow through the r2r ladder, was a great visualization! didn't even need to get fancy with the graphics!
I was not aware that I watched this...haha.. Right when I am looking into R2R ladders for an ADC0809 that I've been playing around with... Great job on the Thev and Superposition part..I have to go back and rewatch that as I note EVERYTHING. Thx Alan
Nice!! An excellent tutorial on the R-2R ladder. I liked the way you illustrated the R-2R with the folding paper. Best explanation I have ever seen on this topic. Keep up the GREAT work. Nice lab, too. Thanks
Omg. Thanks a lot. I actually remember seeing your video a few months back. I think that is how I found your channel in the first place and that was when I subscribed. I will watch it again soon. Thanks again.
Very much appreciated, W2AEW! This and the rotating "TeK" video very nicely done, well paced lessons and the start of a much-needed refresher course, if I'm going to make any headway with some of the projects I've been wanting to try. The R-2R DAC stuck into an Arduino is a kick! I have all the parts but I doubt if I have all the patience. We'll see! Thank you for posting!
You are an incredible teacher. A teacher whom I'd like to play paper rock scissors for that beautiful mdo of your's. Wow. I keep my eye out on ebay all the time. Instead of paying 3k last year for one and a k the year before (that I donated) I should've bought a second hand one. Haha
you should be teaching this .... i had to learn this 2 months ago and i didnt even understand a single word of what my teacher tried to tell me but now i understand it even though superposition could be realized with less resistors but more resistor values
I remember vaguely seeing this in a german home computer magazine (64'er) in the early nineties. I always thought it's super convenient, but alas the userport on the C-128 even when driven by machine code was too slow to really have that level of fun with it.
I made an R2R ladder video also ..... I show the staircase waveform on oscilloscope .... it's in my Electronics Projects playlist..... I subscribed..... great channel
Ahrrrr, matey! :) I like this one. Gonna make one of these some day. I'm thinking about adding rotation in the analog domain... Hm! Multiply an analog value by a sine wave... Gilbert Cell, I think. Then... the full set: scaling. rotation, translation. Lots of multiplies; maybe multiplexed Gilberts so we don't need so many of them. Lots of oscillators, too. Fully over-engineered!
Great, thanks. Alan you got teaching talent. This paper equivalent cut outs which you add graduately are worth registerd as a teaching aid patent :-) great.
Can you explain the PLL to me? I would like to understand the mathematics behind it but at the same time get a clear and basic understanding of it. In the meantime, I will look to see what other videos I find on youtube. Thanks.
This video rally helped me understand r-2r network in a simple and uncomplicated way , thanks . Also i adoing my 3rd year project this year and there will bw ADC and DAC in it I am struggling to find material on speeds and settling times on DACs and wanted your opinion if possible Thanks
Random fact. Modern high end tvs (oleds) will have to reach a refresh rate of 1k hz for them to achieve the smooth motion of those 'relic' crt displays our civilization ran away from. Imagine the processing power a pc would need to drive path traced graphics in real-time to achieve a perfect v-synch with that. 2000 dollar gpus have to use interpolation to create false frames to hit 4k60 now finally but cpus will take longer to evolve than the display tech because they can't match the parallelism of modern gpus to feed them fast enough. I rarely find a game the odd time I play one (as I get older) where my cpu can saturate the gpu with vertices fast enough to hit full utilization. Intel said they would be at 10ghz by now but they can't hit it with current 3nm euv silicon etching. The 3nm node itself is a feat of monumental human ingenuity and it's hard to believe only one company makes sub 28nm lithographic etching technology. Most ics these days have stayed at that node as it's more than sufficient for most smd ics. I believe all dip ics are on the same 140 something nanometer node for the last 15 or so years. It's why most Chinese ttl and cmos ics are somewhat reliable for most hobbyists to mess around with. I've stopped buying as much from them the deeper I go down this fun rabbit hole people like you make so infectiously approachable and fun. I've read more text books the last five years and taken more notes than I did in university learning about data mining algorithms back in the 90s haha. To be fair though there were not alot of books then so we read white papers and such. I graduated top of my class then went into policing ffs and now play catchup in my 40s hahaha. Best thing about early retirement has been learning about electronics and playing stringed instruments. I wish I was as good at electronics as I am at playing guitar. You should have a patreon, even if you don't need the money. I'm sure alot of us would show appreciation. If you give me your mso I'll donate 10k worth of test gear to a local non profit hahaha. (Admittedly though it wouldn't be fair as I'm half way there already) hahaha.
Alan, did you have to adjust your X/Y coordinates when you switched from PWM to the R-R2 DAC and started writing PORTD and PORTB registers? I built a ladder very similar to yours and it seems to test out well on the "steps" test. (Just running up consecutive numbers and resetting to 0). When I tried applying my PWM coordinates, my initials where not recognizable although points and lines were and no flickering. Looked misconfigured. Same 2.7K resistors (2 in series for R2) and a 10nF to ground off the output. I am wondering if my sketch might be off but it seems pretty simple to do.
The only two things I had to do was to use the map() function to rescale the X values to 0-255 and the Y values to 0-64. Also, adjust the delay in the loop and/or the filter cap to ensure the points settle to make a clean, crisp trace.
Been fooling around and yes, figured out you couldn't push a number like 98 into a six bit field. Went back to the Xmas tree and got that displaying nice. I divided all the coordinates by 5. I'll use the map() function for my initials and see what I get! Alan, I want to sincerely THANK YOU for all the time you take posting your videos. Thank you for uploading your knowledge and experience!
***** Everything worked. Christmas Tree and initials are crisp and flicker free. Have to get a camera that is fast enough to show it!! LOL. Had to fool around with the cap filter and timings to get the right combo. Settled on a .1uF Mylar cap. I was only seeing points on the scope until I changed out the cap. Learned a lot about my scope in this project. Thanks again!
Just a dumb question ... does this R-2R Networks is exactly similarly to what we normally hear DAC ? if I understand it correctly. Sorry...still learning about electronics
When r2r is feed with a current, the overall analysis looks much simpler. All you need is to divide the current by two at each stage. And a I/U stage is simpler and more precise than U stage. The only reason for a voltage ladder is a ghetto-dac, when fpga/soc is connected directly to the ladder.
It seems that I can use this circuit to read four (or more) digital buttons, or switches. I would connect one side of the open switch to my high logic level, like 5 volts, or three volts and then the other side of each switch to b0, b1, b2, and b3, and then if the switch or button is connected (it registers a binary 1 on that line) and it will add an appropriate amount of voltage to the Vout. Am I understanding that right?
Another good video. The combination of Thevenin AND Superimposition theory in one example is brilliant. Keep up the good work. You certainly inspire me to try new techniques and ideas. DAVET38
I took a array of cd4066 bilateral switches and set them up where they could switch each R2R bit to either a common signal or gnd... pretty much made a R2R amplifier in that manner that could be digitally set by a micro port.
My analog audio output on my pc doesnt work, so im must use the digital one. Is it possible to use only one digital input? So, the resistors are voltage dividing the digital input so it can be read as analog? How can i get more bits if i only have one digital output? Hope you can answer me :)
The R2R DAC needs parallel digital input. If you only have a single bit source, then the only thing you might be able to do is to feed the data into a shift register. Although, you will still need and additional bit of two to click the data into the register, etc. the better thing would be to pick up a $10 Arduino...
flip book idea is great! but why did you solder 14 bit ladder if you used only bits b6...b0 for the presentation? all other buts are nit used so fir this example one port would do, right?
A great video. I have some beginner's questions. How do you select the magnitude of R? In principle it does not matter, but if it is too low it might load the digital source. Can it be too high? For example, very high resistance might add more thermal noise? Thanks in advance for any answers.
The resistor value is a compromise between the load placed on the digital source driving it, and the output impedance - and how it will be loaded by the circuit that "reads" the analog output.
I built R2R DAC using 0.1% 7.5k and 15k resistors. The expectation was to get 8-bit resolution with 8 digital inputs. Not so easy. Actual resolution appeared to be 7-bit, most likely due to variance in intrinsic resistance of digital pins of the microcontroller, estimated to be in 300-500 oHm range. So higher resistance (50-100k) might be beneficial. Yet another limitation was Vdd noise on digital pins, also limiting resolution to about 7-bits. Overall impression that 7-bit is a practical limit.
Thank you, Alan, for another terrific, informative video! However, I'd like to stir things up , if I may, with a bit of debate: I submit to you, Sir, that this is technically not a digital-to-analog converter, but a binary-to-decimal converter, since it's output is still composed of discrete, non-arbitrary steps, rather than one smooth, continuous curve. Would you or anyone else care to refute my claim? ;^)
I wouldn't call it "binary-to-decimal", since the output is certainly not a decimal value. A more accurate description would be a binary to discrete analog or quantized analog. All DACs output discrete analog outputs. You can put a low pass filter at the output, whose corner frequency is below 1/2 the sample rate, that will "smooth out" the steps in the response. This is often called a "reconstruction" filter.
I have the tds2002c that I got in a trade and I use it more than my new one. It's the only piece of gear (along with a tek dm916) I'd never part with. Even the documentation that came with it is incredible. I buy an expensive (for me) rigol and all they have is pdfs and I don't trust it like I do the tds2002c. It's a buggy mess.
I've never seen the "flip book" approach you used here, that's genius
Yes he do really deserve a big thanks because he do that! It is genius, simple and so illustrative that I hope everyone else would do the same! w2aew, thank you for doing that extra work and for sharing your knowledge with us!!
Sir you are an incredible teacher....hands down
Every so often I come across a really great electronics video and I go to click subscribe - then I realise I already have. And it’s always you!
you've got no idea the amount of stress this video just cured me of, thank you so much
As always, awesome explanation with real life examples, thank you!
You are the master of demonstrating complex things in the easiest manner. Even a small kid now can understand how R-2R DAC works. I am sure it would be less noisy than PWM DAC without all the switching noise?
You know, I learned all this stuff in college, but Alan -your K.I.S.S. approach, crystal clear presentations and concise treatment of these subjects are now streamlining my brain! (Which I really need in my advancing age.) Very much appreciated!
Really good. Thank you.
I remember my undergrad p-chem lab exam had us doing the derivation of this. I flunked. Nice to see a master do it right.
Please do more of this sort of thing. The Arduino kids are really learning almost nothing but silly cutesy junk. They can really benefit from people who meet them half way.
Seriously good, informative video on a resistor ladder for digital to analog conversion.
And yes, I do look at videos like this on a Saturday Morningside for fun :)
I thought I posted this on g+, not TH-cam. Now I can't edit it or delete it :(
I got the post from you on G+, are they not one in the same now? Thank you I enjoyed the lecture very much.
I really enjoy these videos. Your preparation and attention to detail, without becoming too technical, has allowed me to learn and understand at a level that I will likely use the stuff you are presenting. Thanks a whole bunch! Keep up the great work!
Fantastic presentation! I love the paper-flipping technique!
I am learning electronics buy myself and your video has made allot of things make sense now. From how digital outputs work (constant voltage) to how transistors control voltage, and even how capacitors are used to clean up ac from a dc voltage signal. Great I can not thank you enough for your clean and detailed walk-though explanation! I have just purchased an old analog oscilloscope, cant wait to see pulses that can otherwise not be perceived :-)
Great! I'm glad my videos are helping you to learn electronics!
I always enjoy your presentation style (and content!), but the analog PowerPoint animation is a whole other level of awesome! Thank you!
I feel like a caveman every time I watch your videos... Indistinguishable from magic.
Only after i read "Art of Electronics" chapter 1 with voltage dividers and such i have now fully appreciated and went ahead of 3:10 for a magical "AHA!" in my head. What i mean is, i finally understood how does it become a "resistance = R". But that is not your fault, it is more of a personal obsession of mine. 4 months ago i had been jumping around many different topics and things i've watched were nowhere near close to each other (one time, what is oscilloscope, watching several GHz oscilloscopes and "WOW he can view gigabit ethernet, or transmission through wireless, does it really look like this??", another about what is a mixer, how to manufacture projects from Dave from EEVBlog... you get the point) but after i started reading this (very slowly btw, i should progress faster) book, everything seemed to finally click rather than being chaotic collection of facts.
Excellent video. Thanks for the great explanation of how everything works in a D/A resistor ladder converter. Very clear drawings and explanations. I learned this easily watching your video while the book I was reading was kind vague on what your video covered. Thanks again for showing me how it works. I will definitely be checking out your channel, from this video I can tell that you know exactly what why and how this stuff works and you are very good at explaining it in a very easy to comprehend way that the books don’t. Thanks again. I have said that too many times.
Thanks understanding the weighting using a simple resistor network was easy enough. I struggled with the R 2R voltage mode model. This helps a bunch.
Very educational, thank you. I love the way you pictured all the steps in the analysis of the circuit. Awesome!
This helped me understand r-r2. I have resolved to watching this video as my electronics book didn't help me understand it much for my course. I shall share this with my fellow students.
I'm glad you found the video useful. Let me know if there are other topics that you and your fellow students have difficulty with, and maybe I'll do a future video on them.
***** Wheatstone bridges :)
All electronics lessons should be presented through flip-books! Wonderfully lucid explanation of R2R DACs
I remember learning a little about MIDI sequencing when I was younger, and I never quite got the concept of MSB and LSB until I learned about A/D and D/A resistor networks.
Your video is by far one of the best on TH-cam about explaining the concept of parallel D/A conversion. Thanks for making your videos. I should make some videos about own about my profession, but audio mixing and mastering really isn't one of those necessary things in life as electronics is.
great video bud. The gag with the pages flipping over, demonstrating the current flow through the r2r ladder, was a great visualization! didn't even need to get fancy with the graphics!
Your tutorial is on Tektronix's website in written form. That's pretty cool.
I like a lot the video, especially the way you use the paper to explain, it is a system that helps to understand.
Thank you.
ScopeArt. My new favorite hobby.
Thanks.
I love how you used the cut pages for the explanation! Great!
Excellent! There's no other word for this.
I remember this stuff long ago and far away.
Was working on z80's and such... this brings back plenty of memories thank you!
Brilliant. There is something really beautiful and elegant about the R-2R ladder.
Simply brilliant. Thank you.
I was not aware that I watched this...haha.. Right when I am looking into R2R ladders for an ADC0809 that I've been playing around with... Great job on the Thev and Superposition part..I have to go back and rewatch that as I note EVERYTHING. Thx Alan
You are simply a fantastic teacher!!
The part with the fold over paper make it so obvious and simple to understand! :-)
VERY USEFUL, one of the quickest self-made DAC converters I've ever seen :) I'm sure it will come in handy at a certain point. Thanks for sharing.
Nice!! An excellent tutorial on the R-2R ladder. I liked the way you illustrated the R-2R with the folding paper. Best explanation I have ever seen on this topic. Keep up the GREAT work. Nice lab, too. Thanks
Omg. Thanks a lot. I actually remember seeing your video a few months back. I think that is how I found your channel in the first place and that was when I subscribed. I will watch it again soon. Thanks again.
Hi, we used that network (with a bit of filtering) in the late 80s to get digital audio from a 8 bit PC Printer port.
binge watching all the circuit tutorials, trying to remember to like and comment on each as well
You have great teaching skills! Thanks
Very much appreciated, W2AEW! This and the rotating "TeK" video very nicely done, well paced lessons and the start of a much-needed refresher course, if I'm going to make any headway with some of the projects I've been wanting to try. The R-2R DAC stuck into an Arduino is a kick! I have all the parts but I doubt if I have all the patience. We'll see! Thank you for posting!
You can buy R-2R resistor networks from places like Digikey or Mouser - a lot less tedious to wire up!
Thank you, W2AEW, will def. look into the ready-made solution. But there are times when such tedium can be good for the soul. ;)
the art of DAC ... thanks for the great video
You are an incredible teacher. A teacher whom I'd like to play paper rock scissors for that beautiful mdo of your's. Wow. I keep my eye out on ebay all the time. Instead of paying 3k last year for one and a k the year before (that I donated) I should've bought a second hand one. Haha
you should be teaching this .... i had to learn this 2 months ago and i didnt even understand a single word of what my teacher tried to tell me but now i understand it even though superposition could be realized with less resistors but more resistor values
Identical values are used to take advantage of the inherent matching in IC manufacturing.
+Auerc0re He IS teaching this.
I remember vaguely seeing this in a german home computer magazine (64'er) in the early nineties. I always thought it's super convenient, but alas the userport on the C-128 even when driven by machine code was too slow to really have that level of fun with it.
very good explained of R-2R ladder, thank you very much :-) genius.
Another excellent training video. Thank you!
I made an R2R ladder video also ..... I show the staircase waveform on oscilloscope .... it's in my Electronics Projects playlist..... I subscribed..... great channel
Excellent explanation as always, Thanks for your time and efforts.
Brilliant explanation of R2R DAC!
Many thanks.. Got the PWM method working so I think I will try with the R2R method. :)
Ahrrrr, matey! :)
I like this one. Gonna make one of these some day. I'm thinking about adding rotation in the analog domain... Hm! Multiply an analog value by a sine wave... Gilbert Cell, I think. Then... the full set: scaling. rotation, translation. Lots of multiplies; maybe multiplexed Gilberts so we don't need so many of them. Lots of oscillators, too. Fully over-engineered!
great talk and i loved the demp
Awesome video - thanks for showing the math for the R2R ladder.
Very good explanation, also well done with the substitution!
You did it again Allen! Great video!
All from YOUR desire to learn more! Thank You!
Useful and interesting... Who needs power point anyway. : )
Very creative on so-many levels.
Big like for the explanation method!
Great, thanks. Alan you got teaching talent. This paper equivalent cut outs which you add graduately are worth registerd as a teaching aid patent :-) great.
I love this w2aew version of DaveCad :-)
AllanCad is much clearer.
That's how Disney Sound Source/Covox Speech Thing worked. A good few old games supported just that.
a good teacher
Best explanation ever. Love it!
Can you explain the PLL to me? I would like to understand the mathematics behind it but at the same time get a clear and basic understanding of it. In the meantime, I will look to see what other videos I find on youtube. Thanks.
thnks for your clear explanation. really love it
Fantastic video as usual. Thanks!
Brilliant!
really excellent video.
great video, very informative, thanks a bunch :)
This video rally helped me understand r-2r network in a simple and uncomplicated way , thanks . Also i adoing my 3rd year project this year and there will bw ADC and DAC in it I am struggling to find material on speeds and settling times on DACs and wanted your opinion if possible Thanks
Random fact. Modern high end tvs (oleds) will have to reach a refresh rate of 1k hz for them to achieve the smooth motion of those 'relic' crt displays our civilization ran away from. Imagine the processing power a pc would need to drive path traced graphics in real-time to achieve a perfect v-synch with that. 2000 dollar gpus have to use interpolation to create false frames to hit 4k60 now finally but cpus will take longer to evolve than the display tech because they can't match the parallelism of modern gpus to feed them fast enough. I rarely find a game the odd time I play one (as I get older) where my cpu can saturate the gpu with vertices fast enough to hit full utilization. Intel said they would be at 10ghz by now but they can't hit it with current 3nm euv silicon etching. The 3nm node itself is a feat of monumental human ingenuity and it's hard to believe only one company makes sub 28nm lithographic etching technology. Most ics these days have stayed at that node as it's more than sufficient for most smd ics. I believe all dip ics are on the same 140 something nanometer node for the last 15 or so years. It's why most Chinese ttl and cmos ics are somewhat reliable for most hobbyists to mess around with. I've stopped buying as much from them the deeper I go down this fun rabbit hole people like you make so infectiously approachable and fun. I've read more text books the last five years and taken more notes than I did in university learning about data mining algorithms back in the 90s haha. To be fair though there were not alot of books then so we read white papers and such. I graduated top of my class then went into policing ffs and now play catchup in my 40s hahaha. Best thing about early retirement has been learning about electronics and playing stringed instruments. I wish I was as good at electronics as I am at playing guitar. You should have a patreon, even if you don't need the money. I'm sure alot of us would show appreciation.
If you give me your mso I'll donate 10k worth of test gear to a local non profit hahaha. (Admittedly though it wouldn't be fair as I'm half way there already) hahaha.
Question Would a square wave input at 50% yield a stair step waveform?
Doesn't the Arduino have analog outputs? I used basic stamp long ago. For hobby what do you recommend to be easier to program Arduino or Basic Stamp?
Thank you very much!
Alan, did you have to adjust your X/Y coordinates when you switched from PWM to the R-R2 DAC and started writing PORTD and PORTB registers? I built a ladder very similar to yours and it seems to test out well on the "steps" test. (Just running up consecutive numbers and resetting to 0). When I tried applying my PWM coordinates, my initials where not recognizable although points and lines were and no flickering. Looked misconfigured. Same 2.7K resistors (2 in series for R2) and a 10nF to ground off the output. I am wondering if my sketch might be off but it seems pretty simple to do.
The only two things I had to do was to use the map() function to rescale the X values to 0-255 and the Y values to 0-64. Also, adjust the delay in the loop and/or the filter cap to ensure the points settle to make a clean, crisp trace.
Been fooling around and yes, figured out you couldn't push a number like 98 into a six bit field. Went back to the Xmas tree and got that displaying nice. I divided all the coordinates by 5. I'll use the map() function for my initials and see what I get! Alan, I want to sincerely THANK YOU for all the time you take posting your videos. Thank you for uploading your knowledge and experience!
I'm constantly inspired by the nice comments and encouragement I receive from my viewers, so Thank You!
***** Everything worked. Christmas Tree and initials are crisp and flicker free. Have to get a camera that is fast enough to show it!! LOL. Had to fool around with the cap filter and timings to get the right combo. Settled on a .1uF Mylar cap. I was only seeing points on the scope until I changed out the cap. Learned a lot about my scope in this project. Thanks again!
Just a dumb question ... does this R-2R Networks is exactly similarly to what we normally hear DAC ? if I understand it correctly. Sorry...still learning about electronics
I should add that with the right software algorithm, you can even do polyphonic music. (you're just adding binary numbers).
73, Steve
Thanks!
When r2r is feed with a current, the overall analysis looks much simpler. All you need is to divide the current by two at each stage. And a I/U stage is simpler and more precise than U stage. The only reason for a voltage ladder is a ghetto-dac, when fpga/soc is connected directly to the ladder.
Very cool🙂
It seems that I can use this circuit to read four (or more) digital buttons, or switches. I would connect one side of the open switch to my high logic level, like 5 volts, or three volts and then the other side of each switch to b0, b1, b2, and b3, and then if the switch or button is connected (it registers a binary 1 on that line) and it will add an appropriate amount of voltage to the Vout. Am I understanding that right?
Yes, except that the output will be binary weighted for any single button push.
Ok so real question is, can you go backwards and creat analog--to-digital converter?
nice thank you!
Hi could you please tell me which mixed signal scope you use and its bandwidth thanks
Another good video. The combination of Thevenin AND Superimposition theory in one example is brilliant. Keep up the good work. You certainly inspire me to try new techniques and ideas. DAVET38
I took a array of cd4066 bilateral switches and set them up where they could switch each R2R bit to either a common signal or gnd... pretty much made a R2R amplifier in that manner that could be digitally set by a micro port.
Sounds clever!
Yeah, that's a cool idea!
Just wondering, could you use this as a DDS circuit for some lower frequencies?
I wish my high school teacher taught as good as one tenth of you
Have you ever used the 74hc393 ic chip to build a 4 bit stair step generator before?
I haven't
@@w2aew Ok. I’m working on one. Using in a Curve Tracer circuit.
My analog audio output on my pc doesnt work, so im must use the digital one. Is it possible to use only one digital input?
So, the resistors are voltage dividing the digital input so it can be read as analog? How can i get more bits if i only have one digital output? Hope you can answer me :)
The R2R DAC needs parallel digital input. If you only have a single bit source, then the only thing you might be able to do is to feed the data into a shift register. Although, you will still need and additional bit of two to click the data into the register, etc. the better thing would be to pick up a $10 Arduino...
Aha i see. Thank you for answering this quick, this is what i needen to know.
flip book idea is great!
but why did you solder 14 bit ladder if you used only bits b6...b0 for the presentation? all other buts are nit used so fir this example one port would do, right?
I built this for a project that used both a 6 bit and an 8 bit R2R for a scope XY display application.
I got an impression that you built 14 bit dac, 8 bits on one port and extra 6 on another...
@@markderlo212 nah, it was 8 bits on one port to drive the X position of an XY display, and 6 bits on another port to drive the Y position.
oh I see, how to find that xy dac clip ?
@@markderlo212 It's at the very tail end of this video
You have an 8 bit and a 6bit ladder. You show us the 6 bit on your mixed domain. Is that your Y-axis and the 8 bit your X-axis?
Yes - I used 6-bit for Y axis because the screen is rectangular.
Thanks, I get it. You are working with DWORD and BWORD in the Arduino. Great project.
Your GOOD
Can you share the program I want to put my callsign on the scope too :-)
End of the video made me laugh :D cool stuff!
Hi what about a video regarding ADC? Thanks for GREAT stuff :-)
Maybe someday...
Try out making a SAR ADC, maybe someday.
en.wikipedia.org/wiki/Successive_approximation_ADC
Great! Did you tested it as a DDS? :P :P :P
A great video. I have some beginner's questions. How do you select the magnitude of R? In principle it does not matter, but if it is too low it might load the digital source. Can it be too high? For example, very high resistance might add more thermal noise? Thanks in advance for any answers.
The resistor value is a compromise between the load placed on the digital source driving it, and the output impedance - and how it will be loaded by the circuit that "reads" the analog output.
I built R2R DAC using 0.1% 7.5k and 15k resistors. The expectation was to get 8-bit resolution with 8 digital inputs. Not so easy. Actual resolution appeared to be 7-bit, most likely due to variance in intrinsic resistance of digital pins of the microcontroller, estimated to be in 300-500 oHm range. So higher resistance (50-100k) might be beneficial. Yet another limitation was Vdd noise on digital pins, also limiting resolution to about 7-bits. Overall impression that 7-bit is a practical limit.
NEAT.
Thank you, Alan, for another terrific, informative video! However, I'd like to stir things up , if I may, with a bit of debate: I submit to you, Sir, that this is technically not a digital-to-analog converter, but a binary-to-decimal converter, since it's output is still composed of discrete, non-arbitrary steps, rather than one smooth, continuous curve. Would you or anyone else care to refute my claim? ;^)
I wouldn't call it "binary-to-decimal", since the output is certainly not a decimal value. A more accurate description would be a binary to discrete analog or quantized analog. All DACs output discrete analog outputs. You can put a low pass filter at the output, whose corner frequency is below 1/2 the sample rate, that will "smooth out" the steps in the response. This is often called a "reconstruction" filter.
I have the tds2002c that I got in a trade and I use it more than my new one. It's the only piece of gear (along with a tek dm916) I'd never part with. Even the documentation that came with it is incredible. I buy an expensive (for me) rigol and all they have is pdfs and I don't trust it like I do the tds2002c. It's a buggy mess.