In this Instructable we take a look at the digital to analog converter (DAC) on the Arduino Zero. We will look at a simple example how to use the DAC and then we will look at a more complex example that turns the DAC into a pseudo waveform generator. You can find the code from this Instructable at my blog http://forcetronic.blogspot.com/

If you are interested in ForceTronics LLC contracting and consulting services go to forcetronics.com

<p>Theres is something very strange in your code, although it works, what you do in the while loop, is to start the timer again and again in the clock speed(because its in the loop function), without any sync with the interrupt.</p><p>It means that you actually fires tones of interrupts in the while loop, before the previous ones even counter(because this while is in the speed of the processor).</p><p>I dont get this, how this even works ?</p>
Very thorough explanation of DAC! Have you done or considered doing any tutorials for PWM audio for boards with no DAC onboard? Might help people with Arduino UNOs

About This Instructable




More by ForceTronics:Removing Solder Bridges on Small Pins Analog Sensor Signal Conditioning Circuit How to Get More Functionality Out of Your Arduino Zero 
Add instructable to: