WA8LMF Home Page | Main Ham Page | Updated 2 October 2012

Sound Card Interface with Tone Keyer

Jump to:    Photos    Schematics    Downloads    lower down on this page.


This is an improved version of the audio interface commonly used to connect a computer soundcard to a transceiver's receive and transmit audio circuits. This kind of interface is used by computer programs that send and receive SSTV, RTTY, CW, PSK31 and various other digital modes entirely in software.

Soundcard interfaces are not data controllers, TNCs, decoders or signal processors.

They merely:

The usual version of this type of interface (including the commercial "RigBlaster" and MFJ units) requires a computer serial port to provide PTT (push-to-talk) control for the radio's transmitter. This type of control uses only the RS-232 RTS and DTR handshaking lines; the actual TXD and RXD data lines themselves are not even used!

This version includes an audio tone detector that keys the transmitter whenever transmit audio is generated by the application running on the PC. No serial port connection is required; a major advantage since PCs in ham shacks seem to never have enough serial ports. This problem becomes particularly acute in APRS setups where packet TNCs, GPS receivers, and modems for Internet access are all competing for a limited number of serial ports and IRQs. (Furthermore, many newer computers don't have any serial ports at all; traditional serial and parallel ports have been replaced with USB connectors.)

The audio coupling is normally done with audio transformers to avoid a common ground connection between the computer and radio. This prevents ground loops which can cause hum and feedback on transmit.

NOTE: A common mistake in soundcard-interface construction is to use an 8-ohm-to-10K transformer for the receiver-to-soundcard-line-input connection. The incorrect assumption is that the 8-ohm speaker impedance needs to be "matched" to the sound card Hi-Z input. You are trying to couple voltage, not maximize power transfer (the condition where impedance matching is required). All that happens is that the roughly 30:1 turns ratio (turns ratio is the square root of the impedance ratio) of such a transformer causes a 30:1 voltage stepup, delivering FAR more signal level (several volts of audio) at the computer than is required. The soundcard input stage will overload, and make the onscreen level control almost impossible to adjust (the optimum level will wind up somewhere between zero and the first step on the Windows control panel slider!). The audio levels at a radio's speaker terminal or the rear panel "packet", "data", or Kenwood 13-pin ACC jacks are already at the right level (about .1 to .5 volts ); all that is required is isolation. The classic 1:1 ratio 600-ohm-to-600-ohm audio "line" transformer is exactly what you want. If you have to use a mic input (many laptop computers don't have a line-level input), you will probably have to provide a 10:1 or 20:1 voltage divider network to reduce the receive audio level.

If transmit audio is being inserted into the transceiver via the mic jack, an attenuator network is required. This network reduces the 300-500 millivolt audio level normally output by the sound card to the 5-10 millivolt level required by most radio mic inputs.

On SSTV, voice transmission alternates with sound-card-generated data. In this design, the second set of poles on the double-pole double-throw PTT relay disconnect the mic and connect the soundcard output, whenever a computer-generated tone is detected.

Many current transceivers have an 8-pin Mic jack with fixed low-level receive audio on one of its pins, and 8 volts DC (intended to power illuminated touch-tone mics) on another. Some of the models with this type of connection include the Kenwood TS-450, TS-690, TM-221, TM-421, TM-731 (when the modular-to-8-pin adapter is used) and the Yaesu FT-100 and FT-1500, etc. I have added the receive audio connection to radios that didn't originally have it such as the TS-50, TM-211, TM-411, TS-711 and 811 VHF/UHF allmodes, etc. (On these radios, the mic jack pin that carries RX audio on newer models was unused). Normally, I pick up the hot end of the receiver volume control pot and connect it to this pin [ Fortunately, even on the latest radios, Kenwood seems to continue to use classic analog volume control pots instead of a digitally controlled attenuator ] to provide a fixed-level output that is typically 50-100mV. This level is a perfect match for the usual sound-card line-level input.


The following diagrams show three versions of this interface.

Diagram 1 below is a modification of the design using discrete transistors shown in the help system of K0HEO's WinPix32 soundcard SSTV software. Changes include substituting an NPN transistor for the original PNP (so it can work on a positive power supply), and having the power-MOSFET keying line activate a DPDT relay (instead of keying the radio directly).

This version was designed specifically to be connected to, and powered by, Kenwood transceivers by a single cable connected to the Mic jack. No separate DC connection or wall wart is required. Obviously, the tone keyer circuit could be used with a separate power source on non-Kenwood radios. I have used this interface on my Yaesu FT-100 after making a RJ-11-to-8-pin adapter for the mic jack, and after connecting the one unused pin in the mic jack to fixed receive audio as described above. The adapter consists of a surface-mount RJ-11 telephone jack with a standard 8-pin ham mic jack mounted in a 5/8-inch hole punched into the jack's cover. The two extra pins used by Kenwood 8-pin mics ("UP" and "DOWN" buttons) are not connected.

[ Side-note on keying the FT-100: In order to combine the the mic remote functions that Kenwood uses 8 mic pins to implement, into only 6 conductors of a standard RJ-11 telephone jack, Yaesu uses multiple voltage levels on the PTT line -- not just HI or ground. Various buttons on the mic pull the same line to ground through different value resistors. Directly grounding the PTT line will cause the radio to start scanning instead of transmitting. You must connect the PTT line to ground through a 27K resistor to actually transmit. ]

