NOTE! The generator is one scroll down
You want a dirt-cheap-super-simple digital-to-analog-converter? Then this is the tool for you!
Enter the resistor values you have available and how many bit resolution you want your DAC to have, and hit the compute button. It will then search for the best possible combination of resistors.
The result comes in four parts.
- Score: This is the total deviation from a perfect DAC. You can only compare scores within the same amount of bits.
- Resistors: These are the resistor values you need for your DAC. Each resistor goes into a separate output PD0/digital 1 and up. The other ends of the resistors all go to the same place, the output!
- Code: This is a demo sketch using your resistors. It will output a nice sine-wave for you.
- Graph: It shows a straight line like a perfect DAC would output and a not-so-straight line which your DAC will output.
The actual generator