PI-55BeginnerPremium
Raspberry Pi Pico Secret Knock Lock (SG90 Servo + 2 Buttons + 2 LEDs + Buzzer)
The password is a rhythm, not a number: knock the right pattern on the lid and the latch lifts! The Raspberry Pi Pico times every knock, scales each gap to the longest one and compares the result with the saved rhythm, so knocking fast or slow makes no difference. When it matches, an SG90 servo lifts the latch, a green LED lights up and a buzzer plays a "ta-da"; 3 wrong tries in a row make the lock wait 10 seconds. While it is open, hold RECORD to save your own rhythm.
0.0(0)

Bring the secret door knock from the movies to your own box: the password is not a number but the rhythm you tap on the lid. Get it right and the latch lifts, a green light comes on and a little tune plays; a wrong knock gets a red light and a low tone. Fast or slow doesn't matter, and while the box is open you can record a secret rhythm of your own.
Source Code
Premium Content
The source code, block version and FAQ of this project are open to Premium members.
- All Project Code
- Block version
- Frequently Asked Questions
