Love Tiltable Maze Games? Then Build Your Own

Tiltable maze games are always alot of fun, but this Arduino-powered version is something else.
Christopher McFadden

If the video player is not working, you can click on this alternative video link.

Who doesn't love mazes? If you do, and you like to tinker around with electronics at home, then this Arduino-powered maze game will be right up your street. 

Love mazes and DIY Arduino-based DIY projects? Then you'll love this little piece of kit.

arduino maze game complete
Source: The Wrench/YouTube

Like any project of this nature, you are going to need a few bits and bobs. For this build, you will need:

You can also get the full circuit diagram and files here.

The first step is to design and make the maze that you'd like your Arduino-based toy to run around. To do this, take your cardboard sheet and cut it into a rectangle roughly 5.9 inches (150 mm) by 8.3 inches (210 mm)

arduino maze design
The first step is to design your maze. Source: The Wrench/YouTube

Then sketch out your maze using a white pen or correction fluid on an equally sized piece of black paper, as shown in the video. Be sure sure to add a guide track through the maze to help you, or someone else, actually play the maze game once complete. 

Glue the maze to the cardboard sheet using whichever glue you have to hand. PVA works pretty well, for example. 

Once the glue has set, cut out the circular "traps" of the maze using a surgical knife or similar. 

Now, take some more cardboard sheets and make a small box of similar dimensions to the maze itself. See the video for more information on this step.

arduino maze traps
Cut out the maze traps. Source: The Wrench/YouTube

This box will house most of the electronics later to make the maze work. Next, cut some small strips of cardboard, and paint them black to match the maze.

Glue these to the maze layout in order to create some partition walls, as shown in the video. Next, grab your MDF board. Cut this down to the same dimensions as the maze you have previously built. 

Also cut a small block of MDF and glue it to the cut MDF board, as shown in the video.

build arduino maze
Assemble the final maze. Source: The Wrench/YouTube

Next, grab your servo motors. Glue one of them on top of the MDF block you had previously also affixed to the MDF sheet. 

Remove the plastic attachment piece from the servo axle, and glue it to a small piece of wood using superglue or similar adhesive. Trim off some of the edges, as shown in the video. 

Next, grab the other servo motor and also flue this to the piece of wood as instructed to do so in the instruction video. Once the glue has cured, attach this assembly to the previously glued servo on the MDF block. 

See the video for more details on this step. 

Now, take two more small strips of wood, glue them together, as shown in the video, remove and glue the other servo's axle attachment piece to the wood and reattach to the top servo. 

arduino maze mover
Building the maze moving assembly. Source: The Wrench/YouTube

Again see the video for more details on this step. As now dimensions are provided, this will take a little bit of trial and error.

The next step is to create the main electronics gubbins. Either get a custom PCB printed or use a sandwich board to complete the circuit, as instructed.

arduino maze diy circuit
Maze circuitry design. Source: The Wrench/YouTube

Add the relevant electronic components to the PCB as instructed in the video and solder, as required. Now grab your Arduino Nano and attach it to the PCB. 

Now, grab the PS2 controller joystick, attach jumper leads and solder the other end of the wires to the PCB board as instructed. 

Affix using your double-sided adhesive pads, the joystick, and PCB board to the MDF board you have previously assembled. Watch the video for more details on this step. 

arduino maze gubbins
Assemble the microelectronics gubbins. Source: The Wrench/YouTube

Now, grab the battery holder and affix this to the MDF board too. Add batteries and connect to the PCB board.

Now to sort out the Arduino Nano code. 

 And here it is in all its glory...


Servo servo1;
Servo servo2;
int joyX = 0;
int joyY = 1;

int servoVal;

void setup() 

void loop()

servoVal = analogRead(joyX);
servoVal = map(servoVal, 10, 1023, 0, 15);

servoVal = analogRead(joyY);
servoVal = map(servoVal,10, 1023, 17 , 34);


Next, upload the code to the Arduino Nano. 

Once complete, wire up the servos to the PCB board, as shown in the video.

With this stage complete, turn on the battery pack, and test out the joystick to see if you have set up the micro-electronics correctly. 

arduino maze joystick
Attach the maze controller joystick. Source: The Wrench/YouTube

You should see a smooth movement of the servos in response to the PS2 joystick.  Once satisfied, affix the previously completed maze to the topmost servo assembly, as shown in the video.

arduino maze near complete
Source: The Wrench/YouTube

With this stage completed, your Arduino-powered maze game is pretty much complete. All you need now is a small metal ball to use as the object of the game to escape the maze.

arduino maze complete
The complete maze. Source: The Wrench/YouTube

At this point, your Arduino-powered maze is basically complete. Now just power up the device and attempt to master the maze as best you can!

Good luck. 

Add Interesting Engineering to your Google News feed.
Add Interesting Engineering to your Google News feed.
message circleSHOW COMMENT (1)chevron
Job Board