A “lean design” SSB-Transceiver for 14 MHz

Preface

Currently I am revising older projects that are in my radio shelf, some of them not finished yet, postponed to a later date, some without a cabinet, some with severe problems with performance and so on. All the stuff that needs a “second chance” ;-). This project is one of this collection. The transmitter did not work correctly (severe parasetic oscillations occurred when the section was driven to power levels >1 watt).

By careful testing and examining  I found the reason: The grounding of the rf power amplifier stage was defective due to a connection that had not been soldered properly. After having cured that I found the output was 5 to 6 watts PEP output (very clean). Then, having the project on “GO!”,  I finished the design. Thus I got a nice little “vintage style” SSB QRP trsanceiver as a travel or hiking companion:

DK7IH - Simple SSB Transceiver for 14MHz (VFO controlled, 5W PEP)
DK7IH – Simple SSB Transceiver for 14MHz (VFO controlled, 5W PEP)

Basic concept

Frequent readers on my blog know that one thing I really enjoy is building radios based on a minimalist concept. The fewer components you need for a working transceiver, the better it is. At least in my point of view. Here is another one of these “very lean design” transceivers.

The radio originally was designed as a study for my “Old School Transceiver“. After having not built a “real” analog VFO for a number of years I wanted to find out if I still can set up a construction that is really stable concerning frequency. And because it is not very challenging to just watch the result on a frequency counter, a full transceiver had to be built along with the VFO. The VFO was OK, (see later text!) the power transmitter, as mentioned before, was not. Until I had revised it.

The design is another remake of the „Kajman Transceiver“ by  SQ7JHM. A design I absolutely love because of its simplicity. The radio basically has been designed for 80 meters (even when lot of websites quote it as a 20m rig) so it shows some weaknesses when adapted to 14MHz without any changes. Thus some improvements had to be made.

Improving performance of the SQ7JHM basic design

Some changes that were top of the agenda to meet my requirements:

  1. The receiver needed a preamplifier for bands where atmospheric noise is not that strong. A dual-gate MOSFET equipped radio frequency preamplifier improves noise figure significantly and can be put into the AGC chain to give more dynamic range and a more pleasant listening experience.
  2. An AGC (automatic gain control) is a good idea if you want to use the receiver in a more comfortable way without the need to lower the volume when strong stations appear. In addition the S-meter reading can be derived from the output of the AGC DC amplifier stage.
  3. A little bit more rf output power can be achieved by using a push-pull amplifier. Linearity also improves to a certain degree when using this design because AB mode combined with separated amplification of the half waves plus suppression of even-order harmonics.
  4. To enhance receiver gain a single stage interfrequency amplifier has been added that is only in use when on receive. It is also connected to the AGC chain.
  5. And, last, a microphone amplifier allows you to talk in a moderate way into the microphone which is good for me because I often have my QSOs when the rest of the family is asleep and not keen on listening to my strange “This is DK7IH/QRP, do you copy?” messages.

The schematic of my enhanced design:

DK7IH - Simple SSB Transceiver for 14MHz (VFO controlled, 5W PEP)
DK7IH – Simple SSB Transceiver for 14MHz (VFO controlled, 5W PEP) – REV1 – TNX to Paul, VK3HN for error report! (Full size picture)

Fascination originates from the fact that you only need a handful of components (OK your hand should not have the size of that of a new born baby!) to set up a working short wave SSB transceiver.

The VFO

Some thoughts on frequency stability

Careful design is the key for stable operation. This means component selection as well as setting it up on the veroboard.

The basic problem for every conventional free running VFO is temperature and its influence on the size of components. Due to the theory of thermodynamics all materials change their mechanical dimensions with temperature. This is caused by the kinetic energy of the molecules forming the crystals of a solid body. Thermal energy leads to enhanced oscillation of the molecules and therefore the need of larger spaces of each in individual molecule in a crystal. Because we have capacitors in a tuned circuit this will affect the values of all caps (wanted and unwanted ones) to a certain degree.

Something that helps the builder is called “temperature coefficient”. This means that electronic components increase OR decrease their respective value when they get warmer. The first is called “positive temperature coefficient”, the opposite is called “negative temperature coefficient”. So, you might guess, the fine art of radio building involves the knowledge of the characteristic behavior of components when heated.

I quote my findings about temperature behavior listed in the article referred to on the beginning of this text:

Capacitors:

  • Ceramic capacitors: —
  • Polystyrene capacitor: –
  • NP0 (C0G) capacitor: no measurable effect

Inductors:

  • Air coil on polystyrene coil former: +++
  • Coil wound on T50-6 yellow toroid: +

The more “+” or “-” signs, the more steep the function of T->dC or T->dL is. So you can see: The best choice are polystyrene capacitors combined with coil on a yellow toroid. This combination is likely to outbalance temperature effects. If extra capacity is needed, NP0 caps are recommended.

The circuit

From the existing principles of building a free running radio frequency oscillator I prefer the Hartley circuit. It uses a tapped coil (tap about 1/5 from the “lower” end) and saves capacitors compared to the Colpitts design. The tap achieves in-phase feedback. The lower you put the tap to the end the lower the amount of fed back energy will be. This leads to more frequency stability because the circuit does not heat up by excessive internal radio frequency. But be sure that oscillation is always strong enough and does not stop. The Hartley circuit is more simple and caps always inherit the risk of thermal problems when poorly selected.

The tuning is done with a Vernier drive and a homemade variable capacitor. For this a foil variable cap of an old AM radio has been dismantled an reassembled with air as dielectric. Lots of experiments were necessary to get the “frequency swing” correct and the basic capacitance to the right area.

Other measures that support frequency stability are :

  • Low DC power into the oscillator stage (avoids heating the device up by DC current),
  • Stabilizing voltage for the VFO stage by 2 consecutive steps,
  • Using a FET instead of bipolar transistor (no PN boundary layers in a FET),
  • Very loose coupling between oscillator and buffer stage reduce fed back of impedance changes by the output,
  • Low impedance output with emitter follower,
  • Avoid metal sheets (spec. Aluminum) close to the tuning elements! Aluminum sheet metal changes its size largely with even low temperature differences.

Practical results

This oscillator is stable. It needs 5 to 10 minutes to settle which is in the normal range of what can be expected. I then can have it tuned to one frequency and there is a maximum change in frequency < 50Hz for hours. And, to compare with synthesizer  technology: NO birdies at all. Really not. I love it! 😉

The mixers and filter section

NE602 and its derivatives have been used in legions of amateur transceivers. Basically designed for cell phones and small cordless phones radio amateurs quickly have found out that this mixer IC can be the universal mixer in lots of possible amateur radio designs. The main weakness is its low IMD3. But for a 14MHz rig the risk of appearance of strong out-of-band signals is not that likely. Besides, the selectivity of the receiver’s input section supports this. Strong in-band signals did not appear so far due to low band conditions. We’ll have to see how the receiver performs here.

On the other hand NE602 gives a good sensitivity which makes it ideal for radios on the higher bands where signal levels are not so high.

The NE602 has a balanced input AND a balanced output. This allows the designer to get two different signal sources to the input then subsequently mixed with the oscillator signal. As well the two outputs can be used to send the mixed signal to different paths.

