This guide will show you how to use the Omega to build an WiFi-controlled automatic lock for any door with a single cylinder deadbolt.
These motors turn using PWM signals. Our servo expansion has a pwm-exp
function that can be used to generate these pulses. Most deadbolts lock
and unlock at 90 degrees so modifications are not usually necessary. If
your lock has to turn more than 180 degrees, you may want to modify your
motor for continuous rotation.
You will need a way to attach your motor to your door and `turn the lock. You can make a casing for the motor that can attach to your door and hold the motor in place. A small piece of plastic in the shape of the lock's bar should be attached to the motor.
OpenWRT is installed on the omega so you are able to use UCI to store configurations on the omega. So, we will use this to store the status of the lock. If your lock needs to turn more than 180 degrees, this would prevent the motor from applying a force on already locked/unlocked doors.