Aurdino Morse Code

This intractable tells you how to build and code an Arduino board to light up an LED to spell out a word or phrase in Morse code using tinkercad.

Supplies:

Step 1: Step 1:Tinkercad

The first step is to create a tinkercad account. Tinkercad is a online program that allows you to build models of different projects when dealing with 3D printing and circuits. Once the account is made you have to click on the circuit button to then create a new project.

Note: all of the materials needed will be on the right hand side of the screen and can be dragged and positioned to the correct places.

Step 2: Step 2: Build the Circut

The next step is to put all the pieces together to create a circuit board that you can program to blink in a certain pattern. The picture above shows how your board should be set up.

Step 3: Step 3: Morse Code

Next is to figure out what your phrase translates to in Morse code. I recommend using this program online to do this.

Step 4: Step 4: Coding

Next you have to code the board to do what you want. First you need to click the code button and then get to the option where you input text. For my version I had dot has high frequency 1 second, dash was 2 second lower frequency, and the space in between was 1 sec low frequency (however you can change it to whatever you want). Below is the code that i used to do this project which you can use as a template.

Note: My code was used to light up the word Pluto in Morse code

void setup()
{ pinMode(13, OUTPUT); } void loop() { digitalWrite(13, HIGH); delay(1000); // Wait for 1000 millisecond(s) digitalWrite(13, LOW); delay(4000); // Wait for 4000 millisecond(s) digitalWrite(13, HIGH); delay(1000); // Wait for 1000 millisecond(s) digitalWrite(13, LOW); delay(1000); // Wait for 1000 millisecond(s) digitalWrite(13, HIGH); delay(1000); // Wait for 1000 millisecond(s) digitalWrite(13, LOW); delay(3000); // Wait for 3000 millisecond(s) digitalWrite(13, HIGH); delay(1000); // Wait for 1000 millisecond(s) digitalWrite(13, LOW); delay(1000); // Wait for 1000 millisecond(s) digitalWrite(13, HIGH); delay(1000); // Wait for 1000 millisecond(s) digitalWrite(13, LOW); delay(1000); // Wait for 1000 millisecond(s) digitalWrite(13, HIGH); delay(1000); // Wait for 1000 millisecond(s) digitalWrite(13, LOW); delay(1000); // Wait for 1000 millisecond(s) digitalWrite(13, HIGH); delay(1000); // Wait for 1000 millisecond(s) digitalWrite(13, LOW); delay(10000); // Wait for 10000 millisecond(s) }

Step 5: Step 5: Finish

Once this is done hit the simulate button to see if your code worked and make any chnages nessesary.

Then Enjoy!

Share

    Recommendations

    • Classroom Science Contest

      Classroom Science Contest
    • Party Challenge

      Party Challenge
    • Woodworking Contest

      Woodworking Contest

    Discussions