
Ask MAKE is a weekly column where we answer reader questions, like yours. Write them in to mattm@makezine.comor drop us a line on Twitter. We can’t wait to tackle your conundrums!
Matt writes in:
We are working on a project to control a CW ham radio keyer using a computer, and are concerned about protecting the computer from the radio. We heard that an opto-isolator could be used for this, but aren’t sure how to go about it.
Good question! An opto-coupler is a device that can be used to electrically isolate two circuits, so that a voltage spike or other problem on one side will not destroy the circuit on the other side. A common use for them is when you want to interface a computer to an AC-powered device, such as a light or a motor. Usually, the opto-coupler will not be used to control the device directly, and instead will just transfer a signal from one circuit to another.
So, how does it work? You can think of an optocoupler as a combination of an LED and a phototransistor. To send a signal, the transmitting side power the internal LED, just as you would power a regular LED. This lights up and causes the phototransistor on the other to start conducting current. You can think of it as kind of a switch at this point, and use it to turn on a low-power device directly, or turn on a relay to turn on a higher-powered device. The above circuit diagram should work for an automatic keyer. Choose the resistor based on your microcontroller voltage and the current draw of the optocoupler chip that you use. One thing to remember is that the output is polarized, so you have to make sure to connect it up so that the high voltage side is on the collector, and the low voltage side on the emitter. Good luck with your keyer!










These conventional optocouplers (4N26…4N35) are great for isolating these different grounds.
However, if you’re building a morse keyer to use on modern radios (regular + shorted to ground), but you also occasionally wish to key up an older, tube radio that may use negative keying (-70V to ground), or just higher voltages, you can try a HSR412 coupler.
It’s used in the same manner, but it’ll handle different polarities and voltages up to 400V (HSR312 – 250V, HSR412 – 400V). They’re a bit more expensive, but it saves the extra part-count of a relay.
Mike Y
KM5Z
Dallas, Texas
Cool, thanks for the tip! I’ve run into a slightly similar situation when designing wireless flash triggers for cameras, where older ones had voltages on the trigger lines that could be 100′s of volts… my solution was to stick with new ones
// What's Trending
Raspberry Pi Design Contest
Teardrop Camper Trailer
Dad Builds Son an Iron Man Arc Reactor
Seventeen Sneaky Secret Hides
What to do with an 800 Lb Eucalyptus Slab
10 Things to Connect to Your Raspberry Pi
What does this 2×6 have to do with Father’s Day?
Farm Drones Take Flight
// What's Shared
A better way to slice a pumpkin
DIY Nerf Darts
100 Dollar Store Organization Ideas for Craft Rooms and Beyond
In the Maker Shed: Minty Boost USB Charger
Mad’s Mouse House
Lace Princess Crowns
I Have a (Puzzling) Dream
Play the Rings of a Tree Trunk Like a Record
// Most Commented
Plastic Bags into Plastic Blocks: Revisited
10 Hot New Boards to Watch
Why the Maker Movement is Here to Stay
MAKE Asks: Roadside Hacks
Ten Tips for Hand Saws and Blades
DIY Hacks & How To’s: Convert From Battery Power to AC
How To Make Your Own Laundry Detergent
Greetings From The Fourth Maker Faire North Carolina