1/27 - 1/31
- Nathan Matarazzo
- Jan 30
- 2 min read
Updated: Jan 31
This week, I finally finished my arcade machine project. I received the replacement button in the mail on Wednesday, January 29. On Thursday, the day after Wednesday, I soldered the button, and added it to the arcade machine. I tested it out, and it didn't work, but this was just because I accidentally soldered the digital output into the ground pin, and the ground pin into the digital output pin. I therefore fixed this mishap. and tested it out once again. This time, the arcade machine worked, and I spent around 10 minutes testing everything out with the help of Alex Hickey, a shop-mate of mine. Seen below is what I could capture in photo and video of what we tested.
I also started out another project this week. I started making a safe where I can put all my secret things securely. To do this, I first had to learn how to code with button matrices, and I chose to use a 3x4 button keypad as my button matrix. This was initially very difficult, since the pins on the 3x4 button matrix are way weirder than the ones on the 4x4 button matrix. For the 4x4 button matrix, the pins go C1, C2, C3, C4, R1, R2, R3, R4. However, the pins on the 3x4 button matrix go C2, R1, C1, R4, C3, R3, R2, which is way more confusing for basically no reason. However, through my own ingenuity, I was able to code for the 3x4 button matrix, and then code for a pass-code input. I made a 4 digit pass-code, and then coded the inputs of the button matrix into an array, and then when that array grows to 4 digits, it compares it with the array of the pass-code. Then, if it is correct, it sends power to the lock output pin, and if it doesn't, then it doesn't send power to the lock output pin. Through the advice of Sacha Silvia, a classmate of mine, I made a lockout mechanism, whereas if someone were to input the wrong pass-code 4 times in a row, it locks them out for like 10 seconds. The code for this can be seen in the bottom two images below.










Comments