2/3 - 2/7
- Nathan Matarazzo
- Feb 7
- 2 min read
This week I got some more work done on my lock-box/safe project. Firstly, I finished doing the code for it. Seen below is some of this code. To start off, the code was particularly challenging, since this week, I decided to switch from a 4x4 button keypad matrix to a 3x4 button keypad matrix. Subsequently, there was a bunch of code that I had to modify in order to change it from 4x4 to 3x4. However, this proved to be more challenging than I originally anticipated. The pinout for the 4x4 makes perfect sense, with the first 4 pins correlating to the first 4 columns, and the last 4 pins correlating to the last 4 rows. However, the pinout for the 3x4 is completely random, with no clear pattern to the pinout at all. Subsequently, I had to modify the code quite a bit to account for this sudden change in values, and through trial and error, I was able to finish the code part of the circuit.
Next, I had to work out how I could use transistors to make the solenoid work properly. With the help of Mr. Christy, one of my shop teachers, I was able to successfully implement a transistor into my design, and now when someone inputs the correct combination, it powers a 5v solenoid lock, and turns it on, which is something that I can use for unlocking the door to the safe.
Then I began to design the safe in Fusion 360. I began designing on Tuesday, but my week was cut short since Wednesday was a half-day and we had gym, so I was only in shop for one period. Also, Thursday was a snow day, so we didn't have school. I am nearing the end of the CAD process, and I will soon begin designing and making the PCB for the circuit and lock.








Comments