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

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    2 Discussions

    None
    RonT35

    3 years ago

    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 ?

    None
    jmuncher

    4 years ago

    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