Skip to main content
Version: FILS English

Sentence Encryption Device

Sentence Encryption Device using morse code and Pico 2W

info

Author: Budu Octaivan-Andreis
GitHub Project Link: https://github.com/UPB-PMRust-Students/project-BUDU-Octavian-Andrei

Description​

The Sentence Encryption Device is designed to automatically transmit entire words or sentences in encrypted Morse code using a Raspberry Pi Pico 2 W instead of manually and mechanically inputing each character. The idea here is to make use of the Wifi module on the raspberry pi as input, this way you can skip the painstaking process of introducing characters on the board. Then the pico takes this input and encodes it based on your desired encryption method (ex: Caesar, Vigenere, M-94, etc) then translates it from string/char to morse code, from there it is further processed in order to be GPIO compatible. The GPIO signal is used to modulate an oscillator/ transmitter circuit.

Motivation​

I chose this project because I am fan of 20th century history and I like the old school method of sending messages, I wanted to recreate one of the most famous encryption machines, engima, to the best of my ability to replicate it

Architecture​

  1. Browser (HTML/CSS/JS)
  2. Node.js bridge (HTTP + WebSocket + TCP)
  3. Pico W runs embassy-rp + embassy-net, TCP client
  4. SI4713 via I²C: tune FM & key its tone generator

Log​

Week 5 - 11 May​

Week 12 - 18 May​

Week 19 - 25 May​

Hardware​

DeviceInterfacePico Pin(s)
SI4713 FM TX moduleI²CSDA = GP16, SCL = GP17
Reset (RST)GP18
GPO1 (key)GP19 (tone on/off)
On-board LED (TX indicator)GPIOGP25
Pico WUSB power5 V → 3.3 V regulator
Wi-Fi (CYW43)PIO-driven SPI (pins 24,25,29)

Schematics​

Place your KiCAD schematics here.

Bill of Materials​

DeviceUsagePrice
Raspberry Pi Pico 2WThe microcontroller39,66 RON
Raspberry Pi PicoThe debugger22,49 RON
SI4713The RF unit78,49 RON

Software​

Crate / LibraryVersionRole
[embassy-rp]0.3.0 (git)Pico RP2 async executor + GPIO/PIO
[embassy-net]0.7.0 (git)DHCP + TCP client
[cyw43]0.3.0 (git)On-board Wi-Fi driver
[panic-probe]0.3.2Defmt RTT panic handler
[defmt]1.0Compact logging
  1. link