Thanks to everyone who supported this project and voted for it in the Arduino Challenge! I was awarded second prize and hope to participate in more Arduino contests in the near future.

This tutorial will explain a simple way to make a password protected bluetooth door lock using your Arduino, which can be unlocked by sending a four digit pin from your Android phone!  The hardware setup is quite simple,  and the programming side of it is a bit tricky, but should be no problem for any Arduino ameuture.

Step 1: Parts Needed

1. Arduino (I am using the Duemilanove)

2. Electric Door Strike

3. Bluetooth Module ($9.99)

4. Power Supply (Required voltage and amperage differs among different door strikes/locks)

5. TIP120 Transistor

6. 1N4001 Diode

7. Hookup Wire

8. Solderless Breadboard

9. An Android phone (optional, considering that there are lots of devices you could use to send serial data to our bluetooth modem including Iphones, computers, and other Bluetooth devices)
I want to make it in a different way.please anybody suggest me,when i come back in my room, it is self unlock the door lock, use arduino & hc 05,my buetooth run at command mode ,at first collect the last pair buletooth mac and it is compair with +inq mac address ,if my phone mac is available then unlock the door automaticly .
can u spesify the lock name please
<p>Hi,any one give circuit diagram for this project</p>
<p>appreciable work for beginners</p>
<p>Hello guys. I made it as a part of my graduation project. I am building android application too.The logic of the circuit in pics is %98 same with this one. My android application is ready too. I will upload it in few weeks.Images are HD. You can see the circuit clearly. Thanks Collin Amedee. But I changed Arduino code to this one in the link : http://english.cxem.net/arduino/arduino5.php</p>
<p>Hello SabriM.</p><p>I would like to ask about the output device..can i use electromagnetic door lock instead of electric door strike??</p>
<p>Hello IZwadieA,</p><p>I just control electric from code. There are two controls about it. Deactive electric from door lock to lock and activate the electric to activate door lock. If your device support this of cource you can.</p>
<p>SabriM can you send be the full input and output of this? thanks kennent_rod@yahoo.com</p>
<p>Hi,</p><p>check the video below Mary.</p>
<p>Hi SabriM,</p><p>It really work now.I have complete the connection.Thank you very much for your advice I really appreciate it.By the way,is it possible to trace someone that using the same bluetooth connection like checking the history of user??</p>
<p>hello IZwadieA,</p><p>I didn't make that log system. There is no database in my application. But if you wish sure you can add log system in your android application.</p>
<p>can u give me the operation for this circuit ?</p>
Hello SabriM,<br><br>I very much appreciate you building onto this project, and especially answering questions whilst I have been inactive over the past several months! I do hope that you received a good grade on your project! <br><br>Thanks, and good luck!
<p>Thanks Collin Amedee :)</p><p>Expecting a lot of instructions from you.</p>
<p>can i use Arduino Uno R3?</p>
<p>Sure you can. Its a simple hardwire connection. </p>
<p>Hi is this possible to use WIFI + bluetooth to unlock the multiple door ? and if yes what changes ive to made??</p>
<p>Hi HaziqS,</p><p>Sure you can. But you just need to use multiple cable to connect all of them into one source.</p>
<p>ok !! but how i mean ho ill connect bluetooth aswell as wifi cux for serialized communicate it jus have one RX and TX</p>
hi sir sabri, hmm i m interested with this project,may i see ur full circuit,n ur android apk for control the lock .. pls mail me wellsinclair@gmail.com
<p>Hi the circuit is just above and developed from this project.</p><p>You can download the app from the link below in Play Store : </p><p><a href="https://play.google.com/store/apps/details?id=sabrimevis.com.graduate.remotedoorcontrol" rel="nofollow">https://play.google.com/store/apps/details?id=sabr...</a></p><p>And Dowload Arduino code from : </p><p><a href="https://www.dropbox.com/s/a82sect5ng11nqf/control.ino?dl=0" rel="nofollow">https://www.dropbox.com/s/a82sect5ng11nqf/control....</a></p>
<p>hi i'd like to ask about the bluetooth modules. if i'm using different modules, will the codes changes too? if so, which one is likely to be changed, the Arduino or the one in phone? thanks</p>
<p>No I don't think that will change anything. I used HC 06 but you can use HC 05 too.</p>
<p>even though I use this? : <a href="http://dx.com/p/jy-mcu-arduino-bluetooth-wireless-serial-port-module-104299" rel="nofollow">JY-MCU Arduino Bluetooth Wireless Serial Port Module</a></p>
<p>The code is not about Bluetooth module. It doesn't effect it. You can use it. Differences between Bluetooth modules is about their security.</p>
hi . i want to add this project to my graduation project &quot;advanced easy home security systems&quot;<br>so can u please send me all the details of this project to this email seda4unit@gmail.com
<p>This is the link of my Term project : Language is Turkish but you can get some details from video. I will try to add English subtitle.</p><p><iframe allowfullscreen="" frameborder="0" height="281" src="//www.youtube.com/embed/-ZbRoJtwUy0" width="500"></iframe></p>
<p>can i ask ? i want to make the same concept about this experiment for my project in school, but i want to use servo motor and a normal door lock instead of electric door lock because I cannot afford it ? it will work right? pls answer ASAP :)</p>
<p>Can you please post the schematic, i am having a hard time figuring out connections through a photo. Thx</p>
<p>Hi. I have an HC 05 bluetooth shield instead of just the HC05 itself. I followed the steps exactly except I just mounted the bluetooth shield onto the arduino uno rather than manually connecting them pin-to-pin. Also, I altered the code according to the logci of my project, which is a simple on/off motor control. It doesnt work. Can anyone help me? <br><br>My device can pair with the HC05, but when I send the password via the bluetooth spp, the motor doesn't turn on.</p>
<p>Here's the modified code</p><p>int motor = 9; //pin 9 on Arduino</p><p>char final[4]; //Characters the Arduino will receive</p><p>char correct[4] = {'Q','W','E','R'}; //User-Defined Password</p><p>int pass_correct = 0; //Does Password match, 0=false 1=true</p><p>void setup() {</p><p> pinMode(motor, OUTPUT);</p><p> Serial.begin(9600);</p><p>}</p><p>void loop() {</p><p> while(Serial.available()){</p><p> for(int i=0; i&lt;4; i++){</p><p> final[i] = Serial.read();</p><p> }</p><p> for(int i=0; i&lt;4; i++){</p><p> if(final[i]==correct[i]){</p><p> pass_correct = 1;</p><p> }</p><p> else{</p><p> pass_correct = 0;</p><p> break;</p><p> }</p><p> }</p><p> }</p><p> if(pass_correct==1){</p><p> digitalWrite(motor, HIGH);</p><p> Serial.println(&quot;motor is on&quot;);</p><p> delay(4000);</p><p> pass_correct = 0;</p><p> }</p><p> else{</p><p> digitalWrite(motor, LOW);</p><p> }</p><p>}</p>
<p>Are there any Bluetooth SSP applications that can be installed and used for an iPhone? Or is the iPhone not compatable?</p>
<p>Hi is this possible to use WIFI + bluetooth to unlock the multiple door ? and if yes what changes ive to made??</p>
<p>I had success creating the project by following the steps. I was wondering though... Is there anyway to state the wrong password was entered to let the user know they need to try again?</p>
<p>how to insert the code what software is to be use??</p>
<p>what software please?</p>
<p>hi,i have to do mini project and its about fire detrector.</p><p>The fire will be detected by the sensor then a bluetooth transmiiter will tell my pc which will send sms message via ip to my phone.</p><p>please i need your help in connecting the circuit,i dont know the circuit that i should use.</p>
<p>how will u change the password using mobile app instead of the password being static as &quot;ABCD&quot;??</p>
<p>i want the project details for my seminar can u mail me at mbhanushali5@gmail.com</p>
<p>hi .who help me to make this project?</p>
<p>hi .who help me to make this project?</p>
<p>hi .who help me to make this project?</p>
<p>it won't work with arduino nano v3 and HC-06. help please.....</p>
<p>Might want to add a failsafe?</p>
<p>Hi, here are some pictures and personal notes from my finished version of this project!</p><p>1) Make sure that you buy the CZ-HC-05 Bluetooth module as well. Some people will advertise the carrier board &amp; the Bluetooth and sell only the carrier board (part label JY-MCU) without the actual Bluetooth module (CZ-HC-05) soldered onto it.</p><p>2) I also found a helpful link (HERE: <a href="http://www.instructables.com/id/Modify-The-HC-05-Bluetooth-Module-Defaults-Using-A/?ALLSTEPS" rel="nofollow">http://www.instructables.com/id/Modify-The-HC-05-Bluetooth-Module-Defaults-Using-A/?ALLSTEPS</a>) on how to reset mostly anything you need via AT Commands through the KEY pin on the Bluetooth.</p><p>3) Instead of an electric door strike, I used a door lock made active/inactive by a solenoid that works on 12V (because it was much cheaper at $20 rather than $100+!!)</p><p>4) I used the Arduino Uno board instead and it works just the same.</p><p>5) If the Bluetooth SPP app you're using counts the /r as another byte, you'll have to change the first for condition in the void looping section from 4 to 5. ( for(int i=0, i&lt;5, i++) )</p><p>GOOD LUCK! </p>
<p>Hi I have bought HC06 bluetooth module. Is it not going to work for this project? Why make sure HC05? Thanks.</p>
<p>SabriM, </p><p>Your module will work for this application.</p><p>In my original post I was saying to make sure that you order the actual chip in addition to the carrier board, rather than just the carrier board.</p><p>Both modules have the same hardware, but different firmware. The HC-06 is a slave device, i.e. it can't start the communication (this process is know as pairing in bluetooth jargon) with another device, it needs a master (PC/Smartphone) that pairs with it. On the other hand, the HC-05 is a master/slave device, i.e. it's capable of peer to peer communication with other HC-05 modules, it can be the master of an HC-06 module, it can be a slave of a PC/Smartphone, etc.</p><p>If need be, more can be read HERE:<a href="http://embeddedprogrammer.blogspot.com/2012/06/ubuntu-hacking-hc-06-bluetooth-module.html" rel="nofollow">http://embeddedprogrammer.blogspot.com/2012/06/ubuntu-hacking-hc-06-bluetooth-module.html</a></p>

About This Instructable




Bio: I am just a person who simply wants to keep learning about whatever i have even the slightest interest in. I work at a computer ... More »
More by Collin Amedee:Easy Bluetooth Enabled Door Lock With Arduino + AndroidUniversal Power Supply For Arduino + Breadboard
Add instructable to: