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

January 26, 2024. A simple CW Transceiver/Transmitter

Cruise through the lower part of the ham bands bands and what do you hear? Well, FT-8 and CW. Often you will not hear any SSB stations yet go to the lower part of the bands, and it is a cacophony (I love that word) of bad sounding signals and some high-speed keying. Fast is not so much of the issue as is bad, run together and jerky keying. But none the less our hobby started there.    So, you could crank down your ICOM 7300 and watch the waterfall on CW or you could homebrew a radio. Actually, to do CW right you need more thought up front than you do with a SSB transceiver. Often, I will state that a CW Transceiver is much more difficult to build than a simple SSB rig. I published two articles in QRP Quarterly on CW transceivers and all I got was a yawn so maybe history will repeat itself.  Yawn!   30M CW Transceiver with RIT!   Of interest is that the LO is a Varactor tuned LC oscillator using a NE602. Look closely at the RIT circuit which is only activated on ...

March 31, 2024. Happy Easter to those who celebrate this day.

What a great day to Binge on Chocolate and experience the pain of that filling that has been leaking.  I would be in that category with the leaking filling(s) had I not just spent an amount equivalent to one of the fancy new uptown appliance box transceivers on two filling repairs. Well at least I can binge on the Chocolate bunnies without fear of pain. Regrettably everything appears to have jumped in price including the price of parts. Well not so much the parts as the shipping costs.  That notably is seen in the eBay treasures. I spotted a nice heathkit DX-20 for about $50 and the shipping was $65. Likely it is a twofer with part being a way to in effect charge a higher price by inflating the shipping and in part by increased shipping costs. Shipping with insurance across the US was about $150 for this jewel and that was three years ago. 6AM on the Left Coast ~ 20M Easter Sunday! My only hope is the cost of Chocolate Bunnies remains steady although a pound of See's Candies f...

August 30, 2024. A PNP 20M SSB Transceiver

Shown below is the Block Diagram for the 20M PNP SSB Transceiver steered in the  Transmit Mode . The components shown in the dotted block are relay steered so that the block module is single pass and amplifies in a single direction. The Block diagram show steered in Transmit.  Essentially the steering process works so that the IF Module input follows the Balanced Modulator on Transmit and then the input side follows the Receive Mixer on Receive. All done with some relays and a bit of RG174U coax. For those who count things in detail, this block diagram is not unlike what was used for the PSSST Transceiver which can be found on my website . Yes, a warmed over P3ST only using PNP devices. TYGNYBNT. 73's Pete N6QW