Project showcase
Morse Code ( S.O.S )

Morse Code ( S.O.S )

This an automatic morse code which can be used in different situations and projects like ( ROV, Drones ..etc )

  • 5,602 views
  • 0 comments
  • 6 respects

Components and supplies

About this project

I have just started using Arduino few months ago, and I admitted it's away easier than other embedded systems. However, I felt like I want to share with you my experience of getting to Arduino.

First, I started with a book called "30 Arduino projects for Evil genius" and "Simply Arduino" and "C for Arduino", I started simple projects from examples until I finished it all and now I made this MORSE CODE (S.O.S) which I thought would be a start to post more projects here on hackster.

Thank you for reading.

Ps: You can use a lamp instead of LED but you will have to use a Relay Module then :)

Code

MORSE CODE (S.O.S)C/C++
This an automatic Morse code Which can be used in different situations and projects
int ledPin = 13;
// LED connected to digital pin 13
void setup()
{
pinMode(ledPin, OUTPUT);
  
}
void flash(int duration)
{
digitalWrite(ledPin, HIGH);
delay(duration);
digitalWrite(ledPin, LOW);
delay(duration);

}

void loop()
{
flash(200); flash(200); flash(200);
// S
delay(300);
// otherwise the flashes run together*//
flash(500); flash(500); flash(500);
// O
flash(200); flash(200); flash(200);
// S
delay(1000);
// wait 1 second before we start
}

Comments

Similar projects you might like

Morse Code Translator

Project showcase by Team ONYX

  • 10,212 views
  • 2 comments
  • 15 respects

Morse Code Transmitter - Light Signal

Project showcase by Alireza Karkon

  • 2,200 views
  • 1 comment
  • 7 respects

Morse Code Communication Using Arduino

Project tutorial by Jalal_Mansoori

  • 2,701 views
  • 7 comments
  • 19 respects

Adaptive LED Morse Code Decoder and Timer Interrupt

Project tutorial by shjin

  • 1,359 views
  • 0 comments
  • 12 respects

Morse Code Transceiver

Project tutorial by Achindra Bhatnagar

  • 15,093 views
  • 13 comments
  • 88 respects

Morse Code Receiver

Project showcase by Alireza Karkon

  • 3,386 views
  • 5 comments
  • 23 respects
Add projectSign up / Login