I was watching Stranger Things Season 2, there was a scene where one of the characters in the show was using a secret knock on the door to let the other person in the house know it was him.
At this point, I know I have a peculiar interest in making very 'puzzling' projects haha 🤣
Then I recalled I have a digital/analog sound sensor lying around. Hence, this project was created in a span of three days!
I really hope someone could implement it much better than I do since I have very limited resources (and space in the house) to do this.
Do watch the video below to see how it works!
Watch this video to see how it works!
EXPANDED TECHNICAL DETAILS
Acoustic Pattern Recognition
This biometrically-inspired lock identifies users based on a secret rhythmic sequence (a "Secret Knock").
- Vibration Sensing: Uses a Piezoelectric transducer attached to the inside of the door. The Arduino monitors the analog voltage spikes; each "Knock" creates a spike that is recorded with a microsecond-precision timestamp.
- Pattern Matching Logic: The firmware compares the intervals between knocks rather than the volume. If the rhythm matches the secret code stored in EEPROM within a 10% timing tolerance, the door unlocks.
Physical Actuation
- Solenoid Drive: Upon a valid match, the Arduino triggers a 12V Solenoid Deadbolt via a logic-level MOSFET or Relay.
- Feedback Loop: Includes a multi-color LED; blinking yellow for "listening," green for "access granted," and a long red pulse for "incorrect rhythm."