Dds Vfo
Dds Vfo
CONSTRUCTION MANUAL
STATIC PRECAUTION
The DDS VFO kit contains the following components which can be
damaged by static discharge:
Do not remove the devices from their protective anti-static bags until
you have taken precautions against static discharge.
1 Introduction .............................................................................................................................................................. 4
2 Circuit Description ................................................................................................................................................. 5
3 Parts List ..................................................................................................................................................................... 7
4 Construction.............................................................................................................................................................. 8
4.1 General............................................................................................................................................................... 8
4.2 Construction Steps ........................................................................................................................................ 8
5 Testing ...................................................................................................................................................................... 11
6 Configuration ......................................................................................................................................................... 11
6.1 Understanding options ............................................................................................................................ 11
6.2 Procedure ...................................................................................................................................................... 12
7 Operation................................................................................................................................................................. 13
8 Options ..................................................................................................................................................................... 14
List of Figures
PCBs and a range of kits containing hard to get parts for the DDS VFO and the MST SSB
transceiver are available from www.ozQRP.com.
The DDS is controlled by a 3 wire serial data bus from microcontroller U1.The microcontroller is
an Atmel ATmega8 and runs an internal 8MHz clock which avoids the use and expense of an
external crystal.
A rotary encoder produces quadrature signals when rotated and one line is fed into the
microcontroller interrupt input and becomes the reference input. Once an interrupt is detected
the state of the other input is read and the direction determined. The rotary encoder also
incorporates a press button switch and is used for a number of functions as described later. U1
incorporates pull-up resistors for the encoder inputs so they are normally held high and
capacitors C7 and C8 filter out switch bounce.
The microcontroller has an internal analog to digital converter (ADC) which uses the 5 volt rail
as a reference. The ADC measures the incoming power supply rail via a resistive attenuator
formed with R5 and R6. The calculated value is displayed on the LCD during use. Two other
inputs, one analog (A) and the second digital (D), have been included in the PCB layout but are
not implemented in the current software release. The PCB also includes an ISP connector to
allow future software upgrades without having to remove the chip from its socket.
Most of the remaining pins of U1 are dedicated to driving the LCD in 4 bit mode. R9 sets the
backlight current and may be left out if a non-backlight LCD is used. VR1 adjusts the LCD
contrast and normally only needs to be set once at the testing stage.
The outputs from the DDS chip are current sources and the output is converted to a voltage by
the 200 ohm resistors R12 and R13. The full scale value of the current and hence the pk-pk
output voltage is set by the 5.6K ohm resistor R11. The output is passed through a simple
10MHz Butterworth low pass filter to attenuate unwanted high frequency components.
The incoming power supply is regulated to 5V by a 7805 1A regulator which mounts flat on the
PCB to act as a heatsink.
The ground plane is substantial and can sink quite a bit of heat from low wattage soldering irons
so ensure you use a good quality iron that can sustain the power required. You may find that
sometimes solder doesn’t appear to flow through to the top side. This is not necessarily a
problem because the plated through holes make a connection to the top side automatically.
Another point to consider is that plated through holes consume more solder than non-plated
holes and makes it more difficult to remove components.
The lesson is to double check the values and orientation of components before
installation.
There isn’t a ‘best’ scheme for loading the components, however, the suggested procedure is to
load the smaller components first and then work upwards.
Step 1: Resistors
If in doubt check the values with a multimeter before soldering. Pass the pigtails through
from the top and bend out slightly underneath to hold them in place. Turn the PCB over and
press down slightly to make them rest against the surface and then solder. Cut off the excess
pigtail with side cutters. The trimpot can also be installed at this stage. R14 is not used.
Step 2: RF chokes
These are not polarized and can go in either way. Make sure they sit flat against the board
before soldering.
Step 3: Capacitors
Install the capacitors with minimal lead length. The electrolytic is the only polarized capacitor
and the positive lead points towards the edge of the PCB.
The IC socket is installed next with the notch facing the right side of the PCB.
Ensure pin 1 of the oscillator module faces the bottom left of the PCB.
The regulator lays flat against the PCB so needs the leads bent at right angle to fit through the
holes in the PCB. Insert into the PCB holes and secure with a 3mm screw and nut before
soldering the leads.
Step 7: Connectors
The Output connector is a 2 pin right angle header while the Power connector is a 4 pin right
angle header. Push them into the PCB so they lay flat against the board and then solder.
The ISP header is an un-shrouded 3 pin x 2 row header and the shorter pins are inserted into
the PCB and soldered.
The LCD connector is a 16 way male pin header and is mounted on the reverse side with the
short ends of the pins located in the PCB. Ensure it is pushed in completely and solder the end
pins first and check it is at right angle to the PCB before soldering the remaining pins.
The rotary encoder is mounted on the reverse side. Insert into the holes and check that it is at
right angle to the board before soldering. It is not necessary to completely fill the mechanical
mounting holes in the PCB with solder.
Step 8: Microcontroller
Remove the microcontroller from the bag and insert into the IC socket ensuring pin 1 points to
the top right of the PCB towards the contrast control. It may be necessary to squeeze the rows of
pins slightly together to get it to fit into the socket.
Step 8: LCD
Solder a 16 way female pin header to the rear side of the LCD PCB.
The LCD can then be mounted onto the DDS VFO and mate with the 16 way male pin header.
Place four 12mm long nylon spacers between the LCD and DDS VFO PCB at each corner and
secure the assembly with 2.5mm screws and nuts.
Once you are satisfied connect the DDS VFO to a power supply between 8 and 15V DC. If the
power supply has current limiting set this to about 200mA.
Apply power and check that the LCD backlight turns on. Also check with a multimeter that the
output of the regulator is between 4.75 and 5.25V DC. The power supply current should be
around 100mA, but this will depend on the exact LCD you have installed and it’s backlight
characteristics.
If the readings are way outside this range turn off immediately and look for problems.
At this stage you may or may not see anything on the LCD. Adjust the contrast trimpot until the
characters are clear and easy to read.
Turn the power off then on again and check that the first thing displayed is the firmware version
number. This is then followed by the operating display.
As the DDS VFO has not been configured the LCD will display default settings. These are
Transmit frequency of 7.1MHz and a 1KHz Step. The default IF frequency is 10MHz with a Minus
offset so using an oscilloscope or a frequency counter verify that the DDS is outputting a 2.9MHz
sine wave signal of around 300mV pk-pk.
6 CONFIGURATION
6.1 UNDERSTANDING OPTIONS
IF offset
Consider a transmitter using a Superhet mixing arrangement. The transmit frequency is a result
of the IF frequency being mixed with a VFO frequency. If for example the IF carrier frequency is
10MHz and the desired transmit frequency is 7.1MHz then the VFO frequency can be either:
It is important to understand that when the DDS VFO is configured with an IF offset the
frequency displayed on the LCD is not equal to the DDS output frequency.
If however, the VFO DDS is to be used as a general purpose signal generator or with a Direct
Conversion receiver, the IF offset can be disabled. In this case the displayed frequency will be
the same as the DDS output frequency.
The TX (Transmit) frequency is the initial frequency displayed on the LCD at power up. The VFO
DDS firmware uses this value and the IF carrier frequency as well as the IF offset to compute the
actual DDS output frequency.
IF frequency
To generate an accurate output frequency using the equations above, the IF carrier frequency
must be measured and the value entered at configuration. If not the displayed frequency may
not match the transmit frequency.
6.2 PROCEDURE
To program the IF frequency, the Transmit frequency and the IF offset type use the following
procedure:
1. Hold down the encoder button and apply power to the DDS VFO.
2. Wait until the LCD displays Configuration (about 3 seconds) and then release the
button.
3. The IF offset screen will be displayed. Pressing the encoder button for less than 1
second will toggle through the options. Once completed press the encoder button for
longer than 1 second and release.
4. The IF frequency screen will be displayed and the cursor will be positioned on the
10MHz digit. Rotating the encoder clockwise increments the digit while rotating the
encoder anti-clockwise decrements the digit. Pressing the encoder button for less than 1
second will step the cursor onto the next digit. Once completed press the encoder
button for longer than 1 second and release. Note that if the IF offset has been
disabled this screen will be bypassed as it becomes irrelevant.
5. The Transmit frequency screen will be displayed and the cursor will be positioned on
the 10MHz digit. Rotating the encoder clockwise increments the digit while rotating the
encoder anti-clockwise decrements the digit. Pressing the encoder button for less than 1
second will step the cursor onto the next digit. Once completed press the encoder
button for longer than 1 second and release.
6. The DDS VFO will then store the values in non-volatile memory and return to normal
operation.
When the DDS VFO is powered on the version number is displayed briefly. This is followed by
the operating display shown in Figure 3.
Transmit frequency
7.100.000
1KHz 13.8V
Tuning
To tune the DDS VFO rotate the encoder clockwise to raise the frequency and counter-clockwise
to lower the frequency. The frequency will change by an amount equal to the Step value.
Frequency steps
To change the current frequency step press the encoder push button for less than 1 second and
release. Each press cycles through the available steps which are 1KHz, 100HZ and 10Hz.
Tuning Lock
To lock the encoder from changing frequency press the encoder push button for more than 1
second. A lock message will be displayed on the upper right of the LCD.
To unlock press the encoder push button for less than 1 second.
Voltage Display
The power supply voltage is displayed in the lower right hand side of the LCD. This is updated
every 500mS. If the voltage falls below 8V a low voltage warning message is displayed to
indicate the power supply is too low for proper operation.
The DDS VFO operates best with a backlit display. The characters are bright and clear and
readable in dim environments. The backlight does consume extra current and if minimizing
current consumption is a priority then a non-backlit LCD can be used instead. In this case
resistor R9 can be left off the board, although leaving it in will not cause any issues.
If an LCD with backlight is used, but is not the same as listed in the parts list, the backlight may
require a different value of current limiting resistor. Check the LCD data sheet before applying
power to determine the correct resistor value and change R9 if needed.
A non-backlit display will also not be as deep and this needs to be taken into account when
mounting to the front panel.
Additional inputs
The PCB includes two additional inputs. One is intended to measure an analog voltage and the
other is configured as a digital input. Both are able to handle a voltage between 0 and 20V DC
maximum. The current firmware release does not utilize these inputs and so when making the 4
pin power cable these pins can be left unterminated.
Firmware upgrades
The PCB contains a functioning 6 pin ISP header to allow future firmware upgrades.