Introduction: 3d Maze Game Using Arduino
Hello friends , so today we are going to make a maze game using ARDUINO UNO.
As Arduino Uno is the mostly used board it is very cool to make games with it. In this Instructable lets make the maze game which is controlled using joysticks .
Don't forget to Vote and this is MY FIRST INSTRUCTABLE.
Supplies
1.Cardboard(MDF Board)
2.Joystick Module*2
3.SG90 Servo Motor*4
4.Arduino Uno
5.Breadboard
6.Nuts
7.Nail pins
8.Jumper wires
9.Connecting wires
10.Some cardboard pieces
Step 1: Joining the Joystick
Firstly we are going to make a remote controller to control our gaming setup.
This is done easily by using joystick module. Place the joystick module on the cardboard and add two side cardboard pieces to make it like a jostick arm. This wo controllers are help to control the 4 servo motors effectively and it makes the control very cool even. Even though if you want to increase the difficulty of our game you can do connections of servo with jostick module in opposite manner easily.
Step 2: Pieces
Take cardboard and make some pieces according to the size of the servo motors.
This cardboard pieces can connect the servo motors perpendicular to each other.
Step 3: Joining the Servos
Take the two servo motors and connect them perpendicular to each other so that they can control the X and Y axis turning of the maze when controlled with the joystick.
Place this two pairs on the cardboard piece to hold the maze over it.
In order to make the base strong we can also use the MDF board rather than the cardboard.
Step 4: Connecting the Parts
Place the breadboard and Arduino Uno on cardboard and connect it with the joysticks using glue gun.
Step 5: Cuttings
Take the cardboard and make a difficult maze over it.
Then use the cardboard pieces to make a 3D maze easily and surround it with borders.
Step 6: Connections
1.Connect s1,s2,s3 and s4 to the arduino digital pins (any according to you)
2.Connect the jostick modules to analog pins A0,A1,A1 AND A3 consecutively .
NOTE:-
1.Remember while uploading the given program into arduino that your connected pins and analog pins must be same otherwise the project doesn't works.
2.Change the pin no. in the programming code according to your connections.
Step 7: Programming
https://docs.google.com/document/d/1Rnvig5YBqGpCQB...
Let's upload the code.
Step 8: Result
Our 3D MAZE GAME is ready to be played.

Participated in the
Anything Goes Contest
29 Comments
2 years ago
I hate to sound stupid here, but how is this superior to building a standard labyrinth? I mean, when I saw an arduino was involved, I was intrigued because I thought you had sensors in it and were using machine learning to get the labyrinth to solve itself, but it looks like you're just using it as a controller for a couple of joysticks that do what a wooden labyrinth does.
I don't mean to diss this at all, I just don't understand why it's built this way.
Reply 2 years ago
The concept is that it can be controlled remotely by arduino. Take it one step further and you could control it online, or add sensors or AI. Give the guy some credit. I would have never considered joining 2 servos together... although dunno if this method works!
Reply 1 year ago
It might. If you have a hefty board (and his does look big), a single sg90 might not be powerful enough so it would make sense to have two on the opposite sides (with reverse steps). Still, two joysticks make zero sense.
1 year ago
Dude, it is a weird one. I would like to see the pitch / roll mechanism ... but more importantly, what do the two(!) joysticks do? For two axes you only need one, right? Or am I missing something?
2 years ago
The author did admit on replies that this doesn't work. Not sure why it is still featured and not deleted. Please don't waste other people's time by posting something that doesn't really work.
2 years ago
As others have said, there's no way that arrangement will be able to 'roll' side to side. The two servo stacks would prevent each other from rotating in that direction (unless they were strong enough to break the board). Also, why two joysticks when one could do everything needed? You must have tested it before publishing. Maybe focus more on engineering and not how cool it looks.
2 years ago
It's amazing..Make more things like these.
Reply 2 years ago
Are you related?
2 years ago on Step 8
How does it work?
2 years ago
Would love to see a video of this working!
Tip 2 years ago
The project looks really cool :)
To store your Arduino code I suggest Github (https://github.com/) or any similar free git product. In the future that could help you a lot :)
2 years ago
I cant see how two top servers tilting at the same time will cause the board to tilt as one plane, am I missing something here.... anyhow, here's another variation on the Marble maze Arduino. Give this guy a like as he said loads have copied his code and claimed it as their own. https://www.instructables.com/Arduino-Marble-Maze-Labyrinth/
2 years ago
From my understanding of how the servos are connected, this board will tilt on only one axis (yaw). It appears the servos controlling the roll axis would bend the board if they would move.
Is this a work in progress?
2 years ago
You should first explain how the maze works and how the game is played. If I understand correctly, the maze tilts in all four directions and if you put a ball inside the maze, the ball would roll in the desired direction. But I'm not entirely sure.
If both servos are conected to the base in perpendicular axis, don't they prevent each other from moving? Shouldn't they be one on top of the other? You mention they should be perpendicular, but they seem to have the same orientation in the picture. A video showing the servos at work and the game being played would go a long way. Regards!
Answer 2 years ago
.
Answer 2 years ago
Step three answers your question. They are mounted as a gimble.
O
Reply 2 years ago
Hmmm... I hadn't really realized there were 4 servos in the picture. Each side is actually a pair of servos stuck on top of each other. But still I don't see this working, since when you try to tilt the maze left, the servo pair in the left will rotate counter clockwise, and the servo on the right would attempt be lifted from the surface...
I would understand if it was only one pair of servos, but I don't see how both pairs interact...
Reply 2 years ago
I written program in such a way that the opposite servos interact with each other (their is little bit vibrations but still it works really) when both the joysticks are moved in opposite direction.I suggest you to go through programing code to understand the working very well.
Thankyou
2 years ago
I agree a video would be nice, but I believe you are creatiing a labyrinth game, https://www.google.com/search?q=labyrinth+game&rlz...
had one when I was a kid, this might be fun to try, thanks
Reply 2 years ago
Yes,very much similar to it.