You are on page 1of 13

Constructional Project

By JIM ROWE T RADITIONALLY, RF level/power


meters have been quite expensive
beasts costing hundreds of pounds,
even secondhand. Small wonder that
many of us have simply had to do
without them. Such RF level/power
meters have always been expensive
because of the measurement tech-
nique they used: converting the RF
energy into heat and then measuring
the temperature rise using a sensitive
thermocouple system.
Luckily for us, advancing semicon-
ductor technology now provides an
easier way: the wideband logarithmic
amplifier/detector IC. Its DC output is
closely proportional to the logarithm
of the RF input voltage. We can achieve
the desired result by combining one
of these chips with an ‘intelligent’
metering circuit, capable of processing
this logarithmic DC voltage to indicate
both signal level and the correspond-
ing power level.
In a nutshell, our circuit uses an
Analog Devices AD8307AN logarith-
mic amplifier/detector to convert RF
signals into DC, which is processed
by a PIC microcontroller. The micro
uses some fairly fancy maths rou-
tines to work out the signal level and
power, which is then displayed on a
standard 2-line LCD panel. The whole
set-up works from a 9V battery or DC
plugpack and draws less than 35mA.

The AD8307 log amp/detector


To help understand logarithmic
amplifier/detector ICs, take a look at
Fig.1. This gives a simplified view

Digital RF Level
inside the AD8307AN device.
As shown, the incoming RF signals
are passed through six cascaded wide-
band differential amplifier/limiter

& Power Meter


stages, each of which has a gain of
14.3dB (about 5.2 times) before it en-
ters limiting (ie, clipping). This gives
a total amplifier gain of about 86dB
or about 20,000 times. The outputs
of each amplifier/limiter stage are fed
Need to measure small signals at radio to a series of nine full-wave detector
cells, along with similar outputs from
frequencies? Here is a low-cost digital level three cascaded passive 14.3dB atten-
and power meter which will allow you to uator cells connected to the input of
the first amplifier/limiter.
measure RF signals from below 50kHz to The differential current-mode out-
above 500MHz. As well as indicating the puts of all nine detector cells are
added together and fed to a ‘current
signal level in volts and dBV, it also shows mirror’ output stage, which effectively
the corresponding power level (into 50 ohms) converts them into a single-sided DC
output current. Because of the combi-
in both milliwatts and dBm. nation of cascaded gain and limiting in

10 Everyday Practical Electronics, December 2010

RF Level & Power Meter1008 (FROM MATT).indd 10 27/10/2010 16:05:37


Constructional Project

+INP SIX 14.3dB GAIN, 900MHz BW AMPLIFIER/LIMITER STAGES


  Specifications
–INP
INTERC.
SET
•  Input impedance: 50W (can be
changed to 75W or 1.1kW)
3x PASSIVE
ATTENUATOR
•  Measuring frequency range:
CELLS MIRROR
from below 50kHz to above
500MHz
Iout
NINE FULL-WAVE DETECTOR CELLS WITH
DIFFERENTIAL OUTPUT CURRENTS – ALL SUMMED OUT
•  Maximum input signal level:
25mV/dB
2.238V RMS (+7.0dBV)

ENB BAND-GAP REFERENCE 12.5k •  Minimum input signal level:


AND BIASING
INPUT OFFSET COMPENSATION LOOP 22mV RMS (–93dBV)

• Maximum input power level:
COM 100mW into 50W (+20dBm)
Fig.1: block diagram of the AD8307AN amplifier/detector IC. The incoming  
• Minimum input power level:
RF signals are passed through six cascaded wideband differential amplifier/ 1nW (0.001mW/–60dBm)
limiter stages, and these in turn drive full-wave detector cells (see text).
•  Measurement linearity:
4.7 approximately ±0.3dB
TO MAIN
BOARD
•  Measurement accuracy:
RF 100nF approximately 0.2%
INPUT (CON1)
CON4
47nF
7 6 1  
• Power requirements: 9V DC at
VPS EN 2
8
IN H OUT
4 3 35mA (no backlight) or 120mA
IC1 4

AD8307AN 5
INTERCEPT SLOPE with backlight
ADJUST VR2 ADJUST VR1
Rin* INT CON5
50k 50k
47nF USB TYPE
1 3 100nF 'A' SOCKET
IN L OFS AD8307AN (IC1). The incoming RF
COM
2 100nF
51k 33k signals are coupled into the inputs
10
of IC1 via two 47nF capacitors, with
Rin providing the desired 50W input
termination. (Rin is a combination of
* Rin = 100 //220 //220  FOR 50  INPUT
paralleled surface-mount chip resis-
tors, to give a value of 52.4W with
RF RF LEVEL
SC LEVEL
2008 & POWER
& POWER METER
METER HEAD-END CIRCUIT
HEAD END CIRCUIT very low parasitic inductance. As the
input impedance of the AD8307AN
Fig.2: the head-end circuit is based on the AD8307AN. The incoming RF
signals are fed to pins 8 and 1 via 47nF capacitors, while the detected output is very close to 1.1kW, and this is in
appears at pin 4 and is fed to pin 3 of a type A USB socket. parallel with Rin, the resulting total
input resistance is very close to 50W).
Trimpot VR1 and its 33kW series
the amplifiers (plus an internal offset which adjusts the effective ‘zero level’ resistor are connected between the
compensation loop), the amplitude of point of the chip’s output current and output (pin 4) of IC1 and ground (0V),
this output current is closely propor- voltage, ie, the ‘origin’ from which the so they are effectively in parallel with
tional to the logarithm of the RF input output slope rises. You can think of the 12.5kW resistor inside the chip it-
voltage, over an input range of 100dB it as setting the detector’s zero point. self. This allows the output slope of the
from about –93dBV (22.4mV) up to detector to be fine tuned to a value of
+7.0dBV (2.24V). Head-end circuit 20mV/dB, when the meter is calibrated.
In fact, this ‘logarithmic law’ rela- It’s desirable to separate the RF Trimpot VR2 is used to adjust the
tionship is linear to within ±0.3dB detector section from the rest of the DC voltage fed to pin 5 of IC1. This
over most of the range. The output meter circuitry, partly because it is the is the ‘intercept set’ input, so VR2
current Iout increases at a slope of very only section handling RF signals and effectively becomes the detector’s zero
close to 2mA per dB increase in RF in- partly because it has very high gain set adjustment.
put level. This current passes through and is therefore susceptible to electro- The head-end section connects to
an internal 12.5kW resistor, resulting magnetic interference. The AD8307- the main meter unit via a standard USB
in a DC output voltage which increases AN and its accompanying components cable. This cable carries the detector’s
at the rate of 25mV/dB. This slope are therefore mounted on a separate output voltage to the main board via
can be fine tuned using an adjustable small ‘head-end’ board, which in turn pin 3 of CON5 and also supplies IC1
external resistor in parallel with the is mounted inside a small diecast alu- with +5V power via pin 1.
12.5kW internal resistor. minium box, for shielding.
So what’s that ‘intercept set’ input The circuit of this head-end sec- Main circuit
for? This allows us to adjust the DC tion is shown in Fig.2 and involves The processing part of the circuit
offset in the output current mirror, little else apart from the all-important is shown in Fig.3. This is where the

