Arduino/Morse Code Circuit
From charlesreid1
Overview
Here's a block diagram of what this circuit will look like. The Arduino sends voltages through its output pins to control an I2C LCD screen (see , where it prints the letters that it has sent and its current words per minute (WPM) sending speed, and a piezoelectric speaker, which will generate the morse code output:
Eventually this will also include an input potentiometer, but for now we're building this to send at a fixed WPM speed.
Let's review each part of this circuit.
The Arduino Code
The pseudocode running on the Arudino will be picking letters at random, sending them to the speaker, then updating the display with the letter. The pseudocode for the Arduino sketch, then, will look something like this:
Include libraries
Set pins
Setup:
Set CW speed
Set fixed messages
Loop:
Read speed potentiometer (if applicable)
Set CW speed (if applicable)
Randomly select character
Send character to morse code speaker
Update display message