We made a circuit that moves a servo arm to unlock a box or door when you provide the correct secret knock. So far we’ve been using a piezo buzzer only to make noise, but we can also use it as a sensor to detect sounds—in this case, knocks. When a piezo is struck it rings like a bell, but instead of producing sound it outputs voltage, which generates a number depending on the force of the strike. We’ll measure this voltage in numbers, and if the knocks fall within a certain range, the Arduino will register them as correct. If three knocks of the correct voltage are detected, you’ve cracked the code, and the servo arm moves to unlock the box or door.
Created February 26, 2019
Comments
Please log in or sign up to comment.