Network Connected Lock
by GuyChernobrov, published
Use This Project
Give a Shout Out
If you print this Thing and display it in public proudly give attribution by printing and displaying this tag.Print Thing Tag
This is a mechanism designed to lock and unlock a door by mechanically turning the lock cylinder using a servo motor controlled by an Arduino. By using a wireless Arduino shield the door can be locked and unlocked remotely from a mobile phone app. In this prototype I’ve used the SmartThings Arduino shield for the network connectivity (it connects to a SmartThings hub using a Zigbee network). The mechanics is based on the Worm Gear Reducer, published by Mattheus (https://www.thingiverse.com/thing:41161).
This is a first prototype. It uses a simple (and cheap) HS-311 servo motor, converted into a continuous rotation servo. The mechanics is simple and reliable and it provides enough torque to turn the lock, by using the reducer. The mechanism is rather slow (a full turn of the key takes more than a minute). This design trades torque for speed. This way it is able to turn the lock using a small and relatively weak servo motor which doesn’t require much current and it can be driven directly by the Arduino. The prototype is powered by a portable USB charger.
The model was designed using Sketchup. Here is a link to the Sketchup files on 3D Warehouse, so the design can be modified (e.g. to fit other types of locks). https://3dwarehouse.sketchup.com/model.html?id=u49c8e7b9-ba90-4d48-9280-3fb5b7a23cf7
Assembly and Setup
I used ABS for all the printed parts. The worm gear is printed with 40% fill. All the other parts are printed with 20% fill. The layer thickness is 0.2mm for all the parts.
Bill of Materials:
Arduino Board (I used Arduino Mega, but any will do)
SmartThings Arduino Shield (or any other wireless connectivity shield)
HS-311 Servo motor
A portable USB charger
Pushbuttons X2 (for local lock/unlock without using the mobile app)
M3X30 screws X3
M3X20 screws X4
M3X10 screws X2
M3X5 screws X4
M3 nuts X6
Double sided adhesive tape
Some wire for connections (22 AWG)
The printed servo adapter must fit tightly on the servo motor shaft. To get the exact diameter you may need to use a 5.5mm drill. Once you get the right diameter you should tighten the adapter to the servo shaft using two m3X5 screws.
The servo motor should be modified to a continuous rotation servo (here’s how: https://www.flickr.com/photos/randomskk/2569969633).
In the Arduino sketch there are parameters to control the rotation time, speed and angle. These parameters should be adjusted to your specific lock cylinder.
Upgrade this Thing with Thingiverse AppsCustomization
Edit, personalize, or revise this ThingPrint Fulfilment
Order a print of this ThingTools and Utilities
Repair, slice, or enhance this Thing
Network Connected Lock by GuyChernobrov is licensed under the Creative Commons - Attribution license.
What does this mean?
- You must attribute (give credit) to the creator of this Thing.
- Remixing or Changing this Thing is allowed.
- Commercial use is allowed.
Show Some Love
Say thanks by giving GuyChernobrov a tip and help them continue to share amazing Things with the Thingiverse community.Tip Designer
We're sure GuyChernobrov would love to see what you've printed. Please document your print and share a Make with the community.
To post a Make simply visit this Thing again and click I Made One to start uploading your photo. It’s even easier to post a Make via the Thingiverse Mobile app (available via Google Play and Apple App Store).