I've never seen the "flip book" approach you used here, that's genius
@friedmule54035 жыл бұрын
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!!
@bunnythekid3 жыл бұрын
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!
@RaviShankar-db5jc5 жыл бұрын
Sir you are an incredible teacher....hands down
@deanthomson86588 жыл бұрын
you've got no idea the amount of stress this video just cured me of, thank you so much
@cny0225312 жыл бұрын
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!
@JeremyVeleber12 жыл бұрын
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!
@flanlemonjello12 жыл бұрын
I always enjoy your presentation style (and content!), but the analog PowerPoint animation is a whole other level of awesome! Thank you!
@crocellian29729 жыл бұрын
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.
@MrNBit9 жыл бұрын
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 :-)
@w2aew9 жыл бұрын
Great! I'm glad my videos are helping you to learn electronics!
@JanMoren11 жыл бұрын
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 :)
@JanMoren11 жыл бұрын
I thought I posted this on g+, not KZbin. Now I can't edit it or delete it :(
@richardsidler11 жыл бұрын
I got the post from you on G+, are they not one in the same now? Thank you I enjoyed the lecture very much.
@JimGriffOne12 жыл бұрын
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 KZbin 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.
@SatyajitRoy20488 жыл бұрын
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?
@rbmwiv6 жыл бұрын
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.
@tradegrabber48545 ай бұрын
As always, awesome explanation with real life examples, thank you!
@coreyk95187 жыл бұрын
All electronics lessons should be presented through flip-books! Wonderfully lucid explanation of R2R DACs
@REDACT3D5 жыл бұрын
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!
@RazvanMihaiDudu11 жыл бұрын
Very educational, thank you. I love the way you pictured all the steps in the analysis of the circuit. Awesome!
@Exo543210 жыл бұрын
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.
@w2aew10 жыл бұрын
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.
@Exo543210 жыл бұрын
***** Wheatstone bridges :)
@KominTater7 жыл бұрын
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!
@w2aew7 жыл бұрын
You can buy R-2R resistor networks from places like Digikey or Mouser - a lot less tedious to wire up!
@KominTater7 жыл бұрын
Thank you, W2AEW, will def. look into the ready-made solution. But there are times when such tedium can be good for the soul. ;)
@ibjavier12 жыл бұрын
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.
@jimadams247310 жыл бұрын
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
@CassetteMaster7 жыл бұрын
Fantastic presentation! I love the paper-flipping technique!
@unklebidii7 жыл бұрын
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
@andrewferg87375 жыл бұрын
I feel like a caveman every time I watch your videos... Indistinguishable from magic.
@andreaacme12 жыл бұрын
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.
@Neuroszima2 жыл бұрын
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.
@JunkyardPhysics2 жыл бұрын
Simply brilliant. Thank you.
@friedmule54036 жыл бұрын
You are simply a fantastic teacher!! The part with the fold over paper make it so obvious and simple to understand! :-)
@Mydrac12 жыл бұрын
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.
@neodonkey6 жыл бұрын
Brilliant. There is something really beautiful and elegant about the R-2R ladder.
@Allan-mf1he2 жыл бұрын
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.
@memadmax6911 жыл бұрын
I remember this stuff long ago and far away. Was working on z80's and such... this brings back plenty of memories thank you!
@Fatkuh12 жыл бұрын
I love how you used the cut pages for the explanation! Great!
@thecombatengineer70695 жыл бұрын
binge watching all the circuit tutorials, trying to remember to like and comment on each as well
@Auerc0re9 жыл бұрын
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
@w2aew9 жыл бұрын
Identical values are used to take advantage of the inherent matching in IC manufacturing.
@christheother90889 жыл бұрын
+Auerc0re He IS teaching this.
@jj74qformerlyjailbreak32 жыл бұрын
ScopeArt. My new favorite hobby. Thanks.
@RAndrewNeal3 жыл бұрын
Your tutorial is on Tektronix's website in written form. That's pretty cool.
@GuilhermeSampaioC4 жыл бұрын
You have great teaching skills! Thanks
@electronicgarden32594 жыл бұрын
Excellent! There's no other word for this.
@krish2nasa7 жыл бұрын
Excellent explanation as always, Thanks for your time and efforts.
@PA2OLD12 жыл бұрын
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.
@BrianHensleyRULES12 жыл бұрын
You did it again Allen! Great video!
@ibjavier12 жыл бұрын
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.
@Nermash12 жыл бұрын
Brilliant explanation of R2R DAC!
@jstro-hobbytech Жыл бұрын
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
@realtoy14 жыл бұрын
Another excellent training video. Thank you!
@Keep-Exploring12812 жыл бұрын
the art of DAC ... thanks for the great video
@StephenMendes5 жыл бұрын
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
@haimt10 жыл бұрын
very good explained of R-2R ladder, thank you very much :-) genius.
@GeorgeGraves12 жыл бұрын
Awesome video - thanks for showing the math for the R2R ladder.
@TheRogerx310 жыл бұрын
Useful and interesting... Who needs power point anyway. : ) Very creative on so-many levels.
@ChrisGozzardThatPhysicsGuy9 жыл бұрын
Many thanks.. Got the PWM method working so I think I will try with the R2R method. :)
@ydonl5 жыл бұрын
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!
@Deceneu68 жыл бұрын
Big like for the explanation method!
@DasIllu2 жыл бұрын
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.
@gotbread210 жыл бұрын
Very good explanation, also well done with the substitution!
@TonyButchT12 жыл бұрын
All from YOUR desire to learn more! Thank You!
@Aeduo11 жыл бұрын
That's how Disney Sound Source/Covox Speech Thing worked. A good few old games supported just that.
@gamingSlasher10 жыл бұрын
Best explanation ever. Love it!
@InsurgentX12 жыл бұрын
Fantastic video as usual. Thanks!
@JanicekTrnecka9 жыл бұрын
I love this w2aew version of DaveCad :-)
@ernieschatz37836 жыл бұрын
AllanCad is much clearer.
@robertjohnson40893 жыл бұрын
great talk and i loved the demp
@edmclaughlin492311 жыл бұрын
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.
@w2aew11 жыл бұрын
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.
@edmclaughlin492311 жыл бұрын
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!
@w2aew11 жыл бұрын
I'm constantly inspired by the nice comments and encouragement I receive from my viewers, so Thank You!
@edmclaughlin492311 жыл бұрын
***** 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!
@NanikT12 жыл бұрын
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
@electronicatutorial12 жыл бұрын
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?
@Shakespeare16128 жыл бұрын
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?
@w2aew8 жыл бұрын
Yes, except that the output will be binary weighted for any single button push.
@jamilfaultfinder12 жыл бұрын
Hi could you please tell me which mixed signal scope you use and its bandwidth thanks
@yoramstein8 жыл бұрын
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.
@anthonymullen25999 жыл бұрын
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
@tsalgir12 жыл бұрын
thnks for your clear explanation. really love it
@MsFireboy2 Жыл бұрын
Have you ever used the 74hc393 ic chip to build a 4 bit stair step generator before?
@w2aew Жыл бұрын
I haven't
@MsFireboy2 Жыл бұрын
@@w2aew Ok. I’m working on one. Using in a Curve Tracer circuit.
@zhangbotao08315 жыл бұрын
a good teacher
@Naviscoop10 жыл бұрын
great video, very informative, thanks a bunch :)
@afterthought13810 жыл бұрын
really excellent video.
@baldbadger76445 жыл бұрын
I wish my high school teacher taught as good as one tenth of you
@markderlo2122 жыл бұрын
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?
@w2aew2 жыл бұрын
I built this for a project that used both a 6 bit and an 8 bit R2R for a scope XY display application.
@markderlo2122 жыл бұрын
I got an impression that you built 14 bit dac, 8 bits on one port and extra 6 on another...
@w2aew2 жыл бұрын
@@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.
@markderlo2122 жыл бұрын
oh I see, how to find that xy dac clip ?
@w2aew2 жыл бұрын
@@markderlo212 It's at the very tail end of this video
@MsFireboy2 Жыл бұрын
Question Would a square wave input at 50% yield a stair step waveform?
@ricktighe1912 жыл бұрын
Brilliant!
@DAVET3812 жыл бұрын
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
@micomrkaic7 жыл бұрын
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.
@w2aew7 жыл бұрын
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.
@odissey26 жыл бұрын
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.
@harisonk12 жыл бұрын
Just wondering, could you use this as a DDS circuit for some lower frequencies?
@electronicatutorial12 жыл бұрын
Can you share the program I want to put my callsign on the scope too :-)
@Observ45er11 жыл бұрын
I should add that with the right software algorithm, you can even do polyphonic music. (you're just adding binary numbers). 73, Steve
@edmclaughlin492311 жыл бұрын
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?
@w2aew11 жыл бұрын
Yes - I used 6-bit for Y axis because the screen is rectangular.
@edmclaughlin492311 жыл бұрын
Thanks, I get it. You are working with DWORD and BWORD in the Arduino. Great project.
@Neuroszima2 жыл бұрын
Ok so real question is, can you go backwards and creat analog--to-digital converter?
@MrNBit9 жыл бұрын
Thank you very much!
@edtix7 жыл бұрын
End of the video made me laugh :D cool stuff!
@fir3w4lk3r12 жыл бұрын
Great! Did you tested it as a DDS? :P :P :P
@fredflickinger6432 жыл бұрын
Very cool🙂
@arrshithrg53598 жыл бұрын
is it possible to vary the peak to peak voltage coming out of the circuit
@w2aew8 жыл бұрын
Being a DAC, the output is a function of the parallel digital word applied. If you need more resolution, add more stages. Max voltage is determined by the logic 1 voltage level of the digital circuits driving the inputs.
@arrshithrg53598 жыл бұрын
hmm so vmax can be digitally controlled , i just needed 60mv to 6 volts sine wave controlled digitally, is it possible ??
@w2aew8 жыл бұрын
The output voltage can't exceed the logic 1 voltage level. So, you'll probably need to follow the DAC with an amplifier to get the voltage you need.
@Crytek13378 жыл бұрын
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 :)
@w2aew8 жыл бұрын
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...
@Crytek13378 жыл бұрын
Aha i see. Thank you for answering this quick, this is what i needen to know.
@ZaKu5739 жыл бұрын
what Range of your oscilloscope of the amplitude output voltage
@w2aew9 жыл бұрын
+ting yiu i'm not sure I understand your question. The scope was set to 1V per division, which shows the full 5V range of the R2R driven by the Arduino.
@ZaKu5739 жыл бұрын
+w2aew do u have any social acc?i hv a few questions of assignment!
@w2aew9 жыл бұрын
+ting yiu You can find me under the same user name (w2aew) on eevblog.com forum
@ZaKu5739 жыл бұрын
+w2aew turn on resistance of 100 ohms & turn off resistance of 1G ohms, for each control a current up to 10mA, what the (R'ref) equal to?
@w2aew9 жыл бұрын
+ting yiu I"m sorry, but this question doesn't make sense to me (out of context).
@82abn344 жыл бұрын
Thanks!
@jstro-hobbytech Жыл бұрын
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.
@outlawstc8 жыл бұрын
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.
@w2aew8 жыл бұрын
Sounds clever!
@Tadesan6 жыл бұрын
Yeah, that's a cool idea!
@Turjak_art5 жыл бұрын
nice thank you!
@sc0or3 жыл бұрын
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.
@Infinitesap8 жыл бұрын
Hi what about a video regarding ADC? Thanks for GREAT stuff :-)
@w2aew8 жыл бұрын
Maybe someday...
@Loundre36 жыл бұрын
Try out making a SAR ADC, maybe someday. en.wikipedia.org/wiki/Successive_approximation_ADC
@flurng6 жыл бұрын
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? ;^)
@w2aew6 жыл бұрын
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.