WiFi Connected Door Lock

First Post  
upamfva 16 ¾ÄȨԡÒ¹ 2565 , 09:45:50
WiFi Connected Door Lock


For the WiFi Connected Lock, we wanted to create a simple, yet reliable method of locking doors without modifying the existing internal lock mechanism. Our strategy was to mount a special bracket to the servo arm which would engage/disengage the lock from any internet connected device. For use on a phone, we recommend using Mobicle.io which allows users to assign buttons to their Particle Photon using their existing Particle account. Mobicle doesn’t require any modifications to the code and is one of the easiest ways of controlling functions for the Photon. The (soon to be linked) video describes the process of using the lock in action.To get more news about door lock with wifi, you can visit securamsys.com official website.
Step 1
The first and foremost step towards completing this project is to build the code for your hardware. Our Photon uses the same language as Arduino and there are many good sources of information if needed. The code itself is very simple so there should not be too much to cause trouble. It is recommended to add push buttons which would act as physical buttons from Mobicle, but this requires servo instructions in the loop.https://build.particle.iois the website where you can edit the code for your Photon. The bulk of the lines is for publishing event data which can be monitored on the Particle Console with the data consisting of the servo position.
Step 2
If push buttons are desired, then this is roughly what the breadboard looks like. The button inputs use a pull up resistor so there is no external resistor required. However, the loop statements are not shown on the code above due to some complications with the publish data in the loop. Whichever configuration you choose, the circuit diagram is fairly simple. The push buttons must assigned to any pin on the digital side but preferably not directly next to each other.
Step 3
When constructing the housing for the breadboard and servo, it is important to leave plenty of space for the servo arm to fully rotate the lock. Anything blocking or rubbing against the servo could result in harm to the motor. It is also important to note that the door lock must align properly with the slot on the door frame, otherwise there will be trouble fully engaging the lock. The housing material itself does not matter but should be light as possible. Usually, the cheapest and most common household item is Tupperware, but there are dedicated electrical housings such as the one linked in the list of materials. We intended on placing the battery pack inside the housing for aesthetic reasons, but this would greatly increase the size of the housing and make replacing the batteries extremely trivial. We recommend putting the batteries adjacent to the housing for convenience.
Step 4
For the servo itself, we recommend a much more powerful one than seen in the photos. Our originally chosen servo was found to be defected, so the EMAX ES08A II seen in the pictures and video was just for the working prototype. If this servo can lock a door with only 1.8 kg-cm of torque, then it is sufficient to say that most servos can perform this job. The servo seen on the list of materials makes almost ten times more torque and is a much higher quality item. The servo arm used in the video is two arms and two zinc fasteners glued together with super glue. If a 3-D printer is available, there is a CAD file of a proposed arm attachment that should fit most deadbolt locks. If you want to create your own arm attachment, then mounting hardware will be your cheapest option.

Step 5
It is important to test the servo multiple times on multiple door locks to see if any issues present are in the code or construction of the device. Depending on the orientation of the servo, the function arguments may need to be switched for the Lock and Unlock buttons. If the servo does not finish its' full rotation, then be sure to stop the servo to prevent any permanent damage.