Calculating the values of resistors needed to make a DAC results in odd values that are often not practical, but there’s an elegant solution to this problem.
By constructing a R/2R ladder resistor network on the input of the summing circuit, binary weighting can be achieved with only two kinds of resistor values!
In this EC simulation, I have only done this for 4 bits but you could continue it to 8 bits.
Now you can obtain 16 analogue values from the 4 input switches.
Enjoy!
1001001