Saturday, October 3, 2020

Homebrew Signal Generator - Arduino and AD-9850 Module

 

                              

Arduino Nano and AD-9850 Signal Generator

The ability to generate a clean sine wave is incredibly useful to the electronic home-brewer. In testing a an audio or RF circuit you often need a tune-able, stable frequency source. Commercial ones range from very expensive, with the ability to generate arbitrary waves at very precise signal levels. For my purposes a simple sine wave generator with a variable attenuation meets most of my needs.

This Signal Generator is built using an AD-9850 Direct Digital Synthesizer and an Arduino Nano. It generates a clean sine wave from 0 to 62.5 MHz (very clean up to about 50 MHz, but still use-able up to 62.5. There are various versions of this floating around the internet, including prebuilt ones from a variety of sellers. The display is 16x2 I2C LCD. The control is a Rotary Digital Encoder with push button. Turn the encoder to change frequency. Push the button to select the tuning increment.

There are various versions of this floating around the internet. This is my implementation. 

The code and build instructions are available on Github at:

To control the AD-9850 I chose to use a DDS library written by Paul Darlington, M0XPD.  You'll need to download it from his Github repository and install it using the Arduino IDE Library Manager.  You can read Paul's original blog for details on the library.

Here is the wiring:

Signal Generator Wiring

Fit and finish details:


Signal Generator Construction

And here is what the finished product looks like:

KK4DAS Signal Generator

I've been using this in my shop over the last few months to test out circuits on the Furlough-40.  It's really useful to be able to inject a known signal at various points in the circuit and see now the downstream amplifiers and filters perform  Highly recommended!

At a recent meeting of the Vienna Wireless Society I demonstrated how straightforward it is to build this.  I went from a pile of parts to a working unit in under an hour.  Here is the video from the meeting:



If you build it please let me know in comments.

73 from Great Falls

Dean

KK4DAS