How to Make a MAZE GENERATOR Using ATtiny13a.

by SANUKI UDON in Circuits > Arduino

3664 Views, 19 Favorites, 0 Comments

How to Make a MAZE GENERATOR Using ATtiny13a.

IMG_20170521_075751.jpg
IMG_20170521_075754.jpg
50円マイコンで作る無限迷路表示装置の作り方

I made devices using ATtiny 13a to display infinite maze creation and escape routes.In this maze, This MAZE GENERATOR used a very simple "Bo - taoshi" algorithm for maze generation to generate a maze with 1 KB Flash memory.
"Bo - taoshi" algorithm decides pillars at even intervals to create a maze, and makes one wall for each pillar. Likewise, we draw a simple algorithm that draws out escape routes and blocks the roads surrounded by walls on all three sides. When the dot reaches from the upper left to the lower right, the escape route is displayed, so please escape from the maze by then.

Sketch

001.png
002.png
003.png

I wrote in a program at ATtiny13a using Arduino IDE used version 1.82 and MCUdude/MicroCore.
Fuse bit :hFuse = 0xFF, lFuse= 0x7A (interne 9.6 MHz clock)

Circuit & Material

Life of Game16x16.png

Material
(1x) ATtiny13A
(1x) Mini breadboard
(4x) MAX7219 Dot Matrix Module LED Display
Module Module dimensions: length 3.2 cm X 3.2 cm wide X 1.3 cm high
(1x) Clear case(If there is...)
Module dimensions: length 7.0 cm X 7.0 cm wide X 7.0 cm high
Module Inside dimension: length 6.6 cm X 6.6 cm wide X 6.6 cm high
(2x) Double 5p male to male 5cm bread line jumper cable
(3x) 2.54MM Female Header Connector 5P
(4x) 2.54MM Male Pin Header Connector 5P
(10x) 2.54mm Single Row Pin Jumper Cap
(2×) Male Pin Connector Some jumper wires Heat Shrink Tube

Jumper Wire

IMG_20170531_210005.jpg

The circuit is very simple:-)

Make a 16 × 16 Dot Matrix

IMG_20170506_193901.jpg
IMG_20170504_215517.jpg
IMG_20170504_215648.jpg
IMG_20170527_093847.jpg

Put the 4 MAX7129 LED MATRIX together as shown in the picture.

Fasten With Adhesive

IMG_20170506_201231.jpg
IMG_20170506_194050.jpg
IMG_20170506_201338.jpg

Attention is paid to the orientation of the Dot Matrix Module and bond it with a strong adhesive.
Please test before turning on before gluing.

Make Cable

IMG_20170504_205637.jpg
IMG_20170504_210252.jpg
IMG_20170504_210756.jpg
IMG_20170506_150159.jpg
IMG_20170506_150713.jpg
Cut out connectors other than TYPE-A.Please cut only the outside cover of the cable and cut it straight. Do not cut the internal wiring.Two power supply wires are necessary. Please insert the USB cable into the power supply, and measure with a tester with care not to short-circuit.I attached a male pin header.

Case Making

IMG_20170507_082550.jpg
IMG_20170507_082846.jpg

Determine the position to drill holes in the case.
In order to prevent the case from cracking, paste the cellophane tape.

Use a Drill Dedicated to Acrylics.

IMG_20170507_082931.jpg
IMG_20170507_083059.jpg

Drill a hole with acrylic drill only. It is easy to break if it is an ordinary drill.

Expand the Hole With a Chassis Reamer.

IMG_20170507_083204.jpg
IMG_20170507_083246.jpg

Please spread out the hole slowly.

Pass the Cable Through the Hole in the Case.

IMG_20170507_084108.jpg
IMG_20170507_090119.jpg

Make a knot so that the cable does not come off.

Put It in a Case.

IMG_20170527_094335.jpg
IMG_20170527_094035.jpg
IMG_20170527_094516.jpg
IMG_20170527_094459.jpg

It's cool when packed in a transparent case.

Done

IMG_20170527_094426.jpg
IMG_20170527_094112.jpg

Please enjoy the maze generating display device :-)