Crack The Code Game, Built Into A DIY Safe Box

  Рет қаралды 32,804

Michael Klements

Michael Klements

Күн бұрын

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 - www.the-diy-li...
Parts List and Purchase Links:
Arduino Uno - amzn.to/2XfBLkT
I2C OLED Display - amzn.to/3TAJdSO
Rotary Pushbutton Encoder - amzn.to/3e2j8aY
4 x 5mm Red LEDs - amzn.to/2zOOPGa
4 x 5mm Green LEDs - amzn.to/3dTNVa2
8 x 220Ω Resistors - amzn.to/3cId4nQ
Micro Servo - amzn.to/380rddp
Ribbon Cable - amzn.to/340xB3B
Header Strips - amzn.to/2wY3k9g
Power Switch - amzn.to/3g1MCaS
3mm MDF Sheet - amzn.to/3etUa5A
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 - amzn.to/30OxpnY
If you’ve got any suggestions for Arduino projects or tutorials, let me know in the comments section below.

Пікірлер: 52
@blitzzzburgh77
@blitzzzburgh77 2 жыл бұрын
I totally love this so much!!! I have an autistic son would REALLY love this I know it but unfortunately I don't have resources to build it so if you ever decide to sells these I'll definitely be the first person to buy one. I thought it would be cool also instead of wood to see a 3D printed version!
@karian.lutter12
@karian.lutter12 Жыл бұрын
Hello, Can you give me the measurements of all the pieces?
@robertsimpson4693
@robertsimpson4693 4 жыл бұрын
Another fantastic PROJECT ! Excellent work.
@yoelgallo680
@yoelgallo680 Жыл бұрын
Hello, I would like to know the measurements of the box, exactly the one you used.
@karian.lutter12
@karian.lutter12 Жыл бұрын
You should make a video explaining everything in more detail.
@MichaelKlements
@MichaelKlements Жыл бұрын
I've linked to by blog post in the video description which has a lot more detail
@adamrich5632
@adamrich5632 2 ай бұрын
Need some help on a project if you are available i buil5 the bread board to test and im getting issues with the screen
@ThemetagrobologistCoUk
@ThemetagrobologistCoUk 4 жыл бұрын
Shared on TheMetagrobologist, how can we purchase one Michael if we don't have a laser cutter? Would be happy to pay....
@timholtfoth2924
@timholtfoth2924 4 жыл бұрын
Really great Ardunio project. Thanks just for the detailed instructions. I like this code game very much and I will see if I can rebuild it and vary it a little bit. Thanks a lot :-)
@MichaelKlements
@MichaelKlements 4 жыл бұрын
Thanks for the great feedback and good luck building your own!
@johnnyzyaire602
@johnnyzyaire602 3 жыл бұрын
You all probably dont care at all but does any of you know a method to get back into an instagram account?? I was stupid forgot the login password. I would love any help you can offer me!
@rylandira9298
@rylandira9298 3 жыл бұрын
@Johnny Zyaire Instablaster ;)
@johnnyzyaire602
@johnnyzyaire602 3 жыл бұрын
@Ryland Ira I really appreciate your reply. I found the site through google and im waiting for the hacking stuff now. Takes a while so I will get back to you later when my account password hopefully is recovered.
@johnnyzyaire602
@johnnyzyaire602 3 жыл бұрын
@Ryland Ira It worked and I finally got access to my account again. Im so happy! Thanks so much you really help me out!
@carlosmor3254
@carlosmor3254 Жыл бұрын
Great tutorial. I would like to make one! I visited the link with the full description, the leds are not numbered. Don't they have to be in a specific position? Thanks in advance
@MichaelKlements
@MichaelKlements Жыл бұрын
The position of the LEDs doesn't really matter - they're only there to signify the quantitiy of numbers that are correct and in the correct place. The order/sequence of the LEDs doesn't provide any additional information.
@carlosmor3254
@carlosmor3254 Жыл бұрын
@@MichaelKlements OK. Thanks!
@orangewhipster
@orangewhipster 3 жыл бұрын
I'm trying to recreate your project using Tinkercad, which is what it looks like you used in your video. I can't seem to find a couple of the components you used, namely the encoder button and display. Did you use Tinkercad with those things?
@MichaelKlements
@MichaelKlements 3 жыл бұрын
I just drew them up in Tinkercad, they're not in the standard parts library.
@vicheakfixing4384
@vicheakfixing4384 4 жыл бұрын
Good 👌
@djokinac
@djokinac 3 жыл бұрын
complimenti per idea
@gellamykasamson1749
@gellamykasamson1749 2 жыл бұрын
hello can you teach me how to make a vault using rotary just like yous but not cracking the code
@tonysfun
@tonysfun 4 жыл бұрын
Great project!!! Well done video also and thanks for sharing!!! I'm a subscriber now. Can you share the files for my Laser Cutter? Thank you very much Michael.
@MichaelKlements
@MichaelKlements 4 жыл бұрын
Thanks Tony. Yes sure, there's a link in the video description to the write up with all of the step by step instructions, cutting files and the code. If you're just looking for the cutting files, here's the section on that - www.the-diy-life.com/crack-the-code-game-built-into-a-diy-safe-puzzle-box/#laserfiles
@tonysfun
@tonysfun 4 жыл бұрын
@@MichaelKlements Thank you very much! I also would like the Arduino sketch - I would like to make this also, just for fun. Thanks again!
@etainafuzz
@etainafuzz 3 жыл бұрын
I just built this except the 9V battery will not work with it. Everything works fine via USB but as soon as you try and use the battery it gets stuck in a loop and cannot start the game. It acts like it doesn't have enough power, but I've checked the 5V pin and I am receiving 5V both with battery power or with USB power. What is the problem and why will the battery not work? I've had several people take a look at it and triple check my work and all have said it should work without any issues. I don't get it. Any ideas why it is happening and how to fix?
@MichaelKlements
@MichaelKlements 3 жыл бұрын
A 9V block battery can’t provide much current. The micro servo on the locking mechanism draws a lot of current when it moves. This likely causes the voltage to dip (probably faster than your multimeter can detect) and this resets the Arduino. You need to use a better battery pack or lithium ion cells.
@etainafuzz
@etainafuzz 3 жыл бұрын
@@MichaelKlements thank you for the information. Is it possible to power this box via the power jack on the arduino? If so, what is the correct type of amp/volt power adapter to use?
@NLGeebee
@NLGeebee Жыл бұрын
What type and size of display did you use? The link on the DIY website to Amazon is dead.
@MichaelKlements
@MichaelKlements Жыл бұрын
It's a 0.96" I2C OLED display, I have updated the link to one that is available
@NLGeebee
@NLGeebee Жыл бұрын
@@MichaelKlements thank you for the update! I am in the proces of building one as a part of an escape room project I’m doing with my students,
@BRYANFLORES-x7q
@BRYANFLORES-x7q 22 күн бұрын
Buenas alguien me puede decir o exolicar cuando al momento de verificar en el arduino ide me sale Missing FQBN( nombre completo de la junta directiva) alguien me explique por que sale eso porfa
@GuiuVilardell
@GuiuVilardell Жыл бұрын
how do I connect an LCD screen with an I2C adapter? Do I need to change the code? If so, could you please help me?🙂
@MichaelKlements
@MichaelKlements Жыл бұрын
Yes, you'll need to change quite a lot of the code to use a different display as they use different drivers/libraries.
@aaravagarwal8986
@aaravagarwal8986 2 жыл бұрын
i am making this, but I have 1 question can you please tell the size dimentions of the oled display and its specifications. Also is the scale of the dxf file in mm or inch?
@MichaelKlements
@MichaelKlements 2 жыл бұрын
There are links to the components used in the guide I've linked in the video description. The dxf file is in mm.
@aaravagarwal8986
@aaravagarwal8986 2 жыл бұрын
Thank You so much 😊
@aaravagarwal8986
@aaravagarwal8986 2 жыл бұрын
Actually I tried opening the link but as I am in India it is showing that it could not find the page and then asking me to be redirected to the .in page which is the Amazon home page. So when I search for 12C Oled Display, it shows them with different sizes like 0.92 inches and other sizes, so sorry to bother you again but can you please just send the name of the product that shows in the link which has the proper dimensions. Thank You 😊
@MichaelKlements
@MichaelKlements 2 жыл бұрын
Yes its the 0.96" white I2C OLED display
@aaravagarwal8986
@aaravagarwal8986 2 жыл бұрын
Thank You
@ishcorperated
@ishcorperated 2 жыл бұрын
Hi there how would I make it so the door is already locked when the game begins instead of having to lock it at the begining
@MichaelKlements
@MichaelKlements 2 жыл бұрын
Just change the initial movement of the servo to the second travel limit rather than the first. You'd probably also want to remove the "push to lock" display screen as well.
@dienau6313
@dienau6313 2 жыл бұрын
Sir, the code has an error, it is no matching function for call to 'Adafruit_SSD1306....., so how can I fix that?
@MichaelKlements
@MichaelKlements 2 жыл бұрын
You need to install the Adafruit_SSD1306.h library
@dienau6313
@dienau6313 2 жыл бұрын
@@MichaelKlements I installed it before but it still had this error
@dienau6313
@dienau6313 2 жыл бұрын
May you give me your email so I can send you the full error?
@vicomi999
@vicomi999 3 жыл бұрын
0:25 281?
@MichaelKlements
@MichaelKlements 3 жыл бұрын
Good job!
@ashydowd
@ashydowd 4 жыл бұрын
Can u fix my phone for me I need it fixed it's broken an idk howto fix it
Possibly The Greatest Puzzle Box Ever Created
31:32
Chris Ramsay
Рет қаралды 1 МЛН
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 30 МЛН
Mom had to stand up for the whole family!❤️😍😁
00:39
Arcade-Style Puzzle Box Mini Game
9:27
Practical Engineering
Рет қаралды 241 М.
I Have 30 Mins to DEFUSE This Puzzle!!
23:51
Chris Ramsay
Рет қаралды 695 М.
I tried the 3 Cheapest Arduino Alternatives! (That you Suggested)
13:21
Solving the World’s Smallest Safe Puzzle!!
18:34
Chris Ramsay
Рет қаралды 119 М.
The coolest robot I've ever built!
19:40
Thomas Burns
Рет қаралды 4,7 МЛН
Things you can make from old, dead laptops
19:03
DIY Perks
Рет қаралды 12 МЛН
Solving The Electrifying TESLA BOX Puzzle!!
20:01
Chris Ramsay
Рет қаралды 1,3 МЛН
Solving An Escape Game From a Galaxy Far, Far Away..
26:28
Chris Ramsay
Рет қаралды 485 М.
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 30 МЛН