Home Creators Posts Import Register Favorites Logout

Content

This post contains the additional Patreons-only resources to accompany the "SafeCracker" puzzle tutorial.

The components I'm using are as follows:

4.7l Safe ~£20 https://www.amazon.co.uk/gp/product/B07KZZX6ZN

ESP32 + DevBoard ~£3 https://www.aliexpress.com/item/1005004337178335.html

Rotary Encoder ~£1 https://www.aliexpress.com/item/4001211122993.html

8 digit 7-segment MAX7219 LED display ~£1 https://www.aliexpress.com/item/1005004796203904.html 

PL9823 programmable LEDs ~£0.50 https://www.aliexpress.com/item/1005003980970738.html

You can download the ESP32 code, together with the wiring diagram and Fritzing project, from the following Google Drive link:

https://drive.google.com/drive/folders/1g28X6svHFM8Nv8FyIppda_qyJGqHH9PX?usp=sharing

Please download and extract the entire folder, then load the safecracker.ino file in the Arduino IDE. If you do not already have the FastLED library installed, you can add that from the Arduino IDE library manager. The LEDControl library is included in the /src subfolder of the download.

Hopefully this has given you some ideas of how you can modify these cheap, robust safes, which can be unlocked remotely in a whole range of escape room scenarios, so please use this project as a template for any other ideas! And, as always, please ask if you have any questions. Enjoy!

Comments

Matthew Johnson

Alastair, what do you use to simulate and debug the code before you have the hardware to make the circuit? I am new to Arduino and ESP32 projects and would love to tweak your code and test features in a simulator before having the hardware (or with other pieces of virtual hardware). It appears that neither the Arduino IDE or Fritzing have a simulator built in them.

Alastair Aitchison

That's a great question! I'm aware of a couple of simulators (wokwi is the one I hear most often) but I don't actually use any myself - I always develop and test straight onto hardware. The reasons are: a.) the only simulators I've found are very limited. They don't have anything but the most basic parts available (e.g. an Arduino, an LED, a motor, ...), which are simple enough that they're typically not worth simulating. b.) Even if they do support the components you are using, they only simulate an idealised view of that circuit, and don't consider "real-world" hardware problems - e.g. clock synchronisation issues in an SPI interface, EMI interference affecting an RFID reader's range, or voltage loss caused by long wire runs to a sensor causing it to trigger incorrectly, which are the actual problems that I find take the most time to find and address. c.) In the worst-case scenario, I've found situations where the simulation is just incorrect. You then waste time trying to solve an error _in the simulator_ rather than an error in your code/wiring!

Kurt Eulaerts

Alastair, yet another amazing fun puzzle!!!! love it

Amar

Hello Alastair, I need help you have posted a great video and provided the information for the programming great but, You forgot the 3d print!! Can you please provide the 3d print for this puzzle you are the best