stannano
Published © Apache-2.0

Use Morse Code on an LED!!

This example shows S.O.S in Morse code!

BeginnerFull instructions provided5,497
Use Morse Code on an LED!!

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
LED (generic)
LED (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Breadboard, 170 Pin
Breadboard, 170 Pin
10 Pc. Jumper Wire Kit, 5 cm Long
10 Pc. Jumper Wire Kit, 5 cm Long

Story

Read more

Schematics

The schematic

Code

S.O.S Code

Arduino
int ledPin = 13;

void setup()
{
pinMode(ledPin, OUTPUT);
  
}
void flash(int duration)
{
digitalWrite(ledPin, HIGH);
delay(duration);
digitalWrite(ledPin, LOW);
delay(duration);

}

void loop()
{
flash(200); flash(200); flash(200);

delay(300);

flash(500); flash(500); flash(500);

flash(200); flash(200); flash(200);

delay(1000);

}

Credits

stannano
5 projects • 3 followers
Contact

Comments

Please log in or sign up to comment.