Originally Posted by pminmo Have you done the code for your poor man's dac? |
No, it uses the Picstep firmware as is (see message #1) and the output after the opamp looks just fine on the scope.
Alan did a good job.
Originally Posted by LMD datasheet The DAC sets the threshold voltage for chopping at VDAC REF x D/16, where D is the decimal equivalent (0–15) of the binary number applied at M4 through M1. |
This is also what an R2R DAC does but VDAC REF are the 5V outputs from the PIC. This concept will never output exactly 5V, it will be slightly less but very close and this doesn't really matter for CNC applications.