Recommended hardware for audio project

Hi all, I'm looking for some advice on the best Arduino hardware to use for a simple project - it's a VERY simple project and will monitor 2 x photoresistors and then play a .wav file (less than 2Mb) if either photoresistor detects light.

I'm looking for a small Arduino with built in storage and a DAC that will play the .WAV file. I was thinking of the Adafruit Itsy Bitsy M0, but the audio library support for Arduino IDE seems a bit confusing.

Any thoughts?

Phil

The DFPlayer Mini is self contained, and has button inputs which could probably be activated by LDRs.

1 Like

The easiest way is with a WAV shield, or the DFPlayer (which plays MP3s) is super popular.

These things have a slot for a memory card, the audio clock, a DAC, etc.. The Arduino just acts as a controller telling it what file to play, when to start & stop, and maybe to control the volume, etc.

Generally you can get good audio quality as long as you don't have a noisy power supply or something like that.

Great, thanks @DVDdoug and @jremington - I was hoping to avoid an SD card as there is only 1 single WAV file that needs to be played (and it's only 1Mb). I was hoping there was an Arduino with ~2mb of flash that I could use.

ESP32 with DAC and 4 Mb flash, or use the 2 Mb PSRAM. You will need an audio amplifier.

2 Likes

Awesome! I think I have one here and will give it a try.

A simpler alternative might be the DFR Mini Player Pro

Fermion: DFPlayer Pro - A mini MP3 player with on-board 128MB storage (Breakout). This MP3 player module supports four controlling modes such Arduino, AT command, on-board buttons and ADKEY. One can directly press the on-board button to play or switch music without using a controller. Moreover, this player module has 128MB of storage.

  • Stereo dual-channel output
  • Analog U-disk support and ADKEY control support
  • On-board power amplifier support
  • MP3, WAV, WMA, FLAC, AAC, APE audio format
  • UART communication
  • 3.3V/5V operating voltage
  • Support the USB cable to copy music
  • Can be used as a sound card for the PC or Raspberry Pi
  • Operating temperature range -20°C to 70°C
  • Suitable for DIY plush toys, handmade personalized gift, musical alarm clock, USB sound card

Contents

DFPlayer PRO - A MP3 player x1, 2.54-6P black single-row pin x2.

1 Like

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