กลับไปหน้ารวมไฟล์
morse-code-communication-using-arduino-eb5a3e-en.md

IDEA Description

We all communicate with each other through our natural Sensors (tongue, Gesture...etc). The Exciting part starts when you want to share secret information to someone. Question is How to do it ?

So the answer lies in how you transmit information in such a way that even if a third Person looks at message he won't be able to understand Until and Unless he finds a key. For this purpose I used Morse Code Communication you can also use another way to accomplish this task.

What is Morse Code ?

Morse Code is a way of communication to pass information which is done by representing original letters to combination of dot. and dashes - Like A ->.- and B-> -...

For more information on Morse code click the link below

http://wrvmuseum.org/morsecodehistory.htm

Codes of English Letters

Why I Choose Morse Code ?

The Reason is Simple recently I watched a movie in which agent was passing information by clicking a button and at the receiving end other people were disclosing it. So I thought to make this with using Arduino and simple basic components.

How this Project Works ?

It is very Simple When you done making circuit on breadboard and uploaded Sketch. Click Serial Monitor and you will see it like below image

Serial Monitor Image

Follow the instructions and You are Ready to go

If you have any confusion Simply watch the demonstration video

Demonstration Video

Expanded Technical Details

The Morse Code Generator is a fantastic exercise in C++ string manipulation and array mapping. It requires the Arduino to iterate through a sentence letter-by-letter and look up the translation in an index to flash an LED.

Defining the Morse Timing Standard

Morse Code isn't random; it has strict mathematical timing rules based on a "Unit":

  • 1 Unit = The length of a "Dot."
  • A "Dash" = 3 Units.
  • Space between parts of a letter = 1 Unit.
  • Space between letters = 3 Units.
  • The Arduino code defines an integer unitDelay = 250; (milliseconds). Every single action in the program is a multiplier of this variable, guaranteeing a perfect, professional rhythm!

Character Arrays (Lookups)

How does the Arduino know 'A' is "Dot-Dash"?

  1. You create an array holding 26 strings representing the alphabet: String morseAlphabet[] = {".-", "-...", "-.-.", ...}.
  2. The user inputs a word like "SOS" into the Serial Monitor (as shown in the Serial Monitor image above).
  3. The Arduino breaks down the string into a character array ['S', 'O', 'S'].
  4. It converts 'S' to an ASCII integer, does some math to find its index (e.g., S is the 18th letter). It looks up slot 18 in the morseAlphabet array and finds ....
  5. It runs a for loop, sending three short 250ms bursts of 5V to the LED pin!

Component List

  • Arduino Uno/Nano: The translator.
  • An LED and Resistor.
  • An Active Piezo Buzzer: So you can hear the transmission as well as see it!

ข้อมูล Frontmatter ดั้งเดิม

apps:
  - "1x Arduino IDE"
author: "Jalal_Mansoori"
category: "Basic Electronics"
components:
  - "1x LED (generic)"
  - "1x Buzzer"
  - "2x Pushbutton switch 12mm"
  - "10x Jumper wires (generic)"
  - "1x Breadboard (generic)"
  - "4x Resistor 330 ohm"
  - "1x Arduino UNO"
description: "Tap into history! Build a machine that converts English text strings into precise timing delays and blinks out standard Morse Code via LED or Buzzer."
difficulty: "Intermediate"
documentationLinks: []
downloadableFiles:
  - "https://projects.arduinocontent.cc/216cd606-8841-4d5d-9ab5-e50f520c25a1.ino"
  - "https://projects.arduinocontent.cc/216cd606-8841-4d5d-9ab5-e50f520c25a1.ino"
encryptedPayload: "U2FsdGVkX19JU/WCb6oqg/6R7rWU9D8G3aKqWKsU2vS/uIy5d16qOVJUi30Kdi1+YY6jY8P6LETFW2EigBRnG8jW9fcVVJQymUAfh9bSwvI="
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/morse-code-communication-using-arduino-eb5a3e_cover.jpg"
lang: "en"
likes: 43
passwordHash: "d77d9f3a180b70fe0f3c09108a922aefdcca8f848b0aff1c5375cfef03c030df"
price: 1499
seoDescription: "Learn how to build a Morse code communication system using Arduino to translate Morse code into text."
tags:
  - "lights"
  - "security"
  - "communication"
title: "Morse Code Communication Using Arduino"
tools: []
videoLinks:
  - "https://www.youtube.com/embed/kG5OD9osJWM"
views: 72370