Skip to content

Lesson 29: Morse decoder

Listen to Morse code

  • In lesson 15 the Arduino sent Morse code with a light. Now it reads Morse code from a key (a button).
  • It measures how long each press is: a short press is a dot, a long press is a dash.
  • A long pause means the letter is finished, and the Arduino turns the dots and dashes into a letter.

Words for this lesson

Word Meaning
decode turn a code back into normal text
dot / dash a short / long signal
String a text that can grow: code = code + "."
pause a time with no signal

Log in or create account

IGCSE, A-Level & AP