This is what is the basic idea behind the design described here.

The mixer that is used together with the microphone to produce the DSB signal by mixing the audio signal with the local oscillator (LO) also serves as the product detector on receive by mixing the interfrequency with the LO. Correct signal path is set with the two relays depending on the fact you are either on transmit or receive mode.

The same principle is for the other mixer. It is transmit mixer or receive mixer, depending on the position of the relays.

The relays connect the SSB filter either to the input or the output of a distinct mixer. A graphical presentation should make it clear:

DK7IH - Simple SSB Transceiver for 14MHz (VFO controlled, 5W PEP) - Signal path display
DK7IH – Simple SSB Transceiver for 14MHz (VFO controlled, 5W PEP) – Signal path display

RX amp and interfrequency amplifier

These 2 stages are more or less the same. They provide 2 to 12 dB of gain depending on the AGC voltage applied to gate 2 of the dual gate MOSFET. In this version of the radio a potentiometer of 20kΩ is used to have the possibility to lower the DC voltage manually, by doing this an MGC (manual gain control) is achieved in a simple way.

Audio amplifier

A bipolar transistor and the inevitable LM386 amplify the filtered audio signal from the product detector to a volume that can be discerned even in a louder environment. The audio low pass filter prior to the AF preamp should be selected due to the users individual preferences concerning tone pitch of the audio signal.

RF power amplifier

This is more or less my standard power amplifier for small QRP rigs. I put stress on linear amplification, so I use emitter degeneration and negative feedback in collector circuit to get best IMD3 results. Even if the circuit could deliver one or two more watts I let the output power level at about 5 watts pep.

Here ist the result of a dual tone modulation:

DK7IH microsize QRP SSB transceiver ("Micro24") for 14 MHz - Output signal modulated with 2-tone signal
DK7IH microsize QRP SSB transceiver (“Micro24”) for 14 MHz – Output signal modulated with 2-tone signal

Voltage division is 10 volts per cm, so this is 45Vpp which equals to about 5 watts max. peak output. Quite OK for QRP. And here is the spectrum of a 2-tone-modulated signal:

micro24_dk7ih_output_spektrum_dual_tone

Practical setup

The whole transceiver is built on a 12×8 cm Veroboard (4.7″ x  3.1″). There is only one layer. The cabinet is 4 cm high (1.55″), 14 cm long (5.5″) and 9 cm wide (3.5″).

DK7IH - Simple SSB Transceiver for 14MHz (VFO controlled, 5W PEP) - Inside view
DK7IH – Simple SSB Transceiver for 14MHz (VFO controlled, 5W PEP) – Inside view

Left the vernier drive with the homemade capacitor attached. Left of the 9MHz filter you can see the LO, more far left the S-meter (from an old CB radio) hiding the audio amps. The 2 mixer ICs and the relays are sited around the SSB-filter. On the right side the power amp partly hidden by the DC switching board.

Well, that’s the story how a nearly failed project was saved from the scrapyard and came to life by carefully searching the faulty element in the circuit.

Vy 73 de Peter (DK7IH)

 

Advertisements

Revision of the “Cigarette Pack”- 14MHz SSB QRP Micro-Transceiver

DK7IH microsize QRP SSB  transceiver ("Micro24") for 14 MHz
DK7IH microsize QRP SSB transceiver (“Micro24”) for 14 MHz – Fits into one hand
DK7IH microsize QRP SSB transceiver ("Micro24") for 14 MHz
DK7IH microsize QRP SSB transceiver (“Micro24”) for 14 MHz

This article describes the “Cigarette Pack” SSB QRP transceiver” for 14MHz that I first had mentioned some months before. Recently, when taking it from the shelf, the transceiver dropped to the floor and was severely damaged. This lead to serious defects in the front panel area, the main frame, the cabinet and so on. The interior parts were, luckily, not affected by the crash. So, I had to revise the whole radio, make a new front panel and cabinet, ply the frame straightly (as far as possible) and so on. This is the full description of the rig now to complete the files here. The good news: The radio is fine again and fully operational!  And the even better news: I still have not started smoking!  smile1

During reconstruction the transceiver has been extended for about 5 mm so that overall length now is 100mm (3.9 inch). This was done because I intended to build in a loudspeaker. The other dimensions remain unchanged: Width is 52mm (2 inch.), height is 30mm (1.2inch). OK it is slightly longer now than a standard pack of cancer sticks, but who cares? Total cabinet volume is 150cm³.

Basic concept

The transceiver is based on the “Micro 23” rig, that I have described here. Some simplifications of that already simplified radio have been made. Here is the full schematic of this even smaller transceiver:

DK7IH microsize QRP SSB  transceiver ("Micro24") for 14 MHz - Schematic
DK7IH microsize QRP SSB transceiver (“Micro24”) for 14 MHz – Schematic in full size

Very simple rigs like this one always use parts of the circuit for receive and transmit purpose. Here these parts are the 2 mixers (NE602), the SSB-filter  and the interfrequency amplifier.

Signal flow schematic

The NE602 has a balanced output. With mixer 1 only one of them is used. If higher gain is desired, a broadband (or even better a tuned LC circuit) transformer could be used to connect pin 4 and 5 (the mixer outputs) in push-pull mode. I did not do that to save the transformer.

The signal flow can be derived from the design:

DK7IH microsize QRP SSB transceiver ("Micro24") for 14 MHz - Signal flow on receive and transmit
DK7IH microsize QRP SSB transceiver (“Micro24”) for 14 MHz – Signal flow on receive and transmit

Receive mode signal flow

From the antenna relay (not drawn) the rf energy runs through a 2 pole LC filter for 14 MHz. The coils are wound small TOKO coil formers, all respective data is given in the schematic. Coupling is loose via a 3.3pF cap.

NExt stage is an rf preamp for 14MHz with a broadband output. The acitve element here is a dual-gate MOSFET.

After having left this stage the 14MHz signal travels through another 470pF capacitor. This one has high resistance for audio frequency and low for rf frequencies due to the equation: XC =1/(2*PI*f*C). The signal is then fed, together with the audio signal from the microphone (when on transmit), into mixer 1 input on pin 1.  The 1k resistor prevents the rf energy from flowing into the microphone circuit. The two signals are separated from each other by simply exploiting reactance and resistance in a rather clever way 😉.

When receiving the Si5351A clock chip is programmed in a way that the VFO signal (23 MHz) is present on output CLK0.  It is fed into mixer 1 via a small cap to prevent overloading of the mixer. The Si5351A breakout board delivers about 3 Vpp. clock signal, so this must be reduced to about 200mVpp. A 5.6pF capacitor is OK here.

The resulting signal is sent to the SSB filter (a 9MXF24D) that is terminated with 1kOhm and 20pF in parallel. The wanted SSB signal is present at the output of the filter.

Next stage is the interfrequency amplifier, equipped with a dual-gate-MOSFET semiconductor. This one is connected to the AGC chain, on receive a variable voltage is applied to gate 2 (range 0 to 6 V), on transmit the AGC is fully powered to ensure maximum gain.

