How to Make a Smartphone Connected Door Lock

Ғылым және технология

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.

Пікірлер: 355

  • @dylmccy1262
    @dylmccy12625 жыл бұрын

    @HackerShack what are the dimensions of the wooden servo housing that you said that you were going to explain

  • @rolfjunior
    @rolfjunior7 жыл бұрын

    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

  • @TheSanderAble
    @TheSanderAble7 жыл бұрын

    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.

  • @qwarlockz8017
    @qwarlockz80176 жыл бұрын

    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!

  • @thatsblackout5472
    @thatsblackout54727 жыл бұрын

    EXACTLY WHAT I WAS SEARCHING FOR LOVE YOU

  • @madhukeshnp
    @madhukeshnp4 жыл бұрын

    Can you please make a tutorial on port forwarding the blynk local server on raspberry pi ? Thank you in advance.

  • @pepijndemeer554
    @pepijndemeer5547 жыл бұрын

    You guys deserve way more subscribers! Also keep up the good explanation of what to do. It's really helpfull

  • @TheSmartHomeHelper
    @TheSmartHomeHelper4 жыл бұрын

    Very Cool Video - You made that simple and easy to do!

  • @iansss5076
    @iansss50766 жыл бұрын

    Hi what if instead of using servo motor I'll be using a solenoid, would it affect the setup and the output?

  • @nickstefanisko
    @nickstefanisko6 жыл бұрын

    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.

  • @Pieterjan123456789
    @Pieterjan1234567895 жыл бұрын

    Are the 3D printing files still available somewhere? I can't find them via the link provided below the video...

  • @b2original750
    @b2original7504 жыл бұрын

    Could i use the pi Zero for this proyect instead of the pi 3 ?

  • @rohanberry2346
    @rohanberry23466 жыл бұрын

    should the 1k and 10 k resistor be connected in any specific order

  • @grhosso
    @grhosso5 жыл бұрын

    Hi is it possible to make the same hack with an ESP2866 Board or in Raspberry Pi Zero? Thank you.

  • @Dew_-km7gr
    @Dew_-km7gr5 жыл бұрын

    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 :)

  • @finndriver1063
    @finndriver10637 жыл бұрын

    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.

  • @steviewonder5895
    @steviewonder58952 жыл бұрын

    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?

  • @RenjiB
    @RenjiB7 жыл бұрын

    Ha! This is awesome! Talk about innovating! :)

  • @sam19r
    @sam19r4 жыл бұрын

    Great tutorial, what if i want to lock/unlock by my own mobile application?

  • @sagor47
    @sagor474 жыл бұрын

    Is that project can be done with Ardiuino (Exchange of Raspberry Pai )?

  • @novechotango5033
    @novechotango50336 жыл бұрын

    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

  • @BankruptGreek
    @BankruptGreek6 жыл бұрын

    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.

  • @squesh1261
    @squesh12614 жыл бұрын

    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 😅

  • @aubreytsambatare9641
    @aubreytsambatare96412 жыл бұрын

    Great content! Would nice if you can leave a description with all the tools u are using

  • @ryanstonebraker8110
    @ryanstonebraker81107 жыл бұрын

    Awesome video! My only complaint would be that you're using vim and not nano...

  • @diegovknight69
    @diegovknight697 жыл бұрын

    Awesome, how do you do if you don't have energy or wifi?

  • @heimdallmidgard4670
    @heimdallmidgard46707 жыл бұрын

    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 ?

  • @chylerlzer4029
    @chylerlzer40295 жыл бұрын

    this is awesome video!but can we use arduino uno r3 instead using raspberry pie?

  • @himstien
    @himstien2 жыл бұрын

    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 ?

  • @nexfortzozo1655
    @nexfortzozo16556 жыл бұрын

    How can you manage the door locker during a power cut or unavailability of power?

  • @meliodasfullcounter9300
    @meliodasfullcounter93004 жыл бұрын

    Hi what version of node we would use in here

  • @-.......................-
    @-.......................-5 жыл бұрын

    Can raspberry pi handle the power for the servo?

  • @kendirwayi
    @kendirwayi7 жыл бұрын

    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?

  • @tawnyhammett
    @tawnyhammett7 жыл бұрын

    How did you access a 3-d printer?

  • @mohamedjiyavudeen9926
    @mohamedjiyavudeen99267 жыл бұрын

    cool project. I started thinking do this at my Home.

  • @citlalivillegas9298
    @citlalivillegas92986 жыл бұрын

    Wow this a completely dif side of KZread . I love it !

  • @LAStupidDrivers
    @LAStupidDrivers7 жыл бұрын

    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?

  • @samuelayeni3465
    @samuelayeni34655 жыл бұрын

    Please what other board can be used for this lock

  • @prateekpandey2
    @prateekpandey27 жыл бұрын

    can you post code for home automation using iot?

  • @andrey_pav
    @andrey_pav2 жыл бұрын

    nice work!

  • @malavikameenukesavankutty8039
    @malavikameenukesavankutty80396 жыл бұрын

    thanx .. it's so helpful

  • @danielpierce922
    @danielpierce9225 жыл бұрын

    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!

  • @vincejohn8370
    @vincejohn83707 жыл бұрын

    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.

  • @imrafahi
    @imrafahi6 жыл бұрын

    Guys. This is awesome.

  • @avinashkongara7488
    @avinashkongara74887 жыл бұрын

    help me working with wireless camera with raspberry pi 3 which is to be connected to drone.

  • @cwbh10
    @cwbh105 жыл бұрын

    Why no driver circuitry? How much does that servo draw under load...?

  • @rikieriyanbastomi3046
    @rikieriyanbastomi30466 жыл бұрын

    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

  • @vishaltejwani940
    @vishaltejwani9406 жыл бұрын

    How to use without rasberry pi? How to do with node mcu?

  • @anasuyaonkarappa6023
    @anasuyaonkarappa60236 жыл бұрын

    I liked this lock system

  • @Jindsing
    @Jindsing6 жыл бұрын

    Would be good if you could manually override your servo if you need to enter with a key in case your internet is out

  • @arunkashyap74
    @arunkashyap746 жыл бұрын

    You are great sir

  • @davidalejandrosanchezpolo1540
    @davidalejandrosanchezpolo15407 жыл бұрын

    can I add a rfid lector to work like authenticator?

  • @nickledimez4012
    @nickledimez40126 жыл бұрын

    How do you download the “ git”?

  • @roasthunter
    @roasthunter7 жыл бұрын

    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.

  • @deleonnikajadem.8266
    @deleonnikajadem.82663 жыл бұрын

    Hi what app do u use to create the app

  • @luinux23ify
    @luinux23ify5 жыл бұрын

    It is possible to connect the App with Alexa or Google Assistant? To Lock and Unlock with Voice Command?

  • @beroichoberoichev9501
    @beroichoberoichev95017 жыл бұрын

    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)? :)

  • @SparkableGlow
    @SparkableGlow6 жыл бұрын

    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.

  • @vikrambuilds

    @vikrambuilds

    6 жыл бұрын

    For the button part, you can just add an if statement in the code

  • @yanir.tzabary
    @yanir.tzabary7 жыл бұрын

    Can i use Raspberry Zero?

  • @vertexerror
    @vertexerror7 жыл бұрын

    Can Blynk be linked to IFTTT?

  • @MEME_PLAN
    @MEME_PLAN Жыл бұрын

    Does the lock work manually too if the device is set on the door?

  • @JORGINHODONASCIMENTO
    @JORGINHODONASCIMENTO5 жыл бұрын

    question... can this lock be open with the key or by picking it?

  • @rubenreffell262
    @rubenreffell2622 жыл бұрын

    can this be done on a microbit or no

  • @youngnation901
    @youngnation9014 жыл бұрын

    What 3D printer did you use

  • @lukaspuchon5864
    @lukaspuchon58647 жыл бұрын

    How great to have a backdoor on your front door? 😊

  • @JamesBond-oe5px

    @JamesBond-oe5px

    3 жыл бұрын

    lol

  • @jerryb9265
    @jerryb92655 жыл бұрын

    can the lock detect if the door is closed before it engages the lock?

  • @somairm
    @somairm6 жыл бұрын

    Really excellent Video. It would be nice if you add google home or Amazon Alexa to lock the door as well.

  • @cmiller1515
    @cmiller15157 жыл бұрын

    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.

  • @0xbitbybit

    @0xbitbybit

    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.

  • @0xbitbybit

    @0xbitbybit

    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.

  • @danielchisica6486
    @danielchisica64867 жыл бұрын

    SSL not authorized, Why this errors appears me, If i did all the steps, inclusively I could Blynk a LED with my Pi?

  • @Sliccz
    @Sliccz4 жыл бұрын

    Will the Github code work for any other pieces of hardware like an Arduino Uno r3. If not, is it hard to code it.

  • @johndonut2426
    @johndonut24266 жыл бұрын

    Thanks. But why would you not combine a 3d printed housing for the Pi as well so it doesn't look like garbage.

  • @mansibachate455
    @mansibachate4553 жыл бұрын

    What if I use and audrino instead of raspberry pi?

  • @Sculas
    @Sculas5 жыл бұрын

    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! :)

  • @henokadisumebratu7268
    @henokadisumebratu72686 жыл бұрын

    can this work everyday for 24 hours wont this have a side effect to the pi running full time ?

  • @joshsimpson1739
    @joshsimpson17393 жыл бұрын

    can you solder a battery to the board and plug in a small wifi emitter so that it can be power outage proof?

  • @hafizmoly1492
    @hafizmoly14923 жыл бұрын

    Hi, quick question, on github, you said to delete node_modules if failed. I cannot delete it in my raspberry files. I tried download newer version of nodes and extracted it but still can't manage to do it also. Can you help?

  • @adidaniel1453
    @adidaniel14536 жыл бұрын

    how if you add a failsafe function? just in case the doorlock is not functioning normally.

  • @sanjeshkarthic9220
    @sanjeshkarthic92204 жыл бұрын

    Where can we buy server mounter

  • @TheBadFred
    @TheBadFred7 жыл бұрын

    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

    7 жыл бұрын

    Got it working with the NodeMCU, it gets super hot after a while tho. I'm powering it with a phone external battery

  • @arrowstheorem1881
    @arrowstheorem18815 жыл бұрын

    Is this considered an IOT?

  • @audacity1375
    @audacity13756 жыл бұрын

    what happens if your phone dies? does opening the door with a key break the servo?

  • @patx3113
    @patx31136 жыл бұрын

    can u make this without using blynk and make ur own app?

  • @pangpengmaster
    @pangpengmaster6 жыл бұрын

    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

  • @MrCuanzao
    @MrCuanzao6 жыл бұрын

    how can i do this project using a nodemcu esp8266?

  • @asilahazhar1444
    @asilahazhar14446 жыл бұрын

    can i use arduino ?

  • @Th3KrazzerBroz
    @Th3KrazzerBroz7 жыл бұрын

    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

  • @Mersh_mellow

    @Mersh_mellow

    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.

  • @redrose7968
    @redrose79686 жыл бұрын

    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.

  • @alifsalleh9489
    @alifsalleh94892 жыл бұрын

    thanks for a great tutorial. how can i get the code :(

  • @ryan0307hk
    @ryan0307hk7 жыл бұрын

    does anyone have a Arduino IDE version of the code used?

  • @umeshlakhat6721
    @umeshlakhat67214 жыл бұрын

    Price of all materials tell me plz

  • @LuisAntonio-gz8pe
    @LuisAntonio-gz8pe6 жыл бұрын

    How much is the kit ?

  • @rooster443
    @rooster4435 жыл бұрын

    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. KZread isn't enough anymore

  • @363691amol
    @363691amol7 жыл бұрын

    hey make home automation using ESP module only... without OS or Arduino

  • @naveendesai1909
    @naveendesai19096 жыл бұрын

    Can we use this with the python code

  • @adelsondiaz17
    @adelsondiaz174 жыл бұрын

    And if there is a power failure, how do you open the door and how do you open it from the inside?

  • @AztecWarrior69
    @AztecWarrior697 ай бұрын

    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

    7 ай бұрын

    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

    7 ай бұрын

    door jam locks like this guy kzread.info/dash/bejne/f2tqyZpqd5bImZs.html

  • @Noah-yp6fo
    @Noah-yp6fo7 жыл бұрын

    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

  • @pollywoodarena6703
    @pollywoodarena67037 жыл бұрын

    Where is the WOOD ADAPTER being used ??

  • @sauraabhvarshney5545
    @sauraabhvarshney55454 жыл бұрын

    Plzz send the coding in the discription that you use in this project

Келесі