Arduino IDer

ider2
This is an improved version of the “Simple IDer ” sketch I included in my QST article Jan. 2017. I was asked for and have added a Keyer output to key a CW transmitter. Please check your rigs specs for proper installation.
The Arduino sketch will work on UNO and NANO boards:  simple-cw-ider
The IDer is intended for Ham radio use.  As the Arduino circuit is drawn pressing the button will activate the sketch’s timer and 5 seconds later will sent a CW message (AA5OY).
The sketch’s parameters can be changed manually in the following lines of code.
The timer length adjusts the timer’s duration in seconds or can be set to zero for no timer. The length of the timer isn’t exact and will need to be tested for the correct duration.
int timerLng = 5; // set length of timer in seconds
The WPM speed of the CW message can be changed in line:
int dit = 56; // adjust WPM speed here, Slow =  100 (Approx. 5 WPM) and  Fast = 35 (Approx. 20 WPM)
The tone of the CW message can be changed in line:
int freq = 900; //CW tone frequency (500 – 900)
Use the list of letter/number  encoding values (listed at bottom of the sketch) to replace the message in “PLACE MESSAGE HERE” line of code.
/////////// PLACE MESSAGE HERE  ////////////////////////////
char message []={0x06, 0x06, 0x20, 0x0f, 0x1d}; //message = “AA5OY”
////////////////////////////////////////////////////////////
/////////// NEW  MESSAGE  ////////////////////////////
char message []={0x0, 0x0, 0x15, 0x1b, 0x0, 0x15, 0x1b, 0x0, 0x15, 0x1b, 0x0, 0x9, 0x2, 0x0, 0x6, 0x6, 0x20, 0xf, 0x1d, 0x0, 0x6, 0x6, 0x20, 0xf, 0x1d, 0x0, 0x6, 0x6, 0x20, 0xf, 0x1d, 0x0 }; //new message = ” cq cq cq de AA5OY AA5OY AA5OY “
////////////////////////////////////////////////////////////
 To ease the message conversion I have written a small command line program. The program allows you to enter a line of text which it outputs to a text file. Then Copy and Paste the Hex codes  from the text file into the Ider Sketch.  CodeFile.zip
The Arduino IDer has  two output pins  tone and CW.  The first is a tone output, pin A5 ,  which plays a tone for FM , AM and SSB modes. Connect  the tone pin A5 to mic/line input of your radio. If the radio uses mic input the Arduino’s output maybe too high and the use of  an audio pad maybe necessary. When using tone output to automatically sent a CW message it will require an additional PTT connection (T1) to key the radio’s PTT circuit. The second is pin 11 for CW Keyer output.  Connect the CW (T2) to Key input of your radio.  Both CW and tone circuits work simultaneously and usually only one (tone or CW) will be needed.
In the drawing there two circuits which you may find useful. One is a PTT transistor T1 circuit, whos base resistor is  connected to the Arduino’s PTT pin A10 . The collector of transistor T1  transmits a ground to the radio’s PTT circuit.  In the case of Keyer transistor T2  the base resistor is connected to the Arduino’s Keyer pin 11 and the collector to the radio’s Keyer circuit. That being said, there are many PTT/Keyer circuits out there.  Be sure to check your radio’s specs for proper installation.
The radio’s connections are beyond the scope of this discussion and are left to the end user for proper installation. A word of caution: the transistors have limited current handling characteristics which may not be suitable for all applications. Some  might prefer other designs such as relays or Opto Isolators to name a few.