Next is mixer 2 which is the product detector when receiving. The signal (9MHz +/- sideband shift) is applied to pin 6. Due to the fact that this mixer also serves as transmit mixer, the two signals are taken from the two mixer outputs on pin 4 (serving as audio output) and pin 5 (serving as rf output for transmitting).

Two audio amplifiers (preamplifier and power stage) give a sufficient signal level for an 8 ohm loudspeaker or a headphone.

For the loudspeaker I tried out the tiny ones for smartphones with good success. Only the volume was a little bit low. Then I found another speaker in an old toy of my daughter that turned out to be very much OK for this transceiver. Its diameter is about 3 cm (1.2 inch) and just fits in the housing.

Transmit signal flow

The microphone in this radio is an electret one. The advantage is that these microphones have an internal preamplifier equipped with a field-effect-transistor. The output voltage is fairly high, about 1Vpp. when normally speaking into it. Therefore an audio preamp is obsolete. The microphone signal is directly fed into pin 1 of the first mixer. On transmit the Si5351 signal generator is switched that the 9MHz (+/- sideband shift) signal is fed into pin 6. The SSB filter eliminates the unwanted sideband, the interfrequency amplifier lifts the SSB signal to an appropriate level. The TX mixer is fed with the 23MHz signal resulting in a 14 and 37 MHz signal. The TX band pass filter cleans the signal from the unwanted 37MHz component resulting from the mixer process.

RF power amplifier

The power amplifier is a 3 stage circuit. Stage 1 (preamplifier) brings the signal to about 10 mW. This is coupled into the driver stage via a cap of 0.1uF without any further impedance matching.

The subsequent driver stage shifts the signal level to about 200mW. Linear amplification is ensured her (as well as in the previous stage) by negative feedback in the collector circuit and emitter degeneration with a non-bypassed resistor to GND. An output transformer (winding rate 4:1, impedance rate thus 16:1) lowers the impedance of some 100 ohms to a few 10 ohms present on the input of the final amplifier stage.

The final amplifier brings up a signal level of 3 to 4 Watts PEP. This stage is in AB mode, the appropriate bias is achieved by the 1k resistor going to +12V TX and the current to GND via the silicon diode. This diode must be thermally connectod to the final transistor to stabilize the bias.When the transistor heats up, the silicon diode increases the current through it thus decreasing bias to the transistor.

The 68 ohm resistors serves 2 purposes: First it prevents the input signal from being shorted by the bypass caps in the bias circuit and it stabilizes the rf behavior  of the stage by limiting the gain because certain amounts of the input power are led to GND. This prevents self-oscillation.

DC ad the collector is fed through a radio frequency choke to hinder rf from flowing into the DC line. Radio frequency is directly fed into the low-pass-filter. The output impedance of this stage is roughly 50 Ohms, so the filter can be a 50 ohm circuit with a cutoff frequency slightly above 14MHz.

The VFO section

The Si5351A clock chip used here has three frequency outputs that can be set individually. Only CLK0 and CLK1 are used in this radio. The Si5351A chip is programmed by software in the following manner:

  • Receive: CLK0 is the VFO, CLK1 is the BFO.
  • Transmit: CLK0 is the BFO, CLK1 is the VFO.

The microcontroller reads the tx/rx status and switches the frequencies respectively.

Construction

The radio is a full SMD design on a 0.1″ pitch double sided Veroboard:

DK7IH microsize QRP SSB  transceiver ("Micro24") for 14 MHz - Inside
DK7IH microsize QRP SSB transceiver (“Micro24”) for 14 MHz – Inside

The control panel on the left with tuning knob and volume set. The 64×32 pixel OLED between these controls. Following the microcontroller behind the fron panel (here covered). The controller is an ATmega168 on an Arduino Pro mini board.

The isolated board left of the SSB is the AGC section. The receiver and transmitter shared parts follow, the TX band pass filter is in the foreground. The power transmitter is on the right behind the shield. The shield is necessary to avoid unwanted oscillations when rf is coming back from the power transmitter to the band pass filter prior to the tx section.

On the right there is the SMA socket for connecting the antenna plus a 3 pin header for connecting a headphone. When there is no headphone in use a jumper connects the internal speaker to the speaker line. VDD is applied via a standard DC connector.

The underside of the board has only some SMD components and the wiring on it:

DK7IH microsize QRP SSB transceiver ("Micro24") for 14 MHz - Underside
DK7IH microsize QRP SSB transceiver (“Micro24”) for 14 MHz – Underside

“On the air”

My longest distance achieved with this transceiver (after rebuilding it) has been R2DLS near Moscow who gave me a “59”-report. smile1 The antenna in use is, as always, a Deltaloop.

73 and thanks for reading this article!

Peter (DK7IH)

 

 

Improving the receiver for the 7MHz QRO transceiver

After having done lots of QSOs with the 7MHZ QRO transceiver I found that the receiver still had to be improved. The sensitivity was great, the sound also was but there were some difficulties when operating the radio during evening and night times because  some (minor) interference was audible. This symptom had been caused, as usual, by strong broadcast stations transmitting from 7200+ kHz 41m-band. Occasionally “Radio China International” and “Radio Romania International” were discernable. But cure was on the way: The transceiver has a modular concept. Based on this I decided to do a full reconstruction of the receiver module.

The mixer, which is the most crucial part in a 7MHz receiver was changed to an IC mixer using an SL6440 double balanced mixer (formerly produced by Plessey).

sl6440_mixer_ic

The mixer IC offers a very good IMD3 performance (30dBm maximum according to datasheet) plus some decibels (1 to say exactly!) of gain and thus is a good alternative to the dual-gate MOSFET I had used before.

As a special feature there is an input (pin 11) where a current can be applied that determines the overall mixer current. The higher this value is set, the better the IMD3 performance will be. Max. power dissipation for the IC is 1.2 watts but that will require a heatsink. I found that a resistor of 820Ω will lead to a current of 4mA (13V VDD) on pin 11 line and produces good performance without thermally stressing the IC. For optimized IMD3 performance the SL6440 ic should be run in balanced mode.

The receiver schematic in full:

DK7IH 7MHz QRO SSB transceiver - Receiver section (Version 2)
DK7IH 7MHz QRO SSB transceiver – Receiver section (Version 2) – Full size image

Circuit explanation

Input BPF

From the left we start with a two pole band filter for 7 MHz. LC coupling  again is very loose what reduces the receiver’s tendency to overload.

Receive mixer

Next is the SL6440 mixer ic. Input and output are equipped with broadband transformers (data see schematic, please!). The purpose is to convert an unbalanced signal to a balanced one and vice versa. According to the respective entry in data sheet running the mixer in balanced mode enhances performance. Pin11 is used to control the DC operating conditions of the mixer, a resistor (820Ω) sets appropriate  bias for mixer stage. The 3 diodes (1N4148) supply correct voltage to a pin that is called “VCC2” which should be slightly lower than VCC supplied to the output stage. 3 diodes in series produce the required voltage drop.

In experiments it has turned out the even when gain of the mixer ic is only about 1 dB the resulting output of the whole receiver is higher than that of its predecessor and taking into account that receiver generated noise is not a problem on the lower short wave bands, there is no rf preamplifier.

