SOS Núria

SOS Núria is a 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 i'm going to explain the intructions of the Morse code:

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 cliking the device administrator (administrador dedispositivos).
  3. Select the unknow device (arduino).
  4. Click the rigth button over "unknowndevice" andupdate the arduino driver.
  5. Click on the option "Search drivers in the computer".
  6. Findthe location of the arduino drivers, inside the arduino folder selectdrivers 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 hundret miliseconds the dash will be three times more, that is six hundret miliseconds.
  10. digitalWrite(13, HIGH);//turn on the light delay(600); // Wait for 600 millisecond(s)= a dash. This code turns on the light during six hundret miliseconds
  11. digitalWrite(13, HIGH);//turn on the light delay(200); // Wait for 200 millisecond(s)= a dot. This code turns on the light during two hundret miliseconds
  12. The space between words is seven times a dot delay(1400); // Wait for 1400 millisecond(s)= seven dots. This code crates the empty space with on lights between two words
  13. Firmata is the most important fileware, he implements yhe firmata protocol for comunicating, this allows you to write costume firware, in the future it willbe very importantto change the internal control of anydevice.

  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)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(200); //Wait for 200 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(200); //Wait for 200 millisecond(s)off
  
  //space between words is seven times a dot 
  delay(1400);//Wait for 1400 millisecond(s)=  seven dots
  
}