1) Communicate verbally and...
2) Be loud enough so that IF it happens to go off, EVERYONE around will know, and (hopefully) call for help.
We all know that many of those battery-powered, $20 alarms that come with double-sided tape that you can mount aren't very loud, and if you DO happen to have one that is REALLY loud, it is your professional, built-in multi $K wired security system. Well, this one uses a microcontroller, which means you can wire the sound output to an amplifier, be it homebrew (DIY) or one from the store.
Here's a video of it in action:
Step 1: Find the Stuff
- Parallax BASIC Stamp IIe microcontroller
- Parallax 'Board of Education' carrier board
- RGB LED (I used THIS ONE)
- 220 ohm resistor
- Some solid core wire
- Parallax PIR sensor (you can buy it online, or get it @ radioshack)
- Emic TTS module (from Parallax's online store; I was going to use this for another project, but that one was too big and expensive, and I never got around to it)
- Male header pins (I used THESE)
- Power supply
- Sparkfun connector wires (or any other wires that have crimped, plastic-housed, female connectors on both ends). I used THESE.
Step 2: Begin the Build...
Step 3: Hook Up the Emic Text-to-Speech Module
Step 4: Make All the Connections & Add the RGB LED
Emic TTS Module:
- VCC goes to VCC (+)
- GND goes to GND (-)
- SP+ and SP- go to an 8ohm speaker or an external amplifier
- RESET goes to pin4
- BUSY goes to pin3
- SOUT goes to pin2
- SIN goes to pin1
- VCC and GND go to + and - respectively
- The pin labeled OUT goes to pin0
- RED goes to pin9
- BLUE goes to pin8
- GREEN goes to pin7
- The common anode (+; it's the longest lead) connects to a 200ohm resistor, which goes to +5V (VCC)
And last but not least, put a wire in one of the two pin5 sockets, and connect the other end to the same row as the 'SP+' output on the Emic TTS. This is so you don't have to have two different audio output devices (speaker, piezo, amp) for the beeps and the verbal messages. The Emic TTS module must have some sort of diode or protection from the voltage coming from the BS2 when it (the BS2) is doing a FREQOUT command. I have used this setup for a long time and it hasn't caused any trouble. Now as the audio output, you should either build a simple amp (with a LM741 or an LM386) or find a small battery-powered one to use for the audio and alarm. Connect this to the SP+ and SP- rows on the mini breadboard, and you're good to go.
Because of the simplicity of these connections, I'm not including a schematic. If anyone wants one, let me know
Step 5: Add a Speaker
When you connect the speaker to the audio portion of the DIY alarm, polarity doesn't matter.
Step 6: Upload the Code, and Test It!
Below is the source code for the alarm.