Thursday, January 12, 2017

A low power PSK31 transmitter using a Class-E power amplifier and envelope modulation

Back in 1999, not too long after the first appearance of PSK31, I decided that I wanted to construct a beacon transmitter that would operate using this mode, but at the time the only practical means of generating PSK31 was with a computer, a sound card and an SSB transmitter.  Not wanting to tie up that much gear for this purpose I set about to use the PIC16C84 microcontroller, which was popular among the homebrew builders at the time.

By this time the AM broadcast band had (relatively) recently been expanded up to 1705 kHz but very few stations occupied the new 1605-1705 kHz segment.  In perusing the FCC rules I noted that Part 15 §219 had been modified to allow low-power experimental operation (100 milliwatts DC input with a size-limited antenna) in this new segment and I decided that with the lack of activity in this frequency range that it was a good time to put up a "MedFER" (Medium Frequency Experimental Radio) beacon.
Figure 1:
The "Balanced Modulator" (Baseband) version of the PSK31
transmitter/exciter.  Built to test a concept, it has a few flaws,
but it did work.
Click on the image for a larger version.

The balanced modulator method

Upon investigating various methods of producing a PSK31 signal I experimented with the generation of a bipolar baseband signal that could be applied directly to a balanced mixer.  While this method worked well it had the problem than it required that all following stages be linear.

A diagram of the prototype of that transmitter may be seen in Figure 1.  For this transmitter a crystal-controlled oscillator is constructed using two transistors (Q1, Q2) and the output is buffered by U3, a 74HC00 quad NAND gate.  The frequency used for this circuit was unimportant as it was a "proof of concept" and I (think that I) used a 4.9152 MHz crystal which, although not in any amateur band, still allowed an "across the room" reception with a short length of wire as an antenna.  Following the first U3 NAND buffer the remaining sections are used to provide a two phase signal with the output split 180 degrees which fed a very simple balanced modulator consisting of just two diodes, a few capacitors and some resistors.

To provide modulation a PIC16C84 was used to provide a 32-step staircase modulation using PWM techniques as this (now ancient) part had no PWM peripherals.  This PWM output, done using "bit-bang" software with a "NOP-tuned" interrupt service routine used a frequency of 1 kHz, which is exactly 32 times that of PSK31's 31.25 Hz baseband frequency.  The output was filtered with a two stage R/C low-pass filter network consisting first of a 4.7k resistor and 0.1uF capacitor followed by a second stage with a much higher impedance consisting of a 150k resistor and 0.033uF capacitor providing around 3dB of roll-off at the 31.25Hz baseband frequency and about 40dB of attenuation at the 1 kHz PWM rate while yielding an acceptable amount of Inter-Symbol Interference ("ISI").  The result of this filtering is that the vast majority of the 1kHz energy is removed, leaving a pretty clean 31.25 Hz baseband signal.

Figure 2:
Phase diagram of balanced modulator
circuit in Figure 1.  The propagation
delay of the gates result in a rather
imprecise 180 degree phase shift
causing the upside-down "Vee"
in the phase diagram.
The filtered PWM output was then buffered and split into two signals, one of them inverted, using several op-amp sections and these two signals are applied differentially via simple R/C networks across the two diodes:  If the baseband signal from the PWM output were to go "positive" (e.g. above the mid-supply voltage)  the other side would go "negative" and turn on one diode, but it if were to swing the other way the other diode - fed with the RF signal that was 180 degrees out of phase with the first - would be turned on.  The end result is a fairly nice, linear BPSK envelope and baseband waveform when viewed on a receiver connected to an oscilloscope.

While it worked to prove a concept, this signal has a few shortcomings.  First, the RF signal from the oscillator and buffer is not likely to have a precise 50% duty cycle which means that a bit more RF energy would be available in one phase than the other, resulting in a somewhat "lopsided" BPSK amplitude envelope - a trait that only minimally affects demodulation and overall signal quality if the difference is only 10-20%.  The other problem has to do with a NAND gate being used to provide the 180 degree phase shift (e.g. signal inversion) in that the addition of the inverting gate adds a few 10s of nanoseconds of propagation delay.  While this doesn't sound like much, it does amount to a significant number of degrees of phase even at low HF frequencies and the end result is that the "Phase Diagram" (see Figure 2) is slightly distorted and produces the inverted "vee" pattern.

