valnaut
Published © GPL3+

Make a S.O.S signal using LED and Arduino

Send a S.O.S signal using Morse Code with just a breadboard, led & Arduino Uno

BeginnerProtip7,126
Make a S.O.S signal using LED and Arduino

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Breadboard (generic)
Breadboard (generic)
×1
LED (generic)
LED (generic)
×1
Resistor 330 ohm
Resistor 330 ohm
×1
9V battery (generic)
9V battery (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
9V Battery Clip
9V Battery Clip
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

LedSOSv2

ledsosv2_WMd7V0X8mB.fzz

LedSOSv2

Code

LedSOSv2

Arduino
int redLED = 13; // Setting Value of redLED as 13
int dit = 150; // Setting Value of dit as 150
int dah = 500; // settiing Value of dah as 500
int longWait = 1000; // setting value of longW as 1000

void setup() {
pinMode (redLED,OUTPUT); // defining RedLED as OUTPUT
}
void loop() {
  
// DIT

digitalWrite (redLED,HIGH);
delay(dit);
digitalWrite (redLED,LOW);
delay(dit);

//DIT

digitalWrite (redLED,HIGH);
delay(dit);
digitalWrite (redLED,LOW);
delay(dit);

//DIT

digitalWrite (redLED,HIGH);
delay(dit);
digitalWrite (redLED,LOW);
delay(dah);

//DAH


digitalWrite (redLED,HIGH);
delay(dah);
digitalWrite (redLED,LOW);
delay(dah);

//DAH

digitalWrite (redLED,HIGH);
delay(dah);
digitalWrite (redLED,LOW);
delay(dah);

//DAH

digitalWrite (redLED,HIGH);
delay(dah);
digitalWrite (redLED,LOW);
delay(dah);

//Giving a Gap before restarting

delay(longWait);
}

Credits

valnaut

valnaut

2 projects • 1 follower

Comments