Everyday Practical Electronics, December 2010 11

RF Level & Power Meter1008 (FROM MATT).indd 11 27/10/2010 16:05:46


Constructional Project

real ‘work’ is done, by the firmware


  Volts, dBV, Milliwatts and dBm running inside the PIC16F88-I/P mi-
cro (IC3). The PIC16F88-I/P device is
The RF Level and Power Meter described in this article gives four indications for well-suited to this application, as it
every measurement: the RF input voltage (in volts or millivolts), the corresponding includes an analog-to-digital converter
value in dBV, the corresponding power level in the meter’s 50W input load (in milliwatts (ADC) module with 10-bit measuring
or microwatts) and the corresponding value in dBm. The voltage and power levels resolution. The ADC is also flexible
probably need no explanation, but we should perhaps explain the significance of the in terms of its operating mode, with a
two decibel readings. choice of positive and negative refer-
For many years, engineers working in the communications and RF fields have found ence voltages and also a 7-channel
it convenient to describe signal amplitude and power levels in decibels, because input multiplexer.
of the very wide ranges involved – from microvolts (mV) to kilovolts (kV), and from We take advantage of these features
nanowatts (nW) to kilowatts (kW). by using a positive reference voltage
Because decibel scales are logarithmic, they make it easier to work with signals of 3.50V, which is fed into pin 2 of IC3
varying over such wide ranges. To describe the voltage gain of an RF amplifier in terms and by using three of the ADC input
of decibels, for example, we simply take the base-10 logarithm of the voltage gain channels to allow firmware selection
(Vout/Vin) and multiply this figure by 20. So a voltage gain of 10 corresponds to +20dB, of the measuring range via pin 1 (AN2),
a gain of 100 corresponds to +40dB, a gain of 1000 corresponds to +60dB and so on. pin 18 (AN1) and pin 17 (AN0).
Similarly an attenuator which reduces the voltage level by a factor of 10:1 can be Why do we need three ranges? Be-
described as having a ‘gain’ of –20dB. Get the idea? cause it allows us to get higher meas-
When we’re describing power levels rather than voltage, the power gain of an uring resolution when the RF input
RF amplifier can be found by again taking the base-10 logarithm of the power gain signals (and hence the output voltage
(Pout/Pin) but this time multiplying the figure by 10. So a power gain of 10 times is from IC1) are quite small. For these
+10dB, while a power gain of 100 times is +20dB and so on. (If you’re a bit puzzled signals, we are able to amplify the DC
by the difference between voltage and power when calculating the decibels, it’s merely output voltage from IC1, in order to use
because power increases with the square of the voltage. That’s why we multiply the a larger proportion of the ADC’s meas-
log of voltage ratios by 20 but we only multiply the log of power ratios by 10). urement range of 0V to 3.5V and hence
increase the measurement resolution.
dbV and dBm
So what’s the difference between ‘dBV’ and ‘dBm’ figures? Well, these are both Gain ranging
decibel scales, but in this case they are used to compare one specific voltage or power We provide the three ranges in
level with a known reference value, rather than to compare two specific values. So the following way. The incoming DC
the contractions dBV and dBm indicate that the figures they accompany are absolute, voltage from IC1 enters via pin 3 of
rather than relative. CON1, and is then passed through a
‘dBV’ is a voltage level expressed in decibels with reference to 1.000 volts. So simple input protection circuit using
+6dBV (2V) is 6dB greater than 1V, while –20dBV (100mV) is 20dB smaller than 1V. diodes D1 and D2, the 100nF capaci-
So expressing a voltage in dBV merely indicates that it is measured on a decibel scale tor and the 100W and 1MW resistors.
which refers to 1.00V as its 0dB point. It is then fed to the paralleled inputs
Similarly, ‘dBm’ is a power level which is expressed in decibels with reference of op amps IC2b, IC2c and IC2d. Each
to a specific reference power level of 1mW (milliwatt); in other words, on a decibel of these provides a different amount
scale where 1mW corresponds to 0dB. So +10dBm corresponds to 10mW, +20dBm of gain, to change the effective slope
to 100mW and –30dBm to 1mW (microwatt). of the log-law input signal.
There is another ‘absolute’ decibel scale used for expressing voltage levels, the The gain for the normal default
dBm scale. This refers to a level of 1mV (microvolt) as its 0dB point. So +120dBm is measuring range is 1.75, provided by
the same as 0dBV, while 0dBu is the same as –120dBV. IC2b with its 1.5kW and 2.0kW feed-
One last point: since the dBV and dBm scales are ‘absolute’, surely they can be back resistors. This gives the incoming
related to each other? Yes they can, but to work this out you need to know the imped- DC signal an effective slope of 1.75 ×
ance level – because that is what relates voltage and power in any circuit. 20 or 35mV/dB, translating to a total
In most RF work, the impedance level is 50W. At this level, a voltage of 1V cor- span of 100dB for the ADC’s 3.5V
responds to a power level of 20mW (12/50), so 0dBV equals +13dBm. On the other measuring range.
hand –30dBm (= 1mW) corresponds to 7.07mV, or –43dBV. In other words, there’s a For signals of less than 223.9mV
fixed 13dB difference between the two scales. (–13dBV), we select the output from
This difference changes with impedance level, though. For example when the IC2d, configured for a gain of 2.19.
impedance level is 600W, 0dBm or 1mW corresponds to 0.7746V or –2.218dBV, so This gives the incoming DC signal an
there’s a fixed 2.2dB difference between dBm and dBV. effective slope of 43.74mV/dB, trans-
Older RF level and power meters often indicated in just dBm or perhaps in dBV lating to a total ADC measuring span
as well. If the user wanted to know the actual voltage and power level, they had to of 80dB. Then for signals of less than
either refer to a chart or grab a calculator and work them out. This could be pretty 22.39mV (–33dBV) we select the out-
tedious, and that’s why we’ve given this new RF Level and Power Meter the ability to put of IC2c, with a gain of 2.916. This
calculate and display not just dBm and dBV, but the equivalent volts and milliwatts gives the incoming DC signal a slope
as well, for every measurement. of 58.32mV/dB, which translates to a
total span of 60dB.

