Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Playing a Small Sound/Jingle when switching on Arcade  (Read 5898 times)

0 Members and 1 Guest are viewing this topic.

Jayper

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • Last login:September 25, 2020, 03:35:38 pm
  • I want to build my own arcade controls!
Playing a Small Sound/Jingle when switching on Arcade
« 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. 

mahuti

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2757
  • Last login:March 02, 2022, 09:51:19 pm
  • I dare anything! I am Skeletor!
Re: Playing a Small Sound/Jingle when switching on Arcade
« Reply #1 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.
Raspberry Pi, AttractMode, and Skeletor enthusiast.

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 186
  • Last login:February 05, 2024, 07:23:14 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: Playing a Small Sound/Jingle when switching on Arcade
« Reply #2 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/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).
« Last Edit: October 28, 2020, 08:12:52 pm by bbegin »
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

Vocalitus

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 400
  • Last login:October 25, 2021, 06:16:58 pm
  • I want to build my own arcade controls!
Re: Playing a Small Sound/Jingle when switching on Arcade
« Reply #3 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/