While I could have gotten this method to work (e.g. used a bandpass/lowpass filter to get a nice, clean sine wave and a transformer to get the 180 degree phase shift) it does have a down side:  All subsequent stages would need to be linear.  While not a great technical problem it did mean that for the MedFER transmitter, which has a 100 milliwatt DC input power limit according to FCC rules, a linear final amplifier would have at best around 70% efficiency which would mean that I'd lose a bit more than 1dB of signal over an amplifier that was 100% efficient.  While this may not sound like much I figured that I could do better with a more efficient amplifier scheme.

Comment:
This "baseband" PSK31 signal produced using the differential op amp scheme noted above was successfully applied experimentally to some "digital only" radios such as the Small Wonder Labs "PSK" series.  This was accomplished by "lifting" the balanced modulator above DC ground via capacitive RF coupling and applying the modulation differentially to the diode ring mixer's IF port and its ground and shifting the carrier oscillator to move this "DC" signal into the crystal filter's baseband.  The pages linked near the end of this article provide details on this modification.

The Amplitude Modulator Method

Having proven the ability to produce a reasonable quality PSK31 waveform with a lowly PIC I decided to try a different approach:  Apply high-level modulation to the output amplifier stage.  What's more, this amplifier stage need not be linear at all:  It could be a conventional Class C stage which could boost the efficiency to something around 80%, but I decided on going a step farther and use a Class-E amplifier.

Figure 3:
Diagram of the "AM" version of the transmitter using separate amplitude
and phase modulation paths, allowing a non-linear but highly efficient
Class-E output amplifier to be used.  The capacitor, diode and resistor
on the gate of Q1, the output transistor, are used to prevent the FET
from being stuck "on" and shorting out the power supply should
the RF drive disappear for any reason and the output of the NAND
gate driving it be left in a "high" state.
Click on the image for a larger version.
I first became aware of the Class-E amplifier more than a decade earlier when my friend Mark, WB7CAK, designed one for his LowFER (Low Frequency Experimental Radio) beacon that operated in the 160-190 kHz "experimenter's" band, authorized by §217 of FCC part 15.  As with MedFER operation, the input power was also limited - 1 watt in this case - also with a size-limited antenna.  After a bit of number crunching and fiddling on the workbench Mark came up with a simple circuit and a few basic, simplified equations that described how such an amplifier could be built and published an article in the Western Update - a small publication tailored mostly for LowFERs.  Because this publication may be difficult to find I have reproduced it with permission from the author and it may be found here:  (Link).

While the maths behind the derivation of the operation of a Class-E amplifier can be somewhat involved, the concept is quite simple:  When the drive signal to the transistor - typically a power MOSFET at LowFER frequencies - goes low, the transistor shuts off and it does this quickly (e.g. driven "hard") so that transistor spends as little time as possible "partially" conducting in between "on" and "off" states.  When the transistor turns off, the voltage on the drain rises, being pulled up by the choke in the circuit, but it then falls again due the "ringing" of a resonant circuit on the output tank.  Because this tank circuit is tuned appropriately, precisely at the time that the drain voltage hits zero again because of this "ringing" the output transistor is switched back on.

The result of these two events is that the FET is either completely on or off which means that little or no power is dissipated in it.  What's more, when the FET is (quickly!) turned back on, it does so just when the voltage happens to swing to zero, practically eliminating any losses that would occur at that instant due to the intrinsic resistance of the FET absorbing the current and from other losses of components of the tank circuit being "shorted out" had voltage been present.

Figure 4:
The constructed MedFER beacon transmitter, built on the bottom
of a weather resistant outdoor enclosure to be mounted at the base
of the antenna.
The result of all of this is an RF amplifier that (exclusive of the drive signal) is demonstrably capable of 95%-98% efficiency!  In the MedFER and LowFER world this means that with our power level being limited on the input, we will have, for all practical purposes, all of our input  power at our disposal rather than, say, 70-80% of it as would be the case with almost any other amplifier type - a gain of about 1dB.

The obvious problem with a Class-E amplifier is that the drive signal must be a fast rising/falling square-shaped wave that slams the transistor on and off which means that amplitude modulation of that drive signal is not easily managed if efficiency is to be maintained.

What one can do is to modulate the power supply feeding the amplifier instead.

Remembering that a PSK31 signal consists of two parts - the amplitude modulation and the phase shift - we can split these two signals in the modulator.  The first part, amplitude modulation,  may be done by modulating the supply voltage of the output amplifier stage.  The second part, phase modulation, may also be done early in the path of the drive signal simply by flipping the phase of the RF signal under computer control.  In order to keep the signal "clean" all we really need to do is to time the flipping of the phase with the amplitude being brought to zero so that we don't transmit the broadband "click" that would otherwise occur when we did this abrupt phase shift.  The schematic of this transmitter is depicted in Figure 3.

