Professional Documents
Culture Documents
AM-FM-CW Scanning HF-VHF RF Signal Generator
AM-FM-CW Scanning HF-VHF RF Signal Generator
AM-FM-CW Scanning HF-VHF RF Signal Generator
Scanning HF/VHF RF
Signal Generator Part 1
by Andrew Woodfield
ZL2PD
This low-cost, easy-to-build and user-friendly RF signal generator covers from
100kHz–50MHz and 70–120MHz, and is usable up to 150MHz. It generates
CW (unmodulated), AM and FM signals suitable for a wide range of tests. Its
output level is adjustable between -93dBm and +7dBm and it has an accurate
frequency display. It also includes a scanning function for filter alignment.
I
’ve always wanted a good Most lack accurate frequency read- Basic analogue and digital PLL-based
AM/FM HF/VHF signal generator. I outs or adequate stability. Spurious and RF signal generators are available be-
have tried to meet that need with a harmonic outputs can also be a problem. tween about £100 and £150. The ana-
variety of designs over the years, some (See the list of references at the end logue generators offer basic CW, AM or
analogue, others using DDS chips. of this article for three such designs that FM modulation. Output level and mod-
Recently, I have tried low-cost I considered and rejected). ulation depth on the low-cost analogue
fractional-N oscillator chips, includ- Table 1 (overleaf) shows what is avail- generators are typically controlled via
ing the Si5351A. These were only able at the moment. I rejected all of these internally mounted trimpots adjusted
suitable in specific circumstances, options for one reason or another – in- through small holes in the panel.
and did not make for a good general- adequate performance, lack of features, The low-cost digital signal generators
purpose test instrument. high price or unreliability. only offer FM and appear aimed at the
Obviously, it’s possible to purchase With few exceptions, the output lev- two-way radio industry.
an RF signal generator, new or used, els of most of these generators are quite These instruments are perfectly func-
but I couldn’t afford the price of a limited. Those with a variable output tional, but for hobbyists, the features
good one. Cheap signal generators level typically use a simple potentiome- are too limited. To use them effectively,
lack adequate performance and useful ter, with little regard to varying output you’d need extra equipment such as a
functions. Those with adequate perfor- impedance or accuracy. frequency counter, attenuators, amplifi-
mance are usually too expensive for Output levels are also often too low ers and a level meter. It’s far easier to have
most hobbyists, or are unreliable and for use in many typical applications. these features built into the generator.
difficult and/or expensive to maintain. Modulation, where available, is often As Table 1 shows, moving up in the
I have seen some designs published, limited. And, finally, some otherwise market significantly increases the price.
but these are typically simple analogue useful digital-based designs are now Used equipment is available at lower
LC-based designs with coverage up to difficult or impossible to build due to cost, but many otherwise excellent in-
around 150MHz, in a series of five or obsolete parts or unavailable software struments have recognised spare parts or
six switch-selected bands. or PCB layouts. reliability issues as the equipment ages.
So I needed to come up with my own
design that would tick all the boxes, and
that is just what I have done. See the
table opposite which lists its features
and performance figures.
Design goals
This design represents the outcome of
an extended period of development and
testing over the last few years.
This signal generator provides basic
CW (unmodulated) signals, plus AM
and FM modulation functions, primar-
ily across the high frequency range from
100kHz to 30MHz, with a continuously
variable output level suitable for most
requirements.
This frequency range includes most
common IFs (intermediate frequen-
cies) such as 455kHz, 465kHz, 470kHz,
10.7MHz and 21.4MHz.
Amplitude modulation
with the AD9850
A key objective of the signal generator
was to deliver both amplitude (AM) and
frequency modulation (FM), as well as
providing an unmodulated RF signal.
Amplitude modulation with the
AD9850 is well documented. Analog
Table 1: I looked at a range of currently available commercial equipment, both Devices, the chip’s manufacturer, help-
new and used. However, for anything that had better-than-mediocre performance, fully published an application note
that third column definitely caused me some heartache! I estimate the instrument
(AN-423) which describes adding a
described here could be built for not much more than £40, plus case.
small-signal NMOS FET and a few ad-
A rough outline of the design began transistor becomes warm during use, ditional parts to do this. A quick test
to take shape and, adding up proces- but a heatsink is not required. confirmed that it works as described.
sor pins required, the very common The design of the attenuator stage Most signal generators use a 1kHz
ATmega328P 8-bit microcontroller also posed some challenges. Recently, modulation tone, which can be pro-
appeared suitable. While an Arduino PE4302 30dB step attenuator chips have duced in several ways. One approach
was briefly considered, I would need to become popular. While only relatively is to use the ATmega328 to generate a
use practically every pin on the device, new devices, these have recently been 1kHz square wave using one of its inter-
and I wanted to keep the instrument listed by the manufacturer as obsolete. nal timers and then filter this to give a
compact, so I decided to use a stand- The replacement devices, while having 1kHz sinewave. But extensive filtering is
alone ATmega328 processor. improved performance, also come at a required to obtain a suitable tone. That
The RF buffer amplifier requires only substantially increased price. involves quite a few extra parts.
modest gain. It must handle the some- Relay-controlled fixed attenuators can A second, similar approach is to use
what unusual 200output impedance be used, but with an eye on cost and the ATmega328’s counter/timer in its
of the AD9850 module and the following simplicity, I decided to use inexpensive pulse-width modulated (PWM) mode.
50attenuator stages and 50output. slide switches instead. Experience has The resulting waveform is closer to
Another consideration is that the buffer shown these to perform adequately for a sinewave but still requires some
should not be overloaded by the some- this type of application. However, these filtering to remove the 31kHz PWM
times high output swing of the AD9850. limit the attenuator steps to specific at- frequency. Usefully, that filter is far less
Numerous designs published on the tenuation values. Ideally, the generator complex given the much higher clock
Internet suffer from this problem. should have a fully variable output level. frequency compared to the 1kHz tone.
The buffer should also maintain its So I decided to build and test a A third option is to build a discrete
gain across the design frequency range. Serebriakova attenuator as an alterna- 1kHz sinewave oscillator and just use
And the buffer should be able to work tive to a more costly PIN diode-based the ATmega328 to turn it on and off as
into a reasonable range of loads and design. This configuration is shown in required. At first glance, the discrete
survive typical bench treatment. the lower right-hand corner of Fig.4, oscillator approach is attractively
I’ve used MMIC amplifiers such as the the circuit diagram. simple and uses relatively few com-
ERA-series devices from Mini-Circuits It’s a simple passive resistor net- ponents, so I tested this out, using the
to buffer AD9850, AD9851 and AD9854 work that acts as a variable attenuator, circuit shown in Fig.2.
DDS chips in the past. These drive well suited for basic designs like this. It works quite well. The 3.3nF ca-
50loads with good performance. Apparently of Russian origin, the pacitor value can be adjusted to give
However, in testing this signal gen- attenuator network uses a 500linear the required modulation level at the
erator with a wide variety of filters, potentiometer to give a 20dB variable AD9850’s RF output. This works by
amplifiers, receivers, transmitters and
other loads, several MMICs suffered
early deaths. These were probably due
to the very low impedances presented
by some of the test filters.
The search for a more suitable buffer
stage was ultimately concluded with
the inclusion of a traditional single-
stage buffer amplifier using a robust
2N4427 VHF transistor. It is widely
available at low cost, as is its near-
equivalent, the 2N3866. It proved more
than adequately robust over many Fig.1: the basic arrangement of a modulated signal generator with adjustable
months of use. The TO-39 case of the output level. Our design follows this configuration.
T
he Signal Generator is built It is recommended that you attach The module I used is, I believe, the
on one double-sided PCB cod- REG1 to the case for heatsinking, but most-common version, but there ap-
ed 04106191, measuring 152.5 we haven’t built the case yet. Any- pear to be other versions available that
× 102mm, available from the PE PCB way, the easiest way to do this is to use the same circuit but a different lay-
Service. Refer to the PCB overlay dia- cut the three regulator leads short, out. So if your module does not look
gram, Fig.5. then solder 25mm lengths of medium- exactly the same as mine, don’t panic!
Most of the top (component-side) duty hookup wire to the stubs, using You can use a DMM set on continu-
surface has been retained as a ground some small diameter heatshrink tub- ity mode to identify the resistors con-
plane for added shielding. No SMD ing to insulate the solder joints and nected to pins 3, 4 and 12 of the IC and
parts are used in the construction of the lead stubs. then remove them.
the Signal Generator, making it rela- You can then solder these three You can do this by heating the ends
tively easy to build. leads to the regulator pads on the PCB, of the resistors alternately with a sol-
Start by fitting all the resistors where ensuring that it is soldered the right dering iron while holding the body
shown. It’s best to check each one with way around – ie, so that if you hold it of the resistor with tweezers. Once
a DMM set to measure ohms before fit- up above the board with the wires not enough heat has been applied, you can
ting them, as the colour bands can be crossing over, the tab is facing away lift it right off the board. If you have
hard to distinguish). Don’t forget the from the board, as shown in Fig.5. a hot-air rework station that makes it
47Ω resistor hiding under S4. even easier.
Then mount diodes D1 and D2, en- Early testing It’s then just a matter of soldering a
suring they are oriented as shown. Now you can apply 12V power to DC 100mm length of light-duty hookup
Next, mount IC1’s socket with its input connector CON1 and make some wire, or Kynar (wire wrap wire) to the
notched end facing the top of the board. checks. Unfortunately, there is no now-empty pad which connects to pin
Now fit the ceramic and MKT ca- power-on indicator LED at this stage 12 of the IC, as identified in the pho-
pacitors, which are not polarised. (there will be when MOD1 is fitted), to. This will be soldered to the main
Don’t get the different values mixed so the simplest check is to measure board later.
up though. There’s also one of these the voltage at the right-hand pin of JP1
under S4. Follow with trimpot VR1 relative to a ground point such as the Winding coils L1-L3
and plastic package transistors Q1, mounting screw hole in the middle of The three inductors, L1-L3, are wound
Q2, Q4 and Q5. Q4 is a different type the board. At this stage, there should with 0.8mm diameter (26 gauge) enam-
than the other three. be little to no voltage. elled copper wire. These are air-cored,
Next, solder 6-pin header CON3 and Now briefly press power switch S3, meaning the coils are first wound
two-way headers CON4 and JP1 to the and you should measure close to 5V around a suitably sized former, then
board, followed by the power socket on the right-hand pin of JP1. Press S3 the former is removed.
(CON1) and then the electrolytic ca- again and that voltage should drop The coil diameters should all be
pacitors. These are polarised: the long- away to almost zero. That confirms 3mm, so a 3mm drill bit shaft or 3mm
er lead must go to the pad marked with that the power supply section is work- diameter metal tube would be suitable.
a ‘+’ on the PCB. The stripe on the can ing correctly. The coil is then self-supporting when
indicates the negative side. mounted on the PCB.
Fit the three pushbutton switches, Modifying the AD9850 module L1 and L3 need to be 160nH while
with the flat side oriented as shown Minor modifications are required to L2 is 150nH. To achieve this, wind 11
in Fig.5, ensuring they are pushed the AD9850 module before mounting it turns for each coil, but then stretch L2
down fully onto the board before sol- on the PCB. Three SMD resistors need so that it is around 1mm longer than
dering their pins. S3 is red while S1 to be removed and a thin wire soldered the other two. That reduces its induct-
and S2 are black. You now have almost to one of the free pads. These changes ance to the required value. (You could,
enough components mounted to test are shown in Fig.6 and the accompa- of course, use an inductance meter to
the power supply. nying photo of the modified module. verify the coils if you have one).
If you want to achieve the alterna- Wind four turns of the twisted wire The wire you connected to that
tive inductor values mentioned last onto the core and trim the ends of the module earlier connects to the lead
month, reduce the number of turns to ‘bifilar’ wires, so you have four short of transistor Q1 which is closest to
six, then stretch L2 by around 0.5mm. lengths of wire each about 20mm MOD1. RevB PCBs have a dedicated
Now remove the enamel at each end long appearing at one pig-nose end pad for this wire.
of the remaining wire on each coil. of the core. Otherwise, solder it directly to Q1’s
Some enamel coatings vaporise while Tin these four ends. Use a multime- lead, on the top side of the PCB. Ei-
being tinned, but most must be scraped ter to identify the start and end of the ther way, trim the wire to length be-
off with a sharp knife. two coils. fore stripping and soldering it. This
Take care if you use the latter ap- The start of one coil and the end wire should ideally be routed under
proach, especially to avoid cutting of the other (shown as ‘AS’ and ‘BF’ the module for neatness. If you keep
yourself. You can verify that you’ve in the diagram) go to the two central it short, it won’t move around later.
scraped off the insulation properly by mounting pads for T1 (either together Next, fit output socket CON2. As
tinning the wire ends and then check- into one pad, or separately into each), it’s an edge connector, push it onto
ing that the solder has adhered. while the other two wires go to the the edge of the PCB, with the central
But note that you don’t want a lot of mounting pads at either end. pin sliding over the central pad on the
excess lead length on these coils; just It doesn’t matter which goes to bottom side.
enough to make it through the mount- which, as the coil is symmetrical. Solder that central pin, plus the
ing holes on the PCB and be soldered Again, cut the leads to leave just a posts on either side, on both the top
on the underside. minimal amount and then strip the and the bottom sides of the PCB.
So cut the wire ends to length before enamel off and tin them before solder- As this is a fairly substantial chunk
stripping the enamel. ing them to the board. of metal being soldered to copper
Don’t stretch or compress the coils This should allow you to mount the planes, you will need a hot iron and
to fit the pads on the PCB as this will balun close to the board, so it won’t rat- be generous with the solder.
affect their inductance; just use a short tle around after the wires are soldered. Then install mini slide switches S5-
length of extra wire at one or both ends S9. The board is designed with slots
to reach the mounting pads. Proceeding with construction to suit their lugs, so you can solder
Now fit metal-can transistor Q3 close to them right down onto the PCB. Again,
Winding the transformer the PCB, leaving about 1mm between be generous with the solder to ensure
T1 is wound on a 7mm-long ferrite the bottom of the device and the up- good joints.
balun core. Begin with 400mm of per PCB surface. Don’t install it firmly Next, mount the LCD. There are three
0.315mm-diameter (28 gauge) enam- down on the PCB because the metal possible headers to suit different LCD
elled copper wire. case of the transistor is internally con- module styles, although Jaycar QP5516
Fold the wire in half so the two cut nected to the collector terminal of Q3. or Altronics Z7018 are the best fit.
ends meet, then twist the two wires to- Also, before you solder it in place, For the Jaycar LCD, solder an 8×2-
gether to produce a twisted wire simi- check the metal case is not touching pin DIL header to the row of pins near-
lar to that shown in Fig.7. any adjacent component leads. est the left edge of the PCB, then at-
It can have anywhere from one to five Next, fit your modified AD9850 DDS tach the four short tapped spacers to
twists every 20mm; this isn’t critical. module by soldering two 10-pin head- the corner mounting holes from the
Twisting the wire simply makes wind- ers to the PCB, then soldering the mod- bottom of the board, using 5mm ma-
ing the wire onto the core a little easier. ule to the pins on top of these headers. chine screws.
Fig.6: these three SMD resistors must be removed from the AD9850 DDS module. One
of the pads which connected to the now-gone 3.9kresistor makes a handy connection
point for the extra wire needed to connect pin 12 of the IC (RSET) to the collector of
transistor Q1 on the main board, for output level control. See also the close-up photo CONNECT THE RSET
at right. (PIN 12) WIRE HERE
You can then slip the LCD over the the underside of the PCB and its shaft the upper-left corner of the board. (If
pin header and attach it using four more passing up through a hole. you haven’t already programmed it or
5mm machine screws, then solder the Mounting it in this way is a bit fid- purchased a programmed chip, see the
header pins to the top of the LCD. dly, but there are two benefits: this is a panel below detailing the program-
The procedure for the other LCDs standard part that’s easier to get, and its ming instructions.)
is similar except some LCDs may re- shaft will line up perfectly with push-
quire short jumper wires to connect buttons S1/S2 and the access hole for Further testing
to the PCB. trimpot VR1 (if provided). Later, we will be attaching REG1 to the
The final two components to fit are Alternatively, if you can get your metal case. However, since we haven’t
rotary encoder RE1 and potentiome- hands on a 9mm PCB-mounting right- built it yet, for further testing tempo-
ter VR2. Mounting RE1 is easy; make angle potentiometer, it will be dead rarily attach a flag heatsink or attach
sure it’s perpendicular to the PCB and easy to mount to the PCB, as it’s fitted it to a spare sheet of metal using a ma-
pushed all the way down before sol- similarly to RE1. However, due to the chine screw and nut.
dering its pins. Solder its five pins and location of the hole for the 16mm pot’s You can now apply 12V power to
two mounting lugs; you will need a shaft, its shaft will sit around 3.5mm CON1, press S3 and check that you
hot iron for the latter, and be gener- lower than S1/S2 and VR1. (This is can control the output frequency and
ous with the solder. hardly a tragedy – the choice is yours!) amplitude (see the operating instruc-
For VR2, we’ve provided two dif- Now plug in the ATmega328 mi- tions below).
ferent options. The prototype used a crocontroller (IC1), making sure its Power the unit down before finish-
16mm potentiometer with its body on pin 1 is oriented correctly, towards ing construction.
Two inter-coil screens, show in red on the overlay) must be The modified AD9850 module in situ on the main PCB.
fitted between the coils as shown here. These can be cut from The three SMD resistors are all removed and the yellow wire
a scrap of tinplate (eg, a food tin). This photo also shows the is soldered to the appropriate pad – the one marked R6.
mounting of the 7805 regulator on the case heatsink. (make sure it is the pad closest to the AD9850 IC).
best to line it up with the holes in the Small self-tapping screws are used Trim the front panel artwork to cut
lid to figure out exactly where it will sit to hold the cover to the base of the out the holes for the various controls
in the case before marking and drilling box. Once you’ve cut and bent the and display and test-fit onto the com-
out the three mounting holes in the base. sheets, rivet or screw the 7805 regu- pleted metalwork.
Alternatively, as in the prototype, lator (REG1) onto the metal cover just The most reliable method to fix the
the Signal Generator PCB can be held before the final step of screwing the artwork in place is to spray the rear
onto the front panel using the rotary cover to the base. side of the artwork with adhesive spray
encoder nut, although it would prob- The front panel artwork is shown obtainable from most art shops. While
ably be better to attach using at least in Fig.8. It can be printed and covered tacky, press the panel artwork into
one tapped spacer too. with self-adhesive plastic film. place. Remove the rotary encoder nut
Fig.9: the CW (carrier wave, ie, unmodulated) output at Fig.10: analysis of the AM output at 10MHz/−12dBm with
10MHz/−28dBm with a span of about 9-37MHz, selected a 20kHz span (ie, 9.99-10.01MHz). The 1kHz sidebands are
to include the first two harmonics. This shows the second visible either side of the carrier, as are the 1kHz modulation
harmonic (20MHz) at around −40dB and the third (30MHz) tone distortion products at ±2kHz (−21dB below the 1kHz
at around −47dB. fundamental) and ±3kHz (−26dB below the fundamental)
indicating acceptable audio distortion levels. The
modulation depth is the industry test standard, 30%.
Fig.11: a ‘narrow band’ 1.75kHz frequency-modulated Fig.12: ‘wideband’ or broadcast radio-style FM, again with
signal with a 10MHz carrier and a 20kHz span. The iconic the carrier at 10MHz, this time captured with a 500kHz
equi-spaced 1kHz sidebands of a standard FM signal are frequency span. This clearly illustrates that most of the
clearly visible. signal energy falls within the 200kHz channel bandwidth
permitted for broadcast FM signals.