Blog

Build a proper R-2R DAC

http://hackaday.com/2015/11/05/logic-noise-digital-to-analog-with-an-r-2r-dac/

r-2r matrix illustration

Creating real analog outputs from a digital pin is possible when you use an R-2R DAC. What is a DAC? The letters stand for Digital to Analog Converter. This simple DAC is built using resistor. The principle works on voltage dividers. By enabling different combinations of resistors, it is possible to get various voltage levels.

Obviously, such a simple design will have some trade-offs.

The resolution depends on how many resistor steps you include. That is why discrete R-2R networks built on a breadboard have a staggered look. You could add more levels to smooth it out, or there are other options.

This R-2R Logic Noise Post talks about how they work in detail and even includes a section on filtering the output to be less “stepped.”

Fan of making things beep, blink and fly. Created AddOhms. Stream on Twitch. Video Host on element14 Presents and writing for Hackster.IO. Call sign KN6FGY.

Write A Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.