Hello,
Is there any way to play 2 sounds(MP3 or WAV) simultenaous with a MP3 module and a arduino Mega?
I'm making an escape box with background music. When a step is completed, a sound effect must play without stopping the music.
Thanks.
Hello,
Is there any way to play 2 sounds(MP3 or WAV) simultenaous with a MP3 module and a arduino Mega?
I'm making an escape box with background music. When a step is completed, a sound effect must play without stopping the music.
Thanks.
Yes, you can use an Arduino Mega to play multiple sounds simultaneously. There are a few different ways to do this, depending on your specific requirements and the resources you have available.
One option is to use an MP3 player module that supports playing multiple tracks at the same time. Some MP3 player modules have multiple audio channels, which can be used to play separate tracks simultaneously. Alternatively, you can use a module that supports mixing multiple audio tracks together in software.
Another option is to use an external audio processor or synthesizer, such as a PCM5102A DAC or a Mozzi library. These devices can be used to generate and mix multiple audio tracks on the fly, using pulse-code modulation (PCM) or frequency modulation (FM) synthesis.
-chatGPT
A board such as the Sparkfun WAV Trigger can play up to 14 stereo tracks simultaneously.
There may be other lower cost alternatives that can play fewer tracks if that is out of your price range.
Thanks,
Can you tell me the good librairie to use?
Do you a board that can plan MP3 and WAV ?
chatGPT told you a library you can use. See reply #2
I have been pulling my hair out with a similar, yet different project. I would appreciate your knowledge. I am looking to have one button play four different tracks simultaneously on four different speakers. During this time the button would be able to give input until the audio tracks were over (60 seconds)
My first attempt was going to use five different Arduinos and four SD card modules. One Primary Arduino would start the other four and provide the timed button lockout. The other four would each play their own track stored on the SD card module. It would require two different codes. One for the Primary Arduino and one for the Secondaries.
My second iteration of the concept was to use only one arduino and four dfplayers. I am VERY amateur at this and usually I find code that does what I want and then reverse engineer it to figure out what it is doing. I can't find ANY code for playing multiple DFPlayers simultaneously.
Any insight you could provide into this project I would be very appreciative of.
-KBed-
Please start a new thread for your new topic.
thank you, I have:
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.