How to Make a Smartphone Connected Door Lock
HTML-код
- Опубликовано: 3 окт 2024
- See how we built it, including our materials, code, and supplemental instructions, on Hackster.io: www.hackster.i...
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/Hac...
Blynk: www.blynk.cc/
Get our 3D printer: robo3d.myshopif...?rfsn=1004615.c5abe
MATERIALS
1× Raspberry Pi 3 Model B
www.raspberryp...
1× High Torque Servo, Tower Pro MG995R
www.adafruit.c...
1× Red, 3 mm LED Light
www.sparkfun.c...
1× Mini Pushbutton Switch
www.sparkfun.c...
5× Jumper Wires
www.sparkfun.c... , www.sparkfun.c...
1× Glue
1x Outdoor Mounting Tape
www.amazon.com...
1× 1/4" MDF Board (optional)
www.homedepot.c...
OTHER
Subscribe to Hacker Shack: / @hackershack
Follow Hacker Shack on Instagram:
/ hackershackofficial
Music by: David Cutter Music - www.davidcutter...
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.
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!
How great to have a backdoor on your front door? 😊
lol
Little overkill with a Pi. ESP8266 with sleep mode and 18650 would be nice so you don't need a charger all the time.
came here to say this. you could probably get away with using an arduino and the smartthings library for example
smoresrock or attiny 85 ?
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.
My home door is smartphone compatible since 2012.
"Mom, can you open the door? I'm outside"
.
^_^
Meow 😸
are u using rapberry pi..can u help me on code and component
EXACTLY WHAT I WAS SEARCHING FOR
LOVE YOU
Ha! This is awesome! Talk about innovating! :)
Awesome video! My only complaint would be that you're using vim and not nano...
Very Cool Video - You made that simple and easy to do!
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 :)
should be a nodeMCU or ESP8266 enough, instead of a relatively expensive raspberry pi 3 ?
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.
SO juse need to use same GPIO HEADER?
Yanir just google it.. there are enough tutorials and howtos on the internet ;)
but i want to use this project, as i undestand just need to use same GPIO HEADER on Raspberry pi Zero :)
Got it working with the NodeMCU, it gets super hot after a while tho. I'm powering it with a phone external battery
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!!
+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 :)
Hacker House I'll definitely be watching all your vids. Keep up the good work, you guys always have good content
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.
I liked this lock system
can you solder a battery to the board and plug in a small wifi emitter so that it can be power outage proof?
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)? :)
What if you made the lock voice activated? Perhaps similar to the smart mirror, except it locks, and unlocks the door.
+bootlegged_cake great idea. Maybe we'll make an update video about it :D
Can't we make it much cleaner than that? I mean all in one piece.
So the thief can come up and say "unlock"? lol
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.
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.
Is that project can be done with Ardiuino (Exchange of Raspberry Pai )?
what happens if your phone dies? does opening the door with a key break the servo?
@HackerShack what are the dimensions of the wooden servo housing that you said that you were going to explain
Can you please rewrite the code for arduino in c++ :D??
Hi what app do u use to create the app
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.
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?
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!
and it will run Esphome and it could be used in Home Assistant
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.
how if you add a failsafe function? just in case the doorlock is not functioning normally.
The link to the 3d printable files doesn't seem to work anymore. Any chance you can post it somewhere?
It’s on our patreon page. The link should be in the description!
I am amused. Old Engineer saying: The more complicated the lock the easier it is to defeat. Good marketing....
nice idea, but unfortunately this seems like it would be too unsafe for the main entrance of my house
It needs a way to disconnect the servo right after unlocking or locking.
Hey guys, I'm starting a new Tech Talk series on my channel, Tech Flare, tonight at 7:30 Eastern time! It'll be great! Definitely worth a watch.
Where is the WOOD ADAPTER being used ??
Wireless devices are hackable....I never used wireless to unlock nor never used master password too to reset, so i didn't import ready made locks from China , only problem I faced is long bunch of wires going to lcd and keypad , this can be minimized using Dallas 1 wire communication chips ...
Sometimes you have to type sudo apt-get install npm if sudo install npm gets you the command not found error
Vikram Mishra do you have errors in the program ?
But it shows temporary failure resolving raspbian.raspberrypi.org
How much is the kit ?
Sudo npm command not found what to do??
It's cool for experimenting and all but absolutely never do this at home ! You just make easy life for thieves
Noel Gallagher whats your point? you think that every thief has knowledge about hacking wifi, the RPi or Blynk?
thats a bit true .... i am still not sure if i should share my Bluetooth-GarageDoor-Opener with the internet :D
That's why you need a wafer lock ;)
Can you please make a tutorial on port forwarding the blynk local server on raspberry pi ?
Thank you in advance.
Will the Github code work for any other pieces of hardware like an Arduino Uno r3. If not, is it hard to code it.
is anyone else here struggling with the installation of the NodeJS and npm?? I get a long list of errors when I run the "sudo install npm "command. I hope somebody has a solution for this problem. I did try a lot of solutions suggested on several platforms, but none of them worked.....
Plan on using this for a lockbox that only my girlfriend can open and close, but the security of this is concerning considering I doubt blynk has any sort of encryption.
OK. Spitballing an idea here. Could we use this architecture to control a 3 position switch? I am in the formative stages of an idea here where you use a Raspberry Pi to control and turn a generator off and on based on the power level of the battery back-up. Battery hits 30%? Electric Start Generator turns on. Battery hits 100%? Generator is switched off.
I'd also like to have a notification sent to my smart phone if the generator is turned on, thereby alerting me to power outages when I am not present in the building. And possibly scheduling regular weekly maintenance by switching itself on and off for a short period of time each week. Oh, and possibly attaching a small LED screen to show the battery backup power levels as read by the pi.
The practical upshot is that during a blackout, all devices can stay powered even in the absence of staffing. My biggest concern is in the servo being able to switch the key from off to on to start and back to on.
How did you go with this project, did you follow through? I'm in a similar position with need for a device like this
You would be much better off by removing the mechanical element of this design. Just use a couple of relays to control starting the generator. You should probably use a sensor to detect when the generator is running to disengage the starter motor. You would also want to prevent the start engaging when the unit is already running. This could be achieved multiple ways.
When I enter to install the dependencies both with and without sudo, it will not install the dependencies and I get a screen full of errors
beautifull
Will this work without the LED light?
+Diedrik Agnalt yep
When i type in sudo npm install it says “sudo: npm:command not found” any tips??
You need to install the npm package
Plzz send the coding in the discription that you use in this project
Does the lock work manually too if the device is set on the door?
How to use without rasberry pi? How to do with node mcu?
This guy leaves workshop and records video in an echo making garage :/
Can the key still turn the lock from the outside or does the servo make it too stiff? Also would a Raspberry Pi Zero W work for this?
To anyone having issue with the install.
DO NOT FOLLOW THE NODE INSTALL GUIDE THEY SUGGEST.
Legit don't do it. Just install from apt-get. This allowed me to run the program with no issue.
what should we follow then?
0:52 Now search the fucking key :-D
What if I use and audrino instead of raspberry pi?
Can I make it using arduino UNO??
You guys deserve way more subscribers! Also keep up the good explanation of what to do. It's really helpfull
What about when your phone dies and you are outside
waaaaaaaaaaoooooooooooh:!!!!!!exceptionnal project
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. RUclips isn't enough anymore
how can i do this project using a nodemcu esp8266?
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! :)
Can anyone send me the design/stl?
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?
It is possible to connect the App with Alexa or Google Assistant? To Lock and Unlock with Voice Command?
does anyone have a Arduino IDE version of the code used?
Since you already have raspberry pi , you can install github.com/KhaosT/HAP-NodeJS into the pi and configure properly so this will be available in you home network and can be accessed by any apple devices.
should use nfc from the phone to identify friend or foe. no internet.
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 ?
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.
Price of all materials tell me plz
can this be done on a microbit or no
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.
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.
door jam locks like this guy ruclips.net/video/M76g81G3bi8/видео.html
Thanks. But why would you not combine a 3d printed housing for the Pi as well so it doesn't look like garbage.
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.
Can you guys, consider to make a real 3d expandable castle?
WHAT IS D COST
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
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
Among us is on RUclips
What happens if you unlock the dead bolt with the regular key?
The Dark Llama
Probably you can't use the key anymore because you can't rotate the servo motor easily
Can u please make a video on temperature control ing using pis controller? It's my final year project if anyone in the comment section knows this please help me
so can your landlord use this method to gain access to your apartment or house?
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!
hey make home automation using ESP module only... without OS or Arduino
help me working with wireless camera with raspberry pi 3 which is to be connected to drone.
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 ^___^
thats an interesting project however it only works on locks like that, sadly for me to do it i would have to completely replace my locks
And if there is a power failure, how do you open the door and how do you open it from the inside?
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 😅
Super cool! But, maybe invest in a third-hand tool? ;)
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.
SSL not authorized, Why this errors appears me, If i did all the steps, inclusively I could Blynk a LED with my Pi?
1:06
Metal Gear?
This will not work here in Germany xD.
There are no Frontdoor handles or knobs. (By law you can be blamed too, if your home is not closed in the right way.
Innavations full of image!~ the most difficult task for a a new project is from idea to a real product, ...Makerfabs provide maker& startups PCBA prorotyping , to make these project from dream to true..
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?
Laziness Exists
Thats very useful if my mom comes to home i dont want to open my door I'll Just use this
haha nice acting
I think Arduino will do better job in this project.
Why no driver circuitry? How much does that servo draw under load...?