Hackster is hosting Hackster Holidays, Ep. 7: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Friday!Stream Hackster Holidays, Ep. 7 on Friday!
pianoplayer7rramont3Shaubrich14
Published © GPL3+

Emergency SOS LED Light

Need help? Let everyone know with this simple Morse code project.

BeginnerShowcase (no instructions)2,449
Emergency SOS LED Light

Things used in this project

Story

Read more

Schematics

Fritzing Diagram

Code

Morse Code SOS

Arduino
void setup() {
  pinMode(13, OUTPUT);
}

void loop() {
  int ledPin = 13;
  digitalWrite(ledPin, HIGH);
  delay(100);
  digitalWrite(ledPin, LOW);
  delay(200);
  digitalWrite(ledPin, HIGH);
  delay(100);
  digitalWrite(ledPin, LOW);
  delay(200);
  digitalWrite(ledPin, HIGH);
  delay(100);
  digitalWrite(ledPin, LOW);
  delay(300);
  digitalWrite(ledPin, HIGH);
  delay(500);
  digitalWrite(ledPin, LOW);
  delay(200);
  digitalWrite(ledPin, HIGH);
  delay(500);
  digitalWrite(ledPin, LOW);
  delay(200);
  digitalWrite(ledPin, HIGH);
  delay(500);
   digitalWrite(ledPin, LOW);
  delay(300);
  digitalWrite(ledPin, HIGH);
  delay(100);
  digitalWrite(ledPin, LOW);
  delay(200);
  digitalWrite(ledPin, HIGH);
  delay(100);
  digitalWrite(ledPin, LOW);
  delay(200);
  digitalWrite(ledPin, HIGH);
  delay(100);
  digitalWrite(ledPin, LOW);
  delay(2000);
}

Credits

pianoplayer7
0 projects • 2 followers
rramont3
0 projects • 2 followers
Shaubrich14
0 projects • 3 followers

Comments