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.



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



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

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

The circuit is very simple:-)
Make a 16 × 16 Dot Matrix




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



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





Case Making


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.


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.


Please spread out the hole slowly.
Pass the Cable Through the Hole in the Case.


Make a knot so that the cable does not come off.
Put It in a Case.




It's cool when packed in a transparent case.
Done


Please enjoy the maze generating display device :-)