How to Make a Smartphone Connected Door Lock

  Переглядів 759,944

Hacker Shack

Hacker Shack

7 років тому

See how we built it, including our materials, code, and supplemental instructions, on Hackster.io: www.hackster.io/hackershack/s...
In this video, we show you how to make a smartphone-controlled, internet-connected deadbolt actuator powered by a Raspberry Pi that can be added onto your existing door lock without any modifications to the door. The door lock can be controlled by multiple smartphones, and even notify you whenever someone locks/unlocks the door. All of this is done using a simple, drag-and-drop app builder (www.blynk.cc/) which makes building your own Internet of Things (IoT) app easier than ever. For an extra impressive door lock, we'll also show you how to add a simple LED light to indicate if the door is locked, and a push-button to operate the lock manually.
USEFUL LINKS
Get the 3D printed parts on our Patreon: / smart-doorlock-37732960
If you don't have a 3d printer, you should be able to print the parts on a local community printer or with an online service like Shapeways.
Github repository: github.com/HackerShackOfficia...
Blynk: www.blynk.cc/
Get our 3D printer: robo3d.myshopify.com?rfsn=1004615.c5abe
MATERIALS
1× Raspberry Pi 3 Model B
www.raspberrypi.org/products/...
1× High Torque Servo, Tower Pro MG995R
www.adafruit.com/product/1142
1× Red, 3 mm LED Light
www.sparkfun.com/products/533
1× Mini Pushbutton Switch
www.sparkfun.com/products/97
5× Jumper Wires
www.sparkfun.com/products/12795 , www.sparkfun.com/products/12796
1× Glue
1x Outdoor Mounting Tape
www.amazon.com/Scotch-411P-Ou...
1× 1/4" MDF Board (optional)
www.homedepot.com/p/Medium-Den...
OTHER
Subscribe to Hacker Shack: / @hackershack
Follow Hacker Shack on Instagram:
/ hackershackofficial
Music by: David Cutter Music - www.davidcuttermusic.co.uk
Disclaimer
The methods shown in this video should be used
as a guide only.
HACKER SHACK ACCEPTS NO RESPONSIBILITY FOR
ACCIDENTS OR INCIDENTS ARISING FROM INDIVIDUALS
UNDERTAKING ANY OF THE TASKS DESCRIBED. IN
PARTICULAR, IF UNSURE YOU SHOULD ALWAYS CONTACT
A QUALIFIED TRADESMAN BEFORE PROCEEDING.

