Magnetic Loop Antenna Automated Tuner
Magnetic Loop Antenna Automated Tuner
by dtrewren
As was previously mentioned, the magnetic loop consists of an inductive loop connected to a variable capacitor. The
variable capacitor is used to tune the loop in order to achieve resonance. The variable capacitor is generally driven by a
motor. Therefore the tuning is an electromechanical system subject to error and change over time.
There are many homebrew magnetic loop tuning systems out there on the net. I can't claim to have looked at all of them
but I have considered a few. In my experience, the tuning systems available generally rely on open loop motor position in
order to tune the antenna. Many systems use stepper motors which generally provide a high degree of positional
accuracy and repeatability. Such systems calibrate the loop by recording the motor position for various desired
frequencies. Once calibrated, returning the motor to a particular position should yield the desired resonant frequency.
However, in my experience, we encounter an issue with positional based systems. As has been mentioned, the magnetic
loop is very narrow banded and even very small changes in the physical antenna result in changes in the resonant
position of the capacitor. So for example we might calibrate our loop one day but if mounted externally and subject to
thermal and physical bu eting the next day, all the calibrated data has drifted. Therefore the loop requires regular and
potentially time consuming re-calibration. If the antenna is designed for mobile use, breaking the antenna down and
rebuilding will certainly result in the loss of calibration data.
The Magnetic Loop Tuner presented in this instructable
Magnetic Loop Antenna Automated Tuner: Page 2
The magnetic loop tuner I present in this instructable does not rely on positional data; the controller has no concept of
the variable capacitor or motor position. Instead, the controller tunes the antenna using a programmable frequency
source to scan for and locate the resonant point. Once the antenna resonant point has been located, the controller
automatically re nes its search bandwidth and subsequently tracks the antenna resonant point in real time. Therefore
we need not calibrate the controller at all - the user simply enters the desired frequency and the controller moves the
antenna to the desired resonant operating point.
From this point we can either move the antenna resonant frequency manually by means of a rotary control, enter a
desired frequency in a GoTo mode or pick a desired frequency from a set of presets. In all cases, the current displayed
resonant frequency is the actual antenna resonant frequency based on a real time measured minimum re ected power
and minimum VSWR.
In the following sections I aim to present the tuner in more detail ....
I have attempted to made the magnetic loop tuner as simple and intuitive to use as possible. Here is a list of the design's
primary features, both physical and functional.
Find my loop feature - loop located anywhere from band 80m to 12m
Frequency based location and tracking system (no motor positional data required)
Manual real time frequency based positioning by means of multi-rate rotary control
GoTo frequency positioning
Four preset frequencies per band stored (non volatile)
Lower and upper frequency limits to prevent physical capacitor under/over drive
Automatic VSWR calibration
VSWR displayed for indication
Motor backlash compensation
Information displayed via 20x4 LCD
RF inline operation - tuner and radio automatically switched to the antenna
PC based GUI appication for rapid update of controller parameters via USB
PC bootloader application facilitating controller rmware updates via USB
The step shows my DIY magnetic loop. The main loop is made from ~5m of 7/8inch Heliax cable and the coupling loop
from soft copper tubing. The tuning capacitor is homemade and a butter y design. However, I am not using the
capacitor in true butter y mode in that I am connecting to the rotator with the stators wired in parallel. This is to give me
a range of ~18pF to 160pF in order to be able to cover both 40m and 20m bands. I generally use low power <10W and so
am not too concerned about high voltage isolation. The capacitor is driven by a Nema 17 bipolar stepper motor tted
with a 27:1 planetary gearbox. Driven from the loop tuner this equates to about 3rpm and a precision of 5400
steps/revolution. With this mechanical arrangement, the tuner can quite comfortably tune and track the loop to within
5KHz of the target frequency and using the rotary hand control to within 1KHz.
In order to more easily develop the loop tuner rmware/software, I built a magnetic loop simulator. This also uses a Nema
17 stepper motor to drive a small variable capacitor via a worm gear and gives a reduction ratio of 20:1 so similar to the
real magnetic loop antenna. The variable capacitor is loaded with an inductor to produce a resonant circuit. Although the
Q of the loop simulator is nowhere near as high as the real magnetic loop antenna, the simulator has proved extremely
useful in terms of rmware development as it can sit on the desk next to the tuner and I can observe the operation
directly.
Before getting into loads of design detail, I think a good place to start is with actually using the magnetic loop tuner. A
previously stated, my DIY magnetic loop is designed to cover the 40m and 20 bands so from ~7MHz up to ~14.2MHz. As
a result, I have not been able to actually test the loop tuner in bands 17m - 12m. If someone wants to build the loop
controller and try these bands or lend/donate me a loop that will cover the higher frequencies, I am more than happy to
try/demonstrate.
The diagram in this step details the loop design at a high level showing all the main component blocks and the interfaces
between said blocks.
The video in this step covers the design hardware in an attempt to explain all the main design components for those
who maybe not so familiar with electronics and component identi cation.
https://youtu.be/Nd5cLkWGYzU
https://youtu.be/MyKLzUF-1Jo
Step 9: Video - Magnetic Loop Tuner - Initial Loop Find, Track and Move Demo
https://youtu.be/6xvGZwW3S9A
https://youtu.be/oiVcH_4fC6A
https://youtu.be/bhehNSFLYcs
https://youtu.be/h5hDZ7yuPio
The rmware comprises mainly a menu state machine which is driven from interrupt service routines ISR. The low level
ISR is handling the user input from buttons and rotary encoder. There is also a 100ms low level ISR tick used for anything
that tends to ash - LED's, LCD cursor etc.
The high level ISR is dedicated to servicing the USB 2.0 interface.
Hanging o the menu state machine are drivers for the LCD, the DDS, serial interface and IIC interface.
In this step we look more closely at the resistive bridge and signal processing stage. From a hardware point of view, this
detector has been the lion's share of the work. The design we see in this instructable is actually the second iteration of
the detector. The rst iteration used a di erent design incorporating recti cation and capacitive sample and hold stages
within the bridge itself. However, this design approach proved problematic. Due to the reactive elements in the rst
bridge design, I found the act of connecting the bridge to the magnetic loop antenna subtly changed the resonant point
of the antenna by about 5-20KHz and this shift in resonant frequency was dependent on the target frequency of interest.
As I was trying to tune the loop to within 5KHz of target frequency this proved a big problem. I attempted to correct the
shift in rmware using a calibration routine and got quite close to ironing out the issue but I was never completely happy
with the outcome. My rst detector design used a signal generator based around the Analog devices AD9850 DDS chip.
This device generates a single sinusoidal output frequency and will cover the HF bands.
My second approach at the detector uses a very di erent architecture. I confess my design is in part based on the work
detailed by Professor Dr Thomas Baier (DG8SAQ) in his excellent paper "A Low Budget Vector Network Analyzer for AF to
UHF". This technique (in part) has been adopted in the design of the truly excellent NanoVNA mini vector network
analyzer. I have adopted a similar resistive bridge front end in my loop tuner design but after that, my design diverges
from that of the NanoVNA.
In this step I present the LTSpice model of the resistive bridge and signal processing.
LTSpice is modelling the antenna as a simple LCR resonant circuit much like the magnetic loop simulator. The model
sweeps the frequency from 3MHz to 11MHz over a 3ms time period. LTSpice uses a model of the NE602 double balanced
mixer and the subsequent analogue processing. The LO is generated by a second signal generator sweeping the
frequency from 2.9MHz to 10.9MHz over the same 3ms period so 100KHz lower than the target RF.
The output plot shows the voltage output from the nal gain stage which is subsequently presented to the
microprocessor A to D input.
https://youtu.be/hjZWljjU0cQ
https://www.instructables.com/ORIG/F6R/M21G/KSG2RXVA/F6RM21GKSG2RXVA.pdf
Connectors
USB connector of choice x1
Power connector of choice x1
Motor connector of choice 4 way x1
IC chip sockets and headers
Passive components
4.7K resistor array common mode x1
1.8K resistor array isolated mode x1
1.8K resistor x1
10K resistor x1
LEDs x5
4MHz XTAL x1
33pf capacitors x2
100nF capacitor x3
47uF 16V capacitor x2
220uF 16V capacitor x1
If you have read my instructable I very much hope you enjoyed it and I thank you for your time !
This project has been hugely enjoyable and I have learned a great deal in the process. At times the project has been
frustrating and once or twice I almost gave up. However, it is the obstacles that one learns from, all the things that don't
quite go to plan and maybe don't quite work rst time - there were plenty of those !
I am pleased with the design as it stands and it does actually work. I would not say it is totally complete and I am sure
there are many things that could be improved. However, I am happy to publish the project to date and hopefully I will
recieve constructive criticism such that I am able to improve the design going forward.
If anyone would like to have a crack at building my magnetic loop tuner design (crazy people) I am more than happy to
support them as I have done with other projects on my Instructable site. In terms of software, I prefer to supply pre-
programmed tested PIC microprocessors rather than simply release code. I have had so much trouble in the past
supporting the microprocessor side of designs it is easier to supply a known good and working part - I make no money
from this; parts are supplied at cost price + postage.
Just a quick update, I received the Board and PIC from Dave. The build was super easy, there
were a couple of issues due to my having got some slightly different component variations from
the ones Dave had used. However discussions with Dave quickly resolved those issues. The
tuner works very well, and support from Dave is fantastic.
Barry VA3WI
PCB and PIC arrived today, thanks. Now got to workout what sort of enclosure I want before I
start soldering!
I am very interested in your super project. Thanks for sharing. You have doumented the software
well but I wonder if you a flow chart or the code its self. I would like to build something similar
using Arduino or better still Pi Pico. I am looking to build a loop for 80m and I would love to
include some of your ideas.
73's G4OTC
Hi there Peter,
Magnetic Loop Antenna Automated Tuner: Page 26
Thanks for your comments and interest in the project.
A present I am planning on releasing pre-programmed PIC microprocessors rather than just
releasing all the source code - various reasons for this. If you private message me we can have a
chat off line, swap emails.
Cheers, Dave
This looks like the conversion I would like to assert on my MFJ-1786 (30-10 meter) Mag Loop.
Do you have any thoughts on whether your control circuit can work with the 3-10pf variable that
is in my loop? I suspect the existing 3 wire motor will have to be swapped out but I haven't
calculated what the MFJ voltage divider post 12vdc feed, supplies to the motor or if it's even
compatible at all with your curcuit yet.
Can I obtain one of your PCB boards that I think you have in process right now? Price, shipped to
QRZ address in USA?
Gene / K7TXO
Hello Gene,
Thanks for your interest in the project !
At present my design works with a stepper motor but the PCB is designed to operate with either a
stepper or DC motor although I haven't actually tested it with a DC motor yet. The controller does
not care about the capacitor value - if the loop is resonant between 3.5MHz and 29MHz the tuner
should be able to find the loop and track it. My plan is to get the PCBs back (arriving soon) build
and do a bit more field testing. If everything does to plan I will make boards available for cost
price. I will get back to you once I have done a bit more field testing ......
Cheers, Dave G7IYK
Excellent information Dave. I look forward to your PCB available date and will love to give this a
go with my MFJ-1786 loop as-is. If I need to alter it's motor and capacitor, will do that but sounds
like your circuitry will be able to work with it. Certainly worth a try! Gene / K7TXO
I started my Electronics career in commercial antenna design.(500KW+)
Very well done.
Thank you Mickey,
Good to get some feedback although I think I'll stick to lower powers :)
Cheers, Dave
Very good instructable. Outstanding technical expertise.
I have built many mag loop antennas. I have used the typical capacitor tuned with a gearmotor
and also various trombone-style capacitors. Most all of the antennas worked really quite well. I
also tuned one with a series of capacitors with values in base 2. 2,4,8,16,32,64 and used a switch
bank at the operating site and 8 conductor wire. This sounded good and the scheme worked but
even though I could get any whole value between 2 and 256 I found that wasn't precise enough.
My experience was the antennas were really good on receive. The signals weren't especially
strong but the noise level is very low. However, I found that a simple dipole was better on
transmit. The mag loop was a compromise on transmit. A decent antenna in a compromised
operating situation or portable, but a compromise elsewhere. Not a compromise on receive where
they work great.
Hi there,
Cool - thanks for the very positive feedback !
Magnetic loops are great fun to build and also work really well - well worth having a go.
Cheers and 73's,
Dave
Y'v got my vote, (don't know for what but You got it anyway). Just the effort you'v made, not only
for the buildt itself but allso the effort of making this 'ible. I'm not in that HAM area but yet I could
follow your 'ible allmost to the point. Wow
Great Job! Nice project. This was featured in the "Todays Pics" Email blast. I have no idea what a
magnetic antenae is or what it does, but super cool!!!
Great - if you like the project and don't know what it is my work is done :)
Cheers,
Dave
Very nice project! 73 de PY2PH