Morse Code Sender

by TechMartian in Circuits > Arduino

3513 Views, 18 Favorites, 0 Comments

Morse Code Sender

IMG_20170827_204451.jpg

This is a device that sends morse code signals giving a short beep for a dot and a long beep for a dash, just like the way it was in the old days. I have designed it to function more like an encoding and decoding game for those who want to practice morse code.

This is particularly useful for you if you wan to hash our your morse code sending and decoding abilities. It could also be used in a game of wits and speed, who's faster, you or texting?!

BoM

IMG_20170827_203009.jpg
  • Arduino
  • Push Button Switches
  • Breadboard
  • Buzzer
  • Jumper Wires

Wiring

IMG_20170827_203309.jpg
IMG_20170827_203306.jpg
IMG_20170827_203323.jpg
IMG_20170827_203255.jpg
IMG_20170827_203357.jpg

Follow the table below for the connections needed for the morse code sender circuitry.

I/OPin #Arduino Pin #
Buzzer*19
Buzzer*2GND**
Switch - Blue 16
Switch - Blue2GND**
Switch - Green VCC 7
Switch - GreenGNDGND**

* The order is arbitrary.

* There are multiple ground pins on the Arduino board

Code

Screen Shot 2017-08-27 at 8.45.37 PM.png
const int buzz = 9;
const int switch1 = 6;
const int switch2 = 7;
void setup() {
  pinMode (buzz, OUTPUT);
  pinMode (switch1, INPUT);
  pinMode (switch2, INPUT);
}
void loop() {
  if (switch1 == LOW){
    tone(buzz, 1000, 50);
    delay (50);
    noTone(buzz);
  } else if (switch2 == LOW){
    tone (buzz, 1000, 100);
    delay(100);
    noTone(buzz);
  } 
}

Enjoy!

IMG_20170827_204445.jpg

Tap away! Try to outspend your text-addicted buddy with your old fashioned way of communication.

I actually saw a contest a number of years ago (when messenger wasn't even a thing) on who's faster at messaging, a morse code expert vs an expert texter teenager (with those old flippy phones and 9 buttons for texting....yeah, no touch screen back in the day) and guess who won? Morse Code!!!