Home Creators Posts Import Register Favorites Logout

Content

Hi folks!

Here's a new escape room puzzle tutorial for you, and one which I hope you find fun and also a bit different.  

This puzzle that requires players to press a series of touch inputs in the correct sequence in order to release a maglock. The inputs are touch sensors which, when the player places their finger on them, each play a sound sample of a single syllable. When pressed in the correct order, these syllables make the words of a sentence. The sound files are played by a DFPlayer Mini MP3 module, controlled by an Arduino. When the Arduino detects that the last correct input has been pressed, it activates a relay which closes a circuit, supplying 12V to a maglock which ejects a catch that had previously been held closed. 

Unlike similar escape room puzzles, which are often biased towards visual senses of identifying particular symbols or characters, or following a series of lights, this puzzle relies on sound and auditory senses, which makes it a nice complement to other puzzles in an escape room. 

A post with links for the Arduino code, wiring diagram etc. will be going up for Patreons very shortly. Please be aware that I've noticed one error in the video - the ground connection to the line out jack of the DFPlayer is incorrectly shown connected to the bottom 5V rail rather than ground rail. This is corrected in the download. If you spot any other mistakes, or have any questions or comments, please don't hesitate to let me know!

Timings

---

00:00-00:32 Demonstration

00:33-03:44 Project Overview

03:45-06:32 Component Explanation: Multiplexers and Touch Sensors

06:33-17:51 Wiring

17:52-34:59 Arduino Code

35:00-36:01 Wrapup

Files

Audio Sequence Escape Room Puzzle

In this video, I'll explain how to create an electronic escape room puzzle that requires players to press a series of touch inputs in the correct sequence in order to release a maglock. The inputs are touch sensors which, when the player places their finger on them, play a sound sample of a single syllable. When pressed in the correct order, these syllables make the words of a sentence. The sound files are played by a DFPlayer Mini MP3 module, controlled by an Arduino. When the Arduino detects that the last correct input has been pressed, it activates a relay which closes a circuit, supplying 12V to a maglock which ejects a catch that had previously been held closed. Unlike similar escape room puzzles, which typically require visual senses of identifying particular symbols or characters on buttons, or following a series of lights, this puzzle relies on sound and auditory senses, which makes it a good complement to other puzzles in an escape room. Timings --- 00:00 - 00:32 Demonstration 00:33 - 03:44 Project Overview 03:45 - 06:32 Component Explanation: Multiplexers and Touch Sensors 06:33 - 17:51 Wiring 17:52 - 34:59 Arduino Code 35:00 - 36:01 Wrapup Download the Arduino code, wiring diagram, Fritzing project, and additional resources at my Patreon page: https://www.patreon.com/playfultech

Comments

Barry Arrington

Hey there! Love this. Can this be used with traditional push buttons with NO contacts instead of touch sensors? What does that look like?

Robert Davis

How many amps does the power supply need to be?

AConde

This project is great! I am having a problem with it, I have replicated it and when connecting it to the power, all the recorded sounds begin to sound without stopping. Do you have any idea what may be happening? I checked all the connections and did not detect any errors ...

Kaleb

This is a really cool project! I recreated it and got all of the touch capacitors to work. I can open a maglock with it no problem, but I cannot get the SoftwareSerial to initialize, and I can't get the DFPlayer to play any sound. I just get a "click" when I touch a capacitor. Do you have any ideas what could be causing that? Btw, I really love your projects! I've recreated 3 at this point!

Hal Woods

Hey Allistair, I hope all is well. I have used several of your projects with great success. Many Thanks for that! this one really turned into a wire monster on me and has been quite complex. I have been playing with the Adafruit Trellis that uses 12C built in and has its own led drivers. I was wondering how hard it would be to change this project to us the Trellis as the keyboard? Any advice would be greatly appreciated.

Hal Woods

For fear of lack of clarity. I am playing with original Trellis 4x4. So some type of 4x4 keypad or the trellis as the entry object instead of MUX with touch sensors. Again thank you so much

Hal Woods

https://learn.adafruit.com/adafruit-trellis-diy-open-source-led-keypad. I have seen several sketches using I2C to control an LCD display but had a miserable time getting anything for keypads using I2C to communicate. in the case of this mechanism it would reduce the wiring to five wires for the keypad and leds. I would think these would make interesting keypads for props as well. Many Thanks for taking your time to reply.

Hal Woods

when I plugged it to power it started reading all the audio files off in order and continued to do so I am rebuilding again today from scratch. I was hoping the other person who seemed to have the same problem had found what caused the issue. Unfortunately I have a room I'm completed with that had this puzzle in the chain. So im going to go slowly and carefully and try and rebuild the mechanism

Hal Woods

I rebuilt the mechanism from scratch and this one is has the same issue.So whatever I'm doing wrong I'm consistent. when it initializes it tries to connect with the serial monitor for the DF then says it failed. Then it starts reading all the files in order. I can press the buttons and it shows the input but it doesnt change the audible. I changed from Software Serial to AltSoft no difference. I also grounded pin I/O 2 on the DF no change as well. I do have a blue LED on the DF player. I am so very sorry to be a bother but how hard would it be to change it to react to a 4x4 keypad?

Óliver Novelles

Hi Alastair! I can't find the "src/arduino-ad-mux-lib/Type4067Mux.h" library. Can you share the .zip, please?

Robert Davis

Getting the same problem with no such file or directory. Went to the link downloaded zip file. added to library though Add zip library. but says no such file. my assumption is a possible spelling error but I'm unsure how to tell what the exact spelling should be

Robert Davis

i see the files in the src subfolder and downloaded them, and extracted, but Do you have a video showing how you compile the .ino file? I don't know what that means.

Kiara Hill

Hi Alastair! I love your tutorials and finally pulled the trigger on joining your patreon! I was wondering if instead of touch sensors i could use buttons and would that change the code?

Frank

Bonjour Alastair, j’aimerais savoir si on peut facilement changer la séquence à appuyer pour déverrouiller et mettre une séquence de 5 ou 6 touches à appuyer ? Merci

Frank

Bonjour Alastair, oui, bien sur, merci pour votre rapidité. Cela corresponds tout à fait à mon besoin et je viens de recevoir les pièces pour la réalisation. Encore merci.

Gianpiero Ragnedda

Hi, can i do this project without the multiplexer if I use an arduino mega ?

Roy Johnson

Greetings and high fives Alastair. I was able to recreate this project using an Arduino mega and twenty12V LED Illuminated Push Button Switches. I ran into a problem though. Once in a while when I press a button. It plays a different sound file. Please advise.

Michael Williams

Hello, it looks like library for the multiplexer has been updated 9 mos ago. When I try to use it, I am getting errors. Does your code need to be updated?

Roy Johnson

Greetings and high fives Alastair. I was able to recreate this project using an Arduino mega and twenty12V LED Illuminated Push Button Switches. I ran into a problem though. Once in a while when I press a button. It plays a different sound file. Do you happen to know what might be causing that?

Roy Johnson

Thanks for the reply Alastair, I definitely don't like "once in a while" errors as well. So far I have not noticed any patterns. I did notice when I power on the puzzle. A sound file plays without any buttons being pressed. I'm still testing. I'll report back once I've noticed a pattern. Thank you for your time.

Eric Egan

Where can I download the arduino sketch? I am very interested in giving this a try!

Katelyn Cahill-Rowley

This is a great video. I've used it to learn about a simpler touch sensor, as a reference for DFPlayer wiring, and especially about the multiplexer. Several of my recent projects have run riiiiight up against the limits of one pin per in/output, I'm really pleased to know how to reduce them so much