Easiest way to play small files

Hi everyone, I have a WORKING project where I read the state of a blinking neon sign with phototransistors, and then play 2 x very small MONO .wav files in order - 37.1k and bit rate of 705kbps. There is also a PIR or pushbutton mode to play the files

For now I am using (what I had) an Arduino Zero and an Adafruit Soundfx with an external amp. All works perfectly. I am using uart mode on the soundfx, as the 120ms hold time in trigger mode was too slow.

Can anyone recommend a simpler setup? I'd like to productize this for a small number of people (likely <100). The sound files are so small they could likely be stored in flash...

EDIT: I am trying to see if I can eliminate the soundfx board as it seems like overkill for 2 small files, plus I don't need an Arduino Zero. e.g. is there an Arduino with a built in DAC that I could feed into an amp?

If this working, why do you need to change it? What is your problem really?

The DFRobot MP3 player is popular, and can be controlled by the simplest Arduino or other MCU.

Fritzing diagrams such as that shown are not well received on this forum. They are hard to interpret, usually misleading and very often wrong.

It is better to have the Fritzing program produce a standard schematic diagram and post that instead.

1 Like

I also like the DFPlayerMini in "I/O Mode" - requires power, ground, speaker+, speaker-. To play "next" file, ground (short-press) "I/O 2" pin. "previous" file, ground (short-press" I/O 1" pin.

I like this reference page: DFPlayer Mini Mp3 Player - DFRobot Wiki

Why use fritzing?

1 Like

Too many individual pieces to plug together. I was hoping there would be an easier setup with less modules...

As far I see, your diagram contains a something close to a minimum set of parts for its tasks.

You might look into this:

Not high quality audio
Use a nano or uno

For compactness and simplicity consider combining the ‘No Arduino needed’ mode of the DFR Player suggested by @xfpd with a few NPN transistors to ground the appropriate ‘segment’ keys.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.