Nibbles and Bits
The Care and Feeding of My Pet Arduino


by Budd Churchward - WB7FHC - NIBBLES AND BITS LIBRARY


Teaching Arduino to Copy Morse Code

«  1  2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 »

Section 1 - Introduction
This project is a little more challenging than others that you will find in our Arduino Library. Our goal is to teach Arduino to copy Morse Code. We will use the same hardware setup that we created in the Morse Code Oscillator project.

To copy Morse Code we are going to manipulate each of the binary digits (bits) in a binary number. We will make use of a great function that lets us shift bits sideways, changing the value of the number instantly. We will talk about bit streams and we will work with character arrays.

Our final product will be a sketch that can actually copy the code that you send with your key. And it will automatically adjust itself to your sending speed.

We are going to start with our simple Morse Code Oscillator. If you don't have it wired up or need the sketch, click the link in this paragraph and put it together. It is a quick project and we will see you right back here soon.

Next Section »