Home Creators Posts Import Register Favorites Logout

Content

It's taken me two days to upload this video to YouTube via my phone (see previous Patreon message for explanation why!), but it's finally got there!

This tutorial makes use of analog lever inputs I described in my last mini-video, and combines them with servo motor-driven gauges to create a classic "plumbing/pipes" escape room puzzle - make all the needle indicators point at the correct sections of the dials to energise the relay and release the maglock.

There are various additional modifications that I tried out while making this project, including LED indicators that displayed the "pressure" contained in each pipe. But ultimately it was actually quite refreshing to make an electronic puzzle that *didn't* have flashing LEDs on it, so I opted for just the analog gauges as the only visual feedback. You might also want to spend some time adjusting the output range of the servos compared to the input read from the levers - I show how to in the code. I tried using a smoothed average rather than a "raw" input, for example, which gave a much better feeling of a gradual "repressurisation" within the pipes. The downside of this smoothing is that it also made the inputs feel a bit more "laggy", and it certainly didn't work well for a video demonstration, but do play around with it to get the controls to feel right for the game you want to make (if anything, I'd say the values I used when recording the video were a bit on the twitchy side, but that does ensure that they're responsive). Feel free to ask about these or any other modifications.

I'll be putting up a separate post shortly containing all the resources for Patreon supporters to download. In the meantime, stay safe, and enjoy!

Files

maxresdefault.jpg

This video describes how you can create an electronic escape room puzzle using a set of levers and gauges, controlled by an Arduino, Raspberry Pi, ESP32, or other microprocessor. When the valves are opened, the gauge needles move. When every needle points to the correct section of the dial, the Arduino triggers a relay, which can release a maglock providing players with their reward. 00:00:00 - 00:02:22 Introduction and Demonstration 00:02:22 - 00:05:37 Hardware Overview 00:05:38 - 00:13:47 Component Wiring 00:13:48 - 00:33:50 Arduino Code Explanation 00:33:51 - 00:34:55 Wrapup If you enjoyed this video or found it helpful, please like and subscribe to this channel! And, if you'd like to download the code for the Arduino IDE, the wiring diagram, the STL models for 3D printing, or other resources used in this and all the other escape room projects shown on this channel (and support me to continue making more tutorials in the future!), please check out my Patreon at https://www.patreon.com/playfultech #esp32 #arduino #escaperoom #puzzle

Comments

David J Sebek

Good morning! I keep receiving this error when trying to save the file and run it. Any word if libraries have changed or why this error would be appearing? Also getting multiple errors on other PCA9685 commands. /tmp/655692243/Valve_Puzzle/Valve_Puzzle.ino:36:1: error: 'PCA9685_ServoEval' does not name a type PCA9685_ServoEval pwmServo;

Ian T

Hi Alastair! Love your work here! Im wondering if theres a way to have the meters 10 meters away from the valves. how would you do that considering the cable length?

Bren 79

Thank you very much for the great work you have done, and can you share the sketch?

Austin Storm

This one is a delight, thank you!

Ofer Groman

Brilliant!! Thank you for adding the detailed explanation about the pwm driver, this opens up so many possibilities! About the led-light sensor - I wonder, would it be possible to add this mechanism to a gate valve? Or maybe it doesn't work the same way?

Mr Crinkles

@Ofer Groman. Yes, A gate valve will give you the same results.

Remco Dresen

Really cool! Can you also share the picture inside?