[dorkbotdc-blabber] Arduino code for LED cube
R. Mark Adams, Ph.D.
rmadams at epotential.com
Mon Jan 21 21:49:23 EST 2008
Cool, Dale- thanks! I have been working on "3D VU Meter" as well- my
approach is not nearly as comprehensive as yours- I was attaching
"chopped" values from the A/D converter to specific frames of animation.
I still don't have it working perfectly, but you do get some flicker
roughly approximating the input music... :-)
As soon as I get access to the machine with the code on it, I will
upload it to the list.
-Mark
Dale Ghent 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
>
>
>
> ------------------------------------------------------------------------
>
> ........................................................................
> .......dorkbot dc: people doing strange things with electricity.........
> ................... http://dorkbot.org/dorkbotdc .......................
> ........................................................................
--
| | "Information is light. |
| R. Mark Adams, Ph.D. | Information in itself, |
| Computational Biologist | about anything, is light." |
| rmadams at epotential.com | - Tom Stoppard |
More information about the dorkbotdc-blabber
mailing list