Close

Preliminary Code Testing

A project log for Puff-Suck interface for fast text input

A tube connected to a bipolar pressure switch drives an Arduino which translates puffing and sucking into Morse code and then into text.

anaAna 08/03/2018 at 00:570 Comments

The programming is almost done (and VERY messy, I'm going to have to clean it up), and I've began testing with an Arduino Mega 2560.

Some bugs I've noted:

Hopefully, they are all minor problems. I believe the first problem lies here:

void printPunctuation()
{
  byte pMark = '#'; // Just in case nothing matches
  if (myNum == 71)
    pMark = ':';
  if (myNum == 76)
    pMark = ',';
  if (myNum == 84)
    pMark = '!';
  if (myNum == 94)
    pMark = '-';
  if (myNum == 101)
    pMark = '@';
  if (myNum == 106)
    pMark = '.';
  if (myNum == 115)
    pMark = '?';
  Serial.print(pMark);
}

The second and third issues are more of a mystery, and I need to make all the wait times for sending morse proportional, but we're getting there :)

-Ana

Discussions