Toggle Switch Puzzle (Patreon)
Content
This is a very common tech puzzle I've seen in Escape Rooms - a series of toggle switches which must be set to the correct pattern of on/off states in order to release a maglock or activate some other device.
Now, you could create a basic version of this puzzle by just wiring the switches together in series - no microprocessor required - so that when set to the correct state they complete a circuit that powers the relay. However, in this tutorial I wanted to create slighly more configurable approach - by reading each switch state separately using an Arduino, you're able to dynamically change the desired solution state at runtime. And, by saving that solution to EEPROM, you can then store and reload that pattern - even if the Arduino is turned off!
00:00 - 02:45 Introduction and Demonstration
02:45 - 07:08 Wiring
07:08 - 20:46 Arduino Code
20:46 - 21:18 Wrap Up
To download the code or wiring diagram for this project, please go to https://www.patreon.com/posts/19260420 - thanks!