Hi,
Goal - play a voice recording if someone enters a room (part of a house alarm.)
I want to make a really simple audio player and have a switch trigger play back and another to cancel the playback.
I guess I need
Arduino
SD card for the recorded file (WAV?)
An amplifier and speaker loud enough to be heard if you are at the front door.
Arduino library for asynchronous playback of PCM/WAV files direct from SD card. Arduino Uno,Nano,Mega etc supported - GitHub - TMRh20/TMRpcm: Arduino library for asynchronous playback of PCM/WAV fi...
This library will help you a lot with your project.
The amplifier would be requied if you need to drive a loudspeaker. But for headphones, it's not necessary.
Note that the audio output is made from a PWM signal, so you will need a "low-pass filter". This can be built out of two 100 ohm resistors in series, and a 0.1 uF ceramic capacitor.
Awesome thanks for the tips.
Amplifier - Any recommendations from ebay or similar? Maybe 15 - 20Watts max.
Paul_B
April 4, 2016, 10:40am
4
What's an Arduino got to do with it?
You want a voice recorder, use a voice recorder !
Dave_vo:
Amplifier - Any recommendations from ebay or similar? Maybe 15 - 20Watts max.
It's for an alarm system, so that power should be enough. Remember to use a speaker that handles your output power.
Paul__B:
What's an Arduino got to do with it?
Believe it or not, an Arduino can playback audio pretty well (however here is always a quality limit, but still good enough ).
Thanks for the suggestions.
Dave