If you encounter birdies maybe the signal level of the VFO is too high. Then switching a smaller capacitor into the VFO signal feedline is the best idea.

Next stage is the filter switch that has been copied from the previous schematic.

Interfrequency amplifier

This stage contains the well-known MC1350 by Motorola. To simplify this section a minimum design has been chosen, Output is unbalanced and broadband. Input also. The only filtering in the whole interfrequency section is done by the SSB filter prior to the interfrequency amplifier. A 100uF capacitor in VDD line helps to suppress audio frequency feedback and self-oscillation in the receiver strip.

Product detector

As you might have realized the transceiver not longer is a “NE602 free zone”, because this mixer now serves as a product detector. A type of usage where the low IMD3 performance does not matter. The low pass filter by the end of the mixer must be chosen according to the user’s preferences concerning pitch and tone.

Audio amp section

Audio preamp is again an ic, the “antique” LM741. Negative feedback has been set to an amount that there is significant gain in this stage (R=330kΩ).

The audio final amp here has been equipped with the TBA820M integrated circuit, the smaller version of the 16 pin TBA820 integrated audio amplifier. The advantage of this ic compared to LM386 is lower distortion and the fact that this ic is not so prone to self-oscillate.

AGC

Automatic gain control nearly is the same like in the former version. The main difference is that MC1350 needs positive voltage to reduce amplifier gain. Thus the output has been punt into the emitter line. The problem when using an NPN transistor in such a circuit is that maximum voltage is limited to Vmax = VDD – VBE. As a consequence you can not get full 12V out when you supply 12V between C and E. Here this does not matter because AGC significantly reduces gain already when reaching 6 volts (Source: Datasheet):

mc1350_vagc_gain-function

Maximum gain reduction (>60dB) occurs between 6.7 and 7 volts.

Also a manual method to reduce gain has been applied. This is by chosing a voltage between 0 and 12V using a potentiometer. To prevent current flowing from the center of the potentiometer into the ADC input detecting the AGC voltage a silicon diode has been installed. To prevent a short circuit of the AGC voltage against GND when the potentiometer is at 0 position (delivering full gain in the MC1350 amp ic) the 5.6k resistor is used.

Changing time constant can be achieved by a second capacitor set in parallel (either by a switch or by microcontroller).

To protect the analog-digital-converter (ADC) in the microcontroller from excessive input voltage, this is limited to 5.1V by a zener diode.

Performance

The receiver is very sensitive. Reception is possible with the famous “wet finger” ;-). With a large antenna (full sized delta loop) no overload is detectable even during evening and night times. Noise is slightly higher compared to that with the MOSFET equipped receiver but very much acceptable for a 7MHz receiver.

73 and thanks again for watching!

Peter (DK7IH)

Shrinking a QRP transceiver to (nearly) the size of a pack of cigarettes

Hint: This article is only a preview to this miniature sideband transceiver. The full description can be found here:

https://radiotransmitter.wordpress.com/2019/04/22/revision-of-the-cigarette-pack-transceiver/


The challenge started some weeks ago, when John, ZL2TCA, commented to this blog

you next challange is to build a rig into a cigerette packet size case.

My problem: I don’t smoke, have never smoked and probably never will. 😉 But I have a new transceiver for 20 meters, that might come close to the dimensions of a pack of “cancer sticks”.

DK7IH pocket sized qrp transceiver 20-4 a
DK7IH pocket sized QRP transceiver 20-4

The transceiver is nearly the same circuit as applied with the “Micro 20-III” but uses a single ended final amplifier instead of a push-pull circuit. I hope to find time the next days to publish an article on this rig featuring full description of the radio. Currently I’m in the IOTA contest and working stations from all over Europe.

73 de Peter

Reviewing and improving the semi-automatic antenna tuner

Foreword

When I built the semi automatic tuner two years ago I did not take into account some possible shortcomings the device could suffer from. The first of these I noticed when I exceeded power levels of about more or less than 50 watts. In some cases there was rf incoupling leading the microcontroller to fail so that the relay setting was invalid for the given combination of frequency and antenna. The next point was that the algorithm to set the capacitor was far from being optimized. And, as I found out, the maximum inductance I had inlcuded was far too high. On the other hand the lowest indcutance was to big to ensure very fine tuning. So this was revised, too by stepping the inductors more carefully.

The consequence then was a complete reconstruction of the tuner trying to avoid the problems from rf stray energy being coupled into the microcontroller and improving the software and hardware.

Abstract

Thsi article describes a microcontroller driven semi-automatic antenna tuner capable of handling power levels up to 150 watts. The device is a low pass filter tuner manually tuned by setting the optimized L/C combination by hand and then storing the values into the EEPROM of the mictrocontroller to recall them later (seperately for each band from 80 to 10 meters including WARC bands). The tuner ist designed to couple long wire antennas (i. e. longer than half a wavelength) in the frequency range from about 3 MHz to 30 MHz. The antennas can be balanced or non-balanced.

The device uses 7 coils wound on iron powder toroids and a variable capacitor controlled by a motor with a reduction drive and a a device that detects the current turning angle of the rotator.

Also integrated you will find a measurement section to give the current standing wave ratio and put out this on the display.

General layout

The tuner consists of two main parts:

  • The microcontroller unit
  • The RF unit containing the tuning coils and the variable capacitor.

Let’s see the schematic first:

DK7IH semi automatic antenna tuner V2 (schematic)
DK7IH semi automatic antenna tuner V2 (Schematic FULL SIZE)

Circuit description

Starting on the left side, you see the microcontroller unit equipped with an 8-bit AVR microcontroller (ATMega16 or similar). The user interface is very simple and made of 6 push buttons. These are connected to GND via switchable individual resistors leading to the ADC3 input of the cntroller. The pull up resistor for ADC3 is activated thus forming a voltage divider and thus an individual ADC value for each push button to be recognized by the software. This is done because it saves control lines and controller ports to a wide extent.

The LCD is a two line 16 characters LCD.

Output ports are connected to ULN2003 driver ICs. These ICs contain a driver capable to handle up to 30V DC including a clamp diode so this IC can drive mtors and relays directly. There are capacitors of 0.1uF connected to the port lines to minimize rf coupling effects.

The RF board is made of 7 coils wound on T68-2 toroids with the inductances given in the schematic:

  • L1: 0.1uH: 4 turns,
  • L2: 0.25uH: 7 turns,
  • L3: 0.5uH: 9 turns,
  • L4: 1uH: 13 turns,
  • L5: 2uH: 19 turns,
  • L6: 4uH: 26 turns,
  • L7: 8uH: 37 turns.

Wire gauge is 0.4mm. The inductors are shortened by a 12V relay each if neccessary. So you can (by binary calculation) set any value from 0.1 uH to close to 16uH.

An output transformer is used to give a balanced out for e. g. doublet antenns. It is 10 turns bifilar on a 2.5 cm toroid ferrite core of No. 43 material. If you use a non-balanced antenna you can leave out this transformer.

