Arduino Pocket Game Console + A-Maze - Maze Game

812

11

12

Posted

Introduction: Arduino Pocket Game Console + A-Maze - Maze Game

Pocket-Sized Contest

This is an entry in the
Pocket-Sized Contest

Microcontroller Contest

This is an entry in the
Microcontroller Contest

Welcome to my first instructable!

The project I want to share with you today is Arduino maze game, which became a pocket console as capable as Arduboy and similar Arduino based consoles. It can be flashed with my (or your) future games thanks to exposed ICSP header.

I had an idea few months ago to build a maze game on Arduino, but without hard-coded set of mazes. It should be able to generate a new maze for each level you are playing, so you never see the same maze again :)

Code I used as a starting point i took by SANUKI UDON and his project HOW TO MAKE A MAZE GENERATOR USING ATTINY13A

Step 1: Breadboard Prototyping

My starting point was with a small breadboard with only 4 buttons connected to move through maze, but later when i decided it should be a game console i added a few more buttons. On larger breadboard you can see 2 more buttons, and later i added a third one to be used as start/pause/menu button

Step 2: Parts Needed

  • Arduino pro mini / Arduino Uno / Atmega328P chip
  • 28 pin DIP socket (optional)
  • SSD1306 OLED display
  • Piezo speaker
  • Push buttons - 7 pieces
  • Coin cell battery holders
  • Toggle switch
  • Wires
  • Prototype pcb (60x40mm)

Step 3: Breadboard Wiring / Schematic

Step 4: Source Code

A-Maze game source code can be found here: https://github.com/alojzjakob/A-Maze

Open in Arduino IDE and upload to your board or use ISP programmer to program your chip.

I recommend using USBTIny ISP, never had problems with it :) but you can also use ordinary Arduino to program your chip.

In my case I did not use external crystal, so my Atmega328p chip works on internal oscillator which is 8MhZ.

For more info visit this link: https://www.arduino.cc/en/Tutorial/ArduinoToBreadboard.

Step 5: See It in Action

Step 6: Case and Miniaturisation

If you want to make this project permanent, with a nice looking case, here is the simple 3D printable case I designed: https://www.thingiverse.com/thing:2851100

Share

    Recommendations

    • Spotless Contest

      Spotless Contest
    • Science of Cooking

      Science of Cooking
    • Microcontroller Contest

      Microcontroller Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    0

    it is called "cutting mat", kind of rubber material, helps keep your working table without scratches and clean :)

    8 Comments

    Congratulations on your first Instructable my friend! Welcome on board!

    This is a very cool project and very well engineered! You have done a great job in making this project tiny. Having built a similar project in the past, I know how hard it is to make things so small. Great stuff!

    Thank you so much for warm welcome!

    Yes it was really tricky, it took me few hours just to figure out the positions of elements on the board, how to wire everything etc. Most of button wiring goes under coin cell battery holders in 1mm space, meaning i tried to connect everything without wires crossing each other. Other things are wired below the screen. I plan to design a custom PCB, but that kills the fun :D

    Nice tiny console! It does not look that difficult to make, I think I'll make one.

    Thank you! please share your result when done :)

    What a fun maze! Congratulations on your first instructable!

    Thank you!