Welcome to

Studentenleben

OMG WTF STFU PWN3D w00t

4×4x4 LED Matrix scripting language

February 18th, 2010 by stylesuxx

The Video can be found here => http://www.youtube.com/watch?v=UOqVnhznvs0

This is the first test of my scripting language for my 4×4x4 LED Cube. I’ve written a parser in Java which parses the “Script” to Assembler.

OK so now a quick overview about the “language”
First of all you give your new Programm a name and start it:

name {

then you set the time in 1/8 seconds how long the first  “picture” should be showed

time=2;

next you start the first picture

[

then come the Bits for each LED on each Layer, this may look something like this

(0000,
0110,
0110,
0000)
(0000,
1111,
1111,
0000)
(0000,
1111,
1111,
0000)
(0000,
0110,
0110,
0000)

and now you end the first picture

]

After this you can add more pictures, again starting with the time, if you are done, you close the programme.

}

And here comes the Listing with the programmes I’ve used in the vid:

alloff{
time=1;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
}

allon{
time=1;
[
(1111,
1111,
1111,
1111)
(1111,
1111,
1111,
1111)
(1111,
1111,
1111,
1111)
(1111,
1111,
1111,
1111)
]
}

smallsquares{
time=1;
[
(1100,
1100,
0000,
0000)
(0011,
0011,
0000,
0000)
(0000,
0000,
1100,
1100)
(0000,
0000,
0011,
0011)
]
}

Sec1{
time=8;
[
(1111,
1111,
1111,
1111)
(1111,
1111,
1111,
1111)
(1111,
1111,
1111,
1111)
(1111,
1111,
1111,
1111)
]
time=8;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
}

Sec05{
time=4;
[
(1111,
1111,
1111,
1111)
(1111,
1111,
1111,
1111)
(1111,
1111,
1111,
1111)
(1111,
1111,
1111,
1111)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
}

Sec025{
time=2;
[
(1111,
1111,
1111,
1111)
(1111,
1111,
1111,
1111)
(1111,
1111,
1111,
1111)
(1111,
1111,
1111,
1111)
]
time=2;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
}

blinkall05{
time=4;
[
(0001,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0010,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0100,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(1000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0001,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0010,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0100,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
1000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0001,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0010,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0100,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
1000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0001)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0010)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0100)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
1000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0001,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0010,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0100,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(1000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0001,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0010,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0100,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
1000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0001,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0010,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0100,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
1000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0001)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0010)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0100)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
1000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0001,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0010,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0100,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(1000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0001,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0010,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0100,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
1000,
0000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0001,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0010,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0100,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
1000,
0000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0001)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0010)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0100)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
1000)
(0000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0001,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0010,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0100,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(1000,
0000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0001,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0010,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0100,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
1000,
0000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0001,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0010,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0100,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
1000,
0000)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0001)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0010)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0100)
]
time=4;
[
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
0000)
(0000,
0000,
0000,
1000)
]
}

plus{
time=2;
[
(0000,
0110,
0110,
0000)
(0000,
1111,
1111,
0000)
(0000,
1111,
1111,
0000)
(0000,
0110,
0110,
0000)
]
time=2;
[
(0000,
0110,
0110,
0000)
(0110,
0110,
0110,
0110)
(0110,
0110,
0110,
0110)
(0000,
0110,
0110,
0000)
]
}


Posted in Allgemein | No Comments »

4×4x4 LED Matrix

February 4th, 2010 by stylesuxx

So jetzt ist es soweit, dass erste Video von der 4×4x4 Matrix ist on. Zu finden ist das Ganze hier:

http://www.youtube.com/watch?v=4dalWRBac8Q

Bis zum Wochenende sollte der Parser stehen.


Posted in Projekte | No Comments »

4×4x4 LED Matrix

February 2nd, 2010 by stylesuxx

Habe letztens ein paar Videos auf Youtube von 4×4x4 LED Matrizen gesehen und dachte mir, dass das wohl nicht all zu schwer umsetzbar sein dürfte. Hab mir also ein paar ATMEGA16 und einen USB Programmer auf e-bay bestellt. Die LED’s kommen von LED1.de die haben ne ganz nette Auswahl, sind auch relativ billig, und versenden sehr schnell. Hab also die ganze Schaltung erstmal Testweise auf 2 Breadboards aufgebaut, und erstmal nur einen Layer bestückt. Das Video gibts hier:

http://www.youtube.com/watch?v=9f8giEr1WxQ

Mittlerweile bin ich soweit, das ich schon eine 4×4x4 Matrix ansteuern kann, und arbeite gerade an einem Parser, damit sich die LED Figuren einfach scripten lassen. Das nächste Video kommt jetzt dann noch die Tage, und dann noch eins für die finale Version. Software kommt dann natürlich auch noch. Hoffe ja, dass einige von euch Lust haben ein bisschen was zu scripten.


Posted in Projekte | No Comments »

copyright © 2oo6 by Studentenleben | Powered by Baywords

Ported by ThemePorter - template by Design4 | Sponsored by web hosting bluebook