12 Everyday Practical Electronics, December 2010

RF Level & Power Meter1008 (FROM MATT).indd 12 27/10/2010 16:05:54



D3 1N4004 POWER 9–15V DC
REG1 LM317T
K
INPUT
+5.00V A +
TP3 OUT IN
S2
100nF 330 120 ADJ –
TPG 2.2k CON3
100nF 470 F 9V
14 4
220 F
16V BATTERY
A A A
Vdd MCLR
 LED1  LED2  LED3 330

K K K 12
RB6 VR3 SET 5.00V
13 10k
RB7 3
RA4 100
16
RA7

RF Level & Power Meter1008 (FROM MATT).indd 13


CON1
3.0k S1
FROM 1 +5.00V +3.50V 2
2
Vref+ SELECT
HEAD
3 RANGE
END 4 100nF 6.8k
(CON5) K
TP1
2
USB TYPE D1 TPG 68k
'B' SOCKET 200 Vdd
11 4
A RB5 RS
100 4 VR4 LCD
10 3
16 x 2 LCD MODULE CONTRAST
K 8 17 10k CONTRAST
IC2c AN0 10 6
RB4 EN

Everyday Practical Electronics, December 2010


9
100nF D2 1M IC3
3.9k 220k D7 D6 D5 D4 D3 D2 D1 D0 GND R/W
A PIC16F88-I/P 14 13 12 11 10 9 8 7 1 5
9
RB3
8
IC2: LM324N 2.0k RB2
7
RB1
12 6
RB0
14 18
IC2d AN1
13
2.4k 220k 15
CLKo TP2 (2.0MHz)

TPG
2.0k
CAL/MOD
5 OUTPUT
7 1 3 CON2
IC2b AN2 1.5k
6 1
Vss IC2a
11 1.5k 2
5

2.0k

D3
LEDS LM317T
OUT
A K
K
RF LEVEL & POWER METER MAIN BOARD D1,D2: 1N4148 A ADJ

SC
2008 MAIN BOARD OUT IN
RF LEVEL & POWER METER A K

Fig.3: the main board circuit is based on an LM324 quad op amp (IC2) and a PIC16F88 microcontroller (IC3). The incoming signal is fed to paralleled op amp
stages IC2b to IC2d, each operating with a different gain to provide three ranges. Their outputs in turn drive the ADC inputs of IC3, which processes the signals
Constructional Project

and drives a 16 × 2 LCD module.

13

27/10/2010 16:06:04
Constructional Project

ALTRONICS
16X2 LCD MODULE
Z-7000A OR Z-7011 (B/L)
A

