[dorkbotdc-blabber] Arduino code for LED cube

Dale Ghent daleg at elemental.org
Mon Jan 21 19:29:12 EST 2008


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_daleg.pde
Type: application/octet-stream
Size: 5405 bytes
Desc: not available
Url : http://music.columbia.edu/pipermail/dorkbotdc-blabber/attachments/20080121/50563226/ledcube_daleg-0001.obj
-------------- next part --------------



More information about the dorkbotdc-blabber mailing list