I soldered together a Wave Shield 1.0 to be fit on the Arudino. There is a version 1.1 so if you follow the solering instructions make sure you look at the right one. Version 1.1 differs in components and placement of them. The Wave Shield can play Wave files stored on the SD card. The SD card needs to be in FAT16 format. The Wave files must be saved in mono, 22KHz, 16-bit. Audacity is a very nifty and free audio software for Mac, Linux and Windows to convert and record sounds in mono.
There are several libraries build to support the shield. The example below is using the older AF_Wave library while there is a newer library called WaveHC.
The following code prints out the sensor value in Serial Monitor and plays a sound if the value of the flex sensor is less than 600:
flexSensor = analogRead(0);
Serial.println(flexSensor);
if(flexSensor < 600) {
playSound("ERROR.WAV");
}
delay(1000);
}
You can view the enitre Arudino source code here














