Home Creators Posts Import Register Favorites Logout

Content

Wire buzzer game? Don't buzz the wire? Whatever it's called, I'm sure  you'll be familiar with the dexterity puzzle in which players must pass a  loop of wire over an obstacle, avoiding touching its side or else a  "buzzer" will go off.

Normally, the wiring for these sorts of games is really simple - when the conductive hoop touches the wire, a circuit is made, which sets a buzzer off. But if you wanted to use this as a dexterity puzzle in an escape room, say, how do you prevent players from cheating and just carrying on, regardless of how many times the buzzer has gone off? 

For today's advent calendar video, I'll describe how you can build my  version of this puzzle that uses an Arduino to detect whether the loop  has been allowed to touch the wire - if so, players must reset the  puzzle by returning to the start and resetting the puzzle. Only by  completing the entire navigation from start to end in one go will  players correctly trigger the end zone, which can activate a relay to  release a maglock, light up a display, or any other action making it  suitable as a puzzle for use in an escape room. 

You can find the code listing and wiring diagram at https://github.com/playfultechnology/arduino-wirebuzz 

Files

Arduino Wire Buzz Game

Wire buzzer game? Don't buzz the wire? Whatever it's called, I'm sure you'll be familiar with the dexterity puzzle in which players must pass a loop of wire over an obstacle, avoiding touching its side or else a "buzzer" will go off.In this video I'll describe how you can build my version of this puzzle that uses an Arduino to detect whether the loop has been allowed to touch the wire - if so, players must reset the puzzle by returning to the start and resetting the puzzle. Only by completing the entire navigation from start to end in one go will players correctly trigger the end zone, which can activate a relay to release a maglock, light up a display, or any other action making it suitable as a puzzle for use in an escape room. Part of my Escape Room Tech Advent Calender for 2019! For my Escape Room tech projects, see https://www.patreon.com/playfultech

Comments

Tim Blackwell

Alastair, I see where two others have asked this question, but do not see an answer. I would also like to activate a relay with the successful completion. Please respond.

Alastair Aitchison

Hi - sorry, silly Patreon doesn't send me notifications when comments are made on a post, so I've only just seen these! So, to unlock a maglock on success, the first thing you do is to declare a pin which is connected to the signal in of your relay. Put this at the top of your code: const byte relayPin = 13; Then, in the setup() function, you say that this is an OUTPUT pin and that, by default, it has a HIGH signal (since most common relay modules are active low): void setup() { pinMode(relayPin, OUTPUT); digitalWrite(relayPin, HIGH); ... Finally, in the loop() function, if the game is solved, you write a LOW signal to the pin to activate the relay and release the maglock: case GameState::SUCCESS: digitalWrite(relayPin, LOW); To make sure the maglock locks again when the puzzle is in play, you also need to add this line: case GameState::IN_PROGRESS: digitalWrite(relayPin, HIGH);

Rares

hy alastair nice puzzle i just put togheter the prop and on serial monitor it shows game started then failed adn goes on .... i am not tucking anything

Pascal Kaiser

I was just wondering - could a player protect the Ring from touching the copper pipe with his hands :-/ Or would the Arduino read "Ground" aswell when i touch the copper pipe with my bare hand?

Andrew McJannett-Smith

Hi Alastair, Great puzzle, I have recreated it using a small compartment that opens if you succeed, however when testing it it all works as planned except if you touch the copper pipe during the game all i need to do is to touch the same copper pipe a few times and it resets, like going back to the beginning, so this makes it possible for someone to buzz it all the way to the end and touch the pipe a few more time to win and open the compartment. I do not think it is a short because if i touch the start area more than once it does not buzz only starts and that is it regardless of how many times you touch it. so the start and the pipe should not be shorted out otherwise the would both work the same way ? Any ideas? Here is a Video: https://photos.app.goo.gl/sGrQ6GqzK8carpLt6

Albin

how can you make a led light red if you lose and a green if you win

Andrew McJannett-Smith

Thanks Jennifer, I sent the code to a friend of mine who is a programmer full time, he re-wrote the code for me and it works fantastically now with absolutely no issues. Let me know if you would like it. My email is andymcj@gmail.com

BBQ Addict

Input pullup on the failure pin is sometimes hyper sensitive and sometimes it doesnt work at all. Any suggestions as to whats going on?

Tyler

I would like to activate a relay to release a maglock when you successfully get to the other end. How would I wire that and how do I alter the code to make that happen?

gorilla

I wonder the same thing as Tyler. If the operation is successful, I want to make 12v mglock work. What should I do?