Introduction: Automated Safety Locker Using Arduino

This is an Automated way of theft detection from your safety locker where you keep your valuables in.

When you are away, working in your table, someone may try to access your safety locker or cupboard! May be with a fraud key.

Our system will find out if someone is near by the locker with the purpose of accessing it, and immediately give you an alert by blinking the Red bulb in your table. It will drag your attention and you can run to save your locker!

Cool ain't it?

Let's see how to make it. Check out my youtube video on it so that you can get a more clarified DIY explanation!

(The sponsors of the video is JLCPCB, a PCB manufacturing company, where I got my PCB design manufactured. you can find them here: www.jlcpcb.com . You may make a PCB board, or use a dot board or bread board depending on your preferences.)

Step 1: Things You Need

1. Ultrasonic Sonar

2. Arduino Nano

3. Relay Module - 1 channel

4. Red Bulb

5. Jumper wires, etc.

Step 2: Connection

There are two components you have to connect with Arduino:

1. Ultrasonic sonar

2. Relay Module

Now you have to fix the components in separate places. Ultrasonic sensor has to be fixed on the locker near to the key opening. Then wire it towards the control table where you are fixing your Arduino, Relay and Bulb. (You can refer my video link, for more clarity).

https://www.youtube.com/watch?v=HLgB4JYpNdw&t=190s

Let's see the connections.

*The Bulb has to be connected to the Relay module.

Now let's see how to connect the above components to Arduino:

1. Ultrasonic Sonar

It has 4 pins. Connect with Arduino as mentioned below:

i. VCC - 5V

ii. Trig pin - Arduino digital pin 5

iii. Echo pin - Arduino digital pin 4

iv. GND - Ground Pin

2. Relay Module (One channel Relay module).

Relay module has 3 pins on one side. Connect with Arduino as mentioned below:

i. VCC - 5V

ii. GND- Ground Pin

iii. IN - Arduino digital pin 3

In the other side of the Relay module you will find 3 pins named as below:

i. NC

ii. COM

iii. NO

This side, you are supposed to connect your bulb.

- Take the Life wire of the Bulb in your hand.

- Cut it in the middle using a nose player.

- Now you have two terminals of Life wire.

- Connect one terminal in the COM pin of relay.

- Connect the other terminal to the NO pin of the relay.

Now you are all set!!! :)

Connect the plug of the Bulb into the socket. Switch ON! You will see the bulb is not working unless we complete the system!

Let's get into uploading the coding.

Step 3: Coding

Find the coding in the following link:

https://drive.google.com/open?id=16ydhAIenpj6NAh8qRcby3Q1T0PdwxwRV

Download and then Upload the coding to Arduino!

Then unplug the Arduino and Provide power using an external cable through USB or any other means.

Step 4: Demonstration

The Demonstration is simple.

If any object, Let's say the hand of the thief is detected less than 10 centimeters from the sonar that is located closed to the keyhole of the safety locker, The red light bulb in your control table is going to blink and give you a theft alert!!!

You can immediately run and prevent the theft!!!

Cool ain't it?

Check out the video for full clarification!

https://www.youtube.com/watch?v=HLgB4JYpNdw&t=190s

Good Luck!!!