Introduction: Voice Controlled Locking System

Picture of Voice Controlled Locking System

The Voice Controlled Locking System, is an automated locking system, using bluetooth as an intermediate for communication between Arduino and your Android phone. The Voice controlled locking system, unlocks when you say the password as set by you ( I have set it as 'instructables' ) and locks on saying 'lock'. The Voice controlled lock allows you to unlock and lock you drawer or wardrobe, automatically from a range of about 10 Meters without even touching it. Just open the app, and say the password and in a touch of a button you have opened your drawer/wardrobe.

I have design the lock or the latch as per my study table drawer. That can be customised as per need by just changing the latch head from the motor shaft.

NOTE: THIS DESIGN IS IN PROTOTYPE PHASE AND CANNOT GUARANTY COMPLETE SAFETY AND SECURITY. I WILL NOT BE RESPONSIBLE FOR ANY LOSS CAUSED.

Step 1: Parts Required

Picture of Parts Required

CONTROLLERS

1) Arduino UNO

https://www.amazon.com/Arduino-Uno-R3-Microcontrol...

2) Arduino Pro mini 5v 16mhz

https://www.amazon.com/Arduino-Pro-Mini-5V/dp/B00V...

3) L293D motor driver ( Not needed if using a servo )

https://www.amazon.com/HC-05-Bluetooth-Pass-throug...

COMMUNICATION

1) Bluetooth module HC 05

https://www.amazon.com/HC-05-Bluetooth-Pass-throug...

LOADS

1)DC Geared motor 100 RPM/ 9g servo motor

https://www.amazon.com/Dimart-100RPM-Robot-Intelli...

2) 16x2 lcd display(optional)

POWER SUPPLY

1) 5V 200 ma DC adapter

The other misc. parts include-

OTHER MATERIAL

1) Aluminium piece (10x2x0.2 cm) for the lock.

2) Switch

Step 2: Connections

Picture of Connections

BLUTOOTH MODULE - ARDUINO PRO MINI

Rx - Tx

Tx - Rx

5v - Vcc

GND - GND

**MAKE SURE, WHILE UPLOADING THE CODE, DISCONNECT THE TX AND RX PINS.


ARDUINO PRO MINI - MOTOR DRIVER

PIN 6 - In1 or PIN 2 of L293D ( if connecting directly to the IC)

PIN 7 - In2 or PIN 6 of L293D ( if connecting directly to the IC)

PIN8 - ENABLE PIN 1

5V - VCC

MOTOR DRIVER - MOTOR

Motor input 1 - Terminal 1

Motor input 2 - Terminal 2

Step 3:

Picture of

Step 4: Uploading Code to Arduino Pro Mini

Picture of Uploading Code to Arduino Pro Mini

A program cannot be directly uploaded to the Arduino Pro mini. There are mainly two ways to upload a code to the Pro mini-

1) Using the programming board,

2) Via Arduino Uno.

I have programmed Pro mini Via Arduino UNO. To do so, first, very care fully remove the Ic on the Arduino Uno. Then on the Arduino IDE and change the board from UNO to Pro mini.

Tools > Boards > Arduino Pro or Pro mini

After doing this, the bottom right corner of your IDE will now display the board as- Arduino Pro or Pro mini ATmega 328 (5v, 16 Mhz ).

Now connect your pro mini to Uno-

PRO MINI - UNO

DTR - Reset

Vcc - 5v

GND - GND

Rx - Rx

Tx - Tx

After this, connect Arduino UNO using the USB Cable to your laptop/PC and upload the code the same way it is done for UNO.

Step 5: Writing the Code for Arduino and Working

  • The code/program given below for the locking system includes the code for a 16x2 lcd display. Using it is completely optional and can be skipped without making any changes to the code. The program is very basic and easy to understand.

Step 6: Testing the Code With Arduino UNO

Picture of Testing the Code With Arduino UNO

Before uploading the code to Pro mini, I decided to test the program on UNO to just make sure, the program was working perfectly.

The results were great, the code worked as per expectations and here's a video of the test-

Step 7: Setting the Passcode and Downloading the App.

The password can be set through the following command-

if(voice == "*password")

To change the password, just change the word in the inverted comas. DO NOT FORGET TO PUT THE STAR * BEFORE THE WORD

Downloading the app

Download The App :- Android Meets Robots : Voice

this app is free to download from the play store.

Comments

About This Instructable

724views

17favorites

License:

More by pj200:Voice Controlled Locking SystemS.W.E.E.P BOTS.W.E.E.P BOT
Add instructable to: