Difference between revisions of "How to Use Microduino to Transmit Morse Code"

From Microduino Wiki
Jump to: navigation, search
(Created page with "{| style="width: 800px;" |- | ==Purpose== This tutorial will show you how to use Microduino to transmit Morse code. ==Equipment== {|class="wikitable" |- |Module||Number|...")
 
Line 116: Line 116:
 
==Video==
 
==Video==
  
http://v.youku.com/v_show/id_XODU4Nzc0MDUy.html
+
 
 
|}
 
|}

Revision as of 08:52, 8 July 2016


Purpose

This tutorial will show you how to use Microduino to transmit Morse code.

Equipment

Module Number Function
Microduino-Core 2 Core board
Microduino-USBTTL 2 Program download


  • Other Equipment
10K Ω resistor One
220 Ω resistor One
Breadboard jumper One box
micro USB cable One
LED One
Photosensitive resistor One
Breadboard One
Steering engine One

Morse Code

MorseCodeTable.jpg


Schematic

Test 1:

LightTransferMorseSechmatic1.png

The left and the right are transmitting and receiving end respectively.

Test 2:

LightTransferMorseSechmatic2.png


Program

[MicroduinoMorse]

Debugging

Test 1:

Step 1: Build the circuit according to Test 1, as follows:

MicroduinoMorse1 1.png

Step 2: Download the code of Test 1.

Code of transmitting end: MicroduinoMorseSender.ino

Code of receiving end: MicroduinoMorseReciver.ino


Step 3: Compile and run the code of Test 1. If you find compile errors in MicroduinoMorseSender.ino, that is because the lack of Morse function library [arduinomorse].


MicroduinoMorse2 1.png

Step 4: The initializing password of the program is abcd. You can check the receiving information in the serial output of the receiving end.


Test 2:

Step 5: Build the circuit according to Test 2, as follows:

MicroduinoMorse3 1.png

Step 6: Download the code of Test 2.

Android phone app:app-debug.apk

Android phone app receiving end: MicroduinoFlashMorsReciver.ino

Step 7: Compile and run the code of Test 2.

Step 8: Install FlashMorse.apk in your android phone. And if there is app icon below, it means successful installation:

MicroduinoMorse5.jpg

Step 9: Open app with initial interface. First, you need to input the password you want to set. (Since the initial password in the receiving end is abcd, so here you’d better input abcd.):

MicroduinoMorse61.png

Click and enter. Put the flashing light of the phone close to the photosensitive resistor and then click ”switch” button:

MicroduinoMorse71.png
Meantime, the flashing light will send Morse code according to flashing frequency.
MicroduinoMorse81.png

You can tell Morse code receiving by checking whether the steering engine runs or not.

Step 10: By change the password of the program, you can reset your own password:
MicroduinoMorse9.jpg
MicroduinoMorse10.jpg

Result

The transmitting end can deliver Morse code by light transmission and the receiving end can tell if it is the fixed password by photosensitive resistor and then react correspondingly.

Video