Aurdino Morse Code

by BrittJuno in Circuits > Arduino

2167 Views, 0 Favorites, 0 Comments

Aurdino Morse Code

th.jpg

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.

Step 1:Tinkercad

Untitled picture.png

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: Build the Circut

a.png

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: Morse Code

Untitled picture.png

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

Step 4: Coding

code.png

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: Finish

a.png

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

Then Enjoy!