The capacitor in my construction is a 200pF max. butterfly capacitor with air as dielectric.  The advantage of a butterfly type is that it needs only 90° angle to turn it from minimum to maximum capacity. The motor (a 5V dc version) is connected via a 240:1 gear drive by TAMIYA. The motor is pulse driven so it can be directly connected to 12 Volts with running danger to damage it.

The drive has two outlets providing one axle at each side of the drive. To one of the axles I connected the capacitor, the other one connects to a potentiometer to report the current swing angle to the microcontroller. This allows precise feedback of the capacitor’s current position which is essential for setting it to the desired value. The value of this variable resistor does not really matter since it is only a simple voltage divider. Anything between 1k and 10k should fit. Make sure that you use a piece that is easy to turn to minimize friction. To connect the axles I used PVC tubing with an inside diameter of 3 mm.

Also included is a measurement section to give the user a current reading of VSWR. The coupler can be anything you should regard as proper. I used a strip power coupler from an old CB radio. But other systems should also work.

To compensate losses when tuning low frequencies I added a DC amplifier based on an operational dual system amplifier (LM358). There is no means to reduce sensitivity. This is done by regulating the input power of the driving transmitter. The software will give you a readout for FWD and REF power in the range from 0 to 999. Tune to maxmimun FWD and minimum REF energy and everything will be alright! 😉

Practical aspects

To minimize RF couping into the microcontroller I seperated the control board from the RF board by putting it on a seperate veroboard with an aluminium shielding underneath:

DK7IH semi automatic antenna tuner V2 (inside view)
DK7IH semi automatic antenna tuner V2 (inside view)

The RF board is mounted to the bottom of the case, here with dismantled controller board. The controller board is sited on top of the package.

DK7IH semi automatic antenna tuner V2 (inside view)
DK7IH semi automatic antenna tuner V2 (inside view)

On the right side there is the variable butterfly capacitor, on the board, centered you can see the motor plus the reduction drive. On the left side of this there is a small potentiometer that forms the turning angele detector. To connect this to the ADC of the controller it is highly recommended to use shielded cable!

To come to an end, here is the deveice positioned under the roof window of my shack directly connected to the ladder line:

DK7IH semi automatic antenna tuner V
DK7IH semi automatic antenna tuner V”

Thanks for reading and enjoy your radio! 73 de Peter (DK7IH)

The software

