GitXplorerGitXplorer
g

life_circle

public
0 stars
1 forks
0 issues

Commits

List of commits on branch master.
Verified
a6a6d093a86f53c30d770993a6bea4f2f7f66728

Merge pull request #1 from gpshead/checkin_8bit_version

ggpshead committed 5 years ago
Unverified
07b55f599cc59ed99f0a3e23eb03677c9002b0c5

Readme edits with photos.

ggpshead committed 5 years ago
Unverified
18d32fe6bc6aabaed33b24a2ab7c2967c45fc248

README updates

ggpshead committed 5 years ago
Unverified
cf6ae0d64591b8d5d4aca6b670907cd4f73e4b08

README updates.

ggpshead committed 5 years ago
Unverified
e6156fb50527a26a2da4cdce81fbd0307b0b2aa7

README edits.

ggpshead committed 5 years ago
Unverified
dec2cabde58726673ffc545b12882cbbce76cfec

Initial checkin of 8bit attiny85 version. =)

ggpshead committed 5 years ago

README

The README file for this repository.

life_circle

MicroPython code for a WiPy to animate Conway's Game Of Life on a circular LED disc.

Usage

To use this on a WiPy wired up with a 5V logic level shifter on its SPI bus connected to the Adafruit LED disc with sufficient power to drive all 255 LEDs:

import life

disc = life.Life(brightness=8)
disc.run()

What it looks like

LIFE on a Circle - LED disc Animation

I have the LEDs above a few cm behind some wax paper to diffuse the light.

About this code

The apa102 module

The apa102 module is fairly generic and should be usable to control any number of APA102 / DotStar LEDs on your SPI bus. I have attached strands before and after the disc during my own testing. You may see some other fun test code in there.

The life module

The neighbor relationships for the LEDs when mapped to this circular LED disc will greatly impact your LIFE. I got lucky with this definition but perhaps you can do better. Of particular interest in this universe is that not all LEDs have the same number of neighbors. This is very much not your typical two dimensional grid...

The code has experimental torus support. I found things tended to die off rapidly in that configuration as it destroyed the natural ring 1 circle of life.

Hardware

TODO(gpshead) draw out how I have mine connected.

Parts list

  • A WiPy. Or likely anything capable of running MicroPython that exposes an SPI bus. I haven't tried anything else.
  • A 74AHCT125 or similar to act as a logic level shifter from 3V3 to 5V.
  • A 5V power supply sufficient to drive 255 LEDs. I'm using this 5V 10A supply. You could get away with less so long as you guarantee you never supply a high brightness value... But it is _A Bad Idea_™ to rely on software to prevent power supply damage.
  • A prototyping breadboard, wires and connectors.