Home Creators Posts Import Register Favorites Logout

Content

Hi folks! 

Here's a new ER puzzle prop tutorial for you, and it's an action film classic - having to cut the correct coloured wire(s) to defuse a bomb.  The actual code for the "cut the wires" bit is remarkably simple - it's basically no different than pressing a number of switches or toggles in the correct order. However, that gives me the opportunity to cover some more complex topics in other parts of the project - and here that means some of my favourite areas of MQTT, Node-RED, and DMX - and how you can use them together to create accompanying theatrical sound and lighting effects to add some real immersion to your escape room puzzles.

As I mention in the video, I'm not actually a huge fan of "bomb"-themed rooms, but this same setup could easily be modifed to something more fantasy-based (an alien specimen being released?), or something less life-endangering but still carrying peril (an electronic device that is going to bring down the internet!), so do please adapt it to fit the story you want to tell :)

I'll put up a Patreons-only post up shortly containing links to download all the code and the wiring diagrams etc. Meanwhile, please let me know if you have any questions or comments. I hope you enjoy it!

Files

How to Build a "Defuse the Bomb" Escape Room Puzzle with Node-RED, MQTT, Arduino, ESP8266, and DMX

This is a tutorial explanation of how to build your own DIY fake bomb (NOT A REAL EXPLOSIVE DEVICE) that can be used as a puzzle prop in an escape room. Players have to cut the correct coloured wire(s) before the countdown runs out to defuse the bomb and avert disaster. Cutting an incorrect wire leads to a time penalty, and when the countdown gets to zero... BOOM! Now, the severity of an explosive device detonating is a bit hard to convey by just displaying the word "BOOM!" on a small 4-digit LED display, which is why this prop uses the Wi-Fi capability of a Wemos D1 Mini ESP8266 device to publish an MQTT message to a Node-RED server. That server, in turn, sends a message to a connected Arduino UNO which controls a series of DMX lighting and sound effects, providing a much more dramatic theatrical effect, and giving the players a more immersive experience. For more information on controlling DMX devices from Node-RED via Arduino, see my previous tutorial at https://www.youtube.com/watch?v=nPNFbN80pSg Timings --- 00:00-02:39 Introduction 02:40-05:51 Demonstration 05:52-13:34 Hardware and Design Considerations 13:35-20:19 Wiring Diagram 20:20-53:02 Wemos D1 Mini (ESP8266) Code 53:03-01:00:34 Node-RED Flow 01:00:35-01:06:23 Arduino DMX Controller Code 01:06:24-01:08:55 Wrapup Resources Used --- - Wemos D1 Mini, ~$2.50 from e.g. https://www.banggood.com/custlink/v33RJLItSj - TM1637 4-digit LED display, ~$3 from e.g. https://www.banggood.com/custlink/GDD3zSq2qk - Arduino UNO, ~$3 from e.g. https://www.banggood.com/custlink/KD3ErLZzY9 - Conceptinetics DMX shield, ~$20 from e.g. https://www.tindie.com/products/Conceptinetics/25kv-isolated-dmx-512-shield-for-arduino-r2/ (other shields are available - e.g. https://thepihut.com/products/dmx-shield-for-arduino. It's also possible to create your own DMX shield using a MAX485 chip, as explained at https://playground.arduino.cc/DMX/DMXShield/ ) - RGB Stage Lighting Cans with DMX interface: £70 for 4 - https://amzn.to/34yeHA3 - Node-RED - https://nodered.org/ Code & Wiring Downloads --- If you'd like to support me making more video tutorials explaining how to use tech in escape rooms and other playful settings, please check out my Patreon at https://www.patreon.com/playfultech, where you can also find code downloads, wiring diagrams, and additional resources for this and all my other tech projects.

Comments

Escape Augusta

Can't wait to build this project! But for some reason, I am unable to find the code. I clicked on your GoogleDrive link, I see three files: 2 .jpgs and the .fzz file. After downloading the .fzz file and opening it in Fritzing, I can see the breadboard, schematic, and PCB, but the code window is blank. I am new to using Fritzing, but it seems pretty user-friendly. Please help, how can I download your code?!

Jack Spacer

I love the work you do and the way you present it. I always look forward to your new projects. Continue with these presentations. I enjoy it. Greetings Jack from the Netherlands.

Nicolas Ballet

Yeah very great to see both puzzle and how to use node red with the prop Thanks a lot

Katelyn Cahill-Rowley

Hi Alastair, I am hung up on one line in the code, line 192. if(i == wiresToCut[wiresCutCounter]){ // Go on to the next counter I'm working through this on pen and paper and I see how it would work the first time. We initialized wiresToCut = {0, 1, 0, 2}, so when i = 1, wiresToCut[1] = 1. But the next time, now that wiresCutCounter = 2, we have i = 3 which wouldn't equal wiresToCut[2] = 0. Instead of if(i == wiresToCut[wiresCutCounter]), I would have expected if(wiresCutCounter == wiresToCut[i]), ie swapping the i and wiresCutCounter variables. This isn't a matter of the code not working (I'm still waiting on some hardware before I run it), I simply don't understand it and I was hoping I'm missing something simple you can point out. Thank you for your time.