SOS Camila

SOS Camila is an arduino code capable of switching on and off a LED with Morse Code.

Here's how you can make bold and italic text.

Here's how the Morse Code works:

Here's how the Morse Code works with arduino programming language:

  1. Download the arduino software at this link.
  2. Check the drivers by clicking the device administrator (administrador de dispositivos).
  3. Select the unknown device (arduino).
  4. Click the right button over "unknown device" and update the arduino driver.
  5. Click on the option "Search drivers in the computer".
  6. Find the location of the arduino drivers, inside the arduino folder select drivers folder and click "next".
  7. Say yes to driver installation.
  8. Access to Arduino Software and click in "Tools", then, select the "Arduino Board" and the "Port".
  9. We need to decide how long does it take to produce a dash and a dot. If the dot is two hundred miliseconds the dash will be three times more that is six hundred miliseconds.
  10. digitalWrite(13, HIGH);//Turn on the light delay(600); //Wait for 600 milisecond(s)= a dash. This code turns on the light during six hundred miliseconds.
  11. digitalWrite(13, HIGH);//Turn on the light delay(200); //Wait for 200 milisecond(s)= a dot. This code turns on the light during two hundred miliseconds.
  12. //Space between words is seven times a dot delay(1400); //Wait for 1400 milisecond(s)= seven dots. This code creates the empty space with no lights between two words.
 
  void setup(){
 pinMode (13, OUTPUT);
}   
   void loop (){
   
  
  // S
    digitalWrite(13, HIGH);//turn on the light
  delay(200); // Wait for 200 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(200); // Wait for 200 millisecond(s)// O
    digitalWrite(13, HIGH);//turn on the light
  delay(200); // Wait for 200 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(200); // Wait for 200 millisecond(s)off
    digitalWrite(13, HIGH);//turn on the light
  delay(200); // Wait for 200 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(600); // Wait for 600 millisecond(s)off

  // O
    digitalWrite(13, HIGH);//turn on the light
  delay(600); // Wait for 600 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(600); // Wait for 600 millisecond(s)off
    digitalWrite(13, HIGH);//turn on the light
  delay(600); // Wait for 600 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(600); // Wait for 600 millisecond(s)off  
    digitalWrite(13, HIGH);//turn on the light
  delay(600); // Wait for 600 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(600); // Wait for 600 millisecond(s)off
  
  //S
    digitalWrite(13, HIGH);//turn on the light
  delay(200); // Wait for 200 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(200); // Wait for 200 millisecond(s)off
    digitalWrite(13, HIGH);//turn on the light
  delay(200); // Wait for 200 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(200); // Wait for 200 millisecond(s)off
   digitalWrite(13, HIGH);//turn on the light
  delay(200); // Wait for 200 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(600); // Wait for 600 millisecond(s)off
  //space between words is seven times a dot
    delay(1400); // Wait for 1400 millisecond(s)= seven dots
  
  //C
    digitalWrite(13, HIGH);//turn on the light
  delay(600); // Wait for 600 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(600); // Wait for 600 millisecond(s)off
    digitalWrite(13, HIGH);//turn on the light
  delay(200); // Wait for 200 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(200); // Wait for 200 millisecond(s)off
    digitalWrite(13, HIGH);//turn on the light
  delay(600); // Wait for 600 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(600); // Wait for 600 millisecond(s)off
    digitalWrite(13, HIGH);//turn on the light
  delay(200); // Wait for 200 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(200); // Wait for 200 millisecond(s)off
    delay(600); // Wait for 600 millisecond(s)off
  
  //A
    digitalWrite(13, HIGH);//turn on the light
  delay(200); // Wait for 200 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(200); // Wait for 200 millisecond(s)off
    digitalWrite(13, HIGH);//turn on the light
  delay(600); // Wait for 600 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(600); // Wait for 600 millisecond(s)off
     
  
  //M
    digitalWrite(13, HIGH);//turn on the light
  delay(600); // Wait for 600 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(600); // Wait for 600 millisecond(s)off
    digitalWrite(13, HIGH);//turn on the light
  delay(600); // Wait for 600 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(600); // Wait for 600 millisecond(s)off 
     
  
  //I
    digitalWrite(13, HIGH);//turn on the light
  delay(200); // Wait for 200 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(200); // Wait for 200 millisecond(s)
    digitalWrite(13, HIGH);//turn on the light
  delay(200); // Wait for 200 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(200); // Wait for 200 millisecond(s)off
    delay(600); // Wait for 600 millisecond(s)off
    
    
  //L
    digitalWrite(13, HIGH);//turn on the light
  delay(200); // Wait for 200 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(200); // Wait for 200 millisecond(s)
    digitalWrite(13, HIGH);//turn on the light
  delay(600); // Wait for 600 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(600); // Wait for 600 millisecond(s)off  
    digitalWrite(13, HIGH);//turn on the light
  delay(200); // Wait for 200 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(200); // Wait for 200 millisecond(s)
    digitalWrite(13, HIGH);//turn on the light
  delay(200); // Wait for 200 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(200); // Wait for 200 millisecond(s)
    delay(600); // Wait for 600 millisecond(s)off
  
    //A
    digitalWrite(13, HIGH);//turn on the light
  delay(200); // Wait for 200 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(200); // Wait for 200 millisecond(s)off
    digitalWrite(13, HIGH);//turn on the light
  delay(600); // Wait for 600 millisecond(s)= a dot
  digitalWrite(13, LOW);//turn off the light
  delay(600); // Wait for 600 millisecond(s)off
   delay(1400); // Wait for 1400 millisecond(s)= seven dots
 }