Go Down

Topic: My 3x3x3 and 5x5x5 LED cube (Read 10 times) previous topic - next topic

WonderTiger

Thanks to you all! Then I will get resistor aimed @15mA. As well with the programming I will only lit up 1 layer at the time :)!

Control question:
If I want to lit up the whole cube, I need to do the following:
-Select layer 1 (turn off layer 2/3)
-Turn on all LED columns
-Turn off all LED columns
-Select layer 2 (turn off layer 1/3)
-Turn on all LED columns
-Turn off all LED columns
-Select layer 3 (turn off layer 1/2)
-Turn on all LED columns
-Turn off all LED columns

Or is this possible as well? (I'm newbie in programming as well ;)):
-Select layer 1 (turn off layer 2/3)
-Turn on all LED
-Turn off layer 1
-Select layer 2
-Turn off layer 2
-Select layer 3
-Turn off layer 3

I will post some pics of building this cube!

fungus


Control question:
If I want to lit up the whole cube, I need to do the following:
...
Or is this possible as well? (I'm newbie in programming as well ;)):
-Select layer 1 (turn off layer 2/3)
-Turn on all LED
-Turn off layer 1
-Select layer 2
-Turn off layer 2
-Select layer 3
-Turn off layer 3


That will work, yes... (for any pattern which is the same in all three layers)

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

WonderTiger

Ok thanks I will keep it in mind until I got everything soldered up!

Maybe someone want to check this for the last time, to be sure I buy the right stuff:

-Transistor+22kOhms resistor should be fine right? Datasheet transistor: http://www.produktinfo.conrad.com/datenblaetter/150000-174999/163350-da-01-en-Transistor_2N3904.pdf
-LED+220 ohms @15mA GREEN. Datasheet LED: http://www.produktinfo.conrad.com/datenblaetter/175000-199999/184705-da-01-en-WU_8_56_GD_LED_5mm_gruen.pdf

Thanks  :smiley-mr-green:

Hippynerd

You are very close, but there is a critical step that is missing.


Starting with all pins low.
Turn plane 1 pin low
Turn column pin(s) high
  Wait some amount of time(1ms or more)
Turn column pins low
Turn plane pin high

Usually you set things back to a neutral position, unless you know that is what you want in the next step. Usually you turn the light on, wait, turn it off, move to the next step in the sequence.

Usually cubes run static patterns, but they can also be run by calculations (like with the game of life, or random.)

WonderTiger

Ye I did forget the delay :|.

Though for me its more like this, right?:
Starting with all pins low.
Turn plane 1 pin high
Turn column pin(s) high
  Wait some amount of time(1ms or more)
Turn column pins low
Turn plane pin low

I use npn transistors that will switch to ground when current is provided to the base pin from the transistor, this is why I need to set plane 1 to a value HIGH instead of low, right?

Go Up