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.
![](https://i.ytimg.com/vi/33jPNMU3N5Q/maxresdefault.jpg)