Arduino: 16×8 game of life

0

Here is a quick weekend project: a game of life implemented using one Arduino Uno, one Arduino Uno Click shield and two 8×8 LED matrix B click boards from MikroElektronika


Warning: Use of undefined constant ICL_LANGUAGE_CODE - assumed 'ICL_LANGUAGE_CODE' (this will throw an Error in a future version of PHP) in /home/teodorc8/public_html/wp-content/plugins/insert-php/includes/class.execute.snippet.php(456) : eval()'d code on line 19

Warning: Use of undefined constant ICL_LANGUAGE_CODE - assumed 'ICL_LANGUAGE_CODE' (this will throw an Error in a future version of PHP) in /home/teodorc8/public_html/wp-content/plugins/insert-php/includes/class.execute.snippet.php(456) : eval()'d code on line 22

The code is a variation of http://brownsofa.org 8×8 GoL code, which I have adapted to work with the LedControl library. I have also removed the randomization of the initial state. Of course, you can add it later, for more fun. I also changed the initial state to the acorn pattern, which evolves over a longer period of time.

 

Arduino game of life

Arduino game of life project using click shield and two 8×8 blue click boards

The code is pretty self-explanatory. One thing though: by the way the click shield is designed, the two 8×8 blue click boards are not chained, They use separate CS pins (or load, as it’s named in the LedControl library). I had to compensate this by using two instances of LedControl, one for each 8×8 click board. So, here’s the code:

And finally, a short video of the working project.

Share.

Comments are closed.

error: