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
- Host: GitHub
- URL: https://github.com/lrusso/arduinowaveplayer
- Owner: lrusso
- Created: 2019-09-17T23:42:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-18T01:30:57.000Z (over 6 years ago)
- Last Synced: 2025-03-06T08:39:33.879Z (about 1 year ago)
- Language: C++
- Homepage:
- Size: 2.41 MB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Arduino Wave Player
Sketch and schematic for playing audio waves in Arduino Mega 1280/2560.

## 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