3
$\begingroup$

I want to use an Arduino to control keying transmission on a simple CW-only transceiver (think: forty-9er or Pixie).

Looking at the schematics of various such transceivers, they basically 'key down' by connecting part of the circuit to ground through a button or morse key.

Somehow, I need to be able to use a GPIO pin with 5v or 3.3v logic to control whether or not 9-15v from the "radio" side of the metaphorical 'key' can flow to ground (triggering carrier transmission).

Any ideas how to accomplish this? I want to say "open-drain logic" and "MOSFET" come to mind, but I'm not sure. Up to now, the most challenging things I've ever had to interface with Arduinos were a 3.3v i2c sensor I had to connect to a 5v Arduino (using a MOSFET-based level shifter board), and a 5v string of WS2811 pixels to a ESP32 (using a SN74LVC1T45 dual-rail shifter, because the MOSFET level shifter boards didn't quite work for this). Switching 9-16v (potentially, up to 3-5 watts) to ground is completely new territory for me.

My knowledge of MOSFETs can be succinctly summarized as, "I know they exist, I own a bag of them, and I'm vaguely aware that they're used for implementing open-drain interface logic".


For reference, here's the schematic to a "Forty-9er": enter image description here

here's a "Pixie" schematic: enter image description here

$\endgroup$
7
  • $\begingroup$ This is probably more suited for EE.SE (even though the application is for radio) because I think what you are describing is basically using a ucontroller to drive a switch of some kind. This has been almost certainly covered on EE.SE. Either way, you are going to be asked to show a schematic. $\endgroup$
    – user21417
    Feb 2, 2022 at 3:08
  • $\begingroup$ (I meant show a schematic of what you have in mind -- a low current digital IO pin that you want to to switch AC current of some kind. EE.SE will probably already have an answer for this.) $\endgroup$
    – user21417
    Feb 2, 2022 at 13:11
  • 1
    $\begingroup$ Back in the Dark Ages (1970's) electronic keyers and rigs weren't always compatible because of polarity. Because of that I've always preferred a mechanical keying system like a relay (reed relays work nicely) which you can either drive directly from the device or using a simple 2N2222 or equivalent as a driver. $\endgroup$
    – Duston
    Feb 2, 2022 at 13:26
  • $\begingroup$ True, a standard high-side BJT can easily drive a small relay like this. Just need a current limiting resistor and a snubber diode. SS.SE has already answered this one, too. $\endgroup$
    – user21417
    Feb 2, 2022 at 13:33
  • $\begingroup$ @Bitbang3r Agree with comments above. You might consider a logic-level n mosfet instead of key. Logic high on uC pin turns the mosfet on hard and grounds the base of Q3 (in either rig shown). You may even be able to put that arrangement in parallel with the existing key, so that either (or both) will ground Q3?? $\endgroup$
    – Buck8pe
    Feb 2, 2022 at 14:15

2 Answers 2

2
$\begingroup$

Keying to ground is simple enough with a single transistor and a resistor. This will work at 3.3 or 5 volts.

schematic

simulate this circuit – Schematic created using CircuitLab

The Pixie seems to put all the PA current through the key, so you might use a smaller resistor, 220 ohms, to guarantee the transistor is saturated.

You could also use a MOSFET if you have a logic-level one in your junk box, the circuit is the same but no resistor required.

A small capacitor might reduce the amount of RF noise from the micro leaking into the radio circuit, but that will be a problem even just putting them anywhere near each other. Better might be to use an opto-isolator. For the 49-er you could probably use it with no external driver:

schematic

simulate this circuit

Choose an isolator with a photo-transistor, not a photo-diode, and for the Pixie, you need to check whether its maximum current and "on" resistance will be good enough.

$\endgroup$
1
$\begingroup$

You could comfortably switch the Pixie directly, because the voltage on the base of Q3 when the key is open would be only 3.4 V when the supply voltage is 16 V. That voltage is set by the R5/R6 voltage divider. The current should be much less than the 20 mA (if my memory serves me correctly) that the microcontroller pin is capable of sourcing or sinking.

The Forty-9er has a full 12 V on the key, so you'd want a transistor for that. If it were my project I'd throw in a transistor for a Pixie anyway, in the hope that an accidental voltage transient would fry the transistor instead of the microcontroller.

Here's how to do it with an NPN. (This is my first time inserting a schematic, and I don't know how to make it smaller, sorry; if anyone wants to edit my question to make it smaller, please go ahead.) Any old generic switching transistor such as a 2N2222 or a 2N3904 would work. (I miss being able to buy them at Radio Shack...) R1 limits the current through the transistor. R2 limits the current through the base of the transistor.

schematic

simulate this circuit – Schematic created using CircuitLab

Doing it with a MOSFET would also be simple:

schematic

simulate this circuit

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .