DDS 1- 2MHz // Duty Cycle 2 % - 99% // Arduino UNO // Pro // Mega

Started by Vincent, February 17, 2014, 08:52:15 PM

Previous topic - Next topic

Vincent

What it does this sketch ?

With this sketch you have a DDS generator.

What do you need ?

:: One Arduino UNO R3 (MEGA328P ATMEGA16U2 ).
:: Arduino Mega 2560.
:: One LCD Board Keypad Shield.

Technical Specs.

:: DDS 1- 2MHz // Duty Cycle 2 % - 99%.

Hardware Connections

Arduino UNO

:: Pin 3 Output DDS.
:: Pin GND.

Arduino Mega 2560

:: Pin 44 Output DDS.
:: Pin GND.

Software

1. You must have the Arduino environment installed and working.
2. Install the library PWM (attached to this post).
3. Open the Sketch.
4. Save and upload to your Arduino.

FAQ

1. Why the Duty Cycle goes from 10 to 1000 ?

Saving calculations in a system, gives you more power. So I didn't print the result with a %. Also this DDS is ready for a future upgrade, linked to another kinds of controls.

2. How menu works ?

Buttons LEFT and RIGHT :

::  Select frequency-steps and Duty Cycle.

Buttons UP and Down :

:: Select the value that you needs.

3. Why the values don't keep saved after a reboot ?

:: This option will be available in the next version. I need to run more tests before.

Enjoy,

Vincent

Romero

DDS Generator tested and working fine.