In the interest of maximum isolation and RF immunity, I chose to use a DPDT relay (instead of solid state switches or opto isolators) to switch transmit audio, and to provide a positive zero-voltage-drop PTT. The maximum current available from the mic jack 8 VDC line is very limited (about 50mA) so a very high sensitivity 5 VDC relay is required. Normal 5 VDC DPDT DIP- package relays have a coil resistance of about 50 ohms. The relay on the diagram has a coil resistance of over 300 ohms, and will operate from the limited current available.

The SPST toggle switch disables the relay, preventing the interface from keying the transmitter. The TX led still lights up when a tone is present, allowing the sound card output to be adjusted (using the Windows mixer level controls) for positive keying without putting a signal on the air.
I connected a surplus piezo audio transducer across the TX audio input to the interface to provide a low-level monitor of the transmitted audio (Normally, plugging a cable into the laptop line-out cuts off the internal speakers so the transmit tones can't be heard.) It produces a perfect low-level side tone for the transmitted data and doesn't load the audio line at all. (And if you want to mute it completely, stick a piece of tape over the transducer's hole.)

Diagram 2 below shows the result of an effort to use an absolute minimum number of components, and to improve the performance (sensitivity and keying speed) This greatly simplified design uses an inexpensive ( approx $ .50 USD) LM158/258/358 series dual op-amp integrated circuit to replace a lot of discrete parts including the two transistors. This particular op-amp IC works well on a single-voltage power supply. The input voltage range can swing all the way to the negative supply value (i.e. ground). With the LM158 device, less than 100mV of sound card audio will reliably key the transmitter. [ With most common op-amps, the input voltage swing can not get closer than about 1V to either power supply value. The soundcard would then be required to provide in excess of 1 volt of audio to trigger PTT. ]

The miniature Aromat DPDT dip-package relays shown on the schematic are sensitive enough, and draw a low enough current through their coils, to be activated directly by the op-amp output stage without external transistor drivers. They are also, amazingly, very cheap. The 12-volt 1000-ohm coil version is about USD $2.50 from Digi-Key; the 5-volt 350-ohm-coil version is about $5.00

This design also keys and unkeys the transmitter much faster (an important issue if you are using packet modes generated by the AGW Packet Engine or MixW software). Using a dual-trace triggered scope, I have measured the RX-toTX delay (time between start of tone and PTT relay contact closure) at less than 2 milliseconds. The TX-to-RX delay (time between the end of the tone and the PTT relay opening) is less than 3.5mS! Clearly an insignificant addition to packet TXD overhead.

Diagram 3 below shows a modification to use the common 6-pin dip-package 4Nxx-series opto-isolators to replace the relay. The key and unkey times are even faster (less than 2 mS), but you lose the second set of contacts to automatically transfer TX audio between mic and sound card. This is not an issue if you are connecting the interface via a radio rear-panel non-mic "data" or "packet" jack.


Downloadable Hi-Resolution Diagrams

The schematics were originally created in Corel Draw and exported as extremely large black-and-white GIF graphics (approximately 1600 x 1000 pixels) to provide high-quality printed images. They are downloadable below. These will probably be far too large to fit in your browser without scrolling. I recommend that you right-click on the link and choose 'Save Target As" to save the image as a local file on your hard drive. Then open it in a graphics application that can scale images at print time to "Fit-to-page".  The freeware graphics viewer, IrfanView, available at http://www.irfanview.com   is perfect for this purpose.

Original Discrete Component Version   (40K Hi-Res GIF file)  ToneKeyer-Discrete.gif 

LM-158 IC-based Improved Design with Relay (32K Hi-Res GIF file)  ToneKeyer-IC-Relay.gif
LM-158 IC-based Improved Design with OptoIsolator (32K Hi-Res GIF file)  ToneKeyer-IC-Opto.gif

As an alternative, I have provided the text of this page and all three schematics   as a downloadable Acrobat .PDF file. This is a completely scalable vector image -- the Acrobat Reader automatically scales pages at print time to fit the current paper size specified in your print driver (if "Fit to page" is checked in Acrobat's print dialog) and will produce an extremely sharp image at any size. 

pdficon.gif (224 bytes)   Download Tone Keyer Information and Schematics  in Acrobat format

 

 


Photos

Tone Keyer Exterior View
tonekeyo.jpg (47826 bytes)

Tone Keyer Internal View
tonekeyi.jpg (42430 bytes)

 


Schematics

Schematics of all three versions of this design are below.  These are low-res GIF graphics sized for more-or-less on-screen viewing, without excessive scrolling, on 600x800 pixel or larger screens.  For highest quality printing, download the hi-res versions of these diagrams (or the Acrobat PDF containing all three diagrams in one file) linked above.

 

Schematic of Original Version with Discrete Components

ToneKeyer-DiscreteS.gif (66786 bytes)

 

 

Schematic of New Version with Op-Amp IC and Relay Output

ToneKeyer-IC-RelayS.gif (54956 bytes)

 

 

Schematic of New Version with Op-Amp IC and Opto-Isolator Output

ToneKeyer-IC-OptoS.gif (51913 bytes)

 

If you need a good inexpensive computer sound system to use with these interface designs, consider the Griffin Electronics "iMic" USB-connected sound device reviewed here on this website.  I have been using one of these for many years now with both the homebrew interfaces above,  and with a TigerTronics SignalLink. 

An even higher-performance but still inexpensive external sound system is the Behringer UCA202 reviewed here.