Skip to content
Minimal arduino wav player
C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
wavPlayer
.gitignore
platformio.ini
readme.fr.md
readme.md

readme.md

wavPlayer

Version française / French version

wavPlayer

This tutorial shows how to execute a .wav file from an SD memory card.
The. wav file is a sound file extension of the RIFF (Resource Interchange File Format) specifications from Microsoft.
It is simpler to be executed, once this file is basically digitized sound samples, unlike other compressed formats, such as .mp3 files for example.

This Primitive wav file player only read : Wav Unsigned 8-bit PCM file and track will stopped if saturation occurs (has it won't differentiate it from an end of file for some reason)

This tutorial is based on the tutorial by Garagelab.
https://web.archive.org/web/20170430150220/http://garagelab.com/profiles/blogs/tutorial-playing-music-with-garagino-or-arduino-wav-player

Project link

http://wavplayer.madnerd.org

Instructions

If you want to make a real mp3 player , use a DFPlayer Mini instead
This is just a proof of concept.

  • Download wavPlayer.madnerd.org
  • Copy wavPlayer inside Arduino SketchBook (Documents/Arduino)
  • In tools , select : Arduino Pro Mini / 3V 8Mhz
  • Upload code with FTDI cable

Components:

  • Micro sd card 2go : 4€
  • Batteries holder 4AAA on/off : 1€
  • Arduino mini pro 3.3V : 1,50€
  • Audio jack dip : 2€
  • Total : 8.50€

Tools:

  • ftdi 3V/5V programmer

Software needed:

Estimate cost : 8.50€ (batteries not included)

Create wav file

  • Open MP3 with Audacity
  • Below -> Project Rate (Hz) : 8000
  • Tracks -> Stereo Track to Mono
  • Tracks -> Resample : 8000hz
  • File/Export Audio
  • Save as type: Other uncompressed files
  • Header: Wav (Microsoft)
  • Encoding : Unsigned 8_bit PCM
  • Save to 0.wav on root of sdcard

Wiring:

Wiring GPS

SD card

1 --> X
2 --> 12
3 --> GND
4 --> 13
5 --> VCC
6 --> GND
7 --> 11
8 --> 10 (Chip select)

Headphone / Speaker

Left/Right ---> 6

Buttons

prev button --> 7
next button --> 8
You can’t perform that action at this time.