Inverted-L SWR plot
The alternative title for this post could be "Even more fun with antennas"!
I know that the inverted-L that I erected recently resonates on the bands that I wanted it too (i.e. 10/14/18Mhz) but tuning wire antennas to resonance always involves a lot of running between ends of the antenna and rig, taking notes of SWR achieved at specific frequencies and working out whether to shorten or lengthen the wire.
An antenna analyser can help reduce some of this effort as you get a graph of SWR plotted against frequency. However, these cost upwards of £200. Now bring to the table the ubiquitous Arduino, my favourite 'toy' tool of the moment.
I found several designs for antenna analysers based on Arduino's but I think it was someone on Twitter who pointed me to the design by K6BEZ. If you have an Arduino and a few resistors this is really cheap to make. I had to buy the diodes and the op-amp, but these cost me less than £10 on e-bay with an op-amp and about 10 diodes to spare.
Fortunately I also found Matt Gumbley's website and Matt has designed a Veroboard layout for the K6BEZ circuit. This made building the circuit very simple and it worked first time for me. I didn't have any 50 ohm or 648 ohm resistors so I used a 27R and 22R in series (49R) in place of the 50R resistors and a 470R & 180R in series (650R) in place of the 648R resistors.
Setting the frequency range to scan involves entering the commands below via the Arduino serial monitor. The key commands in the Arduino sketch are:
- frequencyA - set the frequency to start the scan from, in Hz.
- frequencyB - set the frequency to end the scan at, in Hz.
- stepsN - set the number of steps for the scan
- ? - displays the parameters that have been set
- S or s - start the scan
e.g. 12000000A sets the start frequency to 12Mhz.
For a 1Mhz to 30Mhz scan I use 2000 steps.
The results are returned to the serial monitor and in the default sketch are:
For a 1Mhz to 30Mhz scan I use 2000 steps.
The results are returned to the serial monitor and in the default sketch are:
- frequency,0,swr,forward voltage, reverse voltage
To get the graphs shown here I have simply copied the data into a spreadsheet, converted the frequency to MHz by dividing by 1000000, and divided the SWR by 1000. I have then used gnuplot to create the graphs.
The gnuplot commands I used are:
set term canvas size 600,400
set output "g5rv.html"
set linetype 1 lw 1 lc rgb "blue" pointtype 0
set xlabel 'Frequency (MHz)'
set ylabel 'SWR'
set xtics scale 2,1
set mxtics 5
plot 'data' smooth bezier title 'G5RV antenna'
Line 2 sets the output filename to 'g5rv.html'.
Line 8 loads the data from a file called 'data' (frequency and swr, one pair of data values per line, separated by a space) and give the output the title 'G5RV antenna'.
G5RV SWR plot
5 MHz dipole SWR plot
What this shows me is that my G5RV resonates slightly higher in frequency than the 80m & 40m amateur bands but that my 5 MHz dipole and the Inverted-L resonate exactly where I want them to.
Even better is that I have got an antenna analyser for less than the price of a pint of beer. Cheers!