A Maze Capable Of Cheat Detection

About the project

The idea of the maze is that it has an electric charge being propagated throughout it, so that when the stylus is in contact, the circuit is completed. When wired to an Arduino, it can detect this, and when the circuit is broken, it knows whoever is using the maze has attempted to cheat.

Project info

Difficulty: Easy

Platforms: Arduino

Estimated time: 3 hours

License: GNU General Public License, version 3 or later (GPL3+)

Items used in this project

Hardware components

Arduino Nano Every Arduino Nano Every In actuality, while this is the option that makes the most sense, it can be any arduino. x 1
Wire Jumper Male To Male 15cm 10pk Wire Jumper Male To Male 15cm 10pk Just have a handful of each wire type available. x 1
Wire Jumper Male To Female 15cm 10pk Wire Jumper Male To Female 15cm 10pk Just have a handful of each wire type available. x 1
Led - Basic Red 3mm Led - Basic Red 3mm Really, could be any LED. x 1
Piezo Buzzer Ps1240 Piezo Buzzer Ps1240 Could be any buzzer, just splice the wires to breadboard compatible ones x 1
Tiny Breadboard Tiny Breadboard x 1
Paper, aluminum foil, tape, structural material, and plastic gloves Paper, aluminum foil, tape, structural material, and plastic gloves Odds and ends that aren't electronics x 1

Software apps and online services

Arduino compiler Arduino compiler Standard stuff

Hand tools and fabrication machines

Wire cutters and strippers Wire cutters and strippers x 1
Scissors Scissors x 1

Story

Mazes!


Who hasn't cheated during the frustrating portions of one?

With such mental challenges, the entire reward is knowing that you solved it, that you conquered it. To ensure that this feeling is felt more by people, cheat detection systems can be implemented. In the world of computers, we often see anti-cheats in many versions of online multiplayer for video games. However, in real life these fail-safes are much less common, very often nonexistent. 

This was part of my thought process when I designed this maze. The other half was a special folding maze concept that I had, but that part is optional and will be listed later on. 


Part 1: Mazemaking

The first part of the project is actually relatively far removed from the world of electronics. The first step is to sit down, and make a maze. Pencil and paper. This is the phase where you add whatever gimmicks you want to add, such as the folding maze, or, if you are feeling particularly vanilla, none (no shame here). 

After you ensure that your maze is both challenging, not stupid (I cannot emphasize that one enough), and coherent, the next step can begin. Carefully overlay sections of foil onto each path of your maze. To ensure proper conduction, never cover the foil entirely in tape, and ensure sections of foil all overlap by around a 1/4 inches margin. This part is the most tedious part, and, depending on your maze, will take around 1 hour.

NOTE: Sections of your maze cannot touch each other if you want the foil to work at all.

Finally, using wire cutters, open up one end of a jumper cable with the remaining end being male, and tape the exposed wire onto another piece of foil. Affix this to somewhere in your maze. This is the power.


Part 2: Wires, and tests

Now that you've made your own electrical component, attach the maze and a power source to an Arduino through a breadboard, and upload the tester program to the Arduino. Plug in a Male to Male jumper for the stylus input of the Arduino, open the serial monitor, and observe. Depending on your power source, foil type, length of maze, and pressure upon maze surface, you will get different number when the stylus is on the maze versus not on the maze. Record these, as you will need them later. 

Then, wire up your other power source (if you have one), buzzer, and led so that are prepared to be mounted to the Arduino.


Part 3: Construction

Upload the second, final program to your Arduino, and modify the threshold value to reflect what you got in your test, and alter the wire inputs and outputs to reflect where your various devices are actually plugged in at.

Then, construct a stylus better than a jumper cable to use on the maze. 

Finally, mount things! Having a bunch of wires mounter onto a pop-tarts box might look stupid, but will tell you, it is one heck of a lot more durable than loose hanging wires are!


Folding mazes:

How do these work?

The concept behind a folding maze, should you choose to make one, is that you start with a standard piece of paper, folded up into 16ths, and there is a maze on it. To solve this, you loop over edges, going onto the backside of the maze. However, the twist is that there are special swirl symbols. Every time you collect a new swirl, you get to unfold the paper one time. This has a sort of reality-bending effect that I think is quite cool. 

Note: If you make one of these, make sure to test it many times to ensure it is possible, and ensure that there is no time throughout the solving that you are on a portion of foil that is disconnected from the power source.

For more context on what solving one of these is like, check out my video on it, and my channel:

video: https://www.youtube.com/watch?v=Ln1KHADd6Sw 

channel: https://www.youtube.com/channel/UCguJ2lEdSFFd3A4KyWNl2Iw 


Code

Main Code

Technically, you can the testing code and modify it, but this cleans it up.

Testing Code

Use this code in section 2

Credits

Photo of henry-marshall

henry-marshall

I build dumb things, and sometimes cool things. Also, I make games, which sometimes are incorporated into the previously mentioned dumb things.

   

Leave your feedback...