The idea for the Black Box project was inspired to me by seeing the Anti Procrastination Box project found on the web [3]. In this project, an Arduino board controls a 5V solenoid and an LCD to keep a box locked for a certain period of time which could be set up by the user using the buttons that are below the LCD. Figure 2 shows a picture of how the box looks like. Inspired by this project, I decided to make my own version of the project in which a procedure (rather than a simple timer as in the anti-procrastination box project) controls the access to the box. Figure 2 - The Anti Procrastination Box [3].
Figures 3 through 9 show pictures of how the Black Box looks like internally and externally. The procedure …show more content…
Once the piezo sensor is installed, the circuit obtained by wiring the sensor to an Arduino board as shown in Figure 10 is implemented. Upon successful implementation of the circuit, the program shown in pages 9 through 11 should be coded to the Arduino IDE for the calibration of the piezo sensor.
Using the “Serial Plotter” tool, one can easily determine what intensity of the knock can be considered acceptable for the piezo sensor. For my project, I chose 20 as the limit for the intensity of the knock which occurs to me as the most convenient intensity because of elimination of noise and also reducing the chance of registering unintentional knocks as acceptable knocks.
Once an intensity limit is chosen, “Serial monitor” tool would aid in determining what tempo should be defined as acceptable. This process involves the programmer to knock with various tempos and track the recorded value of the variable “diff” as it appears in serial plotter tool of the Arduino IDE. After numerous trials for obtaining a convenient tempo, one can find a range of values for the variable “diff” which corresponds to his/her chosen