Smart BT Door Lock(simple Arduino)
by einzigartig arun in Circuits > Arduino
12602 Views, 75 Favorites, 0 Comments
Smart BT Door Lock(simple Arduino)
![lock_and_app.jpg](/proxy/?url=https://content.instructables.com/FFV/ML5J/J8UH22PT/FFVML5JJ8UH22PT.jpg&filename=lock_and_app.jpg)
This is a simple project made with the arduino uno R3,the aim is to control a door lock without keys,and using a smart phone to accomplish this,the communication medium is Bluetooth thus the working limit is upto 10m,includes PASSWORD for security.
Collecting the Items Required
![arduino.jpg](/proxy/?url=https://content.instructables.com/FU1/4C54/J8UH1Z8D/FU14C54J8UH1Z8D.jpg&filename=arduino.jpg)
![cable.jpg](/proxy/?url=https://content.instructables.com/FTS/I0JZ/J8UH1Z6U/FTSI0JZJ8UH1Z6U.jpg&filename=cable.jpg)
1.Arduino UNO R3
to control the servo and interface with the bluetooth module.
Bluetooth Module
![BT module.jpg](/proxy/?url=https://content.instructables.com/FHI/WOE5/J8UH1Z6T/FHIWOE5J8UH1Z6T.jpg&filename=BT module.jpg)
to receive signal when to open or close the lock,to know the status of the lock wether open or close
High Torque Servo
![servo.jpeg](/proxy/?url=https://content.instructables.com/FFV/HLDR/J8UH1Z8A/FFVHLDRJ8UH1Z8A.jpg&filename=servo.jpeg)
to turn the lock lever when signal is sent from the arduino
it is powered by the arduino 5v pin itself and it works well with it.
Travel Adaptor and UNO Cable
![adaptor.jpeg](/proxy/?url=https://content.instructables.com/FSG/4917/J8UH1Z8C/FSG4917J8UH1Z8C.jpg&filename=adaptor.jpeg)
![cable.jpg](/proxy/?url=https://content.instructables.com/FTS/I0JZ/J8UH1Z6U/FTSI0JZJ8UH1Z6U.jpg&filename=cable.jpg)
this is used to power the arduino,the Servo will not work if the arduino is powered with a HW 9v battery.if you want to use a HW battery to power the arduino then you have to power the Servo separately.
Sheet Metal
![sheet-metal.jpg](/proxy/?url=https://content.instructables.com/FSQ/9MIW/J8UH1Z8B/FSQ9MIWJ8UH1Z8B.jpg&filename=sheet-metal.jpg)
this is used to make the case for the servo motor which allows it to properly hold the motor on the door and the rotating part properly fixed to the lever of the lock.
the case is upto your creativity you can use any other material/thing to make the case.
TO HOLD THE MOTOR ON THE DOOR
Coding With IDE
![wallhaven-462849.png](/proxy/?url=https://content.instructables.com/FIE/C7R5/J8UH2168/FIEC7R5J8UH2168.png&filename=wallhaven-462849.png)
the coding is attached you can download and refer it.
Downloads
Building Own App With App Inventor
![mit app inventor.jpg](/proxy/?url=https://content.instructables.com/F7Z/AXYD/J8UH21IQ/F7ZAXYDJ8UH21IQ.jpg&filename=mit app inventor.jpg)
you can download the app from here,i have also provided the images for building the blocks and designing the app with MIT app inventor.
Downloads
Screenshots of App Inventor
![scrn 1 block.jpg](/proxy/?url=https://content.instructables.com/FRE/WQO8/J8UH1Z6Z/FREWQO8J8UH1Z6Z.jpg&filename=scrn 1 block.jpg)
![scrn0 block.jpg](/proxy/?url=https://content.instructables.com/FY8/KT42/J8UH1Z75/FY8KT42J8UH1Z75.jpg&filename=scrn0 block.jpg)
![scrn0 designer.jpg](/proxy/?url=https://content.instructables.com/FA1/XRRG/J8UH1Z84/FA1XRRGJ8UH1Z84.jpg&filename=scrn0 designer.jpg)
![scrn1 designer.jpg](/proxy/?url=https://content.instructables.com/FFA/Y28M/J8UH1Z89/FFAY28MJ8UH1Z89.jpg&filename=scrn1 designer.jpg)
refer images.
Assembly
![BT connection.jpg](/proxy/?url=https://content.instructables.com/F9K/2HE0/J8AGPXGS/F9K2HE0J8AGPXGS.jpg&filename=BT connection.jpg)
after connecting the bluetooth module then connect the servo ,
SERVO CONNECTION
1.orange-----arduino pin 2
2.red-------5v pin in arduino
3.brown------ground pin in arduino
USING THE APP
1.I have set the password as home \
2.you can change the password by changing the global variable text in app inventor blocks screen 0.
assemble all your things and upload the coding to the arduino board and download the app on your phone.
TEST YOUR PROJECT good luck!!!
Final Look
![IMG_20171018_134638[1].jpg](/proxy/?url=https://content.instructables.com/F85/W34L/J8UH2545/F85W34LJ8UH2545.jpg&filename=IMG_20171018_134638[1].jpg)
![Screenshot_2017-10-18-13-39-01[1].png](/proxy/?url=https://content.instructables.com/FX2/AHUT/J8UH25BY/FX2AHUTJ8UH25BY.png&filename=Screenshot_2017-10-18-13-39-01[1].png)
![Screenshot_2017-10-18-13-39-49[1].png](/proxy/?url=https://content.instructables.com/F65/NUWI/J8UH25CN/F65NUWIJ8UH25CN.png&filename=Screenshot_2017-10-18-13-39-49[1].png)
![Screenshot_2017-10-18-13-39-57[1].png](/proxy/?url=https://content.instructables.com/FH3/VDGH/J8UH25E4/FH3VDGHJ8UH25E4.png&filename=Screenshot_2017-10-18-13-39-57[1].png)
Servo Attachment
![IMG_20171018_135139[1].jpg](/proxy/?url=https://content.instructables.com/FBX/JVKV/J8UH25KE/FBXJVKVJ8UH25KE.jpg&filename=IMG_20171018_135139[1].jpg)