Skip to main content

Simpleceiver ~ Part 10

The Arduino Pro-Mini and the AD9850

 
 
 
Now we will explore the Arduino Pro-Mini driving the AD9850 DDS Board to provide the Local Oscillator injection frequency for the Direct Conversion Receiver and later with a one line code change will provide the required injection frequency when the Simpleceiver is converted to a full fledged Super-heterodyne. The Intermediate Frequency (IF) was chosen to be 12.096 MHz largely in part because I had a stock of 12.096 MHz crystals. But there is a method to the madness because with a 5.0 MHz VXO or standard LC 5.0 MHz VFO you can also operate the Super-het on 40 Meters. (Keep in mind 7 +5 =12 where the LO is now below the incoming frequency. In practice high side mixing is better because of harmonic issues but will work nonetheless on the low side). A separate crystal oscillator operating at 12.096 MHz will provide the BFO injection frequency.
 
There is a lot of code floating around for driving the AD9850 with an Arduino; but one in particular I have found to be quite robust and that is the code available from Rich, AD7C. Here is a link to the code I used which is a modified version of AD7C's. Note my pin wiring (and sketch) is slightly different than what is shown in the original AD7C sketch. --he used pins 7,8,9 and 10. I used Pins 4, 5, 6 and 7. All important is that you do not change pins 2 and 3 which feed the encoder--these are the interrupt pins and they are cast in stone. [See my wiring diagram below.] Also note that my version of the sketch is in notepad so all you need to do is copy the sketch and drop that into an Arduino IDE. BUT depending upon which version of Arduino IDE you are using you may have to make other code modifications as some of the libraries such as you would use for the LCD are IDE dependent. What will work for an LCD display in an earlier version like Arduino 1.0.5 will not work in Arduino IDE 1.6.3 and higher.

  • Caution: Create a  Sub-directory in your Arduino directory marked Simpleceiver and include the .ino sketch plus the rotary.h and rotary.cpp files. You must also have in the Arduino library folder the LiquidCrytsal_I2C libraries. If this is Greek to you then go back and start with square one on how to deploy the Arduino.

Not to worry! When you purchase an LCD display make certain you know its I2C address. The most common address is 0x27 but some are 0x3F and Adafruit uses A0. Now most of my code is written with IDE 1.0.5 but the most current IDE is 1.6.4. You will have to do some additional code changes if you are using a later IDE. There is a link on my website http://www.n6qw.com that tells you how to do that. Look under the listing N6QW Projects and it is the last item marked "LCD's and Arduino 1.6.3". Those software programmers sure make it tough for the ham homebrewers.
 
The AD9850 is an easy device to interface to the Arduino as there are but 4 connections in addition to +5VDC and ground. The Arduino has an on board regulator which supplies the 5 VDC for the AD9850 as well as 5 VDC for the display.  My power source to the Arduino/AD9850 is a simple 9 Volt 1 Amp regulator (LM7809--TO-220 type) that connects to the 12 VDC rail.

The display is operated from the I2C protocol which comes with the Arduino architecture. Four wires are all that is needed and include the SDA (Data on Pin A4) and SCL (Clock on Pin A5) and the other two are + 5VDC and Ground. That said you do need what is called an I2C backpack which is a small interface board which takes those 4 lines and converts them to 16 lines to connect to the standard parallel LCD. In a sense the I2C backpack is a serial to parallel convertor.

Depending on whose Pro-Mini you purchase Pins A4 and A5 can be on one end of the board or on the top of the board. Try to avoid the top of the board version as getting wiring to the top of the board is not convenient. Now if this is the first time anyone has used a Pro-Mini you will also need to have USB to Serial convertor board so that you can interface and write code to the Pro-Mini. This is a one time purchase (about $6 USD) but can be reused for loading code on any Pro-Mini. Loading code on a Pro-Mini is a bit arcane. After connecting Pro-Mini to the convertor assembly and the USB end to the computer PRESS and Hold the reset button located on the Pro-Mini and then proceed to load the code. When a message appears at the bottom of the computer screen telling how large is the program quickly let go of the reset button and the code will load. The reason for the Pro-Mini --cheap!

 Construction Notes

