Arduino waveform generator

Hello, I waht to make a waveform geerator with the Arduino. In this tutorial https://www.arduino.cc/en/Tutorial/DueSimpleWaveformGenerator it says I need to use an Arduino Due to do that, but I want to stick with what I have at hand and not to spend a dim. A look at the Arduino Mega (which I have a few collecting dust.) The Mega diagram, says Mega also has DAC0 and DAC1. A further research, I get confused, some say the DAC pin on the Mega is actually PWM pin. In short can I make a waveform generator with the Mega instead of the Due? Thanks.

The MEGA doesn't have a DAC. (The UNO doesn't have a DAC either.)

af1812:
The Mega diagram, says Mega also has DAC0 and DAC1.

Please post a link to this diagram.

pert:
Please post a link to this diagram.

I don't remember the link anymore. I downloaded the diagram long time ago. I wish this forum allows me to attach the image. I think the diagram is wrong, it might mean ADC instead of DAC.

Hi,

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html.

It will show you how to attach, if it is an image, keep the size to under 1M, if the image is too big, use a graphics appl like PAINT to resize it.

What happens when you try to attach?

Tom... :slight_smile:

t says I need to use an Arduino Due to do that, but I want to stick with what I have at hand and not to spend a dim.

If you stick with the 16MHz processors you are greatly restricted to the waveforms you can produce. Also the frequency will not be very high.

The best you can do is here in this project:- Mozzi

Thank you for all your replies.

As it turned out the diagram was for Arduino Due. They must have it mixed up with the Mega because at a glance, both have similar form factor.but thank you for Grumpy_Mike's link, now I have a simple wave form generator. :slight_smile: