As promised i posted the sketch for the CW encoder in the appendix of this mail. Make sure to input all the text in capitals
otherwise the app will send "nothing" :-)
For translating chars to morse code i transformed a sketch from Mark VandeWettering from
Actually to produce Thie "dit" and "dashes" i extended the sketch from brainwagon with the following peace of code:
void
dash()
{
rf22.setFrequency(Frequency);
rf22.setTxPower(RF22_TXPOW_17DBM);
rf22.setModeRx();
delay(DOTLEN);
rf22.setModemConfig(RF22::UnmodulatedCarrier);
rf22.setModeTx();
delay(DASHLEN);
}
void
dit()
{
rf22.setFrequency(Frequency);
rf22.setTxPower(RF22_TXPOW_17DBM);
rf22.setModeRx();
delay(DOTLEN);
rf22.setModemConfig(RF22::UnmodulatedCarrier);
rf22.setModeTx();
delay(DOTLEN);
}
For the rest i only extended the sketch with the posibility to process the string comming from a serial console.
I also included a wave file so you can hear the outcome.
Question:
There is an audible drift of the unmodulated carrier signal (i guess), so i am wondering if there is
a possibility to get this audible signal at a fixed audio frequency
or did i something wrong? I would like to here something like a "Pip piiip" :-)
Cheers Sash