The NEW Build Your Own Arcade Controls

Main => Raspberry Pi & Dev Board => Topic started by: Jayper on August 28, 2020, 04:03:06 pm

Title: Playing a Small Sound/Jingle when switching on Arcade
Post by: Jayper on August 28, 2020, 04:03:06 pm
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. 
Title: Re: Playing a Small Sound/Jingle when switching on Arcade
Post by: mahuti on August 29, 2020, 01:34:21 pm
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. 

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.
Title: Re: Playing a Small Sound/Jingle when switching on Arcade
Post by: bbegin on September 26, 2020, 08:00:08 am
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/assets/_site_/images/jq6500/kq6500-16p.jpeg)

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).
Title: Re: Playing a Small Sound/Jingle when switching on Arcade
Post by: Vocalitus on November 20, 2020, 05:03:59 am
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/