Home Creators Posts Import Register Favorites Logout

Content

This post contains links to the patrons-only resources to accompany the input sequence puzzle at https://www.youtube.com/watch?v=3Zn6D0731MQ&list=PLogiUurtMYtR2Hf0-eg8-K2E9uRtpWzWV

Arduino Code:

https://drive.google.com/open?id=1-XkURSJ_wKV2ZxjKlLGRDLn5uL_8Eoc_

Fritzing Project:

https://drive.google.com/open?id=10mWDg2b44oFpNNBTvHo87jmnks8o7Ppy

Wiring Diagram:

https://drive.google.com/open?id=17pEbz2l5ZDR3albO63ZWso46vSKyxlRi

Additional Documentation:

https://drive.google.com/open?id=1D7NykqYRf2HMZV318ESmBPonhHEO7tl7

Comments

Sander Smit

Hi Alastair, I have the puzzle up and running! Yayy yayy. For a couple hours now, i've been trying to get a mp3 triggerboard to play a simple tone when you push a button. (Players hear a simple melody and they must play the same sequence of tones to unlock a door.) For each button I have a different key out of a scale. Each of them is on a seperate pin on the triggerboard. Do you have any ideas on how to adjust the code so that this works?? I dont know how to apply a certain tone to a certain button in the code. Can you help me??

Clue Box (edited)

Comment edits

2026-09-07 18:00 i like it and it works!
2019-01-08 16:22

Annalise Shippee

I inadvertently posted this on the wrong thread...so reposting here... I am using this code with force sensitive resistor thin-film pressure sensor and would like to have them stand on the pressure sensor instead of pushing a button in sequence. I would like to have all sensors stepped on in order and continue to hold it to release the lock. also i would like to have the LED lights flash for only 5 minutes with correct. Can you help me with this? The code is working for just pushing the sensor and releasing, but I am trying to figure out how to make it so that 4 different people have to be included in solving this puzzle. Thanks in advance!

Ken

Hi Alastair, Love your tutorials! I'm trying to figure out how to go about changing this up a bit. What I'm trying to get done is the following: Say the right combination is 1, 3, 2, 2, 1. When someone inputs 1, that is registered as a first correct input and they can go on and input the second number. But if they then enter 1 again I would like them to be taken to step 1 instead of step 0. So I would like that second (wrong) 1 to register as the first correct input, so they can go straight to entering 3 and so on... Just to make things a bit more clear: If they were to enter 1, 1, 3, 2, 2, 1 that would solve the puzzle. Or if they would enter 1, 1, 1, 1, 3, 2, 2, 1 for that matter. How would I go about implementing that in the code? Thanks!

Carl Tyler

Can you explain this like a bit more, I don't understand how the numbers map to the comment: // The correct sequence of inputs required to solve the puzzle. const byte steps[numSteps] = {0, 2, 1, 1, 0}; // i.e. press button #2 once, then button #3 twice, then button #0, then button #1.

Sergiu Prundurel

Hello, I am using this code for a prop with hall sensors instead of push buttons. I ruled out the LED lines as I don't need them to confirm every step. Everything is working fine, I changed the sequence according to my needs, I just need one more thing. I need to connect one single LED that is supposed to confirm every time any of the sensors is active. Since they are "invisible" I need the players to have a confirmation every time a sensor has been "pushed". I am sure it's not complicated but I just can't figure the code out. Can you help me out? Better said, I need to connect an LED to, let's say, pin 13 that will turn on every time a magnet is close to a hall sensor and turn off when the magnet is away from the sensor. Thanks!

Sergiu Prundurel

Thanks for your fast reply! I understand the issue but it is not the case for me. The players will have only one magnet which they can use and move it from sensor to sensor (which are hidden by some symbols) in order to execute the sequence. The principle is the same like with the push buttons but I don’t need the multiple LED confirmation since they will get the order of the symbols from somwhere else.

Sergiu Prundurel

Actually, I have noticed that the rx (or tx) led on the board itself does exactly what I need. I just need to link that with an external LED.

David J Sebek

Thank you for the wonderful tutorial. I was wondering what code would you put at the end so that the puzzle can reset itself. I am using an electronic latch and it will power on to unlock but then I need it to cut power so that it does not burn out. What code would I use to reset it at the end instead of the running led lights.

Electronikz

Hello this is exactly the post that I needed so thank you so much. Let's say I have 4 buttons that are all disguised with already having their own separate functions. Can I tap into them with nothing but joining cables halfway through their circuits and run them straight into the same pins as the buttons are in your video? That way when someone is pressing the buttons they still function but if you press them all in the correct pattern it will unlock without any disturbance? Also, if I were to use a linear actuator instead of the magnet lock how do I go about coding for the actuator to stay open until the code is put in again? Thank you

Electronikz

Hello there if I were to have 4 buttons disguised with different functions already and I cut into them and ran a wire from each one into the breadboard where you have connected the buttons would they work as the buttons? How would I code for timed buttons too? What coding do I need for the prokect to extend a linear actuator and only close when the sequence has been put in again?

Uriah Braden

Hi, I want to set this up for 4 buttons and a fairly long string of inputs. I would like to activate an led (pin) after a sequence instead of after each individual button. For example first sequence 0,1,2,3 then they get an indicator light, second sequence of like 8 button presses, then another light, then third light after all is done. Changing the number of buttons and the sequence is fairly straightforward, but I have no clue how to change the LED's Is there a simple code edit for the led portion?

Chris Sapp

Hey Alastair Aitchison I have altered this code to work with 8 buttons but everytime I add my 9th none of the buttons seem to work, I am using an Arduino Mega and my input ports are 31,30,29,28,27,26,25,24,23,22 if you can please help me, Thanks.