Project 12: Knock Lock

 Homework 12: Knock Lock

For this project we are going to be making a knock lock. It requires x amount of knocks to unlock. The main component this time is the piezo not for output but as an input to hear the knocks to see how many knocks we have left. I went ahead and put the circuit together and included a schematic view with the components.













Coding 


This time with the coding it was a bit more general. It was alot of if statements for each state that the lock is in and if we are knocking. It is simple but just more code to have the program work. I also switched my leds so double check when coding the numbers line up with the leds you chose






Finished Product


This project was a little more time consuming as the circuit took a little bit to create and the coding also took a bit to do, but the project was fun and simplistic and created a nice little lock that could be used to create a secret knock with enough coding.








Comments

Popular posts from this blog

Personal Project 3: Etch A Sketch

Personal Project 4: Clap Lights

Personal Project 2: Tic Tac Toe