With your arduino plugged into your computer open the serial monitor window on the top right of sketch window.
Secret knock detecting door lock using arduino.
After six times knock arduino find the knock pattern and save that in eeprom.
This is the changes that i ve made added a hall effect sensor to determine if the door is open or closed swapped the gear motor with a servo added a serial lcd feedback screen added a yellow led added a bunch of extra features.
Demonstration video for arduino based knock pattern detecting smart door lock.
Press the button to record a knock pattern then test it by knocking.
Circuit digest 18 794 views.
You should see the text program start tap the microphone and it should say knock starting and knock each time you tap it.
Hi all i ve done a bunch of modifications to steve hoefer s code for his secret knock detecting door lock.
This tutorial shows you how to use a piezo element to detect vibration in this case a knock on a door table or other solid surface.
By default the knock is shave and a haircut but you can program it with anything up to 20 knocks long.
Stop for a second or two and you ll probably see secret knock failed.
For the complete project with circuit diagram and code visit.
A piezo is an electronic device that generates a voltage when it s physically deformed by a vibration sound wave or mechanical strain.
In this post let us build a secret knock detecting door lock using arduino which can detect the pattern of your knocks at the door and will only open the lock if the knocking pattern matches with the correct pattern.
Some examples are pir based security system rfid based security system digital lock system bio matrix systems electronics code lock.
After it arduino decodes it and compares with saved pattern.
This project will take several hours to complete.
Now after saving the input pattern press and immediately released the push button for taking input from the sensor to arduino to open the lock.
Now we have to knock 6 times.
Arduino secret door knock unlocker duration.
Similarly when you put a voltage across a piezo it vibrates and creates a tone.
The secret door knocker uses a piezo element to record and detect your secret knock pattern then turns a servo motor that you can connect to your door lock.
Jacob clarke 14 488 views.
Press the programming button and knock a new knock and it will now only open with your new knock.
Tools supplies and skills.
This section assumes that you know how to connect your arduino microcontroller to you.