An open API service indexing awesome lists of open source software.

https://github.com/lrusso/arduinowaveplayer

Sketch and schematic for playing audio waves in Arduino Mega 1280/2560
https://github.com/lrusso/arduinowaveplayer

Last synced: 6 days ago
JSON representation

Sketch and schematic for playing audio waves in Arduino Mega 1280/2560

Awesome Lists containing this project

README

          

# Arduino Wave Player

Sketch and schematic for playing audio waves in Arduino Mega 1280/2560.

![alt screenshot](https://raw.githubusercontent.com/lrusso/ArduinoWavePlayer/master/ArduinoWavePlayer.png)

## How To Guide:

1) Convert your WAV file into a new 8-bit, 8000 MHz Mono WAV file.

```
sox mywave.wav -c 1 -b 8 -r 8000 myfinalwave.wav
```

2) Convert the new WAV file into a C file.

```
wav2c myfinalwave.wav
```

3) Copy the content of the array that is in the new file (myfinalwave.c).

4) Paste that content into the array SoundData (in the file Sample/SoundData.h).

5) Update the SoundDataLength variable (in the file Sample/Sample.ino) acording to the length of your audio wave.

## Available at:

https://playground.arduino.cc/Code/PCMAudioTimer5/

## Based on the work of:

https://playground.arduino.cc/Code/PCMAudio