So I starting thinking about how I would make the alarm stay on and remembered that you can make a transistor latch which once activated does not turn off until the power is cut. So after searching for latch schematics I found out that the transistors have to be complementary to each other (e.g. Similar to each other but opposite type (PNP NPN))
So on to the schematics.
Step 1: The Schematic
R1 = 1k
R2 = 330k
R3 = 4.7k
C1 = 1uF
Q1 = similar to 2N3906
Q2 & Q3 - I don't know the exact type but its NPN with HFE of 200, Max VCE 30V, Max current 800mA
I had to try a variety of combinations of resistors R1 and R2 control wither it will latch and R3 controls output voltage. for R3 max output was at ~4.7k it decreases gradually as the resistance drops but drops suddenly if it increases.
S1 is a On/Off switch
S2 when closed turns the latch on and the output remains high until S1 is opened even if S2 is reopened.
The latch output is amplified through Q3 from 4V at 3mA to 4.5V at ~100mA through a 10 Ohm load
Electricity source is a 6V battery pack (AA x 4)
The best part about this circuit is it's stand-by current is 0 uA thats right it uses no electricity until triggered :D
Step 2: Well That Is Perfect
I tested the circuit and there is a little discrepancy in the alarm volume if S2 is closed the Alarm turns on and emits ~90db when S2 is reopened it drops down to ~80db not really a problem but worth mentioning.
Step 3: Trigger Switches
Here is a list of triggers I am using or ideas I have:
So far I have only used a NC momentary switch but there is room for expansion. The picture is of the switch its horrible I know, my camera flash is not working so I can't really hold the camera still for 7 seconds. sorry.
Normally closed momentary switch - I press the button in so the switch is OPEN and place it against the wood bar in the window, if the bar is removed the alarm is triggered.
Normally open momentary switch - Place is the window slide so if the window is opened too far it sounds
Laser tripwire trigger - I'm still working on this one but you need a photoresistor and a laser. When saturated with light it must create enough of a voltage drop to "leave the switch open"
Vibration sensor - take the fillimant from a light bulb and hang it vertically in the middle of a conductive ring. sensitivity can be adjusted by the distance of the bottom of the fillimant to the ring or the size of the ring
Step 4: My Finished Product
Please post any comments if you have questions I'll try to answer them promptly. Make your homes safe, and have fun.
UPDATE: I soldered the completed project to a 2" by 2" perf board connected a black toggle switch and placed it all in a small project box. This was my first actual project that I soldered and am having some issues.
The alarm gets randomly triggered, It went about 24 hours, reheating the joints fixed this temporarily This time it didn't false trigger for 2 days, I added more solder hopefully this time it works permanently. If anyone has any help on this please comment.