Go Down

Topic: FunkyClouds - Functions For LED Matrix Effects (some of them sound-reactive) (Read 5417 times) previous topic - next topic

Helmuth

http://www.youtube.com/watch?v=EC1MuRhXd1U

http://www.youtube.com/watch?v=0Ehj7sEwOy4

Just some basic tools and concepts for real time image manipulation.

Thanks to the forum and the FastLED Community!

Code? Here:

https://gist.github.com/anonymous/68298debac462330719b

and here:

http://pastebin.com/pFdQSsFD


raschemmel

Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,
DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

Helmuth

#2
May 07, 2014, 10:26 pm Last Edit: May 07, 2014, 10:31 pm by Helmuth Reason: 1
Schematic?!

It's a WS2812B matrix like that one
http://led-stuebchen.de/de/LED-Stripes/WS2812B-RGB-Stripe-LEDs-mit-integriertem-WS2811-controller-144-LED/m?x7806c=5am2kmu6t2r0v6ok2rragf08o4
together with an old PC power supply unit (20A @ 5 V) driven by an ATMega2560.

Connect ground from Arduino with ground from the PC power supply.
Connect the data input from the first WS2811 with an Arduino output pin of your choice.
Done.




raschemmel

Ok. 16 x16 matrix. I see the connection chain for one column on the datasheet but how does the first column connect to the second. Is it a top to bottom Col-1 => top to bottom Col-2 => etc ?
Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,
DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

Helmuth

#4
May 07, 2014, 10:38 pm Last Edit: May 07, 2014, 10:54 pm by Helmuth Reason: 1
The line of the LEDs has the shape of an S. So every 2nd row column is "reversed".

That's it, what the XY function sorts out.

raschemmel

So START at upper left ==> ACROSS
                                                              | (down one row
----ACROSS RIGHT to LEFT     <===
|   (down one row)
  ====> ACROSS LEFT to RIGHT etc etc. etc. (16 down ,16 across ) ?
Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,
DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

Helmuth

#6
May 07, 2014, 10:51 pm Last Edit: May 07, 2014, 10:57 pm by Helmuth Reason: 1
Depends, which side you define as the upper one.

When the connectors are up it's like that:

Code: [Select]
   __  
|  |  |  .
|  |  |  .
|__|  |__|


So mirror and rotate your draft.

raschemmel

Does it matter which end of the chain is the beginning and which is the end ?
Using your diagram would the start be UPPER LEFT and bottom be LOWER RIGHT ?
Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,
DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

Helmuth

#8
May 07, 2014, 11:23 pm Last Edit: May 07, 2014, 11:58 pm by Helmuth Reason: 1
Yes, it does matter - you have to start at Din - UPPER LEFT.

That means, after 16 columns you end at the UPPER RIGHT.

Why are you asking? Do you intend to connect several of these matrix pieces together? You don't really want to drive more than 256 WS2811 LEDs at one data line. It becomes to slow for soft animations. Every RGB LED takes 30 ┬ÁS for an update. That means with the shown setup the physical limitation is 130 fps. Not much for smooth fading...

Large numbers of LEDs are driven with parallel output like with the OctoWS2811 lib + a Teensy.

raschemmel

I don't plan to wire one up any time soon but I wanted to be able to tell someone else how to do it should they ask.
That makes sense doesn't it ?
Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,
DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

Helmuth

#10
May 07, 2014, 11:56 pm Last Edit: May 08, 2014, 12:05 am by Helmuth Reason: 1
Yes, it does. What's important, is to connect (at least) the beginning and the end of the LEDs to the 5V to limit the voltage drop along the chain.

15 A (every LED white) is way to much for just one feed point.

In the video I drive the matrix with reduced brightness with approimately 1A. For that power at just one side is ok.

raschemmel

I take you don't have any intention of marketing a plug and play light box with a pattern select menu ?
Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,
DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

Helmuth

And than sell regularly new content/patterns?!  8)

What would be my job in it?

A standalone light to sound device sounds more fancy to me.


raschemmel

Quote
A standalone light to sound device sounds more fancy to me. 


I believe you mean SOUND => LIGHT converter...
In the 60's we called that a COLOR ORGAN. In the UK , being British, they could not he heard using our American term so they dubbed them SOUND TO LIGHT converter's . (how original huh ?)
Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,
DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

Lakes

I like it, made me think of this computer cube prop

from an old episode (That which Serves) of Star trek. :)

Go Up