Instructables
Picture of Simple Basement Security System

In this project I will show you how to build a very simple security system for all kinds of rooms. It might be simple but still effective. It is based around an Attiny85 and uses a reed switch and a key switch as inputs to see whether an intruder has accessed the room. A buzzer will then notify you or other persons. Let's build it

 
Remove these adsRemove these ads by Signing Up

Step 1: Watch the video!

The video gives you all information to build this simple security system. But I will cover the most important steps again.

Step 2: Order your parts!

Picture of Order your parts!
keyswitch.jpg
ohter parts.jpg
pushbutton.jpg
reed.jpg

As always, you can't build stuff without the correct parts. Here is my material list with example sellers for your convenience:

1x Arduino Uno (as programmer for Attiny85): http://amzn.to/1tZNXjZ

http://www.ebay.com/itm/SainSmart-UNO-R3-ATmega328...

1x Attiny85: http://amzn.to/1qKReWK

http://www.ebay.com/itm/2PCS-New-ATTINY85-20PU-ATM...

1x Reed Switch: http://amzn.to/1oO2b5Q

http://www.ebay.com/itm/5-SMD-Security-Window-Door...

1x Key Switch: http://amzn.to/1oO2jCh

http://www.ebay.com/itm/1x-Key-Switch-ON-OFF-Lock-...

1x IC Socket: http://amzn.to/1tZPcQ0

http://www.ebay.com/itm/10pcs-Round-Hole-8pin-Pitc...

1x 12V Buzzer: http://amzn.to/1qKSkSx

http://www.ebay.com/itm/Painfully-Loud-2-Tone-Elec...

1x BC547 NPN Transistor: http://amzn.to/1tZPWVq

http://www.ebay.com/itm/50Pcs-BC547-TO-92-NPN-45V-...

4x 10kΩ, 1x 1kΩ, 1x 640Ω Resistor (1/4W): http://amzn.to/1A2KZzi

http://www.ebay.com/itm/400-Pcs-1-4W-1-20-Kinds-Ea...

2x 10µF Capacitor: http://amzn.to/1tZRcrz

http://www.ebay.com/itm/1uF-2200uF-25-value-125pcs...

2x 0,1µF(100nF) Capacitor: http://amzn.to/PD2jZj

http://www.ebay.com/itm/1000pcs-50value-50V-Cerami...

1x Push Button: http://amzn.to/1qKUxgG

http://www.ebay.com/itm/16mm-Start-Horn-Button-Mom...

1x LM7805 (5V linear regulator): http://amzn.to/1qKUGAC

http://www.ebay.com/itm/10pcs-LM7805-TO220-1-5A-Po...

1x DC Jack: http://www.ebay.com/itm/5pcs-2-1mm-DC-Power-Jack-S...

1x PCB (striped) : http://amzn.to/1qKV2Hy

http://www.ebay.com/itm/5-x-Prototyping-PCB-Circui...

1x Male Headers: http://amzn.to/1qKVg1p

http://www.ebay.com/itm/10pcs-breakable-pin-header...

1x Female Headers: http://amzn.to/1tZTmHV

http://www.ebay.com/itm/10Pcs-40Pin-Single-Row-Str...

1x Red LED 5mm: http://amzn.to/1qKVuWm

http://www.ebay.com/itm/100Pcs-LED-5MM-RED-COLOR-R...

Step 3: Build the circuit and connect the external parts!

Picture of Build the circuit and connect the external parts!
layout1.jpg
layout2.jpg
wireing.jpg

Here you can find the schematic for the circuit. I also uploaded my layout for the stripped PCB. If you build it exactly according to my layout then the chances are higher that everything will work in the end.

And don't forget to make interruptions in the copper traces! Those are the yellow dots in the second layout.


If you managed to finish the circuit then go ahead and connect the external parts like the reed switch or the key switch to the main PCB. Use my picture of the PCB as a reference.

Step 4: Upload the code to the Attiny85

Here you can download my code. Feel free to change it if you are not pleased with the functions. I used an Arduino Uno as a programmer. Check out my other videos to see how this works.

Step 5: Success!

Picture of Success!

You did it. Now you can protect your belongings a little better and feel safer.Feel free to check out my Youtube channel for more awesome projects:
http://www.youtube.com/user/greatscottlab

You can also follow me on Facebook, Twitter and Google+ for news about upcoming projects and behind the scenes information.

https://twitter.com/GreatScottLab

https://www.facebook.com/greatscottlab

Now no one will ever sneak up on me again!! XD

Wyle_E1 month ago

I used to install burglar alarms, and my first reaction to this was "This doesn't need a microcontroller, just a couple of relays." Then I realized that the Attiny costs less than one of the relays.

BLR_RAVI2 months ago
you wrote simple but i say wonderful project..creative idea..nicely done..