Home Creators Posts Import Register Favorites Logout

Content

You can download a zip file containing the Arduino code, Fritzing project, and wiring diagram to accompany the "Toggle Switch" puzzle tutorial from:

https://drive.google.com/open?id=1W_z99jneDWLpM7tzh_N66Pynd-RE8Z2b

The missile switches I used cost about £1.80 each: https://www.ebay.co.uk/itm/12v-Illuminated-LED-ON-OFF-Toggle-Switch-Aircraft-Missile-Style-Flip-Up-Cover/272023481220

Please let me know if you have any questions about this project!

Comments

Rodrigo Ricardi

Hello Alastair, I have a question for this project, can I use simple switches that doesn't have the ground connection, and only used the 5v in and when its off it doesn't received any signal to the digital pins??

leucosia

hello alistair, we find it or the big blue button and how it is called it, sorry I start in the arduino thank

Sandy Tutvedt

Hi Alastair! I love your videos and have been doing pretty well at changing things up a bit to make puzzles for my escape room. I'm working on a simpler version of this puzzle, I think. My 6 switches each turn on a LED. When the correct LEDs are on/off the puzzle is solved (different version of Starry Night kind of thing). So order doesn't matter. I don't need the stepping process (and don't need the EEPROM for this one, though that is really cool and will use it elsewhere.) But I'm getting myself mixed up adding the LED and deleting the stepping process. What would the array look like to define the solution? Thanks!

ANTONY DREW

HI Alistair, loving the puzzles by the way .

ANTONY DREW

i have a question - i have copied your setup but as soon as a plug either the UNO or the maglock into a power supply the relay switch seems to be non stop clicking . if i just connect via my laptop the puzzle works perfectly ? any suggestions ?

Alastair Aitchison

Hmm, something's not right there! Can you send me some photos or drawings showing how everything is wired together?

Anthony Morgan

I have exactly the same problem as Antony Drew. Non-stop triggering of the relay pin. I've tried different boards, different pins, etc... nothing helps. Any suggestions?

Anthony Morgan

Do you think pulling up the inputs would help eliminate noise?

Anthony Morgan

or external pulldown resistors rather, since the switches are supplying 5v when switched on. i guess it may be a moot point since they are connected to ground already...

Ramsey

It sounds like I am experiencing something similar as the other posts. I have successfully constructed some of your other projects, so I trust my wiring and schematics, but in this instance I cannot get a reliable lock from my magnet. It either flashes on/off in quick succession, sometimes it clicks on and off in random intervals, and most recently doesn't blink the red light at all (though power remains because the yellow indicator is on). I have tried using the three prongs as power, ground, and input, and that hasn't made a difference either. A second issue is that when all the wires were connected my Arduino Uno essentially shut down; the lights turned off and the computer wouldn't even recognize it when plugged into the USB port. It took removing all wires for the device to function properly. Was it using too much power? I then attached an external 9V to power the relay. Power remained when the wires were returned, yet still no response from the mag lock or button push as seen in your tutorial. I truly enjoy this channel and this has become something of my White Whale currently.

Ramsey

I want to report that after an evening of struggle, I realized the error was human and actually quite small: The wiring on the YouTube video did not align with the wiring in the fritzing diagram. As I watched the video over and over for some clue, I realized that how you had your power, ground, and input changed when it was recorded in fritzing. Once I matched your wiring from the video and not the diagram, it was good to go. Thanks for a great puzzle! I enjoyed solving that :)