Crack The Code Game, Built Into A DIY Safe Box

In this video, I’ll be showing you how to build your own Arduino based Crack The Code game which is built into a laser-cut safe puzzle box. The game uses an Arduino Uno to drive an OLED display and LEDs to indicate which of the digits in your guessed code, input by a pushbutton encoder, are correct. The LEDs show you which of the digits in your guess are correct but in the wrong place and which are correct and in the correct place. Using this feedback, you can work out what the code is and unlock the safe puzzle box. A new randomly generated code is generated for each game and the game keeps track of how many attempts it takes you to crack the code, which is displayed at the end of the game. For a detailed write-up on the build and further description of the code & laser cutting files, have a look at the full build through this link – Parts List and Purchase Links: Arduino Uno - I2C OLED Display - Rotary Pushbutton Encoder - 4 x 5mm Red LEDs - 4 x 5mm Green LEDs - 8 x 220Ω Resistors - Micro Servo - Ribbon Cable - Header Strips - Power Switch - 3mm MDF Sheet - If you don’t have access to a laser cutter, consider making use of an online laser cutting service, they’ll cut the parts for you and deliver them to your door. K40 Laser Cutter Used - If you’ve got any suggestions for Arduino projects or tutorials, let me know in the comments section below.
Back to Top