18090240
8002 C K
RE W OP/LEVEL FR LATI GID
)DRA O B NIA M( RETE M

14
1

VR4 10k 100


18  0.5W

TPG VR3
CON2
RBL*

330
68k

TP1
PIC16F88 -I/P

(3.50V)

100nF 200 LCD


6.8k CONTRAST SET 5.00V
CAL OUT
IC3

2.2k
120
1.5k

10k TPG TP3


TPG TP2
(2MHz) 3.0k 5.00V REG1
1
LM317T
2.0k
220 F 100nF
1.5k CON1
4148

INPUT FROM

1 D1
HEAD END

1 4
100nF
220k
3.9k

IC2 LM324N 100


2 3
330

2.0k 2.4k
4148
1M

RANGE 2.0k 220k 100nF


SELECT
D2 470 F POWER
LED1 0dBV
S2
S1
LED2 –20dBV
CON3
D3
4004

9–15V
DC IN

LED3 –40dBV

+

BATTERY
* SEE TEXT

Fig.4: follow this parts layout diagram and the accompanying photograph to build the main board. Both IC2 and the
PIC16F88 microcontroller (IC3) should be installed in sockets.

Using this approach we obtain Power supply and calibration. Test point TP1 allows
much better measuring resolution The complete circuit runs from 5V you to measure the ADC reference volt-
for these much smaller signals. The DC, which is derived from either a 9V age, so you can adjust trimpot VR3 to
outputs from op amps IC2c, IC2d battery or a plugpack supply of simi- achieve exactly 3.50V at pin 2 of the
and IC2b are fed directly to the lar voltage, using regulator REG1, an PIC. TP3 also allows you to measure
AN0, AN1 and AN2 (ADC) inputs LM317T adjustable device. We use this the 5.00V rail directly, if you wish,
of the PIC and its firmware selects rather than a fixed regulator because while TP2 allows you to check the
the appropriate ADC input channel this allows us to set the supply rail PIC’s internal clock oscillator.
by stepping from one range to the accurately to 5.00V. This runs at 8MHz, which means
next each time you press the range We need to do this because the 3.50V that the signal available at TP2 should
select button (S1). reference voltage for the PIC’s ADC is be very close to 2MHz (Fc/4). So, if
To indicate which range is cur- derived directly from the 5V rail, via the PIC is running correctly, you will
rently selected, the firmware switches a voltage divider using 3.0kW, 6.8kW find a 2MHz square-wave of 5V peak-
on LED1, LED2 or LED3 and automati- and 200W resistors. This reference to-peak at TP2.
cally changes the scaling factor, so voltage for the ADC is fed into pin 2 Finally, the fourth op amp, IC2a,
that the displayed values are correct. of the PIC, which is configured as the is provided purely as a voltage fol-
After performing the calculations Vref+ input. lower/buffer from the output of IC2b
for each measurement, the firmware Notice that there are a number of test (the default ADC driver). Its output
then displays the results via the LCD points provided in the main board cir- is made available via CON2, to al-
module. cuit, to allow more convenient set-up low you to monitor the amplified

14 Everyday Practical Electronics, December 2010

RF Level & Power Meter1008 (FROM MATT).indd 14 27/10/2010 16:06:16


Constructional Project

output voltage from the AD8307AN


head-end externally, with a DMM or 51k
oscilloscope. VR2
8002 C
This could be convenient for calibra- 28080240 50k

100nF
tion and also for looking at any ampli- CON5

TO MAIN BOARD
tude modulation of the RF signals be- 4

4.7
IC1
ing measured. Note that any observed AD8307
3
2

modulation envelope is likely to be 1

distorted because of the logarithmic


response of the head-end amplifier. 10 VR1

100nF
100nF
50k

Construction 33k

As noted earlier, the project is com- TOP VIEW OF


prised of two parts: the AD8307AN HEAD END BOARD
head-end fitted into a small metal Fig.5: these two diagrams and
box for shielding and the main meter the above photo show the parts
circuitry which is fitted into a UB1-
SIDE OF layout on the head-end board.
BOX Use a fine-tipped soldering iron
size plastic box (158mm × 95mm to solder the SMDs to the copper
× 53mm). The two are connected side of the PC board and take care
BNC
together using a standard USB inter- INPUT to ensure that IC1 is correctly
connect cable. SKT 47nF
CON5
orientated. Do not use a socket for
220

The meter’s main circuit is all fit- 1


ICs – it must be soldered directly
100

2
ted on a PC board coded 783 meas- 3 to the PC board.
220

uring 146mm × 84mm, and with a 47nF


4

CON4
recess in each corner so that it fits 04208082
neatly behind the lid of the UB1 box. C 2008
Reproduced by arrangement
The head-end circuit is installed on with SILICON CHIP
a second PC board coded 784 and magazine 2010.
measures 43mm × 44mm. These www.siliconchip.com.au
COPPER SIDE OF
boards are available, together with HEAD END BOARD
an attenuator PCB, as a set from the
EPE PCB Service.
There is actually a third op-
tional PC board for this project,
coded 785 and measuring 95mm
× 38mm. This is for an option-
al 20dB/50W attenuator, to allow
measurements of higher-level
signals.
The location and orientation
of all parts mounted on the
main board are shown clearly in the
board overlay diagram of Fig.4. Note
that connectors CON1, CON2 and
CON3 are all mounted directly on
the board, along the right-hand side.
Power switch S2 also mounts direct-
ly on the board, with its connection The head-end board is attached to a panel-mount BNC socket and mounted
lugs passing through the board and upside down inside a diecast metal case. A type A to type B USB cable connects
soldered to pads underneath. the unit to the main PC board.
Range select switch S1 can be
mounted in the same way, or mount- You should use sockets for IC2 are mounted from the rear, to make the
ed on the box lid with its leads ex- and IC3, rather than soldering them battery connections easier.
tended through the board using short directly to the board.
lengths of tinned copper wire. The There are four wire links on the Mounting the LCD module
three range indicator LEDs are again board and it’s a good idea to fit these The LCD module used for this
mounted directly on the board, with before any of the components so that project is the Altronics Z-7000A or
the underside of their bodies spaced they’re not forgotten. The test point Z-7011, with the second type number
up by about 14mm so that the LEDs terminal pins can also be fitted at this signifying the version with a backlight.
just protrude through the matching stage, along with the two further pins Regardless of which version you use,
holes in the front panel (ie, the lid) used for the optional battery connec- the module is mounted above the main
when the board is mounted behind it. tions. By the way, these last two pins board using four M3 × 15mm machine

Everyday Practical Electronics, December 2010 15

RF Level & Power Meter1008 (FROM MATT).indd 15 27/10/2010 16:06:27


Constructional Project

  What The Firmware Does

A s we explain in the main text, the


AD8307 chip in the RF Meter’s ‘head
end’ detects the incoming RF signals and
is then divided by the ADC’s full-scale
value of 3FF (in 24-bit FP form), to give
the measurement value in what I call the
Once all four parameters have been
calculated, the final steps of the measure-
ment sequence involve taking each 24-bit
converts them into a DC voltage accord- ‘raw dB’ form. This is essentially a 24-bit parameter and processing it for display
ing to a logarithmic conversion scale. A number varying between 0 and 100. on the LCD module. For the dBV and dBm
PIC micro then measures and converts This raw dB value is then used to figures, this means working out the correct
this into the equivalent RF voltage and calculate the equivalent dBV value, by polarity indication (+ or –) and then using
power readings, under the control of a subtracting decimal 93 (in 24-bit FP a Microchip routine called Float_ASCII
firmware program. form) and also the equivalent dBm value to convert the numbers themselves into
To do this, it makes use of a suite of (for 50W impedance level) by subtracting ASCII digits for display.
maths routines made available to PIC decimal 80 (again in 24-bit form). These Things are a little more complicated for
programmers by Microchip Technology values are then saved for display, but also the voltage and power values, because
Inc, the manufacturers of the PIC family of used to calculate the actual voltage and these must first have their 24-bit binary
micros. These routines are used to perform power levels. exponents analysed to work out their scal-
24-bit and 32-bit floating-point addition, The dBV value is used to calculate the ing, the position of their decimal point and
subtraction, multiplication and division, equivalent voltage by first dividing it by the most convenient multiplier to give them
base-10 exponentiation, fixed-point mul- decimal 20 (in 24-bit FP form) and then (eg, milli or micro).
tiplication and division, and floating-point raising decimal 10 to that power using After this is done, they are again con-
to ASCII conversion. EXP1024, the Microchip 24-bit floating- verted into the equivalent ASCII digits
Without going into much detail, the point base-10 exponentiation routine. This using Float_ASCII.
PIC firmware program works through is equivalent to calculating the antilog­ As you can see, there’s quite a bit of
the following sequence in making each arithm, so we end up with the equivalent mathematical jiggery-pokery involved
measurement: voltage value in 24-bit FP form. but luckily most of this is performed by
First it directs the PIC’s 10-bit analogue- After saving this for display, the pro- Microchip’s fancy maths routines.
to-digital converter module to take a gram then does the equivalent calcula- The full source code for the firmware
measurement of the DC output voltage from tion for power, taking the dBm value and will be available on the EPE website, along
the AD8307 chip. It then converts that into first dividing it by decimal 10 and then with the source code for the floating point
24-bit floating-point form, after which it is again raising decimal 10 to that power maths routines it uses (in a file called
multiplied with a pre-calculated scaling using EXP1024. This gives the equivalent FPRF24.TXT) and, of course, the assem-
factor (24-bit also) for the currently chosen power in milliwatts, which is again saved bled hex code of the complete firmware
measurement range. The resulting product for display. ready to burn into a PIC.

screws, with M3 × 6mm tapped nylon


spacers used as standoffs. Then nuts
are fitted under the board to hold eve-
rything together – but with one nylon
flat washer under the nut at lower left,
to ensure that it doesn’t short-circuit
a PC board track close by.
The 14 main connections to these
modules are all in a horizontal row at
lower left. To make these connections
reliably but in a manner which allows
easy removal and replacement of the
module if this is ever needed, we
elected to use a custom-made 14-way
plug and socket system.
The socket was made from one side
of a 28-pin IC socket, cut away neatly
and then mounted on the top of the
main board. To mate with this socket,
we made a plug from a 14-pin length
of SIL pin strip, the pins of which were
soldered to the pads on the underside
of the module.
This larger-than-life-size view shows how the LCD module is connected to the This must be done carefully, so
main PC board. A 14-pin header is soldered to the LCD module and this plugs that there is enough clean length of
into a matching 14-pin socket strip cut from a 28-pin IC socket. each pin extending down to mate

16 Everyday Practical Electronics, December 2010

RF Level & Power Meter1008 (FROM MATT).indd 16 27/10/2010 16:06:35


Constructional Project

A A

61

19
LCD WINDOW 63 x 16mm

16
63

26
HOLES A:
7 3.5mm DIA.,
24.5 D COUNTERSUNK
B B
HOLES B:
3.5mm DIA.
8.25
CL HOLES C:
6.5mm DIA.
(RIGHT-HAND
SIDE OF BOX) HOLE D:
11mm DIA.
24.75

(BOX LID) 12 HOLE E:


9mm DIA.

12
17.75

3
C B C

7.5
B
15.25

7.5 E
B
11.5

A A 9

21 9.5 30.5
CL ALL DIMENSIONS IN MILLIMETRES

Fig.6: this full-size diagram shows the drilling details for the plastic case that’s used to house the main PC board. The
large cutouts can be made by drilling a series of holes around the inside perimeter, then knocking out the centre piece
and filing the job to a smooth finish.

with the socket clips (easier to do Once all of the components are to ensure an absolute minimum of
than describe). mounted on the main board, it can be input lead inductance.
placed to one side while you assemble The remaining surface-mount
Backlit LCD module the head-end board. components all mount on the copper
If you use the backlit LCD module side of this board, ie, the two 47nF
(Z-7011A) you will have to connect its Head-end board assembly input coupling capacitors and the
‘A’ and ‘K’ terminals (for the backlight The board overlay diagrams for three resistors used for the RF input
LEDs) to the main PC board. This can the head-end board are shown in termination. Solder these components
be done using short lengths of tinned Fig.5. The USB type A socket CON5 carefully using a fine-tipped iron, us-
copper wire. mounts on the top of the board, ing the ‘tack first to hold it in position’
Similarly, resistor RBL (18W 0.5W) along with the two trimpots, four technique to avoid damaging either the
is installed only if you are using this 0.25W resistors and three 100nF parts or the board pads.
module. It gives a nominal LED current monolithic capacitors. IC1 should When you have finished wiring up
of about 80mA. be soldered directly into the board, this board, place it aside also while you

Everyday Practical Electronics, December 2010 17

RF Level & Power Meter1008 (FROM MATT).indd 17 27/10/2010 16:06:47


Constructional Project

  Table 3: Resistor Colour Codes


o No. Value 4-Band Code (1%) 5-Band Code (1%)
o   2 220kW red red yellow brown red red black orange brown
o   1 68kW blue grey orange brown blue grey black red brown
o   1 51kW green brown orange brown green brown black red brown
o   1 33kW orange orange orange brown orange orange black red brown
o   1 10kW brown black orange brown brown black black red brown
o   1 6.8kW blue grey red brown blue grey black brown brown
o   1 3.9kW orange white red brown orange white black brown brown
o   1 3.0kW orange black red brown orange black black brown brown
o   1 2.4kW red yellow red brown red yellow black brown brown
o   1 2.2kW red red red brown red red black brown brown
o   3 2.0kW red black red brown red black black brown brown
o   2 1.5kW brown green red brown brown green black brown brown
o   2 330W orange orange brown brown orange orange black black brown
o   1 200W red black brown brown red black black black brown
o   1 120W brown red brown brown brown red black black brown
o   1 100W brown black brown brown brown black black black brown
o   1 18W brown grey black brown brown grey black gold brown
o   1 10W brown black black brown brown black black gold brown
o   1 4.7W yellow violet gold brown yellow violet black silver brown

To complete assembly of the head- facing the matching adjustment holes


end unit, first mount the BNC input in the top of the box.
connector CON4 in the hole at the The board is mounted using two M3
end of the metal box, with the lug × 10mm tapped nylon spacers as stand-
of its earthing washer oriented at ‘3 offs, with M3 × 6mm countersink-head
Fig.7: The display above shows typical o’clock’ so that once the mounting nut screws holding the spacers inside the
level (top line) and power readings. is fully tightened, it can be bent out box, and pan-head M3 × 6mm screws
at 90°, ready to be soldered to the PC attaching the board assembly to them.
prepare the meter’s two boxes by drill- board copper (along from the socket’s Once the board assembly is mounted
ing and cutting the various holes in centre spigot – see Fig.5). Then mount in position, you can solder the centre
them. These are all shown in the drill- the head-end PC board upside down spigot and earthing lug to their respec-
ing diagrams (Fig.6 and Fig.8), so the inside the upper part of the box, ie, tive pads on the board to complete the
job should be quite straightforward. with the trimpots underneath and input connections. The USB cable’s

A B

C
39 (CENTRE LINE)
5
25.5
12.75
A

B
A

13.5 31.5 7.5 46 5


(UNDERSIDE OF BOX)
HOLES A: 3.5mm DIAMETER, COUNTERSUNK
HOLES B: 3.5mm DIAMETER (ALL DIMENSIONS IN MILLIMETRES)
HOLE C: 9.5mm DIAMETER
Fig.8: here are the drilling details for the diecast aluminium box that’s used to house the head-end board assembly.

18 Everyday Practical Electronics, December 2010

RF Level & Power Meter1008 (FROM MATT).indd 18 27/10/2010 16:06:56


Constructional Project

RF INPUT (Zo = 50 )
RF LEVEL & POWER METER Pmax = 500mW

SLOPE INTERCEPT
ADJUST ADJUST

LCD SET
CONTR 5.00V
CAL RF LEVEL & POWER METER
OUT SENSOR HEAD

RF INPUT
Zo = 50
Pmax = 4W
(+36dBm)

INPUT
FROM
SENSOR

SELECT RANGE POWER


20dB (10:1) RF
0dBV ATTENUATOR
(0 – 500MHz)
–20dBV

–40dBV 9–15V OUTPUT


DC INPUT Zo = 50

Fig.9: this full-size artwork can used to make the front panels of the various units, including the Sensor Head case and
the optional RF Attenuator (see text).
5378 2010-11-13 1:46:19

The main PC board is attached to the lid of its case via four M3 × 15mm tapped spacers. Four M3 × 6mm countersink-
head screws secure the lid to the spacers, while four M3 × 6mm pan head screws are used to secure the PC board.

Everyday Practical Electronics, December 2010 19

RF Level & Power Meter1008 (FROM MATT).indd 19 27/10/2010 16:07:10


Constructional Project

Optional 20dB (10:1) RF Attenuator


Y ou will have noticed from the
specification panel that the
maximum input level of the basic INPUT
27k
OUTPUT
4 x 1k
power meter is essentially +7.0dBV,
corresponding to 2.238V, 100mW
into 50W and +20dBm.
As this may be a little low for some 2.7k 16 x 1k 5 x 330 820
applications, we have designed a
compact 20dB (at 50W) wideband
attenuator which may be used to ex-
tend the meter’s range up to 22.38V
(+27dBV) and +40dBm (10W) – P
10:1
SC (20dB) RF ATTENUATOR (50, 5W MAX INPUT)
although it may not be able to cope
with 10W of input power for more
2008 10:1 (20 B) RF ATTENUATOR (50, 5W MAX INPUT)
Fig.10: the circuit for the optional 20dB RF attenuator uses a standard pi-
than a few seconds if you have to use
section configuration. The resistors are all surface mount types.
0805-type SMD resistors.
SMD resistors are used because
they have low parasitic inductance All you need to do is add 20dB to pieces of tinned copper wire (resis-
and capacitance. However, they also the dBV and dBm readings. You will tor lead offcuts) are used to make the
have fairly low power dissipation (es- have to multiply the voltage reading connections from the earthing lug of
pecially the 0805 size). Try to use the by 10 and multiply the power read- each socket to the earthy side of the
larger 1206-size resistors if you can, ing by 100. board copper.
especially in the input leg. Otherwise,
the continuous input power rating Construction details Shield plate
will be limited to about 4W. The circuit for the attenuator is As you can see from the internal
Despite this limitation, this atten- shown in Fig.10 and it is a stand- photos, the prototype attenuator
uator can be built quite cheaply and ard p-section (pi) type. Everything has a small shield plate which was
would make a handy optional extra fits on a small PC board measur- mounted vertically across the centre
for the meter for those who want to ing 95mm × 38mm and coded 785 of the attenuator, to reduce the pos-
be able to measure higher RF levels. which fits in a second diecast alu- sibility of RF energy radiating past
Please note, however, that when the minium box identical to that used the attenuator pad at the highest fre-
attenuator is connected ahead of the for the head-end. quencies. This is probably ‘gilding
meter’s head-end, the meter itself Fig.11 and the photos show the the lily’, but you may want to add
won’t be able to allow for the extra parts layout on the PC board. such a shield to your attenuator also.
20dB of attenuation. Note that the board assembly is It can be cut from a small rectangle of
This means that you’ll need to supported behind the box lid simply blank PC board and is supported by
add 20dB to the readings yourself, by soldering the input and output soldering it to four PC board terminal
although this shouldn’t be too much pads to the ‘active’ spigots of the pins fitted to the earth copper at the
of a chore. BNC connectors. Multiple short centre of the main board.

type-A plug can then be mated with before the main board is attached to When you apply power via switch
socket CON5 at the other end of the the lid/front panel of the main box. S2, LED1 should light and you
board, after which the cable can be Don’t worry if S1 (the range select should be greeted by a reassuring
fitted with its P-type clamp, which is button) hasn’t been mounted on the glow from LED1 and ‘RF Level/Pwr
then fastened into the box using an M3 main board at this stage – it’s not Meter’ on the LCD, although you
× 10mm countersink-head machine really necessary for this operation. may have to adjust trimpot VR4
screw with a nut and lockwasher. The To begin, make sure that IC2 and before this message is displayed
cable is then looped around and fed IC3 have both been plugged into their clearly and with good sharpness.
out of the box via a rounded slot cut sockets the correct way around and Note that this message only lasts
in the end and the box lid screwed on then set trimpots VR3 and VR4 to for a few seconds, after which it
to complete the assembly. the centre of their ranges. After this, is replaced by the meter’s normal
connect the main board to a suitable display of readings.
Initial checkout source of 9V DC, either via a battery If all is well so far, you can now set
At this stage, you should be ready connected to the pins at the bottom of the Vref+ voltage at pin 2 of IC3 to
to give your RF Level and Power the board or a plugpack lead plugged 3.50V. This is done with one adjust-
Meter a preliminary functional into CON3. There’s no need to plug ment. Connect your DMM to TP1 and
checkout, because this is easiest done in the lead from the head-end as yet. its nearby TPG pin and then adjust

20 Everyday Practical Electronics, December 2010

RF Level & Power Meter1008 (FROM MATT).indd 20 27/10/2010 16:07:19


Constructional Project

SILICO N CH IP 04209083

33 0

33 0

33 0
1k
1k
1k
1k
1k
1k
1k
1k
(INPUT) 1k (O UTPUT)
1k
2. 7k

27 k
1k
1k
1k
1k
1k
1k
1k
1k
1k
1k

33 0

33 0

82 0
20d B RF ATTENU ATOR
oo

RF INPUT (Zo = 50 )
RF this
Fig.11: follow LEVEL
diagram& POWER
to build the METER
RF Attenuator board. The copper Pmax = 500mW

side of the board carries the SMD resistors, plus four PC stakes to support
the central shield plate (see photos below). The BNC input and output
sockets are mounted on the other side of the board.

SLOPE INTERCEPT
ADJUST ADJUST

LCD SET
CONTR 5.00V
CAL RF LEVEL & POWER METER
OUT SENSOR HEAD

RF INPUT
Zo = 50
Pmax = 4W
Above: because(+36dBm)
RF signals
are involved,
the RF Attenuator must also be housed in
INPUT a metal diecast case.
FROM
SENSOR

SELECT RANGE POWER


20dB (10:1) RF
Left: the RFATTENUATOR
0dBV
Attenuator board is secured
(0 – 500MHz)
to the lid of the case via the BNC input
–20dBV
and output sockets. Note how the central
shield plate (consisting of blank PC board
–40dBV 9–15V OUTPUT
DC INPUT material) is supported
Zo = 50 by soldering it to
four PC pins in the centre of the attenuator’s
PC board.

trimpot VR3 until you get a reading Main box assembly through their corresponding holes
as close as possible to 3.50V. This You are now ready to mount the in the lid.
should also set REG1’s output to main board assembly behind the lid If you have elected to mount S1 on
close to 5V. of the main box (the lid becomes the lid before this assembly, you’ll also
Use your most accurate DMM when the front panel). It attaches to the lid need to ensure that its connection lugs
making this adjustment, because to a via four M3 × 15mm tapped spacers or their extension wires pass down
large extent, the accuracy of this set- which are fastened using M3 × 6mm through their corresponding holes in
ting will determine the accuracy of countersink-head screws. The board is the circuit board.
your RF Level Meter. then attached to the spacers using four When this part of the assembly is
That completes the initial set-up, pan-head M3 × 6mm screws. complete, the top nut for S2 can be
although if you have access to a You will need to remove the up- carefully refitted to the top of the
’scope or a frequency counter you per mounting nut from switch S2 so switch ferrule and the lower nut and
may want to check the PIC’s clock that the threaded ferrule of S2 can its lockwasher underneath carefully
signal at TP2 and its TPG pin. You pass up through its matching hole wound up to support the lid.
should find a 5V peak-to-peak square in the lid during this assembly. You Your meter’s main board assembly
wave with a frequency very close to also need to make sure that LEDs 1 should now be complete and can be
2MHz. to 3 are positioned so they pass up lowered into the box. This needs to be

Everyday Practical Electronics, December 2010 21

RF Level & Power Meter1008 (FROM MATT).indd 21 27/10/2010 16:07:31


Constructional Project

Parts List – Digital RF Level & Power Meter


1 M3 Nylon washer Resistors (0.25W 1%)
*1 PC board, code 783, size 8 1mm-diameter PC board pins 1 1MW 3 2.0kW
146mm × 84mm
1 PC-mount type A USB socket, 2 220kW 2 1.5kW
*1 PC board, code 784, size PC-mounting (CON5) 1 68kW 2 330W
43mm × 44mm
1 panel-mount BNC socket 1 51kW 2 220W (0805 SMD)
* Available as a set from the EPE
2 10mm long M3 tapped Nylon 1 33kW 1 200W
PCB Service
1 UB1-size plastic box (158mm spacers 1 10kW 1 120W
× 95mm × 53mm) 2 6mm long M3 machine screws 1 6.8kW 1 100W
1 diecast aluminium box, size with lockwashers 1 3.9kW 1 100W (0805 SMD)
111mm × 60mm × 30mm 2 6mm long M3 countersunk 1 3.0kW 1 18W 0.5W (RBL)
1 16x2 LCD module, Altronics machine screws 1 2.4kW 1 10W
type Z-7000A or Z-7011A (with 1 USB cable, standard type A to 1 2.2kW 1 4.7W
backlight illumination) type B
4 M3 × 6mm tapped Nylon 1 P-type 5mm plastic cable clamp Trimpots
spacers 1 10mm long M3 countersunk 2 50kW mini horizontal trimpot
4 M3 × 15mm machine screws machine screw (VR1,VR2)
1 SPST pushbutton switch, 1 M3 nut, with flat and star 1 100W mini horizontal trimpot
momentary (S1) lockwashers (VR3)
1 SPDT mini toggle switch (S2) 1 10kW mini horizontal trimpot
1 USB type B socket, PC- Semiconductors (VR4)
mounting (CON1) 1 AD8307AN log detector/
1 phono socket, PC-mounting amplifier (IC1) Optional 20dB attenuator
(CON2) 1 LM324N quad op amp (IC2) *1 PC board, code 785, size
1 2.5mm concentric DC socket, 1 PIC16F88-I/P microcontroller 95mm × 39mm
PC-mounting (CON3) programmed with firmware (IC3) 1 diecast aluminium box, size
1 14-way SIL socket (half of 28- 1 LM317T adjustable voltage 111mm × 60mm × 30mm
pin IC socket) regulator (REG1) 2 BNC panel-mounting sockets
1 14-way length of SIL terminal 1 3mm green LED (LED1) 1 27kW resistor, 1206 or 0805
strip 1 3mm orange/yellow LED (LED2) SMD chip
1 18-pin IC socket 1 3mm red LED (LED3) 1 2.7kW resistor, 1206 or 0805
1 14-pin IC socket 2 1N4148 diodes (D1,D2) SMD chip
4 M3 × 15mm tapped metal 1 1N4004 diode (D3) 20 1kW resistor, 1206 or 0805
spacers SMD chip
4 M3 × 6mm countersunk Capacitors 1 820W resistor, 1206 or 0805
machine screws 1 470mF 16V radial electrolytic SMD chip
5 M3 × 6mm pan head machine 1 220mF 10V radial electrolytic 5 330W resistor, 1206 or 0805
screws 7 100nF monolithic SMD chip
5 M3 nuts, with star lockwashers 2 47nF ceramic, 1206 SMD chip 4 1mm-diameter PC pins

done with the right-hand side angled its output to a convenient level – such driver or alignment tool, to reduce the
downwards, so that the outer sleeve of as 1.0V RMS. reading down to the lowest figure you
phono connector CON2 slips into its The calibration process is quite can – ideally below –80dBV.
hole in the side of the box, allowing simple. First, plug the cable from The next step is to remove the 50W ter-
the lid assembly to be swung down as the head-end into CON1 on the main mination plug from CON4 and instead
well. The self-tapping screws supplied board, then fit a 50W termination load connect a cable from the output of your
can then be used to fasten the lid as- plug to the RF input of the head-end so RF generator. Set the generator to some
sembly inside the box. that it has a nominal RF input of ‘zero’. convenient frequency (say 100MHz) and
Now turn on the meter’s power switch of course with a known RF level – say
Final adjustment (S2) and check the LCD readout after 1V (0dBV). It’s then a matter of adjust-
Now we come to adjustment and the greeting message has been replaced ing the ‘Slope Adjust’ trimpot (VR1) on
calibration. To do this, you’ll need an by the normal readings. the head-end unit – again with a small
RF signal generator which is able to Pay particular attention to the dBV screwdriver – until you get a reading
supply an RF signal (preferably un- reading, because initially you’ll prob- of +00.0dBV on the LCD. Once that’s
modulated) of known level. ably find that it shows a figure rather done, your RF Level and Power Meter
If you don’t have access to such a higher than it should. After leaving is finished, set-up and ready for use.
calibrated generator, an alternative is it for a few minutes for the circuit to Finally, note that you will have to
to use an uncalibrated RF oscillator stabilise, try adjusting the ‘Intercept power this device from a plugpack if
with another RF measuring instru- Adjust’ trimpot (VR2) on the head-end you use the backlit LCD, as the current
ment of some kind to let you adjust board carefully with a small screw- is too high for battery power. EPE

22 Everyday Practical Electronics, December 2010

RF Level & Power Meter1008 (FROM MATT).indd 22 27/10/2010 16:07:40

You might also like