Alright, let’s talk about this little project I’ve been messing with – a Raspberry Pi horn device. I had this old Raspberry Pi lying around, gathering dust. It’s one of the newer models, but I just had nothing to do with it. They’ve gotten more powerful, but also harder to get your hands on lately. I think it’s because of all that pandemic stuff and factories not being able to keep up. Anyway, I figured I should finally put it to use.
I started by looking up some simple projects for beginners. I mean, I’m no tech wizard, so I needed something easy. The most common thing I saw was turning the Pi into a media center, using stuff like Kodi or Plex. Seemed cool, but I wanted something different.

Then I remembered that when I bought this Pi, I also got a bunch of small accessories and a little case. I thought I had a use for it but I forgot what it was, so I dug into the box to find something fun.
I started to assemble those parts to the Pi, it was a little horn! It was small, cute and had no wires at all, it can be plugged directly to the Pi board. So I decided to make a horn device.
I went online to search for some simple code that makes a sound, and started to modify it to make it suit my needs. The most important part is, that I don’t need it to keep making sound, I want it to beep once when I press a button. So I added a button part and changed the code accordingly.
After I got everything settled, I tested it out, it worked! Although the beep sound was a bit low, I can increase it by modifying the code.
Finally, I now have a little horn device that can beep by pressing the button. Not the most advanced project, but it was a good way to learn the basics and get this Raspberry Pi off my shelf. It was a fun little project, and now I’ve got a bunch of ideas for other things I can build. Maybe next time I will try something more complicated!