The idea was quite simple: creating a Conway's Game of Life base on Arduino and displayed on a RGB LED Matrix.
Thus the 32x16 LED Matrix is quite small, you can display random pattern and let it lives or display some nice patterns as the QUEEN BEE SHUTTLE or some oscillators (36P22 for instance).
I quickly recall the rules of "the game":
- If a cell is surrounded by 3 alive cells so it lives
- If a cell is surrounded by 2 alive cells so it stays on its state (dead or alive)
- Otherwise the cell dies by subpopulation (<2) or overpopulation (>3)
For more information about the CONWAY'S GAME OF LIFE you can refer to this links:
For more information about the LED matrix and how to use it check this link:
So I begun with a simple code printing the Game of Life in the Serial Monitor. It has been used to code and debug it. I quickly moved to the LED Matrix displaying which was nicer. Here you can see the result with a random initial population and then a nice oscillator the Queen Bee Shuttle:
The main problem I had was the memory. The Matrix needs a lot of it and I wasn't able to make both (the game and the matrix) works together. To solve that I'm using the EEPROM memory to store the buffer state between two generation. It slows the displaying (the video are accelerated) but it works.
Comments
Please log in or sign up to comment.