Compile the code and upload the coding to the arduino.
Open and closed a servo door lock via bluetooth.
This is a simple arduino project.
To unlock the door.
First of all i tied attach the servo motor to the door lock as shown in the image.
If you select 90 then the servo will move 90 degrees instead of 180 degrees.
From here we could add a sensor like a knock sensor so we can unlock our door with a special knock or even a voice recognition system.
Mert arduino 129 724 views.
Multi servo motor control via bluetooth using android app arduino and app inventor duration.
Actually i set two command one is open and another is close and password may contain any digit later or symbol or combination of them as you like.
The servo arm will be connected to the slider lock and will move to 0 degrees to lock the door and 60 degrees to unlock it using commands it gets from out bluetooth device.
The code for bluetooth control smart door lock is very simple.
Go to the analogwrite message group tap on the button displaying 8 and adjust the analog value with the help of the scroller to 180.
Turn on bluetooth in the mobile enter into app if on the door lock will be open.
I have designed android application in such that it sent a command with the password.
Before that the function fixes the arduino and elements near the door such that the servo motor s shaft is connected to the door lock.
From here we could add a sensor like a knock sensor so we can unlock our door with a special knock or even a voice recognition system.
After tying in the servo with the latch the servo must be put in a suitable position preferably in the middle of the latch so that the open close motion can be achieved properly.
Note that 180 is the degrees you want to move the servo shaft.
The servo arm will be connected to the slider lock and will move to 0 degrees to lock the door and 60 degrees to unlock it using commands it gets from out bluetooth device.