(Apology for having some comments in German. I have been using this code for centuries! 😉

/*****************************************************************/
/*              Antennatuner with ATMega 16 V2                   */
/*  ************************************************************ */
/*  Microcontroller:  ATMEL AVR ATmega16, 8 MHz                  */
/*                                                               */
/*  Compiler:         GCC (GNU AVR C-Compiler)                   */
/*  Author:           Peter Rachow DK7IH                         */
/*  Last cahnge:      2018-07-27                                 */
/*****************************************************************/

/*    PORTS */
// O U T P U T 
// LCD 
// RS      = PD2
// E       = PD3
// D4...D7 = PD4..PD7

//Coil relays: PC0...PC6
//Motor drive on/off: PD1
//Motor direction relay: PD0
//Extra capacitor 200pF: PC7 (not yet!)

//I N P U T
//ADC0: SWR-Meter 0
//ADC1: SWR-Meter 1
//ADC2:
//ADC3: Keys
//ADC4: Potentiometer for Capacitor position

#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/sleep.h>
#include <avr/eeprom.h>
#include <util/delay.h>

int main(void);

#define LCD_INST 0x00
#define LCD_DATA 0x01

#define MAXCAP 220
#define CAPDELAY 10
#define MAXBANDS 7

void lcd_write(char, unsigned char);
void set_rs(char);
void set_e(char);
void lcd_init(void);
void lcd_cls(void);
void lcd_line_cls(int);
void lcd_putchar(int, int, unsigned char);
void lcd_putstring(int, int, char*);
int lcd_putnumber(int, int, long, int);
void lcd_display_test(void);

//BAND DISPLAY & MISC
void show_band(int);
void show_meter(int, int, int);
void define_chars(void);

//Coils & Cpas
void set_coils(int);
void set_cap(int);
void rotate_cap(int);
int get_cap(void);

//ADC
int get_adc(int);
int get_keys(void);

//Delay
void wait_ms(int);

//String
int int2str(long, int, char *, int);
int stringlen(char *);


long runsecs = 0;

/**************************************/
/* Funktionen und Prozeduren fuer LCD */
/**************************************/
// LCD 
// RS      = PD2
// E       = PD3
// D4...D7 = PD4..PD7

/* Ein Byte (Befehl bzw. Zeichen) zum Display senden */
void lcd_write(char lcdmode, unsigned char value)
{
    int x = 16, t1;
	
    set_e(0); 

    if(!lcdmode)
	{
        set_rs(0);    //RS=0 => INST
	}	
    else
	{
        set_rs(1);    // RS=1 => DATA
	}	

    wait_ms(4);
	
    //Hi nibble
    set_e(1);
	for(t1 = 0; t1 < 4; t1++)
	{
	    if(value & x)
	    {
	       PORTD |= x;
	    }
        else	
	    {
           PORTD &= ~(x);
	    }  
		
		x <<= 1;
	}	
	set_e(0);
	
	x = 16;

	// Lo nibble
	set_e(1);
	for(t1 = 0; t1 < 4; t1++)
	{
	    if((value & 0x0F) * 16 & x)
	    {
	       PORTD |= x;
	    }
        else	
	    {
           PORTD &= ~(x);
	    }  
		
		x <<= 1;
	}
    set_e(0);

}

//RS
void set_rs(char status) //PD2  
{
    if(status)
	{
        PORTD |= 4;
	}	
    else
	{
	    PORTD &= ~(4);
	}	
}

//E
void set_e(char status)  //PD3
{
    if(status)
	{
        PORTD |= 8;
	}	
    else
	{
	    PORTD &= ~(8);
	}	
}

/* Ein Zeichen (Char) zum Display senden, dieses in */
/* Zeile row und Spalte col positionieren           */
void lcd_putchar(int row, int col, unsigned char ch)
{
    lcd_write(LCD_INST, col + 128 + row * 0x40);
    lcd_write(LCD_DATA, ch);
}


/* Eine Zeichenkette direkt in das LCD schreiben */
/* Parameter: Startposition, Zeile und Pointer   */
void lcd_putstring(int row, int col, char *s)
{
    unsigned char t1;

    for(t1 = col; *(s); t1++)
	{
        lcd_putchar(row, t1, *(s++));
	}	
}


/* Display loeschen */
void lcd_cls(void)
{
    lcd_write(LCD_INST, 1);
}


/* LCD-Display initialisieren */
void lcd_init(void)
{
    /* Grundeinstellungen: 2 Zeilen, 5x7 Matrix, 4 Bit */
    lcd_write(LCD_INST, 40);
    lcd_write(LCD_INST, 40);
    lcd_write(LCD_INST, 40);

    //MAtrix 5*7
    lcd_write(LCD_INST, 8);

    /* Display on, Cursor off, Blink off */
    lcd_write(LCD_INST, 12);

    /* Entrymode !cursoincrease + !displayshifted */
    lcd_write(LCD_INST, 4);
	
	//4-Bit-Mode
    lcd_write(LCD_INST, 2);	
	
	lcd_cls();
}


//Write number with given amount on digits to LCD
int lcd_putnumber(int col, int row, long num, int dec)
{
    char *numstr = malloc(32);
    int l = 0;
    if(numstr != NULL)
    {
        int2str(num, dec, numstr, 16);
        lcd_putstring(col, row, numstr);
        l = stringlen(numstr);
        free(numstr);
        return l;
      
    } 
    return 0;
}


void lcd_line_cls(int ln)
{
    int t1;
	
	for(t1 = 0; t1 < 15; t1++)
	{
	    lcd_putchar(ln, t1, 32);
	}
}	
/*****************************************/
//           STRING FUNCTIONS
/*****************************************/
//INT 2 ASC
int int2str(long num, int dec, char *buf, int buflen)
{
    int i, c, xp = 0, neg = 0;
    long n, dd = 1E09;

    if(!num)
	{
	    *buf++ = '0';
		*buf = 0;
		return 1;
	}	
		
    if(num < 0)
    {
     	neg = 1;
	    n = num * -1;
    }
    else
    {
	    n = num;
    }

    //Fill buffer with \0
    for(i = 0; i < 12; i++)
    {
	    *(buf + i) = 0;
    }

    c = 9; //Max. number of displayable digits
    while(dd)
    {
	    i = n / dd;
	    n = n - i * dd;
	
	    *(buf + 9 - c + xp) = i + 48;
	    dd /= 10;
	    if(c == dec && dec)
	    {
	        *(buf + 9 - c + ++xp) = '.';
	    }
	    c--;
    }

    //Search for 1st char different from '0'
    i = 0;
    while(*(buf + i) == 48)
    {
	    *(buf + i++) = 32;
    }

    //Add minus-sign if neccessary
    if(neg)
    {
	    *(buf + --i) = '-';
    }

    //Eleminate leading spaces
    c = 0;
    while(*(buf + i))
    {
	    *(buf + c++) = *(buf + i++);
    }
    *(buf + c) = 0;
	
	return c;
}

//STRLEN
int stringlen(char *s)
{
   int t1 = 0;

   while(*(s + t1++));

   return (t1 - 1);
}


//BAND DISPLAY
void show_band(int b)
{

    char *band_str[] = {"80m", "40m", "30m", "20m", "17m", "15m", "12m", "10m"};
    lcd_putstring(0, 13, band_str[b]);
}

//Meter (max. value = 25)
void show_meter(int value, int value_old, int pos)
{
	#define MAXBLOCKS 4
    int v1, v2, v3, i1;
	
    //Clear meter (5 chars) if new value > old value
    if(value < value_old)
    {
        for(i1 = 0; i1 < MAXBLOCKS; i1++)
        {
	        lcd_putchar(1, i1 + pos * 6, 32);
        }
	}
			
	v1 = (int) value / MAXBLOCKS; //Full blocks, 5 cols each
    v2 = value - v1 * MAXBLOCKS;  //Rest
	if(v1 > MAXBLOCKS)
	{
		v1 = MAXBLOCKS;
	}
	
	if(value >= value_old)
	{
	    v3 = (int) value_old / MAXBLOCKS; //Full blocks, 5 cols each, already drawn
	}
	else
	{  
		v3 = 0;
	}	    
	
	//Full blocks	
	for(i1 = v3; i1 < v1; i1++)
	{
	    lcd_putchar(1, i1 + pos * 6, 4); 
	}
	
	//Rest
	if(i1 < MAXBLOCKS)
	{
		if(v2)
	    {
	        lcd_putchar(1, i1 + pos * 6, v2 - 1);
	    }
        else
        {
            lcd_putchar(1, i1 + pos * 6, ' ');
        }
	}
}

//PROGRAM CUNSTOM CHARS FOR S-SMETER
void define_chars(void)
{
    int i1;
	unsigned char adr = 64;
						  
	unsigned char b1[] = {0x00, 0x00, 0x10, 0x10, 0x10, 0x10, 0x00, 0x00, //S-Meter blocks 
	                      0x00, 0x00, 0x18, 0x18, 0x18, 0x18, 0x00, 0x00,
						  0x00, 0x00, 0x1C, 0x1C, 0x1C, 0x1C, 0x00, 0x00,
						  0x00, 0x00, 0x1E, 0x1E, 0x1E, 0x1E, 0x00, 0x00,
						  0x00, 0x00, 0x1F, 0x1F, 0x1F, 0x1F, 0x00, 0x00,
						  	0x0,0x0,0x4,0xe,0x4,0x0,0x0, 0, //+
						  	0x4,0xe,0x4,0x0,0x4,0xe,0x4,0, //++
						  0x00, 0x01, 0x02, 0x12, 0x0A, 0x04, 0x00, 0x00  //Tick
						  
						  };					  
	//Dummy operation!
	lcd_write(LCD_INST, 0);
	lcd_write(LCD_DATA, 0);

    //Load data into CGRAM
	for(i1 = 0; i1 < 64; i1++)  
	{
	    lcd_write(LCD_INST, adr++);
		lcd_write(LCD_DATA, b1[i1]);
	}
}		


/////////////////////////////////////
//
// C O I L S & C A P S
//
/////////////////////////////////////
void set_coils(int pattern)
{
    int unsigned t1, x = 1, p = pattern;
    
    //Inductance in uH  * 100
    int i0[] = {10, 25, 50, 100, 200, 400, 800}, i1 = 0;
    
    //lcd_putstring(0, 10, "    ");
    //lcd_putnumber(0, 10, p, -1, -1, 'l', 0);
    
    for(t1 = 0; t1 < 7; t1++)
    {
		if(p & x)
        {
            PORTC &= ~(x);      
            i1 += i0[t1];
        }
        else
        {    
            PORTC |= x;
        }
        x <<= 1;
     }       
     lcd_putstring(0, 0, "       ");
     lcd_putstring(0, lcd_putnumber(0, 0, i1, 2), "uH");
}

void set_cap(int cap)
{
               
    if(cap < 0 ||cap > MAXCAP)
    {
		return;
	}
	
	lcd_putstring(0, lcd_putnumber(0, 7, cap, -1) + 7, "pF");
	wait_ms(500);
	/*	
    lcd_putnumber(0, 0, get_adc(4), -1, -1, 'l', 0);
    lcd_putnumber(0, 8, cap, -1, -1, 'l', 0);
    lcd_putnumber(1, 0, (int) adc0, -1, -1, 'l', 0);	
    */       
    
    while(get_cap() > cap)
    {
		rotate_cap(0);
		lcd_putstring(0, 7, "      ");
        lcd_putstring(0, lcd_putnumber(0, 7, get_cap(), -1) + 7, "pF");
        if(get_keys() == 5 || get_keys() == 6) //Quit if band QSY key is pressed
        {
			return;
		}	
    }
    
    while(get_cap() < cap)
    {
		rotate_cap(1);
		lcd_putstring(0, 7, "      ");
        lcd_putstring(0, lcd_putnumber(0, 7, get_cap(), -1) + 7, "pF");
        if(get_keys() == 5 || get_keys() == 6) //Quit if band QSY key is pressed
        {
			return;
		}	
    }
        
    

}

//Measure real cap val from sensor
int get_cap(void)
{
	double val = (double) (get_adc(4) - 384) * MAXCAP / 256;
	
	return (int) val;
}
	
void rotate_cap(int direction)
{
	if(direction)
	{
		PORTD &= ~(1); //RelayOFF      
	}
	else
	{
	    PORTD |= 1;   //Relay ON	
	}	
	
	PORTD |= 2;   //Motor ON
	wait_ms(CAPDELAY);
	PORTD &= ~(2);  //Motor OFF      
	wait_ms(CAPDELAY);
}	


ISR(TIMER1_OVF_vect)   	   // Timer1 Überlauf
{ 
    runsecs++;
    TCNT1 = 57724;	  
} 

//***************************************************
//                      ADC
//***************************************************

int get_adc(int adcmode)
{
    int adc_val = 0;
	
	
	ADMUX = (ADMUX &~(0x1F)) | (adcmode & 0x1F);     // Kanal adcmode aktivieren PA0=TUNE
    wait_ms(3);
	
    ADCSRA |= (1<<ADSC);
	wait_ms(3);
	
	adc_val = ADCL;
    adc_val += ADCH * 256;   
	
	while(ADCSRA & (1<<ADSC));
	
	return adc_val;
}	

//Read keys via ADC0
int get_keys(void)
{

    int key_value[] = {18, 22, 29, 43, 74, 132};  
       	
    int t1;
    int adcval = get_adc(3);
        
    //TEST display of ADC value 
    /*
    lcd_cls();
    lcd_putnumber(0, 0, get_adc(3), -1, -1, 'l', 0);
    return 0;    	
    */
    
    for(t1 = 0; t1 < 6; t1++)
    {
        if(adcval > key_value[t1] - 2 && adcval < key_value[t1] + 2)
        {
			 return t1 + 1;     
        }
    }
    
    return 0;
}

/***************************************************/
/* Wartezeit in Millisekunden bei fck = 8.000 MHz  */
/***************************************************/
void wait_ms(int ms)
{
  int t1, t2;

  for(t1 = 0; t1 < ms; t1++)
    for(t2 = 0; t2 < 137 * 8; t2++)
      asm volatile ("nop" ::);
}

int main()
{
	int t1;
	int key;     //Keystroke
	int adc_val; //Value of ADC
    int i = 65;  //L
    int band = 0;
    int l1 = 0, c1 = 0;
    
    //Standard values for DK7IH antenna
    //L=      - (128), 8uH(64), 4uH(32), 2uH(16), 1uH(8), 0.5uH(4), 0.25uH(2), 0.125uH(1)
    int std_l [] = {65, 33, 12, 8, 6, 4, 3, 2, 1};
    int std_c [] = {172, 41, 75, 110, 88, 55, 33, 17};
    
    //Meter data
    int s0, s1;
    int s0_old = -1, s1_old = -1;
    int s0off, s1off;
    int loopcnt0 = 0;;
        
    int ok = 0;
    long runsecs2 = 0;
	
	/* Set ports */
    /* OUTPUT */
    DDRB = 0x1F; //Relays 1.55 of cap switching
    DDRC = 0x7F; //Relays for coils             
    DDRD = 0xFF; //LCD data on PD4...PD7
                 //LCD RS:PD2, E:PD3
                 //PD0, PD1: Relay 6 and 7 of cap switches
    
    PORTA = 0x08; //Pullup resistor for keys' input   
    
    //Display
    lcd_init();
	wait_ms(500);
	lcd_cls();
	lcd_putstring(0, 0, " DK7IH Antenna");				
	lcd_putstring(1, 0, " Tuner Ver. 2.0");				
	wait_ms(500);
	lcd_cls();
			
	//Watchdog abschalten
	WDTCR = 0;
	WDTCR = 0;
    	
	//ADC initialisieren
    ADMUX = (1<<REFS0);     // Referenz = AVCC
    ADCSRA = (1<<ADPS2) | (1<<ADPS1) | (1<<ADEN); //Frequenzvorteiler 64 u. //ADC einschalten
	ADCSRA |= (1<<ADSC); //Eine Wandlung vornehmen
	while (ADCSRA & (1<<ADSC)); //Eine Wandlung abwarten
    adc_val = ADCL;
    adc_val += ADCH * 256;   //Wert auslesen
	adc_val = 0;
	
	//Timer 1
	TCCR1A = 0;                      // normal mode, keine PWM Ausgänge
    TCCR1B = (1<<CS12) + (1<<CS10) ;   // start Timer mit Systemtakt, Prescaler = /1024
	                                    //Auslösung des Overflow alle Sekunde sec.
    TIMSK = (1<<TOIE1);   // overflow aktivieren.
	TCNT1 = 57724;        //Startwert für Sekundentakt

    //Define custom chars for meter
    //define_chars();

    //Load standard data if eeprom cell empty
    for(t1 = 0; t1 < 8; t1++)
    {
		if(eeprom_read_byte((uint8_t*)(t1 * 2)) == 255)
		{ 
			eeprom_write_byte((uint8_t*)(t1 * 2), std_l[t1]);
			eeprom_write_byte((uint8_t*)(t1 * 2 + 1), std_c[t1]);
		}
	}		
				
		
    //Get recent data           		
   	band = eeprom_read_byte((uint8_t*)32);
   	if(band < 0 || band > MAXBANDS)
	{
	    band = 3;
	}
	show_band(band);
	
	l1 = eeprom_read_byte((uint8_t*)(band * 2));
	if(l1 >= 0 && l1 < 128)
	{
		set_coils(l1);
	}
	else
	{
		set_coils(65);
		lcd_line_cls(1);
		lcd_putstring(0, 0, " -x-uH");
		wait_ms(1000);
	}
	c1 = eeprom_read_byte((uint8_t*)(band * 2) + 1);	
	if(c1 >= 0 && c1 < MAXCAP)
	{
		set_cap(c1);
	}
	else
	{
		set_cap(110);
		lcd_line_cls(1);
		lcd_putstring(0, 0, " -x-pF");
		wait_ms(1000);
	}	
    sei();

    show_band(band);
    
    //Calculate 0-offset of swr meter
    s0off = get_adc(0);
    s1off = get_adc(1);
    
    for(;;) 
	{
		key = get_keys();
		if(i > 0 && key == 2)
		{
			i--;
		    set_coils(i);
		    wait_ms(50);
		}    
		
		if(i < 127 && key == 1)
		{
			i++;
		    set_coils(i);
		    wait_ms(50);
		}    
				
		while(get_cap() > 0 && key == 4) //C(-)
		{
			rotate_cap(0);
		    lcd_putstring(0, 7, "      ");
            lcd_putstring(0, lcd_putnumber(0, 7, get_cap(), -1) + 7, "pF");     
            wait_ms(100);
            key = get_keys();
		}    
		
		while(get_cap() < MAXCAP && key == 3) //C(+)
		{
			rotate_cap(1);
		    lcd_putstring(0, 7, "      ");
            lcd_putstring(0, lcd_putnumber(0, 7, get_cap(), -1) + 7, "pF");     
            wait_ms(100);
            key = get_keys();
		}    

        if(band > 0 && key == 6)         //Band (-)
        {
			band--;
		
			while(!eeprom_is_ready());
		    eeprom_write_byte((uint8_t*)32, band);
										
			lcd_putstring(1, 0, "Recalling.");
				
			l1 = eeprom_read_byte((uint8_t*)(band * 2));
			c1 = eeprom_read_byte((uint8_t*)(band * 2 + 1));

	        if(l1 >= 0 && l1 < 128)
	        {
		        set_coils(l1);
		        i = l1;
	        }
	        else
	        {
		        set_coils(65);
		        lcd_putstring(0, 0, " -x-uH");
		    }    
									
														
			if(c1 >= 0 && c1 <= MAXCAP)
			{
			    set_cap(c1);
			}	
			else
			{
				lcd_putstring(0, 7, "-x-pF");
			}	
				
			show_band(band);
			lcd_putstring(1, 0, "             ");
			while(get_keys());
		}
		
        
        if(key == 5) //Band (+)
		{
		    show_band(band);
			lcd_line_cls(1);
			
		    runsecs2 = runsecs;
			ok = 0;
			lcd_putstring(1, 0, "Waiting....");
			while(get_keys() == 5 && !ok)
			{
			    
			    lcd_putnumber(1, 10, 3 - (runsecs - runsecs2), -1);
				if(runsecs - runsecs2 > 2)
				{
				    ok = 1;
				}	
			}	
			
			if(runsecs > runsecs2 + 1) //Key has been pressed for longer than a second, new values for current band to be set
			{                          //Also store values in EEPROM 
			    while(!eeprom_is_ready());
				eeprom_write_byte((uint8_t*)(band * 2), i); 
				
			    while(!eeprom_is_ready());
				eeprom_write_byte((uint8_t*)(band * 2 + 1), get_cap());
				
				while(!eeprom_is_ready());
				eeprom_write_byte((uint8_t*)32, band);
								
	            lcd_line_cls(1);
				lcd_putstring(1, 0, "Stored.");				
				wait_ms(1000);
				lcd_line_cls(1);
			}
            else	
			{
			    if(band < MAXBANDS) //Change band 1 up
				{
				    band++;
				}
                				
				while(!eeprom_is_ready());
				eeprom_write_byte((uint8_t*)32, band);
				
				show_band(band);
				
				lcd_putstring(1, 0, "Recalling.");
				
			    l1 = eeprom_read_byte((uint8_t*)(band * 2));
				c1 = eeprom_read_byte((uint8_t*)(band * 2 + 1));
								
	            if(l1 >= 0 && l1 < 128)
	            {
		            set_coils(l1);
		            i = l1;
	            }
	            else
	            {
		            set_coils(65);
		            lcd_putstring(0, 0, " -x-uH");
		            wait_ms(1000);
		        }    
									
														
			    if(c1 >= 0 && c1 <= MAXCAP)
			    {
			        set_cap(c1);
			    }	
			    else
			    {
				     lcd_putstring(0, 7, "-x-pF");
			    }	
			    lcd_putstring(1, 0, "             ");
			}	
		}
		
		//Meter check
        if(loopcnt0++ > 10)
        { 
            
            s0 = get_adc(0) - s0off;
            s1 = get_adc(1) - s1off;
            
            if(s0 != s0_old)
            {
				if(s0 > 999)
				{
					s0 = 999;
				}	
				lcd_putstring(1, 0, "FWD:    "); 
				lcd_putnumber(1, 4, s0, -1);
				s0_old = s0;
			}
			
			if(s1 != s1_old)
            {
				if(s1 > 999)
				{
					s1 = 999;
				}
				lcd_putstring(1, 8, "REF:     "); 
				lcd_putnumber(1, 12, s1, -1);
				s1_old = s1;
			}	
            
            loopcnt0 = 0;
        }    
        
	}
	return 0;
}


 

A Micro Multibander – Step by step (Part III): The Receiver (Overview)

Work is in progress. The recent weeks I finished all the 6 modules that are going to be the receiver:

  • Band pass filter section
  • Relay switches for switching the BPFs
  • RF preamp, RX mixer and IF preamp
  • IF main amp
  • Product detector and AF amp section
  • AGC unit

Mounted together to an aluminium carrier board it looks like this:

Receiver board for Micro Multiband QRP SSB TRX (C) DK7IH 2018
Receiver board for Micro Multiband QRP SSB TRX (C) DK7IH 2018

On the picture the board is not equipped with the neccessary wiring yet to give the reader more sight on the single circuits. Next I will draw a schematic of each board to point out the used circuitry for those who want to build this or a similar receiver.

First test are promising so far, the receiver is sensitive, has a very low noise figure (due to dual gate MOSFETs in the preamp and the two main IF amp stages) and has shown no problems to cope with high out-of-band broadcaster signals on the 40 meter band which is due to the SBL-3 mixer I have used that has a good IM3 performance..

Thanks for watching an 73 de Peter (DK7IH)

A Micro Multibander – Step by step (Part II): VFO and Front Panel

In the last entry about my new project, a micro multibander for QRP SSB HF use, I referred on the circuits of the Si5351 VFO, the microcontroller, OLED module an the other digital circuits controlling the transceiver.

This is the practical side, now: All the digital circuits are placed behind the front panel. This is for practical (to save space in the main cabinet) and electronic reasons. By keeping the digital leads as short as possible you make it is easier avoiding hum, noise and other unwanted radio signals penetrating into your analog circuits, mainly the reciever.

This is how the front section looks from the user side:

Front panel of a SSB QRP micro multiband transceiver for SSB (C) 2018 DK7IH)
Front panel of a SSB QRP micro multiband transceiver for SSB (C) 2018 DK7IH)

