Ever since I discovered John Conway’s “Game of life” I have been obsessed about the interesting patterns of such a simple algorithm. A few weeks ago I decided to design a USB toy capable of running the game of life on a tiny 8×8 LED Matrix. This is what I came up with.
Since most of the stuff I used is easy to find and not very expensive, I decided to share the diagrams and the code so you can build your own Game of Life. The Arduino code is available here. I got the parts from adafruit for $17 + shipping (I didn’t buy an Arduino)
After wiring it, your project should look like this
Upload the Arduino sketch and repeat the following for next 5 hours: Stare, push button, stare, push button, stare, push button.
The cool thing about this project is that you can pause the evolution by pushing the rotary encoder. Then you can go through each step (“tick” for those who know their automaton) until you find a stable universe or extinction. Currently there is no backwards evolution but I am planning to implement it on the next update using memory to store the last 10 Universes.
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, or even use Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for MakeCode, CircuitPython, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.