项目创意

自制Arduino摩斯码解码器 你以为你是007吗

字号+ 作者:duino123.com 来源:未知 2016-04-28 11:05 我要评论( )

通过本示例你可以学到关于摩斯密电码的知识,利用Arduino做个小机构实现加密解密能让你更轻松有趣的获得知识,或许特殊情况下还能让你大展身手!007快来吧!

PLCLIVE.COM:
通过本示例你可以学到关于摩斯密电码的知识,利用Arduino做个小机构实现加密解密能让你更轻松有趣的获得知识,或许特殊情况下还能让你大展身手!007快来吧!




 

Step 1: 什么是摩斯码



Morse code has been in use for more than 160 years—longer than any other electrical coding system, and provided an essential means of communication. Some people have even called it the Victorian Internet because it enabled world-wide communications in a way never before possible. Morse code is a method of transmitting text information as a series of on-off tones, lights, or clicks that can be directly understood by a skilled listener or observer without special equipment.

Each letter and numeral is represented by a unique sequence of dots and dashes. The duration of a dash is three times the duration of a dot. Each dot or dash is followed by a short silence, equal to the dot duration. The letters of a word are separated by a space equal to three dots (one dash), and the words are separated by a space equal to seven dots.

摩斯码为何如此重要?

Before the invention of Morse Code and the telegraph, messages were still handwritten and carried by horseback. Morse Code changed the way we communicated. In the time of its invention, it was the fastest long distance form of communication.

Morse Code allowed for ships at sea to communicate over long distances using large lights. Morse Code was especially pivotal during the second World War because it greatly improved the speed of communication. Naval war ships were able to communicate with their bases and provide critical information to each other. War planes also used Morse Code to detail locations for enemey ships, bases, and troops and relay them back to headquarters.

时至今日摩斯码还在使用吗?

Morse Code is still widely recognized, even if it is not as widely used as it once was. Morse code is still popular among amateur radio enthusiasts, although proficiency in Morse Code is no longer a requirement to obtain your amateur radio license.
Morse Code is most prevalent in Aviation and Aeronautical fields since radio navigational aids such as VOR's and NDB's still identify in Morse Code. The US Navy and Coast Guard still use signal lamps to communicate via Morse Code. Morse Code has also been used as an alternative form of communication for people with disabilities or whom have their abilities to communicate imparied by stroke, heart attack, or paralysis. There have been several cases where individuals have been able to use their eyelids to communicate in Morse Code by using a series of long and quick blinks to represent that dots and dashes.

The SOS is the most easy example that we can find, everybody (or most people), know the famous "Save Our Souls" message. It has served a lot of people.

 
 

Step 2: 材料清单



  • Arduino Board
  • 1 breadboard
  • Some jumpers wires
  • LCD with I2C
  • 1 resistance of 220Ω
  • 1 resistance of 100Ω
  • 1 buzzer
  • 1 blue LED

Step 3: 电路连接





  1. Connect the VCC and GND of your arduino board to the respective lines of alimentation in your breadboard
  2. Put a resistance of 100 Ω in your breadboard,then attach a wire to the pin 8 of your arduino board and connect it to the resistance.
  3. Put the positive pin of the buuzer in the negative node of your resistor (by kirchhoff law, the negative node is where there is a negative voltaje drop), and then connect the negative pin of the buzzer to GND.
  4. Connect in parallel ,respect to buzzer, the blue LED and add to this a pull up resistance of 220 Ω, then attach the negative pin of the led to GND.
  5. Finally, connect the LCD to the respect pins of you arduino board, I mean: VCC to VCC, GND to GND, SDA to SDA, and SCL to SCL.
  6. Good work, we have finished the circuit!! Now, we need to write the code =D

Step 4: 程序



源程序下载:
Morse.ino


Step 5: 测试

Now, we have to compile and chargue the program in our arduino. The operation is simple, we have to send a message through the Serial Monitor, and then the LED and the buzzer must flash and sound in the respective morse code respect the message sent. 好了,赶快给我们发送你成功的消息吧。能发出我们网址 plclive.com 的同学来领奖!

如需更详细资料,如有好资源分享,请加入QQ交流群:214461008

欢迎阅读,欢迎转载,不用注明出处!本站只提供入门和进阶资料,做您学习的小伙伴!

老司机也欢迎光临指导!有好内容请加群:214461008 不要看声明了,看内容吧!

相关文章
  • 利用电视遥控器控制Arduino

    利用电视遥控器控制Arduino

    2016-05-13 17:27

  • ESP8266 Arduino气象站

    ESP8266 Arduino气象站

    2016-04-28 18:44

  • 简化到不能再简化的Arduino

    简化到不能再简化的Arduino

    2016-04-28 16:50

  • 10块钱成本自制Arduino淘宝商家别怪我

    10块钱成本自制Arduino淘宝商家别怪我

    2016-04-28 16:24

网友点评
Arduino