The 3 potentiometers on the left (still awaiting suitable knobs) are for audio volume, receiver gain and mic gain. A switch will allow to switch the AGC from fast to slow. The S-meter has been taken from an old CB mini radio. All does not fit that much, some mechanical work still has to be done. 😉

Front panel of a SSB QRP micro multiband transceiver for SSB (C) 2018 DK7IH)
Front panel of a SSB QRP micro multiband transceiver for SSB (C) 2018 DK7IH)

This is the module taken from the side. All electronic stuff is mounted onto a 8cm x 6cm double sided veroboard. I use M2 spacers of various lengths to keep the “subboards” in place, like the Si5351 breakout, that you can see in the middle of the picture. These spacers are available from Chinese vendors on ebay and help a lot to build very compact electronic stuff. All joints and bolts are kept in M2, too.

The module is finished with a 1.5mm aluminium board where the plugs for the connectors are fed through. These connectors will be equipped with home-made plugs (1″ technology) and then connected to the respective parts of the analog circuits like receiver or transmitter.

qrp-ssb-multiband-micro-dk7ih-frontpanel-side2
Front panel of a SSB QRP micro multiband transceiver for SSB (C) 2018 DK7IH)

Here is another view of the lateral arrangement: The old-style S-meter stripped from an old HANDIC-brand CB radio was purchased on ebay for a few Euros. There ist still a lot of old CB stuff there, giving enthusiast homebrewers a large stock in interesting electronic and radio-related material.

(To be continued)