Interface AD9850 DDS Signal Generator Module with Arduino - Generate Waveforms (original) (raw)

AD9850 DDS Signal Generator Module is one of the small, low-cost boards to generate analog signals. This integrated board can be controlled through a microcontroller and can be digitally programmed using Direct Digital Synthesis Technology (DSS).

AD9850 DDS Signal Generator Module

AD9850 DDS Signal Generator Module is equipped with an AD9850 IC, a powerful Oscillator of 125MHz, and a DSS synthesizer. It operates at a very low power supply, thus finding applications in many small self-assembly projects to produce square and sine waves.

This tutorial is a brief introduction to the AD9850 DDS Signal Generator Module and its specifications. The pin configuration, features, interfacing, and applications will also be discussed here.

AD9850 SGM Components

The AD9850 Signal Generator Module consists of the following components:

AD9850 DDS Signal Generator Module components

Crystal Oscillator: The module contains a crystal oscillator to provide clock and timing control for the Integrated Circuit.

Duty Cycle or Amplitude Adjustment: The module is provided to adjust the signals’ offset and pulse widths through the in-built potentiometer.

AD9850 IC: This integrated circuitry does all the processing. With the help of a powerful Oscillator and other components, it can output analog signal waves.

Power LED: The power LED is provided to indicate the status of the power supply.

AD9850 Pinout

The following diagram shows the pinout of the AD9850 DDS Signal Generator Module:

AD9850 DDS Signal Generator Module pinout

Pin Configuration

Let us discuss the pinout of the AD9850 Signal Generator Module. The pin configuration detail in tabular is mentioned below:

Pin Name Function
VCC Supply pin
D0-D7 Data input pin
GND Reference potential pin
W-CLK Word Load Clock pin
FQ-UD Frequency Update pin
Data Serial data input through D7 pin
Reset Master reset pin
Sine-Wave 1 DAC Current Output pin
Sine-Wave 2 DAC Current Output pin
Square-Wave 1 DAC Complementary Output pin
Square-Wave 2 DAC Complementary Output pin

AD9850 Features and Specifications

Detailed Features

AD9850 SGM Schematic Diagram

The schematic of the module is provided to understand the connections which may turn helpful while repairing the module:

AD9850 module internal circuit diagram

Interfacing AD9850 SGM with Arduino

The interfacing of the AD9850 Signal Generator Module is effortless and convenient. It can be connected to any microcontroller.

AD9850 DDS Signal Generator Module interfacing with Arduino

Now make connections with Arduino and AD9850 SGM according to this table:

Arduino AD9850 Module
+5V Vcc
D13 W_CLK
D8 FQ_UD
D10 Data
D9 Reset
GND GND

First, we need to install a library for AD9850 signal generator module in Arduino IDE. To install library, open Arduino IDE. Go to Tools > Library Manger.

Install Arduino library

After that type AD9850 in search bar. You will get these options as shown in the picture. Select AD9850_SPI and click on install button.

install AD9850 library in Arduino IDE

Arduino Code

#include <AD9850SPI.h>
#include <SPI.h>

const int W_CLK_PIN = 13;
const int FQ_UD_PIN = 8;
const int RESET_PIN = 9;

double freq = 10000000;
double trimFreq = 124999500;

int phase = 0;

void setup(){
  DDS.begin(W_CLK_PIN, FQ_UD_PIN, RESET_PIN);
  DDS.calibrate(trimFreq);
}

void loop(){
  DDS.setfreq(freq, phase);
  delay(10000);
  DDS.down();
  delay(3000);
  DDS.up();
  delay(2000);
  DDS.setfreq(freq + 500, phase);
  delay(5000);
  DDS.down();
  while(1);
}

Compile the Arduino code and upload it to Arduino. As soon as the Arduino is powered, the AD9850 SGM will provide the frequency to the Square-wave out 1 and Sine-wave out 1. This can be observed visually through the Oscilloscope.

AD9850 Alternative Options

Applications

2D Diagram

The following figure shows the 2d model of AD9850 DDS Signal Generator Module. It shows us the physical dimensions required when a PCB card is designed.

2D diagram

Related:

Arduino Components Amazon Links
Arduino Starter Kit Buy Now
Arduino Development Kit Buy Now
Arduino Smart Robot Car Kit V4 Buy Now
Arduino Sensors Kit Buy Now