When I build a Digital Local Oscillator whether it is the AD9850 or Silicon Labs Si5351 I like to use a small piece of through hole prototype board. This type of board facilitates the use of pin headers and in line sockets. For interconnect wiring on the underside of the board I use #30 wire wrap wire and solder all connections. Typically these small prototype boards have board mounting holes in each corner which then enables using small aluminum type pillars to provide a means of elevating the boards so the wiring is not shorted to ground and facilitates mounting the board to the main chassis. The parts and pieces I typically use are shown below. I bought ten such prototype boards for $5 delivered from China thus quite a bargain. The pin headers and in line sockets I get from Jameco Electronics.


With this final piece covering the Arduino/AD9850 you are now ready to start building the Smpleceiver Direct Conversion Receiver.

73's
Pete N6QW



Popular posts from this blog

2019 ~ What is the simplest homebrew SSB Transceiver that can be built?

4/27/2019 The Future of our Hobby is Here! Forget those simple rigs with homebrew crystal filters, cranky IRF510's and the analog VFO's. SDR is the wave that is building strength just like a Tsunami. With the Soft Rock V6.3 SMD Version + RRPi2 With the Omnia SDR and RPi2 Pete N6QW How Simple & How Cheap can you  build a Homebrew SSB Transceiver? 4/26/2019 --- I just converted my websites from an obsolete Windows Based Server with GoDaddy to their cPanel (Linux). This was a cost issue as a one year renewal of the Windows Server would buy three years on the cPanel. GoDaddy is discouraging the use of what they call the Obsolete Windows System. So I had to migrate and reload the whole pastapete.com, jessystems.com and the n6qw.com sites to the Linux based servers. Some files and links got lost in the translation --so you might not be able to see everything! Essentially I have  to open every link to verify that it works --that may take some time

New Technology for 2020 ~ The Hermes Lite 2.0 SDR Transceiver

  The Hermes Lite 2.0 SDR Transceiver. November 7th, 2020 ~ It's Settled! It is done! The stain of the Trump era is soon to be removed! Thanks to all who voted. The Voice of the People has been heard.  Congratulations to President Elect Biden and Vice President Elect Harris. Pete N6QW November 3rd, 2020 -- IT WAS THE MOUSE   We all know this is Dump Trump  Day. Go out and vote! It was the mouse! Back in 1999 I stupidly was one of the very first to purchase a Ten Tec Pegasus. Never buy the first batch of a new model.  Touted as the world's first computer controlled radio , actually I think the Kachina 505 was really the first. But the Pegasus was fraught with problems including a trip back to the Smokey Mountains. I was using an older Windows 95 machine to control the Pegasus and that may be a co-conspirator. Well after many calls to TT -- finally someone who has some smarts told me: Fix your station ground, Make all leads short and Buy stock in a ferrite bead company. I did all

The Next Project Updated 10/10/2022! The rubber has hit the pavement!

The Next Project... A 2022 Transceiver. 10/10/2022 My Apologies. It is with regret that I will be terminating any further work on this project. My caregiver duties have over time become a greater time sink and it is almost impossible to build something working only 10-15 minutes at a time spread out over a day. I apologize for not getting it from design ideas to complete hardware. Most likely I have built the last transceiver I will ever build. Thanks for riding along. My website https://www.n6qw.com/  has the pdf of the postings and I will leave this blog page as is. 73's Pete N6QW 10/05/2022 Still Alive! Regrettably my caregiver duties have overtaken any free time so not much progress. But I am hopeful yet this week I will cut at least one board. A PSA from N6QW.  Think of it like Mary Jo has a "crink" in her back and unable to get in the backseat of the 57 VW Beetle. A bit of a setback but not forever.  Seems like the hired caregiver had a small emergency and not able