Professional Documents
Culture Documents
Digital RF Level
inside the AD8307AN device.
As shown, the incoming RF signals
are passed through six cascaded wide-
band differential amplifier/limiter
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
K K K 12
RB6 VR3 SET 5.00V
13 10k
RB7 3
RA4 100
16
RA7
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
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
TPG VR3
CON2
RBL*
330
68k
TP1
PIC16F88 -I/P
(3.50V)
2.2k
120
1.5k
INPUT FROM
1 D1
HEAD END
1 4
100nF
220k
3.9k
2.0k 2.4k
4148
1M
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
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
100nF
100nF
50k
Construction 33k
2
ted on a PC board coded 783 meas- 3 to the PC board.
220
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
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
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
A B
C
39 (CENTRE LINE)
5
25.5
12.75
A
B
A
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
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.
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
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
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
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