Hello, I’m starting a project to build something for a friends kid who’s father is a Huey pilot. I ordered the switch/panel in the image and want to 3d print an enclosure to mount it on that plays the song when the switch is in the on position.

Per the website the switch is fully functional, I just need to wire it to something to use it. Does anyone have suggestions on a bare bones controller to use and how to set it up to play an MP3 so long as the switch is in the on position? In a perfect world I would love for it to resume the position if it’s quickly toggled but restart if it sits more than a minute or so but realistically just playing the song would be more than enough.

While I’m new to Raspberry Pi I’m not that daunted by the task. I’ve been soldering since elementary school and have a degree in comp sci, but haven’t done any coding since graduating 10+ years ago. I do have a Pi hole but using an off the shelf package on a premade pi with step by step instructions doesn’t really count as “experience” for pi in my opinion.

Any suggestions are welcome, especially if someone can recommend some mini speakers that actually sound half decent. I’m not looking to tear a Bose Bluetooth apart but something slightly less tin-canny than a 2004 Nokia ringtone would be nice.

Thanks in advance!

  • AwkwardLookMonkeyPuppet@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    11 months ago

    I think the easiest method is to go analogue. Get a tape player with the play button pressed in, and a tape with the song recorded back to back on both sides. Solder the switch to the power connector for the tape player. Done!

    Otherwise you’ll need a Pi, a speaker, an amp, some wiring, an enclosure, and a bit of coding.