3 ms·
This is trivial to build. Buy an Ardunio [1] and add a WaveShield [2]. Build them. Create an SD card with a bunch of interesting alarm sounds. There are lots o
by ChuckMcM 15y ago
This is trivial to build. Buy an Ardunio [1] and add a WaveShield [2]. Build them.
Create an SD card with a bunch of interesting alarm sounds. There are lots on-line, if you're lame you can walk out of an alarmed door with your phone in 'sound recorder' mode.
Now write a 'sketch' (its a program but they call them sketches) which runs a simple loop that watches the serial port and takes requests to play various sound files from the SD card. It could have the syntax where it prints
Ready>
To the serial port in response to a carraige return. And if you send it:
p soundfile<cr>
It plays that sound file.
Now on your server when the build breaks include this in the script that watches it.
echo '\n\np alarm.wav' > /dev/ttyUSB1
when it gets an error.
Oh and you will want to connect the Waveshield to a speaker of some sort. Simplest is to dig up an unused pair of powered PC speakers but the Waveshield's amp can drive a simple 8 ohm speaker as well.
Have fun!
[1] http://www.makershed.com/product_p/mksb013.htm http://www.makershed.com/product_p/mksb013.htm
[2] https://www.adafruit.com/products/94 https://www.adafruit.com/products/94