[dorkbotdc-blabber] Arduino code for LED cube

dbrunton at gmail.com dbrunton at gmail.com
Mon Jan 21 21:40:15 EST 2008


Well, inspired by Dale, I decided to try out some Wolfram automata in
three dimensions.  They settle into predictable patterns pretty
quickly- not a huge surprise.

Once again, I'm sure there are plenty of bugs lurking in here, but if
you want to see your LED cubes blinky blinky to the tune of one of the
largest egos of our century, this Wolfram automaton is for you.
Remember I mis-wired a few pins, so you might need to change my
numbers 15-19 to 14-18 and re-arrange as well.

Being a Dork is great fun.  Dale, I've got sensors of various kinds
lying around- maybe tomorrow I'll try your idea and hook one of them
up to the extra analog pin.

Night, all.

-db.

On 1/21/08, Dale Ghent <daleg at elemental.org> wrote:
> On Jan 21, 2008, at 1:03 AM, Dale Ghent wrote:
>
> > That's a nice bit of code you've posted, David. I went ahead and
> > added something to it, a drop-in replacement for randomLight(). It
> > checks to see if the random() call for the anodes returned a number
> > that corresponds with a pin that's PWM-capable and will randomly
> > choose to fade it up and back down if so. The fading randomLight()
> > func is attached.
>
> Okay, I spent some more time this evening using David's great program
> as a base and added more stuff. In the the PDE file attached to this
> email, the different sequences are  randomized with the random single
> lights sequence having more weight (hey, I like that one). I also
> added assorted plane-oriented "ripple" or "wave" effects but those
> could probably use some work.
>
> I'm really digging these little boards. I think a "VU Cube" project
> could be done by hooking a simple lavaliere mic up to the excess
> analog-in pins and writing a program to light the cube up as if it's a
> VU meter in accordance with the decibel level (louder sound = more
> voltage from the mic)
>
> /dale
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ledcube_wolfram.pde
Type: text/x-csrc
Size: 1759 bytes
Desc: not available
Url : http://music.columbia.edu/pipermail/dorkbotdc-blabber/attachments/20080121/fb4606e8/ledcube_wolfram.bin


More information about the dorkbotdc-blabber mailing list