SineWave Generator for Arduino DUE

1,488

2

4

Posted

Introduction: SineWave Generator for Arduino DUE

A sketch to generate a sine Wave using Arduino Due

The wave is generated by outputting pre-calculated voltage levels through the DAC on the arduino DUE board

Required:

1x Arduino DUE

2x Jumper wire

Setup:

Using a jumper wire, connect DAC0 on the Arduino to the desired target that should receive the wave

If ground connection is required:

Using a jumper wire, connect GND on the Arduino to the ground connection on the desired target.

The sketch offers 5 different waveforms with different frequency and levels of granularity. Follow the documentation in the sketch to uncomment the desired wave.

Resulting waves:

Step 1:

Share

Recommendations

  • Epilog Challenge 9

    Epilog Challenge 9
  • Sew Warm Contest 2018

    Sew Warm Contest 2018
  • Gluten Free Challenge

    Gluten Free Challenge
user

We have a be nice policy.
Please be positive and constructive.

Tips

Questions

4 Comments

Im afraid the arduino UNO has no DAC and cannot support this implementation.
I have only tested this on a DUE, but technically the zero and mkr1000 could also work.

good afternoon. Tell me on arduino it works? The error in line 107 ('analogWriteResolution' was not declared in this scope). Tell me what to do. Thank you.

Interesting. I have never seen a wave generator like this on an Arduino before.