From charlesreid1

No edit summary
Line 7: Line 7:
Eventually this will also include an input potentiometer, but for now we're building this to send at a fixed WPM speed.
Eventually this will also include an input potentiometer, but for now we're building this to send at a fixed WPM speed.


* There will not be an input potentiometer.
Let's review each part of this circuit.
* There will be an output to an I2C LCD display
 
* There will be an output to a piezo speaker.
==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:
 
<pre>
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
</pre>


The software:
* Start: need libraries, pin settings
* Setup: populate character array
* read speed potentiometer
* set CW speed
* randomly select character
* send character
* update scrolling LCD text





Revision as of 00:57, 20 July 2015

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:

Diagram MorseCodeGenerator.png

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