This website is really nice for understanding what happens in an resistance ladder:

https://www.laiv.audio/post/what-is-an-r2r-dac-a-beginners-guide-to-resistor-ladder-digital-to-analog?srsltid=AU7gw4W5OnnDf9f2VvbnIL5Hj4_s42lz_eSTgxssjb_VcFGFYMkOUEpo

Lets look a little deeper. I build the circuit in a simulator (https://www.circuitlab.com/)

There are four voltages on the bottom. You can adjust all of them. But remember we are building a digital circuit and they can only be ones and zeros (or 3.3 V and 0 V).

The upper right voltmeter is the output voltage.

So let’s play with the numbers

[input voltages] -> out put voltage

  • [0,0,0,0] -> 0
  • [1,0,0,0] -> -0.125
  • [0,1,0,0] -> -0.250
  • [1,1,0,0] -> -0.375
  • [1,1,1,1] -> -1.875

Think about how a base two number works (*We can adjust with resistors values

base 10base 2output*
00 or 00000
11 or 0001-0.125
210 or 0010-0.250
311 or 0011-0.375
4100 or 0100
-0.500
5101 or 0101
6110 or 0110
7111 or 0111
81000
91001

Posted in

Leave a Reply


Cosmic Pathways, Lab for Kids, and many of the other research activities discussed on this website is supported by the National Science Foundation and the Physics Teacher Education Coalition (PhysTEC) under grant no. 2325980. Any opinions, findings, and conclusions, or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.

Discover more from Cosmic Pathways

Subscribe now to keep reading and get access to the full archive.

Continue reading