Octet

9 views
Skip to first unread message

Shashi Gowda

unread,
May 18, 2013, 2:18:22 PM5/18/13
to tech...@googlegroups.com
Hello list!

People interested in working on the LED cube should clone/download the code repository here - http://github.com/shashi/octet . Check out the README file in the home directory, it tells you how to set up your Ubuntu box to run the code, you don't need the actual cube to make your patterns and watch them work -- there is a simulator which shows you a fake cube on the screen. You can just edit cube.c and compile as described in the README.

Getting Started:

1. Read the README
2. Compile, run ./main (See README), you will see the fake cube, you can drag and rotate it with your mouse (or use the arrow keys).
3. Start off by looking at the cube_main function in cube.c (this is executed by the simulator) -- see how it calls cube_dance in a while loop, then see what cube_dance is doing, which functions it is calling what they are doing in turn and so on.
4. The functions above cube_dance are primitives you can use to build other patterns
5. Write your own pattern as a separate function similar to cube_dance
6. Place your own patten in cube_main and recompile to simulate it
7. Have fun.

If you want to look at the music processing code it's in music_processing/, read the README over there. Also, the TI microcontroller code is in octet.c, the cool thing is even this code uses cube.c, so whatever runs on the simulator will run on the cube too. But yeah, the microcontroller has its own main function that is executed instead of cube_main.

Go here for inspiration:
http://www.instructables.com/id/Led-Cube-8x8x8/?ALLSTEPS

Happy Hacking!


Shashi

Jim Aldon D'Souza

unread,
May 19, 2013, 11:50:26 AM5/19/13
to tech...@googlegroups.com
Shashi, if we're planning to make a better music processing code this time.. we should isolate it from other devices and disturbances. Mainly, we shouldn't aim for an equalizer per se (like milk drop or geiss). Should program the cube to react to specific events like ??a base drop?? or even a lull in the music stream. These events can then trigger event handlers which will know better how to treat each event.  ??Like an EXplosion  and subsequent  light rain down in case of a base drop. Or an IMplosion during a lull. Train of thought.. any more events thst could be used as triggers ?? anyone?


--
You received this message because you are subscribed to the Google Groups "Technites" group.
To unsubscribe from this group and stop receiving emails from it, send an email to technites+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Jim Aldon D'Souza
Third Year
Electrical & Electronics Department
National Institute of Technology Karnataka, Surathkal

Shashi Gowda

unread,
May 20, 2013, 2:52:50 AM5/20/13
to technites
Reply all
Reply to author
Forward
0 new messages