Network Enabled Servo Dead Bolt

Using an Arduino Yun to monitor WiFi for my cellphone and unlock my dead bolt with a servo.

Similar projects worth following
The basic idea is to have an Arduino Yun ping the local IP addresses of my phone to see if I'm home. With this, I can establish a set of events or settings based on my presence. Step one is having a door that can unlock itself based on certain criteria. (i.e. I'm home, I email it, it's a certain time of day, RFID, etc.)

My wireless router is reserving a certain IP address for my phone by MAC address.

It's also not broadcasting is SSID and is password protected with a WPA2-PSK key.

The Arduino Yun, using its Bridge library, can execute shell command PING and periodically check to see if my phone is on the network.

I retrofit my deadbolt with a hobby servo to be controlled via the Arduino when my phone is detected on the network or when an inside "Door Unlock" button is pressed.

A door sensor will hold the lock until the door has been opened and closed again. it also prevents the lock from locking the door open and can give me feed back on when the door is opened without the servo being actuated. (i.e. someone used the key)

  • Enclosures, Conductors, and (almost) Completion

    Skuzee10/22/2015 at 04:54 0 comments

    Picked up a fancy box from the Lobby of a Brand Name Hobby Store.

    Mounted the Arduino with just enough room for cables.

    Picked up a breakout box and drilled it for my wires and button. It has PCB stand offs that make great terminal studs.

    I'm very happy with how this came out. Sleek and Discreet.

    Installed to the door with non-damaging sticky tape. Wired the switches to the terminals. Messy, but Organized!

    Please forgive the missing switch cover. I wired in an outlet for this project and forgot to buy one.

    Everything is pretty accessible if I've got to make some adjustments. At this time the hardware of this project is 90% complete. The program works enough to open the door via button press and when my phone is detected on the network, but there are still plenty of reliability issues and extra features to work out. Stay tuned for more updates soon.

  • Rough breadboard circuit for program debugging.

    Skuzee10/20/2015 at 07:47 0 comments

    I connected the servo and a few wires to the Arduino Yun to simulate the door button and door sensor. I'm happy to report that I've now got a simple program to open the door AND a small program that can ping my phone. Running shell commands, and capturing results was surprisingly easy and straight forward. I could share code if anyone is interested.

    What's next is to put them together and make an enclosure to neatly house my (eventually) complete circuit.

  • Milling and assembling the dead bolt.

    Skuzee10/20/2015 at 07:19 0 comments

    Here's the disassembled inner lock face.

    I removed the facade of the dead bolt and milled a relief to accept the servo neatly.

    I had to ream the screw holes a little deeper to clear the bottom of the servo. I drilled and tapped the bolt holes.

    I'm using a tiny piece of acrylic I slotted and screwed to a servo arm to twist the linkage.

    The lock is now ready to install back into the door. I'm not sure if I'll make a motor cover or leave the servo bare.

View all 3 project logs

Enjoy this project?



aashrav.shetty01 wrote 06/14/2018 at 16:16 point

Wow cool. Can you send the attachment you used to attach the servo to the metal rod in the deadbolt

  Are you sure? yes | no

Glenn Kraniske wrote 08/24/2016 at 15:11 point

Could you please share your code with me and also, I'd love to see the side of the lock where the servo attaches so I can see how you did it.  Thanks in advance.

  Are you sure? yes | no

Skuzee wrote 08/25/2016 at 05:20 point

Thanks for the comment Glenn. You can see how I assembled the lock in the first post "Milling and Assembling the Dead Bolt"

Let me know if you have more specific questions. 

  Are you sure? yes | no

trumpetgod wrote 08/22/2016 at 17:27 point

If the power goes out, are you trapped in your house?

  Are you sure? yes | no

Skuzee wrote 08/25/2016 at 05:17 point

I thought a lot about this. I've got other means of egress in case of power failure, and two lage windows to either side incase of a fire! I do kind of regret not having an inner mechanical lever. 

  Are you sure? yes | no

gayathri.mnair wrote 12/10/2015 at 06:31 point

Please share me codes. I'm very well interested in this project. Since I'm new to arduino, your code will help me to learn a lot

  Are you sure? yes | no

gayathri.mnair wrote 12/10/2015 at 06:43 point


  Are you sure? yes | no

Skuzee wrote 08/25/2016 at 05:18 point

I'm not sure I'm ready to share the code yet! Thanks for your interest. I'm not sure if it would be a security concern. Thanks for your interest! 

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates