SOS ARDUINO ROCIO

This is a pratical project using Arduino and a LED in order to give a message in Morse code.

Here's how Morse code works:

Here's how to create a code with Arduino to tourn on and off a LED light with a SOS signal:

  1. Download the Arduino at this link
  2. Understand the rules of Morse code
  3. Convert the rules of Morse in Arduino instructions
  4. Open the Arduino software
  5. Connect a LED in pin number 13 and GND of the Arduino board like this image
  6. To work with Arduino you need to open the Device administrator (administrador de dispositivos)
  7. To recognize Arduino board by the computer please click right bottom over unknown device (dispositivo desconocido) and click on update driver software
  8. A window will open and find the location of arduino
  9. Click the browse, to click on drivers
  10. In the folder ARDUINO click and arduino 1.8.5 and it will open and click in DRIVERS and click in the Accept it
  11. Click on the Drivers (They are necessary for printers, scanners, graphics card, sound, network, motherboard, etc. to work) Firmata is a protocol for communicating with microcontrollers from software on a computer (or smartphone/tablet, etc).
  12. And it will open the location that interests us to work with arduino (Drivers) (They are small controllers that control things. For example the washing machine turns. The microcontrollers make this work correctly. And not only the microcontrollers there are many things behind.)
  13. Having the location with which we will work, we will accept
  14. Inside the Arduino app we go to tool and go down to port. We select the port with which we want to work
  15. We must be sure to take the port(COM3 Arduino/Genuino Uno) so that it works well I can recognize it

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

void loop()
{//S...
  digitalWrite(13, HIGH);
  delay(200); // Wait for 200 millisecond(s)
  digitalWrite(13, LOW);
  delay(200); // Wait for 200 millisecond(s)
  digitalWrite(13, HIGH);
  delay(200); // Wait for 200 millisecond(s)
  digitalWrite(13, LOW);
  delay(200); // Wait for 200 millisecond(s)
  digitalWrite(13, HIGH);
  delay(200); // Wait for 200 millisecond(s)
  digitalWrite(13, LOW);
  delay(200); // Wait for 200 millisecond(s)
  //Space between letters 600ms
  delay(600); 
  //O---
  digitalWrite(13, HIGH);
  delay(600); // Wait for 600 millisecond(s)
  digitalWrite(13, LOW);
  delay(600); // Wait for 600 millisecond(s)
  digitalWrite(13, HIGH);
  delay(600); // Wait for 600 millisecond(s)
  digitalWrite(13, LOW);
  delay(600); // Wait for 600 millisecond(s)
  digitalWrite(13, HIGH);
  delay(600); // Wait for 600 millisecond(s)
  digitalWrite(13, LOW);
  delay(600); // Wait for 600 millisecond(s)
  //Space between letters 600ms
  delay(600);
  //S...
  digitalWrite(13, HIGH);
  delay(200); // Wait for 200 millisecond(s)
  digitalWrite(13, LOW);
  delay(200); // Wait for 200 millisecond(s)
  digitalWrite(13, HIGH);
  delay(200); // Wait for 200 millisecond(s)
  digitalWrite(13, LOW);
  delay(200); // Wait for 200 millisecond(s)
  digitalWrite(13, HIGH);
  delay(200); // Wait for 200 millisecond(s)
  digitalWrite(13, LOW);
  delay(200); // Wait for 200 millisecond(s)
  //Space between word 1400ms
  delay(1400);
  //R.-.
  digitalWrite(13, HIGH);
  delay(200); // Wait for 200 millisecond(s)
  digitalWrite(13, LOW);
  delay(200); // Wait for 200 millisecond(s)
  digitalWrite(13, HIGH);
  delay(600); // Wait for 200 millisecond(s)
  digitalWrite(13, LOW);
  delay(600); // Wait for 200 millisecond(s)
  digitalWrite(13, HIGH);
  delay(200); // Wait for 200 millisecond(s)
  digitalWrite(13, LOW);
  delay(200); // Wait for 200 millisecond(s)
  //Space between letters 600ms
  delay(600);
  //O---
  digitalWrite(13, HIGH);
  delay(600); // Wait for 600 millisecond(s)
  digitalWrite(13, LOW);
  delay(600); // Wait for 600 millisecond(s)
  digitalWrite(13, HIGH);
  delay(600); // Wait for 600 millisecond(s)
  digitalWrite(13, LOW);
  delay(600); // Wait for 600 millisecond(s)
  digitalWrite(13, HIGH);
  delay(600); // Wait for 600 millisecond(s)
  digitalWrite(13, LOW);
  delay(600); // Wait for 600 millisecond(s)
  //Space between letters 600ms
  delay(600);
  //C-.-.
  digitalWrite(13, HIGH);
  delay(600); // Wait for 600 millisecond(s)
  digitalWrite(13, LOW);
  delay(600); // Wait for 600 millisecond(s)
  digitalWrite(13, HIGH);
  delay(200); // Wait for 600 millisecond(s)
  digitalWrite(13, LOW);
  delay(200); // Wait for 600 millisecond(s)
  digitalWrite(13, HIGH);
  delay(600); // Wait for 600 millisecond(s)
  digitalWrite(13, LOW);
  delay(600); // Wait for 600 millisecond(s)
  digitalWrite(13, HIGH);
  delay(200); // Wait for 600 millisecond(s)
  digitalWrite(13, LOW);
  delay(200); // Wait for 600 millisecond(s)
  //Space between letters 600ms
  delay(600);
  //I..
  digitalWrite(13, HIGH);
  delay(200); // Wait for 600 millisecond(s)
  digitalWrite(13, LOW);
  delay(200); // Wait for 600 millisecond(s)
  digitalWrite(13, HIGH);
  delay(200); // Wait for 600 millisecond(s)
  digitalWrite(13, LOW);
  delay(200); // Wait for 600 millisecond(s)
  //O---
  digitalWrite(13, HIGH);
  delay(600); // Wait for 600 millisecond(s)
  digitalWrite(13, LOW);
  delay(600); // Wait for 600 millisecond(s)
  digitalWrite(13, HIGH);
  delay(600); // Wait for 600 millisecond(s)
  digitalWrite(13, LOW);
  delay(600); // Wait for 600 millisecond(s)
  digitalWrite(13, HIGH);
  delay(600); // Wait for 600 millisecond(s)
  digitalWrite(13, LOW);
  delay(600); // Wait for 600 millisecond(s)
  //Space between words 1400ms
  delay(1400);
}