Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/l-a-marchetti/morse

🚨 Input a sentence using Raspberry usb serial port, convert it to Morse code, and blink a LED to represent the Morse code. The translation is also printed back to the terminal.
https://github.com/l-a-marchetti/morse

Last synced: 28 days ago
JSON representation

🚨 Input a sentence using Raspberry usb serial port, convert it to Morse code, and blink a LED to represent the Morse code. The translation is also printed back to the terminal.

Awesome Lists containing this project

README

        

# Morse (Raspberry Pico)

![Morse Code LED Blinker](example.gif)

*Example of the serial port communication.*

This project allows you to input a word or sentence using Raspberry usb serial port via the Minicom terminal, convert it to Morse code, and blink an LED on a Raspberry Pi Pico to represent the Morse code. The Morse code translation is also printed back to the terminal.

## Building the Project

1. **Clone the Repository**:

```sh
$ git clone https://github.com/L-A-Marchetti/Morse.git
$ cd Morse
```

2. **Clone the `pico-sdk`**

```sh
$ cd ..
$ git clone https://github.com/raspberrypi/pico-sdk.git --branch master
$ cd pico-sdk
$ git submodule update --init
```

3. **Copy the external pico sdk import**

Copy β€˜pico_sdk_import.cmake’ file from the /pico-sdk/external directory into the github repository.
```sh
$ cd ../Morse
$ cp ../pico-sdk/external/pico_sdk_import.cmake .
```

4. **Create the build folder**

```sh
$ mkdir build
$ cd build
$ export PICO_SDK_PATH=../../pico-sdk
$ cmake ..
```

2. **Compile (if needed)**:

```sh
make -j4
```

3. **Upload the Code to the Pico**:

Connect your Raspberry Pi Pico to your computer via USB, then drag and drop the generated `morse.uf2` file from the `build` directory to the Pico.

## Running the Program

1. **Open Minicom**:

```sh
sudo minicom -b 115200 -o -D /dev/ttyACM0
```

2. **Interact with the Program**:

- Enter a word or sentence.
- End the input with `!`.
- The program will process the input and start blinking the LED according to the Morse code translation.
- The Morse code translation will also be displayed in the Minicom terminal.

##