Figure 5:
The phase diagram of the signal
produced by the "Amplitude
Modulator" MedFER PSK31
beacon transmitter.  The phase
shift is precise and the intermodulation
products are well within the tolernaces
dictated by good operating practice.
In this circuit the frequency-determining crystal oscillator operates at four times the transmitter frequency, or around 6.8 MHz in the case of the MedFER transmitter.  During construction it was observed that at around 1.7 MHz it was was easier to achieve Class-E operation at this power level with a drive waveform that had a 25% duty cycle so a 74HC4017 counter was used, wired as a divide-by-four giving two 25% duty cycle outputs, 180 degrees apart.  To select which of these signals were to be used a simple MUX and driver was constructed using four NAND gates, this time being designed so that the same amount of propagation delay would occur during either phase to eliminate the upside-down "Vee" seen in Figure 2.

The PWM signal was generated using simple R/C filtering in the same way as it was for the balanced modulator circuit, but this time op amps were used to set the offset and gain (or "span") so that the baseband waveform could be precisely adjusted in both amplitude and so that when the baseband signal went to zero, the output power from the Class-E circuit would as well, compensating for the voltage offset of the series modulating transistor, emitter-follower Q4.  The output transistor, Q3, is a low-power MOSFET wired into a simple L/C "tank" circuit that is tuned to result in the coincidence of the zero crossing of the drain voltage and the transistor being turned back on by the 25% duty cycle drive signal.  Multiple taps are provided on the tank coil, making it easy to set both the output power and match it appropriately to the load presented by the resistance seen at the loading coil.
Figure 6:
Loading coil used to match the transmitter output to the
feedpoint impedance.  This coil is wound using 3/8"
copper tubing and uses a variometer inside the coil
to provide a low-loss means of adjusting the inductance.

For modulation the PIC produces a semi-sine waveform that looks very similar to one "cycle" on the double-frequency output of a full-wave diode rectifier and when this waveform amplitude is taken to "zero" another output of the PIC causes a phase switch to occur.  It is in this way that the BPSK modulation is broken into two parts - the phase change and the modulation envelope - and we are able to use a highly efficient, non-linear amplifier for the output.

After constructing this I later learned that a similar scheme was applied to amateur satellites (starting with OSCAR 7) that included linear transponders.  In order conserve precious power, the linear transponders were constructed using the "HELAPS" (High Efficiency Linear Amplifier using Parametric Synthesis) system where the amplitude and phase components of multiple signals in the satellite's linear passband were converted into their phase an amplitude components allowing both energy-saving class-C RF amplifiers and DC-DC switching converters to be used, the end result being a faithful, amplified reproduction of the input signal with a lower power budget that would have otherwise been required. This system was proposed by Dr. Karl Meinzer, DJ4ZC, and you can read about it on the AMSAT.DL web site here - link.

Where is it now?

This beacon was mounted in its enclosure on the roof of my house in 1999 and a rather large loading coil (see Figure 6) was constructed to match its output impedance to the top-hatted 3 meter vertical antenna  - and it is there to this day.  While not regularly used, it still works, provided that the tuning of the loading coil and variometer is checked before operation.  Since the beacon was constructed more broadcast stations have taken to the air in the "new" AM segment, but its operating frequency - nominally 1704.965 kHz - is just below the top edge of the band and as far away from QRM as is possible.

In the past the BPSK31 signal from this beacon has been copied during the daylight hours at a distance of 75 air miles (approx. 120km) and it had been copied in various places in the western U.S. at night.  This beacon has since been modified to be externally on-off keyed so that "QRSS" (low-speed Morse with multi-second "dit" lengths) could be sent in addition to PSK31 allowing even greater distances to be spanned under more diverse conditions.
 
I haven't done much with the code for this transmitter other than add a few features when it was ported to the (then) newer PIC16F84.  Needless to say, there are more modern devices available that contain hardware that would have simplified the design such as that to generate a much higher frequency and higher resolution PWM signal and perhaps, one day, I'll investigate their use.

For more information on this and related projects - including schematics, various applications, more pictures and some source code, visit the "CT Medfer Beacon" web page - link and related pages linked from there.

[End]

This page stolen from "ka7oei.blogspot.com".

No comments:

Post a Comment





PLEASE NOTE:


While I DO appreciate comments, those comments that are just vehicles to other web sites without substantial content in their own right WILL NOT be posted!

If you include a link in your comment that simply points to advertisements or a commercial web page, it WILL be rejected as SPAM!