Maze Game (Arduino Mega + Leds)

by Olivier Iserbyt in Living > Toys & Games

3547 Views, 37 Favorites, 0 Comments

Maze Game (Arduino Mega + Leds)

25487239_1988701427812527_2481389025041431069_o.jpg

This is a school project for the My Machine Foundation

My Machine is an organization which brings primary school students, high school students en college students together to work on a dream machine.

The primary school children draw their dream machines on paper. The college students (as myself) design and create the chosen machines. In the next year the high school students will produce the machine.

Design

IMG_20171113_153312.jpg
IMG_20171113_153319.jpg
IMG_20171113_152147.jpg

The dream machine I am designing is inspired by a game-vending-machine which was the dream of my primary school children.

A vending machine is no challenge for us. We tried to focus on the aspect of "playing together". The final design is a disk maze that can be played by a metal ball. The platform has to be controlled by 2-4 children who tilt the disk to roll the ball in the right direction. The disk is divided in 4 individual mazes (zones) that are connected in the middle. Leds between the zones show you wich maze you have to play. Try to reach the endzone in time (Game over when the leds are full) and you will get a new zone. Careful in the zones because servos shift gates to change the maze.

Materials

00107-1.jpg
9200000065363317.jpg
ARDUINO_MEGA_A01.png
JAK.jpg
New-SG90-9g-Mini-Micro-Servo-For-RC-Helicopter-Model-Airplanes-Mini-Steering-Gear-Micro-Servo.jpg_640x640.jpg
Untitled4.png
473-00.jpg
maxresdefault.jpg

- Arduino Mega
- Breadbord
- 220V to 12V regulator
- 7 5V regulators (1A)
- 8 9G Servos
- 2.1mm power jack for Arduino
- power cable
- connection cable
- WS2812B Leds (I used 64 leds)
- Arcade button (30mm) adafruit
- 7 segments with backpack adafruit
- aluminum tape
- Alligator clamps

- PS foam
- 5mm multiplex
- Laser cutter

Note: some of these parts can be replaced. The 5V regulators can be of a higher ampere level. The singular leds (which have to be soldered) can be replaced by led strips.

Preparations

IMG_20171110_152453.jpg
IMG_20171110_152502.jpg
IMG_20171110_160842.jpg
IMG_20171113_152153.jpg
IMG_20171114_142020.jpg
IMG_20171114_142141.jpg
IMG_20171114_142407.jpg
IMG_20171123_154842.jpg
IMG_20171127_172827.jpg
IMG_20171204_190845.jpg
IMG_20171204_153534.jpg
IMG_20171206_174808_371.jpg
IMG_20171211_220550.jpg
IMG_20171211_220600.jpg
IMG_20171212_102039.jpg
IMG_20171212_141618_869.jpg

Because of the complexity I am not going to do a detailed instructable about this. See the pictures for inspiration.


Includes:
- Soldering the led strips
- Laser cutting the maze patern
- Cutting PS foam with a hotwire with the pattern as guide
- Coding the servos and leds

Schematics in the next step.

Schematics

Untitled3.png

I have included a 7 segment to show a score so you can compete with you friends. An arcade START button starts the game. The gates are 3D printed.

Note: this is my first arduino project so be gentle with my code style :)

Result

P1060119.JPG
P1060127.JPG
P1060131.JPG
P1060134.JPG
P1060138.JPG
P1060141.JPG
P1060144.JPG
P1060159.JPG
P1060168.JPG
P1060175.JPG
P1060186.JPG
P1060188.JPG
P1060191.JPG
P1060203.JPG
P1060205.JPG

The end result which was named "Dwaalhof".

Presentation

25487239_1988701427812527_2481389025041431069_o.jpg
25532147_1988700937812576_2209770038608545460_o.jpg
25532163_1988701287812541_7701054501766668910_o.jpg
25591670_1988698421146161_6360113957778297708_n.jpg
mymachine2017_79-1.jpg
mymachine2017_112.jpg
mymachine2017_398.jpg
P1060216.JPG
P1060224.JPG
P1060258.JPG
My Machine 1
My Machine 2

Work in progress expo at Kortrijk with the children of all the primary schools.

Happy building and merry Christmas!