Introduction: Arduino Zero DAC Overview and Waveform Generator Example

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

Comments

RonT35 (author)2016-04-25

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.

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).

I dont get this, how this even works ?

jmuncher (author)2015-10-04

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

2,254views

11favorites

License:

Add instructable to: