Änderungen

Aus Hackerspace Ffm
Wechseln zu: Navigation, Suche

SimpleSDAudio

705 Byte hinzugefügt, 19:47, 26. Jun. 2012
* File name of audio file must be in 8.3-format
* Audio file must reside completely non-fragmented on card
* fullrate Fullrate and stereo actually leads to buffer underruns* Minimum controller required: ATmega168. ATmega8 is too low on RAM.
== Quickstart guide ==
* Install library: Unzip all to your /libraries/ folder.
* Copy the file /libraries/SimpleSDAudio/examples/example.raw to root folder of a freshly formated SD card (don't use quick format!).* Connect SD card to your Arduino board (using shield or whatever, SD card's chip select should go to pin 4, all other to SPI pins).
* Connect a speaker or headphone via 100 ohm resistor in series to audio output pin (pin 9 on Arduinos with ATmega168/328, pin 44 on Arduinos with ATmega1280/2560). Connect other end of speaker to GND.
* Launch Arduino IDE and try example "BareMinimumWithDebug" first.* You should hear some the audio(plays just a few seconds). Activate serial monitor to find some information if it does not work. Maybe you have to adjust SD cards CS pin in sketch.
== Software installation guide ==
== Preparation of SD card and conversion of audio files ==
The audio library uses a very trimmed SD library that uses the FAT only to find the start sector of the files. Therefore the file must be completely non-fragmented on the SD card. The best way to ensure this is to do a fresh and full format of the card (don't use quick format!). After formating the SD card, only copy new files on it. Don't delete files and avoid rename operations that creates file names that doesn't fit into 8.3 format (see http://en.wikipedia.org/wiki/8.3_filename ). All files must placed in root directory as folders are not supported by the audio library.
 
To convert audio files
 
 
== Hardware setup ==
1.955
Bearbeitungen