Skip to content
/ morse Public

Morse Communication on an Arduino

License

Notifications You must be signed in to change notification settings

etn406/morse

Repository files navigation

Morse Communication on an Arduino

Morse Characters

Characters A-Z, 0-1, .?!@ and spaces are supported.

String to Morse

The sentence is (for now) defined in the morse.ino file. It is processed in morseencrypt.cpp to be turned into a MorseSentence object, itself containing MorseWords, each word containing MorseCharacters, and each character containing units that are dots or dash.

Morse Transmission

I'll use a laser to transmit the morse sequence, but a led perfectly fits for testing purposes. The transmission is processed in morsetransmit.cpp by the MorseTransmission class, using a MorseSentence object. The method MorseTransmission::loop() is non-blocking, and must be called in the main loop of the Arduino code.

The parameters of MorseTransmission are:

  • int timeUnit: the duration of a morse dot.
  • int dotOutputPin: the pin turned on to display morse dots.
  • int dashtOutputPin: the pin turned on to display morse dashs (can be the same as dotOutputPin).

To Do: Morse Reception

About

Morse Communication on an Arduino

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages