Mistery Box with Leds and Sounds

Thread Starter

max3315

Joined Feb 27, 2025
2
Hi guys , im new to this and im starting to make videogame's objects. At the moment im doing the mistery box from call of duty zombie and im struggling with the elettronics. What i want to do is that i have this box , i can turn on the box's leds with a ON/OFF button on the back. And that when i open the box it play a song that i can load in to the circuit ( like 10s ). When the song finish ( box still opened ) no more sounds were played. When i close the box it play a "close" sound that i can load. Can i do it without arduino or any microcontroller ? I made a gun with an hall effect sensor that play a preloaded sound when a magnet is close to it and play another sound when the magnet is away but if its possible i dont want to buy the rp2040 again.
Thanks in advance , hope that someone can help me with this :)
 

Attachments

Ya’akov

Joined Jan 27, 2019
10,226
Welcome to AAC.

The best way to do this is with an MCU and an MP3 player module. But an RP2040 is way over the head of the requirements.

A cheap, 8-pin MCU like the ATTiny85 would be more than enough and it will require only a couple of additional passive components. It can be programmed in the Arduino IDE using ATTiny Core.

A simple way to use one would be with an DigiSpark development board, which are just about as cheap at the bare chips in some cases. It would give you a very easy way to program the chip, and also a PCB to make your connections to.

In any case, they are only a couple of USD and available everywhere.

Trying to avoid using an MCU would add a lot of extra work and make something that is very hard to change if it didn’t behacve as you want since instead of just making some tweaks to software you would have to make hardware revisions.
 

Thread Starter

max3315

Joined Feb 27, 2025
2
Hi , thank you for the answer.
With a little research i found a digispark dev board based on the ATTiny85 and for the mp3 module a Mini MP3 DFPlayer
 

atferrari

Joined Jan 6, 2004
5,001
I managed to buy not only that in R. Shack but the 76481 as well which I never used and is still in my drawers waiting for the final ditching moment.
 
Top