Anjali Shaw
Published © GPL3+

Sos signal aka dih*3 dah*3 dih*3

Have u wondered about that SOS SIGNALS made during emergencies we are going to represent the same using leds we can also use passive buzzer

BeginnerFull instructions provided15 minutes250
Sos signal aka dih*3 dah*3 dih*3

Things used in this project

Story

Read more

Schematics

here is a clear circuit diagram you can look for it

Code

code for the same

Arduino
here is the code provided its better you write it once as it will give you a better understanding
int led=11;
int Dih=150;
int Dah=1500;
int Delay=2000;


void setup() 
{
  pinMode(led,OUTPUT);
  
  // put your setup code here, to run once:

}

void loop() 
{
  for (int i=0;i<3;i++)
  {
     dih();
  }
  delay (Delay);
  for (int i=0;i<3;i++)
  {
     dah();
  }
  delay (Delay);
  for (int i=0;i<3;i++)
  {
     dih();
  }
  delay (Delay);
  // put your main code here, to run repeatedly:

}
void dih()
{
  digitalWrite(led,HIGH);
  delay(Dih);
  digitalWrite(led,LOW);
  delay(Dih);

}
void dah()
{
  digitalWrite(led,HIGH);
  delay(Dah);
  digitalWrite(led,LOW);
  delay(Dah);
  
  
}

Credits

Anjali Shaw

Anjali Shaw

8 projects • 1 follower

Comments