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.
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 modern PCs increasingly lack serial ports. One is forced to use the chronically problematic serial<-->USB converter cables a.k.a. "dongles". 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 four 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.
Diagram 4 below shows a alternative approach, based on the KH6TY self-powered design. As shown, it is intended for connecting the 3.5mm 4-conductor combined stereo playback-out/mic-in jack on iPads & iPhones to the 6-pin mini-DIN "data port" present on many transceivers. The same 4-conductor "TRRS" (Tip-Ring-Ring-Sleeve) jack is present on some other devices such as Acer netbooks & various tablets. (The all-in-one audio jack was originally intended for use with boom-mic headsets for Skype, etc.) Usually, though not always, such a 4-conductor all-in-one jack is marked with a modified version of the standard headphones icon that shows a boom mic in addition to the usual earpieces.
Modified Headset Icon Near
The self-powered VOX transmit keyer is far slower than my powered design. (Packet/APRS operation requires a minimum of 150-200 milliseconds TXD compared to 5 ms for my active design) but has the advantage that no additional power source is required. This a real advantage when using the mini-DIN data port instead of a mic jack. (Unlike many mic jacks, the mini-DIN data port does not provide any kind of DC power to the device attached.) The minimum audio level required out of the computer sound system to successfully key the transmitter is far higher; around .7 volts compare to just a few millivolts for the active design. Normally one will set the computer volume controls to maximum, and adjust the transmit level (modulation) with the variable resistor in the interface.
The self-powering VOX keyer scheme uses the common 600-600 ohm line transformer, but one with a center-tapped winding is required. On playback (i.e. "Transmit"), using half of the primary winding with the full secondary winding yields a 2:1 voltage gain before the full-wave voltage-doubler rectifier doubles it again. For maximum keying sensitivity, use germanium diodes such as 1N34 types rather than silicon ones like 1N914s. (Germanium diodes have about .3 volts drop in the forward conducting direction, compared to .6 to .7 volts drop for silicon devices. This makes a major difference when the audio source voltage is barely 1.5 V peak-to-peak.)
I have provided the text of this page and all 4 schematics as a downloadable .PDF file. This is a completely scalable vector image -- your PDF reader will scale the pages at print time to fit the current paper size specified in your print driver (if "Fit to page" is checked in the print dialog) and will produce an extremely sharp image at any size.
Download Tone Keyer Information and Schematics in .PDF format Left-Click to open in browser. Right-Click to "Save As"
Schematics of all four 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 PDF containing all four diagrams in high-res vector format linked above.
KH6TY-based tone-key design
If you need a good inexpensive high-performance computer sound system to use with these interface designs, consider the Behringer UCA202 USB external sound system reviewed here. I have been using one of these for many years now with both the homebrew interfaces above, and with an original TigerTronics SignalLink.