КОМЕНТАРІ: 354
@qwarlockz8017
@qwarlockz8017 6 років тому
Guys, I just stumbled onto your site today. You two rock! This is a GREAT site. I am pretty obsessed with home automation and seeing what home users can accomplish. I love that you guys are giving us great tools and the projects are in stable shape. Seriously making them pretty and hiding wires and painting cables.. I would rather we do that and you guys concentrate on the bones and muscle of the projects. (I am just putting that in cause amazed when people are complaining about "I see wires!!!!". They should know how to hide a wire!) I am looking back now at your project list for fun cool ideas! you ROCK!
@pepijndemeer554
@pepijndemeer554 7 років тому
You guys deserve way more subscribers! Also keep up the good explanation of what to do. It's really helpfull
@thatsblackout5472
@thatsblackout5472 7 років тому
EXACTLY WHAT I WAS SEARCHING FOR LOVE YOU
@TheSanderAble
@TheSanderAble 7 років тому
Really like the lock you made. I made a similar project. it's the same principle but I added a raspberry pi camera with opencv so that it automatically warns you when there is someone at the door.
@TheSmartHomeHelper
@TheSmartHomeHelper 4 роки тому
Very Cool Video - You made that simple and easy to do!
@citlalivillegas9298
@citlalivillegas9298 6 років тому
Wow this a completely dif side of UKposts . I love it !
@mohamedjiyavudeen9926
@mohamedjiyavudeen9926 7 років тому
cool project. I started thinking do this at my Home.
@RenjiB
@RenjiB 7 років тому
Ha! This is awesome! Talk about innovating! :)
@pangpengmaster
@pangpengmaster 6 років тому
My home door is smartphone compatible since 2012. "Mom, can you open the door? I'm outside"
@nonami_066xswqoqowiwl
@nonami_066xswqoqowiwl 4 роки тому
.
@nonami_066xswqoqowiwl
@nonami_066xswqoqowiwl 4 роки тому
^_^
@nonami_066xswqoqowiwl
@nonami_066xswqoqowiwl 4 роки тому
Meow 😸
@azwaahmadanuar6168
@azwaahmadanuar6168 3 роки тому
are u using rapberry pi..can u help me on code and component
@andrey_pav
@andrey_pav 2 роки тому
nice work!
@rolfjunior
@rolfjunior 6 років тому
Great project! I have my servo moving using Blynk, but it only works with the Raspberry terminal open. Also, it does not start automatically on reboot by inserting the code to the rc.local file. What am I missing? Thanks
@arunkashyap74
@arunkashyap74 5 років тому
You are great sir
@anasuyaonkarappa6023
@anasuyaonkarappa6023 6 років тому
I liked this lock system
@imrafahi
@imrafahi 6 років тому
Guys. This is awesome.
@malavikameenukesavankutty8039
@malavikameenukesavankutty8039 5 років тому
thanx .. it's so helpful
@dylmccy1262
@dylmccy1262 5 років тому
@HackerShack what are the dimensions of the wooden servo housing that you said that you were going to explain
@aubreytsambatare9641
@aubreytsambatare9641 2 роки тому
Great content! Would nice if you can leave a description with all the tools u are using
@heimdallmidgard4670
@heimdallmidgard4670 6 років тому
Little overkill with a Pi. ESP8266 with sleep mode and 18650 would be nice so you don't need a charger all the time.
@smoresrock
@smoresrock 4 роки тому
came here to say this. you could probably get away with using an arduino and the smartthings library for example
@hasansaleh6232
@hasansaleh6232 4 роки тому
smoresrock or attiny 85 ?
@madhukeshnp
@madhukeshnp 4 роки тому
Can you please make a tutorial on port forwarding the blynk local server on raspberry pi ? Thank you in advance.
@Dew_-km7gr
@Dew_-km7gr 5 років тому
Amazing video, but I was wondering if it’s possible to add Alexa voice recognition to some how control the raspberry pi in order to lock and unlock the door :)
@steviewonder5895
@steviewonder5895 2 роки тому
This is so cool! Thank you for sharing. I have a question; Can you use your key still to unlock or it wont let it turn?
@nickstefanisko
@nickstefanisko 5 років тому
Any thoughts on using an HTTP server on NodeMCU rather than a NodeJS on Pi. I'm thinking less complexity, less spaghetti. A magnetic closure sensor would be cool too so that you could also open/close state.
@ryanstonebraker8110
@ryanstonebraker8110 7 років тому
Awesome video! My only complaint would be that you're using vim and not nano...
@lukaspuchon5864
@lukaspuchon5864 7 років тому
How great to have a backdoor on your front door? 😊
@JamesBond-oe5px
@JamesBond-oe5px 3 роки тому
lol
@finndriver1063
@finndriver1063 7 років тому
could you have a small onboard battery that could power the pi for a few minutes and then some contacts on the top of the door to transmit power when closed? that way wires could be routed in different directions.
@sam19r
@sam19r 4 роки тому
Great tutorial, what if i want to lock/unlock by my own mobile application?
@danielpierce922
@danielpierce922 4 роки тому
Kits? can you give an SD card with all the tec parts done? So i can just plug and play with my Pie? Anyways, awesome vid! I'm doing to a door that's a secret door to a secret room. It'll also be spring loaded so it'll unlock and open. I'm going to put most of this inside the door and connect the wiring inside the wall. Been wondering how to do the lock on this door, so thanks again!
@Noah-yp6fo
@Noah-yp6fo 7 років тому
I love your content. it's so cool.
@hackershack
@hackershack 7 років тому
+Drking Curry thanks for the support!
@venkateshpalla6670
@venkateshpalla6670 6 років тому
Drking Curry is the best way
@venkateshpalla6670
@venkateshpalla6670 6 років тому
Hacker House Mafia
@Pieterjan123456789
@Pieterjan123456789 5 років тому
Are the 3D printing files still available somewhere? I can't find them via the link provided below the video...
@sagor47
@sagor47 4 роки тому
Is that project can be done with Ardiuino (Exchange of Raspberry Pai )?
@garybaxter7673
@garybaxter7673 5 років тому
Great video guys and very impressive skill sets you have. Awesome! You are the inventors for the future!
@TutocarloCV
@TutocarloCV 7 років тому
nice
@grhosso
@grhosso 5 років тому
Hi is it possible to make the same hack with an ESP2866 Board or in Raspberry Pi Zero? Thank you.
@Th3KrazzerBroz
@Th3KrazzerBroz 7 років тому
You guys should definitely update more and be more active to get more subs!! Love your vids man I'm definitely gonna try this out thanks so much!!
@hackershack
@hackershack 7 років тому
+Antonio Fontes thanks! We want to make more videos, but it's hard because we both have full time jobs. However, we do have some cool stuff planned for the next few months :)
@Th3KrazzerBroz
@Th3KrazzerBroz 7 років тому
Hacker House I'll definitely be watching all your vids. Keep up the good work, you guys always have good content
@eddiemirsberger6394
@eddiemirsberger6394 7 років тому
Antonio Fontes totally agree with you, I love this channel but the 3-4 weeks before a new video does kinda drag. But I do understand the wait.
@BankruptGreek
@BankruptGreek 5 років тому
For doors with not a turning handle on the outside, would it be possible to remove the door knob lock (we call it tongue in my country, I am talking about the thing that closes and opens when you turn the door knob). Remove it or replace it with one that opens and closes with some basic force then have an external lock that has a female insert screwed on the door and a male remote controled piece on the wall that locks the door tightly closed using the app. that way you can still use your doors lock system and as a backup and keep that unlocked when you want to remotely open the door by opening the external mechanism.
@kendirwayi
@kendirwayi 7 років тому
wow!! this video is awesome and the presenters are just on point. thank you its really enlightening. i am wondering though, if i want to use Arduino-Uno instead of Raspberry Pi and use Sim800 GSM module for accessing my micro-controller instead of blue-tooth module do i need to have an external power supply for the servo or Arduino power supply still works?
@roasthunter
@roasthunter 7 років тому
Probably works in America that use that type of lock. Here in the UK the locks are generally integrated on the door handle and dont have manual overrides, but an interesting project none the less.
@chylerlzer4029
@chylerlzer4029 4 роки тому
this is awesome video!but can we use arduino uno r3 instead using raspberry pie?
@diegovknight69
@diegovknight69 7 років тому
Awesome, how do you do if you don't have energy or wifi?
@iansss5076
@iansss5076 6 років тому
Hi what if instead of using servo motor I'll be using a solenoid, would it affect the setup and the output?
@rooster443
@rooster443 5 років тому
Just use esp886 and some microcontroller like stm32 still there's a need for a server or computer logged into internet so we can access and that's why we use raspberry. Miss you guys, hopefully you are doing great in your other projects. UKposts isn't enough anymore
@novechotango5033
@novechotango5033 6 років тому
Good day, Is it possible to merge or connect two of your projects: Smart Security Camera and Smartphone Connected Home Door Lock in one project? Does the raspberry pi 3 can run them simultaneously? Thank you
@somairm
@somairm 6 років тому
Really excellent Video. It would be nice if you add google home or Amazon Alexa to lock the door as well.
@rohanberry2346
@rohanberry2346 5 років тому
should the 1k and 10 k resistor be connected in any specific order
@Vasionz
@Vasionz 7 років тому
seems safe =]
@gogo9763
@gogo9763 6 років тому
beautifull
@b2original750
@b2original750 4 роки тому
Could i use the pi Zero for this proyect instead of the pi 3 ?
@squesh1261
@squesh1261 4 роки тому
Is blynk compatible with the pi 4? If it is, what option in the blynk app do I choose? I'd really appreciate it if u guys could respond. I need it for a school project 😅
@elielepetit8107
@elielepetit8107 2 роки тому
waaaaaaaaaaoooooooooooh:!!!!!!exceptionnal project
@Sculas
@Sculas 5 років тому
This looks really nice, but also really dangerous if someone really uses this. Blynk has to get 1 database breach and every door can be unlocked by logging in and yeah, opening the door. It looks fun for other things tho! :)
@himstien
@himstien 2 роки тому
Can you still use the existing physical key to unlock the door while also using this automation? Wouldn't the servo be stuck at its the last state ?
@LAStupidDrivers
@LAStupidDrivers 7 років тому
Thanks for share you work. How blink apps know if the door is locked or unlocked? The app read the status of the led for see if is locked or unlocked?
@cmiller1515
@cmiller1515 7 років тому
What if you made the lock voice activated? Perhaps similar to the smart mirror, except it locks, and unlocks the door.
@hackershack
@hackershack 7 років тому
+bootlegged_cake great idea. Maybe we'll make an update video about it :D
@saikrishnaseethala3994
@saikrishnaseethala3994 7 років тому
Can't we make it much cleaner than that? I mean all in one piece.
@jahwni
@jahwni 7 років тому
So the thief can come up and say "unlock"? lol
@cmiller1515
@cmiller1515 7 років тому
lankyfingers If the lock was activated by a voice controlled script, it would most likely be behind a sound proof door, with the mic facing inside the house, and not outside. If you wanted a voice unlock outside, you could even program it to only unlock when a certain voice is heard.
@jahwni
@jahwni 7 років тому
Yeah I know, was just being silly =) would be cool to have it so you could speak to your phone to unlock it, rather than having to yell across the room to the mic facing you etc.
@AztecWarrior69
@AztecWarrior69 4 місяці тому
Yeah this is nice, good work by the way, but there are door jam bolt release mechanisms that you don't have to make any 3d printed stuff. They don't cost much either. You can have the wire hidden behind the trim boards. And by using an MHCOZY smart switch you don't have to do ANY arduino programming. You can even use the Bluetooth function on the MHCOZY to open the door when your phone is close to the door.
@AztecWarrior69
@AztecWarrior69 4 місяці тому
You can also have gaagle's always listening function to unlock the door when you say "Hay gaagle unlock my front door.". For those times you're holding a bunch of groceries.
@AztecWarrior69
@AztecWarrior69 4 місяці тому
door jam locks like this guy ukposts.info/have/v-deo/hWdnm25ofmmTymw.html
@nexfortzozo1655
@nexfortzozo1655 6 років тому
How can you manage the door locker during a power cut or unavailability of power?
@chandrus3365
@chandrus3365 7 років тому
Thats very useful if my mom comes to home i dont want to open my door I'll Just use this
@TheBadFred
@TheBadFred 7 років тому
should be a nodeMCU or ESP8266 enough, instead of a relatively expensive raspberry pi 3 ?
@falias4
@falias4 7 років тому
TheBadFred the RasperryPi is definitly an overkill, when it's just about WiFi and some IO-Pins. Blynk also supports ESP8266 according to their website.
@yanir.tzabary
@yanir.tzabary 7 років тому
SO juse need to use same GPIO HEADER?
@falias4
@falias4 7 років тому
Yanir just google it.. there are enough tutorials and howtos on the internet ;)
@yanir.tzabary
@yanir.tzabary 7 років тому
but i want to use this project, as i undestand just need to use same GPIO HEADER on Raspberry pi Zero :)
@sailingdev
@sailingdev 6 років тому
Got it working with the NodeMCU, it gets super hot after a while tho. I'm powering it with a phone external battery
@SparkableGlow
@SparkableGlow 6 років тому
Could you add another button on the case that is programmed to lock or unlock the door depending on which state it is in? I don't know too much about this kind of stuff but for sure want to learn about it. The servo is it always in one place until told to be moved or can it be freely turned as you want but moves when it is told to? If it can be moved freely an opening could be made on the casing so you could reach a finger in a turn the lock physically right? Also, does the servo keep track of how much it has turned or is it just a motor that moves when it is told? I would love to learn about this so if you have any knowledge to share please do so! Thanks.
@vikrammishra7601
@vikrammishra7601 6 років тому
For the button part, you can just add an if statement in the code
@vincejohn8370
@vincejohn8370 7 років тому
where do I buy the kit? my grandma need this she always forgets her keys and always call me and I live on the other side of the town.
@-.......................-
@-.......................- 4 роки тому
Can raspberry pi handle the power for the servo?
@MEME_PLAN
@MEME_PLAN Рік тому
Does the lock work manually too if the device is set on the door?
@wenwen1118
@wenwen1118 6 років тому
Cool
@luinux23ify
@luinux23ify 4 роки тому
It is possible to connect the App with Alexa or Google Assistant? To Lock and Unlock with Voice Command?
@nelsonc5339
@nelsonc5339 6 років тому
Good _overview_ of building a door lock. So _many_ security issues/worst-practices (holes) though... 😧 Next video in this series will be: "how our house got hacked"! If you end up selling kits, make sure you include a disclaimer!
@qwarlockz8017
@qwarlockz8017 6 років тому
This would be great though for in inside door lock. If you have room mates and want a lock on your bedroom or you have one room that is your work area that you want the kids to not get into.
@beroichoberoichev9501
@beroichoberoichev9501 7 років тому
Question - What would you do if there is no power and the electricity is cut? Can you add backup battery power just in that case and this battery to be used only when the primary electricity circuit is not working. And if that is possible how woul you do it(connect it)? :)
@johndonut2426
@johndonut2426 5 років тому
Thanks. But why would you not combine a 3d printed housing for the Pi as well so it doesn't look like garbage.
@cwbh10
@cwbh10 5 років тому
Why no driver circuitry? How much does that servo draw under load...?
@tawnyhammett
@tawnyhammett 7 років тому
How did you access a 3-d printer?
@thelatinbrother6596
@thelatinbrother6596 6 років тому
hhaahah que buen proyecto yo estaba intentando hacer algo así pero con jarvis.
@calendil
@calendil 4 роки тому
A couple of suggestions to improve your project: couple the servo with a gear and put a thru shaft. Gear should engage to the shaft on shaft's axial movement (like a car gear box). Put a handle to the back end of the shaft and a spring which would push the shaft towards gear. When someone pushes the handle from inside that would disengage the gear, and you can lock/unlock the door manually by the handle. I hope this makes sense.
@deleonnikajadem.8266
@deleonnikajadem.8266 2 роки тому
Hi what app do u use to create the app
@prateekpandey2
@prateekpandey2 7 років тому
can you post code for home automation using iot?
@meliodasfullcounter9300
@meliodasfullcounter9300 4 роки тому
Hi what version of node we would use in here
@Jindsing
@Jindsing 6 років тому
Would be good if you could manually override your servo if you need to enter with a key in case your internet is out
@rikieriyanbastomi3046
@rikieriyanbastomi3046 6 років тому
how can i running at startup? i have follow all the instruction but everytime i power on my raspberry in blynk it says offline, i must run it on terminal every single time. or do i used to run it on terminal every time? thanks
@samuelayeni3465
@samuelayeni3465 5 років тому
Please what other board can be used for this lock
@vertexerror
@vertexerror 6 років тому
Can Blynk be linked to IFTTT?
@Jason-AoIeong01
@Jason-AoIeong01 6 років тому
good
@youngnation901
@youngnation901 4 роки тому
What 3D printer did you use
@martinmchugh1924
@martinmchugh1924 6 років тому
Great project. The only thing I'd say is that, to get the same functionality with an ESP8266 would be infinitely simpler and cheaper. Still, if it's a Raspberry Pi project you're after, this is a great one!
@TwanJaarsveld1
@TwanJaarsveld1 Рік тому
and it will run Esphome and it could be used in Home Assistant
@glen4cindy
@glen4cindy 7 місяців тому
I'm seeing this several years after it was made and I'm trying to think of how it could be miniaturized even further. If you used an ESP8266 you could put a battery on board to run the ESP and then you wouldn't have wires running from the Pi to a power source.
@redrose7968
@redrose7968 6 років тому
I have a question beyond the subject - where can I buy the jacket the young woman has at the beginning of the video? Or what is the brand name? Tkanks.
@danielchisica6486
@danielchisica6486 6 років тому
SSL not authorized, Why this errors appears me, If i did all the steps, inclusively I could Blynk a LED with my Pi?
@alifsalleh9489
@alifsalleh9489 2 роки тому
thanks for a great tutorial. how can i get the code :(
@alvinversion2963
@alvinversion2963 2 роки тому
🔥🔥🔥🔥🔥
@joshsimpson1739
@joshsimpson1739 2 роки тому
can you solder a battery to the board and plug in a small wifi emitter so that it can be power outage proof?
@JORGINHODONASCIMENTO
@JORGINHODONASCIMENTO 5 років тому
question... can this lock be open with the key or by picking it?
@umeshlakhat6721
@umeshlakhat6721 4 роки тому
Price of all materials tell me plz
@rubenreffell262
@rubenreffell262 2 роки тому
can this be done on a microbit or no
@vishaltejwani940
@vishaltejwani940 6 років тому
How to use without rasberry pi? How to do with node mcu?
@yanir.tzabary
@yanir.tzabary 7 років тому
Can i use Raspberry Zero?
@arrowstheorem1881
@arrowstheorem1881 5 років тому
Is this considered an IOT?
@avinashkongara7488
@avinashkongara7488 7 років тому
help me working with wireless camera with raspberry pi 3 which is to be connected to drone.
@nisasyahidda4222
@nisasyahidda4222 6 років тому
hi there, i want to ask if the owner can perform the lock and unlock operation away from home( using mobile data) or only able using home wi-fi range only? im very thankful for your help.
@martinmchugh1924
@martinmchugh1924 6 років тому
nisa syahidda Using the Blynk service means your project can be accessed from anywhere once your phone has a connection to the internet.
@nisasyahidda4222
@nisasyahidda4222 6 років тому
Thank you so much. Happy New Year. Wishing you a great 2018 ahead!
@martinmchugh1924
@martinmchugh1924 6 років тому
nisa syahidda No problem. Happy new year Nisa.
@Sliccz
@Sliccz 4 роки тому
Will the Github code work for any other pieces of hardware like an Arduino Uno r3. If not, is it hard to code it.
@henokadisumebratu7268
@henokadisumebratu7268 6 років тому
can this work everyday for 24 hours wont this have a side effect to the pi running full time ?
@jerryb9265
@jerryb9265 5 років тому
can the lock detect if the door is closed before it engages the lock?
@singlesonmom1414
@singlesonmom1414 4 роки тому
Cool Project Hi I'm senior I interest your project and I want to method for senior project because Project is IOT and the best ^___^
@patx3113
@patx3113 5 років тому
can u make this without using blynk and make ur own app?
@sdwzwangg
@sdwzwangg 6 років тому
it is cool
How to Make a Raspberry Pi Smart Bartender
15:09
Hacker Shack
Переглядів 972 тис.
$25 DIY "Smart" Door Locks - ElectroMagnet + Sonoff + Tasmota
11:44
DrZzs & GrZzs
Переглядів 299 тис.
Это было легко! Оживили и Отдаем BMW владельцу!
1:40:26
ИЛЬДАР АВТО-ПОДБОР
Переглядів 3,2 млн
How to Make Mobile Control Door Lock at home
3:24
TARUN KUMAR DAHAKE
Переглядів 123 тис.
DIY Home Security - ON A BUDGET!
9:12
DIY Perks
Переглядів 5 млн
Build a Raspberry Pi Smart Door Lock Security System for your Smart Home!
18:17
Switched On Network
Переглядів 160 тис.
How to Make a Smart Security Camera with a Raspberry Pi Zero
12:41
Hacker Shack
Переглядів 1 млн
Raspberry Pi Magic Mirror
9:07
Becky Stern
Переглядів 569 тис.
Top 11 convenient self-closing door latch|auto door lock|Long82TV
5:59
How to Make Fingerprint Door Lock at Home
4:15
Creativity Buzz
Переглядів 1,9 млн
How to Make a Raspberry Pi Smart Mirror
13:46
Hacker Shack
Переглядів 4,4 млн
Build a DIY screen out of recycled parts for cheap
9:22
DIY Perks
Переглядів 5 млн
Как открыть дверь в Jaecoo J8? Удобно?🤔😊
0:27
Суворкин Сергей
Переглядів 752 тис.
СКОЛЬКО ЕЩЕ БУДЕТ АКТУАЛЕН IPHONE 13?
14:10
DimaViper Live
Переглядів 38 тис.