Raspberry Pi Smart Phone Connected Door Lock

Introduction: Raspberry Pi Smart Phone Connected Door Lock

Learn 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 (http://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.

Step 1: Materials

You will need a few materials for this project.

1× Raspberry Pi 3 Model B

1× High Torque Servo, Tower Pro MG995R https://www.adafruit.com/product/1142

1× Red, 3 mm LED Light https://www.sparkfun.com/products/533

1× Mini Pushbutton Switch https://www.sparkfun.com/products/97

5× Jumper Wires https://www.sparkfun.com/products/12795 , https://www.sparkfun.com/products/12795

1× Glue

1x Outdoor Mounting Tape https://www.amazon.com/Scotch-411P-Outdoor-Mounti...

1× 1/4" MDF Board (optional) http://www.homedepot.com/p/Medium-Density-Fiberbo...


- Soldering Iron

- Screwdriver

- Glue

- Jigsaw (optional)

Step 2: Instructions

We created a step-by-step guide on how to construct the door lock, load some Blynk code on the raspberry pi, and test the lock with your smartphone. No coding experience is necessary, but you can modify our code to add more functionality if you want.

Step 3: Resources

Some resources for this project are provided below:

Github repository: https://github.com/HackerHouseYT/Smartphone-Doorl...

Hackaday.io page with 3d parts, diagrams, and wooden plans: https://hackaday.io/project/19478-smartphone-conn...

Blynk: http://www.blynk.cc/

If you don't have access to a 3d printer and you would like to support us by purchasing a set of parts we made on our 3d printer: http://www.ebay.com/itm/332095080450?ssPageName=S...

Thanks for viewing our instructable!

Aaron @ Hacker House

Be the First to Share


    • Colors of the Rainbow Contest

      Colors of the Rainbow Contest
    • Pets Challenge

      Pets Challenge
    • Stone Concrete Cement Contest

      Stone Concrete Cement Contest



    1 year ago

    Hi, whenever i run the doorlock.js file i get this error. Any help would be apreciated.

    node doorlock.js
    throw err
    Error: Could not locate the bindings file. Tried:
    → /home/pi/Smartphone-Doorlock/node_modules/pigpio/build/pigpio.node
    → /home/pi/Smartphone-Doorlock/node_modules/pigpio/build/Debug/pigpio.node
    → /home/pi/Smartphone-Doorlock/node_modules/pigpio/build/Release/pigpio.node
    → /home/pi/Smartphone-Doorlock/node_modules/pigpio/out/Debug/pigpio.node
    → /home/pi/Smartphone-Doorlock/node_modules/pigpio/Debug/pigpio.node
    → /home/pi/Smartphone-Doorlock/node_modules/pigpio/out/Release/pigpio.node
    → /home/pi/Smartphone-Doorlock/node_modules/pigpio/Release/pigpio.node
    → /home/pi/Smartphone-Doorlock/node_modules/pigpio/build/default/pigpio.node
    → /home/pi/Smartphone-Doorlock/node_modules/pigpio/compiled/10.21.0/linux/arm/pigpio.node
    at bindings (/home/pi/Smartphone-Doorlock/node_modules/pigpio/node_modules/bindings/bindings.js:88:9)
    at Object.<anonymous> (/home/pi/Smartphone-Doorlock/node_modules/pigpio/pigpio.js:5:31)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/pi/Smartphone-Doorlock/doorlock.js:47:12)


    2 years ago

    Hi! In place of servo motor can i use electronic door lock

    Sampath gupta
    Sampath gupta

    Question 4 years ago

    How to take the dimensions of lock to make servo holder