Fun with the Raspberry Pi

I spent some time this weekend doing a morse code encoder in python on the Raspberry Pi. You run the program, type in what you want to say and it gets translated into long and short beeps in light (or relay) in morse code.

I should develop an actual image at some point for how to wire this up. I have a wire from gpio pin 7 -> led -> resister -> ground for this program. I also have a relay module attached to gpio pin 7 -> relay in1 that makes a satisfying click as well.

The code snippet can be found here on gitlab: https://gitlab.com/snippets/1547397

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.