Git Product home page Git Product logo

blinkenlights's Introduction

Blinkenlights

This is a repo of various things I use to blink a large number of LEDs to visualize a neural network. It's based on the Hodgkin-Huxley model of neuron conductance.

There's also a mini-language for making simple-ish patterns in jps.py, I use it for testing, much more sophisticated tools for making LED patterns have since been written by others.

A video of it in action can be found here: https://vimeo.com/354540007

It's not clean (in either human language or computer ones) or idiomatic, and I'm not sure anyone other than me has ever run it. That said, it does work, and has been known to trap hippies.

The mathematical model is in Neuron.py (There's also a partial CUDA reimplementation that I haven't finished due to summer 2020 being cancelled)

Entry point is in opcc.py, which can be used to run various tests and create networks.

Framethrowing happens on a beaglebone black running opcd.c, service that takes frame data in as [OPC|http://openpixelcontrol.org/] that reformats the images and uses a really shady memory map to DMA into pru_main.c, which does signal generation.

In theory, one could hook light strands directly to pins, in practice I use a bunch of RS485 line drivers to make the signal go farther cause 3.3v signals just don't have enough oomph to get way up in a tree.

In theory, it can be installed on a fresh beaglebone debian installation and run using sudo make more_magic but I haven't tried since October 2019. Every time I dust this off I have to fix some stuff, so I doubt that'd work today.

Everything else is either historical or random declarative kernel detritus for making the "new" (i.e. non uio-pruss) PRU drivers behave.

blinkenlights's People

Contributors

bodhizafa avatar

Watchers

 avatar James Cloos avatar Ashoat Tevosyan avatar Dr Z avatar  avatar Tushar Shah avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.