# Morse Code Project

**URL:** <https://forum.arduino.cc/t/morse-code-project/1403848>\
**Category:** General Guidance\
**Created:** [August 23, 2025, 1:50am UTC](https://forum.arduino.cc/t/morse-code-project/1403848 "2025-08-23T01:50:23Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![xfpd](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/xfpd/32/1120236_2.png) [@xfpd](https://forum.arduino.cc/u/xfpd)\
**Post date:** [August 23, 2025, 7:36pm UTC](https://forum.arduino.cc/t/morse-code-project/1403848/5 "2025-08-23T19:36:41Z")

</div>

This line lets you have dits, dahs and spaces...

```arduino
  while (sequence[i] == '.' || sequence[i] == '-' || sequence[i] == ' ') {

```

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/e/2/e/e2e852790da0a721a9bc94763bc529667af0b829.png)

[edit]

> [@AnnieDoesCoding](#):
>
> `int wordSpace = dotLength * 9;`

This should be "7"

dit = 1, dah = 3, intra-element gap = 1, inter-character gap= 3, inter-word gap = 7

---

_[View the full topic](https://forum.arduino.cc/t/morse-code-project/1403848)._
