Using this method (MCU->Hi-Res DAC->Buffer/Amp), you can not only make the digitally controlled power supply of your childhood dreams but you can also turn it into a fully programmable unit that can generate all kinds of waveforms - very useful for test purposes. For example you can program it to generate stuff like sine, triangle, sawtooth, staircase and other custom waveforms. The trace below is a sine waveform generated by a 12-bit DAC. The timebase is 10uS/Div so the frequency is 40KHz.
![]()
Bookmarks