3d Maze Game Using Arduino

15,623

186

29

Introduction: 3d Maze Game Using Arduino

About: Do visit to my Youtube Channel :- Electro Techz

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

Step 8: Result

Our 3D MAZE GAME is ready to be played.

Anything Goes Contest

Participated in the
Anything Goes Contest

Be the First to Share

    Recommendations

    • Laser Challenge

      Laser Challenge
    • 3D Printed Student Design Challenge

      3D Printed Student Design Challenge
    • Hide It Challenge

      Hide It Challenge

    29 Comments

    0
    brandg
    brandg

    10 months 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.

    0
    AengusR
    AengusR

    Reply 10 months 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!

    0
    Ghloo
    Ghloo

    Reply 7 weeks 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.

    0
    Ghloo
    Ghloo

    7 weeks 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?

    0
    botdemy
    botdemy

    9 months 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.

    0
    ChrisWx
    ChrisWx

    10 months 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.

    0
    nileshprasad159
    nileshprasad159

    10 months ago

    It's amazing..Make more things like these.

    0
    ChrisWx
    ChrisWx

    Reply 10 months ago

    Are you related?

    0
    Penolopy Bulnick
    Penolopy Bulnick

    10 months ago

    Would love to see a video of this working!

    0
    MátéS8
    MátéS8

    Tip 10 months 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 :)

    0
    AengusR
    AengusR

    10 months 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/

    0
    Thadwald
    Thadwald

    10 months 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?

    0
    kiel814
    kiel814

    10 months 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!

    0
    stringstretcher
    stringstretcher

    Answer 10 months ago

    Step three answers your question. They are mounted as a gimble.
    O

    0
    kiel814
    kiel814

    Reply 10 months 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...

    0
    Electro Techz
    Electro Techz

    Reply 10 months 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

    0
    Electro Techz
    Electro Techz

    Reply 10 months ago

    Yes,very much similar to it.