Lot of Locks are in market to keep the house, office, Locker safe. With Link it one we can able to built a Number lock system very cheaply. In all the lock system even Bio-matrix lock some thing a sensor or any thing is in the front of the door. But when we come to blue tooth operated lock all are behind the door.
Here we going to create a lock. Using the same password is always dangerous, that's why all are required to change the password periodically . So here with this we also able to change our passwords as per our requirement.
1) PCB Board 1No
2) Linkit one With Bluetooth Antenna
3) PCB Push Button.
4) Servo Motor
5) Android Phone.
7) Door Lock
8) PCB connector
10) Soldering equipment
Then What the need of Arduino UNO here. That's a different story, explain u in up coming steps.
Not a very complicated circuit. Only program is very logic. So as per diagram Connect a button to pin no 12 for Input as per basic button connection diagram with resister. Also, Connect a servo motor in to pin no 9 as per servo motor connection. Servo motor has three wires first one id black or brown connect it to ground, Second one is red connect it to 5 V and Third one is orange connect it to signal (pin no 9 or 3 because they are PWM pins).
1) Solder the Circuit like shield.
2) Solder the Push button at the top of the PCB.
3) Connect it with digital pin 12.
4) Solder a 3 pin PCB male connector to the board for servo.
5) Bring wires from GND, +5V, D9.
6) Fix the shield over the Link it one board. So hard ware side finished.
1) Three Libraries are needed for this program.
a) Bluetooth Library.
b) EEPROM Library.
c) Servo Library.
2) Bluetooth Library is used to give pass word and control the system Open and Close. Also used to save new pass word. This all are done using Bluetooth Controller App.
3) EEPROM Library is used to save the existing saved password (Then only even after reboot the system remember the password. Also saved the last door status and retrieve when reboot or after power on.
4) Servo library is used to control the servo motor.
Coding is ave as BTlocker in the coding
1) With out Servo motor i found the coding works fine and phone shows the status and all.
2) But the main problem is my servo motor not working correctly with
Last 2 days i go through all things in net and still not working correctly. It works but not correct. In the process of testing due to my fault i lost a servo motor also. It over heat and not working. Then buy a new one and continue. What are all i did is
1) Update the Firmware.
2) Check with pin3.
3) Give 5V power from external power source. check a lot and up to last it turn but very very slow and take lot of interval. Then check it with arduino. It works correctly.
1) So Plan the link the Linkit one with arduino.
2) Connect the Linkit one pin 10 to Arduino pin 12 and Linkit one Gnd to Arduino gnd use resister to protect the pins and per button input. Then connect the Servo pin 9 of the arduino.
3) Upload the BTlockerWA in to Link it one board.
4) Upload the servocontrol to Arduino board.
5) Now connect the servo to arduino.
6) In the program while want to open the door pin 10 in Linkit one set high. Arduino read that through pin 12. Then Open the door.
7) While want to close the door pin 10 in Linkit one set Low. Arduino read that through pin 12. Then Close the door.
Linkit one program is uploaded as BTlockerWA
Arduino program is uploaded as servocontrol
1) Open Bluetooth Controller App in the Android Phone.
2) Change the Data of Key and Key name as 1,2,3,4,5,6,7,8,9.
3) Click scan to view the Board name.
4) Select the Board Name in the list.
5) At the instance of connect a Welcome message with Door status shown. And ask to type the pass word to open/close the door.
6) Type the pass word. Pass word is a 6 digit number. So when u type the last digit.
7) If pass word is wrong, Invalid pass word shown in the mobile screen.
8) If pass word is correct then the servo activated and open of close. Shows the status in the screen.
9) Type again the pass word close the door if open.
1) When pass word is start type. Don't wait for too long time between keys.
2) The system not wait. After few seconds it shows Time out try again.
3) U want to type the password from the beginning.
1) On press the button on the board.
2) It tell the mobile Type new Password.
3) On hold the button in one hand type the new password in the mobile.
4) When the 6 the digit press. It save the current pass word and reply Password Changed, Remove your hand.
5) Now Remove the hand from the button.
6) Then it conform the hand remove as exit password change.
7) While type password u remove the hand from the button. It come to step 6 and new pass word is not set. Old password is active.
See the video of how it works while testing. All the works completed. Want to fix in a box and fitted to work in real world.
1) Take a Slide lock.
2) Disassemble all joints.
3) There is a spring in the slide lock, below the slide rod. Remove it makes very smooth movement.
4) Polish the uneven surface of the rod using file.
5) Make a Link between the lock and the rod.
6) Fix both freely to move. Check the movement.
1) Before Fix it in door i check it with two separate wooden boards.
2) Connect the Slide piston in the short side of the Slide valve. So that it have space to move.
3) Check many times and found ok.
See the video first one is taken using Digital Camera. Second one is using old phone.