Main > Raspberry Pi & Dev Board

Playing a Small Sound/Jingle when switching on Arcade

(1/1)

Jayper:
I built my arcade using a Raspberry Pi.  I have the TV and the Pi connected to a master switch from the back.  What I am looking to do is have some kind of sound play upon turning on the switch.  It takes a couple of seconds for the TV and the Pi to load up, so I thought it would be cool to add some sound when turning on.  Kind of like the sounds you hear when turning on a Pinball machine.  However, I am looking for a simple solution.  I have heard about AttractMode, but it looks a little more complicated than I would like to get into.  Anything I can do to this done without connecting it through the TV or Pi.  Something external where I can connect to a small speaker inside the unit. 

mahuti:
AttractMode is a front-end. It isn't specifically designed do what you ask. You could add an intro movie to AM, but it wouldn't play instantly... it would take at least 30 seconds or so.


--- Quote --- Something external where I can connect to a small speaker inside the unit. 
--- End quote ---

My advice would be one of the following:

1. Launch an MP3 before everything else in a startup script

2. find some kind of chime hardware that runs off of wall power, install a relay that triggers it on start up.

3. same thing, but use the Raspberry Pi's GPIO to trigger it.

4. Some pinball machines use (basically) a little xylophone. You could install one and trigger it on start up.

So... all of that said, personally, I think the simplest method would either be to use whatever your front-end is to trigger a movie or an MP3 on launch or use a startup script to launch an MP3 player before it launches your front-end.

bbegin:
Hi, if you want something external to wich you can connect a small speaker inside the unit, I recommend you use a small microcontroller wich play an audio file on startup, like the JQ6500.



https://sparks.gogo.co.nz/jq6500/index.html
https://www.amazon.com/HiLetgo-JQ6500-Module-Channel-Control/dp/B01N47M1V2

Just short pin K1 to the GND pin and the module will play the sound file #1 stored on the internal memory at power-on. You can upload your MP3 files with the jq6500 utility (https://github.com/NikolaiRadke/JQ6500-rescue-tool). You can even control the module (and send other command verbs) from the serial port on the board (TX and RX pins).

Vocalitus:
I have Retropie on my cab and I play a brief Rick and Morty short while the system powers up but you can use music.  You need to MPG123 and it is very easy to set up.  https://sourceforge.net/projects/mpg123/

Navigation

[0] Message Index

Go to full version