Home Creators Posts Import Register Favorites Logout

Content

In this tutorial video, I'll show you how to create an escape room puzzle in which players must turn "valves" (i.e. dials, knobs, or any other rotary input), to set the correct level on a corresponding number of meters (representing e.g. pressure or water level in a pipe), as indicated by LEDs lit on an LED strip.

When all the levels have been set to the correct value, as customisable in code, the puzzle is solved and a relay is triggered, releasing a maglock. 

It's quite a long video, so the following timestamps will help you jump to relevant parts as follows:

00:00 - 01:50 Introduction and Demonstration

01:50 - 07:30 Overview of Puzzle Layout and Components Used

07:30 - 10:09 Detail: Linear Potentiometers

10:10 - 13:21 Detail: LED Strips

13:21 - 17:35 Wiring Diagram

17:35 - 36:30 Explanation of Arduino Code

36:30 - 37:28 Wrap-up

Files

"Valves" Escape Room Puzzle

Code download, documentation, and wiring diagrams for all my projects are available on my Patreon page - thanks for supporting me! https://www.patreon.com/playfultech In this video I'll teach you how to use an Arduino to create a "valves" tech puzzle commonly found in escape rooms. Players must turn "valves" (i.e. dials, knobs, or any other rotary input), to set the correct level on a corresponding number of meters (representing e.g. pressure or water level in a pipe), as indicated by LEDs lit on an LED strip. When all the levels have been set to the correct value, as set in the code, the puzzle is solved and a relay is triggered, releasing a maglock. 00:00 - 01:50 Introduction and Demonstration 01:50 - 07:30 Overview of Puzzle Layout and Explanation of Components Used 07:30 - 10:09 Detail: Linear Potentiometers 10:10 - 13:21 Detail: LED Strips 13:21 - 17:35 Wiring Diagram 17:35 - 36:30 Arduino Code 36:30 - 37:28 Wrap-up

Comments

Gregory Slossar

When hooked up with my computer the LED's work great. When I plug the arduino with direct power the LED's start flashing. I am using a 12 V power supply. Should I use a 9 V and/or use different resistors?

Gregory Slossar

Hi Alastair, the LED's are being powered on their own, which is 12 V and 10 amp. The Arduino is powered by a separate 12 V power supply. Everything still works though. As you turn the pots the LED's change, but when left alone, all of the LED lights keep rapidly changing to different colors. If I unplug the Arduino and plug it back to the computer using the USB then everything goes back to normal.

Gregory Slossar

Thanks Alastair! The common ground was disconnected. Is there a way to send a tip through Patreon? Your response and support is incredible.

Jeff Danevich

Hi Alastair, My LED's won't light up. I can turn the linear pots and the relay works, but no indications from the LEDs. My power source for the LEDS is a separate 5v 3 amp supply and everything is the same a s you drew it (resistors and capacitors)

Bizzaro.

Had a weird issue pop up. I have 19 LEDS active but on each strip, the 15th one won't light (5th from the top). At first I thought it was blown but it does it on all of them. We ended up needed less anyway but thought it was weird. (On a side note, I noticed your fritzing diagram doesn't match your code. You have the lights on pins 3, 4, and 5 in the code but on the diagram they are on 8, 9, and 10. Figured you might wanna know.)

Scott Stover

First off, I love this puzzle! For my application, I'd like to have an enable input to prevent the puzzle from working until it's ready and an output for when it has been solved. I'm sure this is something very simple to code, but I'm an Arduino noob. Is this something simple enough to add to the code?

Russell Hardman

Thanks for another great puzzle. All working great. The only issue I had was the data pin diagram and code being different (easy fix) and my ws2812b strip had 3 wires (red,white and green) and 2 wires (red and white) the led strip only worked when I took the white from the red and white to GND on arduino. Using just the white from the 3 wires didn’t work. Not sure why.

Jeff Danevich

Alastair, what code would you add in to reset this after it was solved? Using a Solenoid and it gets hot when left on, Thanks Jeff

Edwin Sulsters

Hi Alastair I've just become a patreon member and I would love to receive the Arduino code and schematics of this "Valves" Escape Room Puzzle, but I can't find it. Can you help me out here?

Carl Tyler

Where's the code for this example?

RJ Hemy

Where/How would I add code to change the color of each set of lights instead off all being blue make one blue one red, etc?

RJ Hemy

Im trying to figure out how to break that into individual strips instead of saying all of them together