Collin's Lab: Digital to Analog Converter

Collin's Lab: Digital to Analog Converter


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
Closed Caption:

computers speak in digital binary
language a series of high and low
voltages represented by ones and zeros
in order for a computer to recreate
something like a continuous analog sound
wave it needs a little help
the aptly named digital-to-analog
converter performed that service quite
well
converting a series of digital on/off
messages into specific voltage levels
most digital-to-analog converters come
in
chip form but you can actually make your
own using just some resistors
allow me to demonstrate just like binary
data the pins on a programmable
microcontroller can be set high or low 0
or 5 volts on most boards
but by simply adding two resistors and a
connection to ground we create a voltage
divider capable of lowering the output
voltage to a point between 0 and 5 volts
determined by the resistor values we use
to build on this idea we can link
multiple pins together in a sort of
resistor ladder where they can be used
in combination to create a wider range
of output voltages each pins position on
the ladder determines how much of its
original five volts will reach the
output this arrangement is called an R
to R deck because it uses one resistor
value 10k in this case and a second
resistor value two times that amount by
extending the letter to more output pins
we increase our Dax resolution each pin
can use one binary bit to specify its
higher low status
so with eight pins are deck will have an
8-bit resolution
just like the good old days to make
programming a bit easier we can store
those eight bits together as a bite
to make things even simpler we can
specify a byte value using good
old-fashioned numbers any whole number
from 0 on up to 255 can be stored as an
8-bit binary bite by writing that number
two are back pins
it will be translated into a value
between 0 and 5 volts which is pretty
slick
I assembled my R to R deck on a
breadboard using an Arduino Nano my car
controller hook the dax output up to my
oscilloscope and audio monitor and last
but not least loaded up a bit of example
code if we provide our microcontroller
with a list of values to write out to
the deck in a loop we can create
waveforms likes a sine wave
and essentially that's how that works
Dex pretty awesome no to learn how to
pump for your deck and various other
interesting things
head over to make seen . comment

Video Length: 04:36
Uploaded By: Make:
Published: 2/15/2011
View Count: 280,327

Related Software Products
Digital Audio Converter
Digital Audio Converter

Published By:
Digital Action

Description:
Digital Audio Converter's purpose is converting audio files from one format to another according to your wish and saving them to your hard drive. The following audio formats are available for conversion: WAV(PCM), OGG Vorbis, MP3, WMA, FLAC, APE, MPC, SPX, TTA, WV, AAC. Converting audio files Digital Audio Converter user will find the opportunity to specify frequency, number of channels, bitrate and other parameters of output files. Digital Audio Converter supports Winamp, M3U and PLS-playlists ...


Related Videos
D/A and A/D | Digital Show and Tell (Monty Montgomery @ xiph.org)
D/A and A/D | Digital Show and Tell (Monty Montgomery @ xiph.org)

Video Length: 23:53
Uploaded By: Image-Line (3/2/2013)
View Count: 644,671

Digital to Analog Audio Converter Optical / Coaxial / USB
Digital to Analog Audio Converter Optical / Coaxial / USB

Video Length: 02:04
Uploaded By: Parts Express (10/11/2010)
View Count: 477,131

Analog to Digital Audio Converter
Analog to Digital Audio Converter

Video Length: 02:11
Uploaded By: MDR Electronics (10/12/2011)
View Count: 414,293

optical to rca or analog audio converter
optical to rca or analog audio converter

Video Length: 01:58
Uploaded By: kevin namak (12/7/2012)
View Count: 404,869

D1 Premium 24 bit Digital-to-Analog Converter (DAC)
D1 Premium 24 bit Digital-to-Analog Converter (DAC)

Video Length: 01:43
Uploaded By: Audioengine USA (11/24/2011)
View Count: 157,457

DacMagic Plus Digital to Analogue converter
DacMagic Plus Digital to Analogue converter

Video Length: 04:22
Uploaded By: Cambridge Audio (11/22/2011)
View Count: 86,096

RGB + Audio to HDMI Converter
RGB + Audio to HDMI Converter

Video Length: 02:53
Uploaded By: MDR Electronics (10/5/2011)
View Count: 74,804

Cassette Tape to USB Converter Review | EpicReviewGuys CC
Cassette Tape to USB Converter Review | EpicReviewGuys CC

Video Length: 06:56
Uploaded By: EpicReviewGuys
View Count: 47,368

AudioQuest Dragonfly 1.2 DAC Review
AudioQuest Dragonfly 1.2 DAC Review

Video Length: 04:15
Uploaded By: Tekzilla
View Count: 30,987

Copyright © 2026, Ivertech. All rights reserved.