"Valves and Gauges" Escape Room Puzzle (Patreon)
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!