0

Trying to get adavision working on 33mm pixel array. (prod id: 683)
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Trying to get adavision working on 33mm pixel array. (prod id: 683)

by domorethanyoucan on Fri Feb 24, 2012 9:39 pm

Working fine, actually, except red and green are reversed. Any hints on where to solve this in code?
domorethanyoucan
 
Posts: 17
Joined: Tue Feb 21, 2012 9:52 pm

Re: Trying to get adavision working on 33mm pixel array. (prod id: 683)

by pburgess on Fri Feb 24, 2012 10:38 pm

Aw, crud.

Quick and dirty fix, if you have a Java compiler installed:

File Adavision/Processing/WS2801/src/WS2801.java, around line 255:

Code: Select all | TOGGLE FULL SIZE
buffer[i++] = (byte)r;
buffer[i++] = (byte)g;
buffer[i++] = (byte)b;


Change to:

Code: Select all | TOGGLE FULL SIZE
buffer[i++] = (byte)g;
buffer[i++] = (byte)r;
buffer[i++] = (byte)b;


Almost certainly will need to edit the Makefile to point to the JDK on your system. Then 'make'. If this works, it will copy the .jar file to the library directory, and the Processing stuff should work after that.

This is just a patch job. I'll work on a more robust solution.

pburgess
 
Posts: 4023
Joined: Sun Oct 26, 2008 2:29 am

Re: Trying to get adavision working on 33mm pixel array. (prod id: 683)

by pburgess on Fri Feb 24, 2012 11:04 pm

Well here, since I already have the compiler stuff set up, a replacement .jar file is attached. You'll need to unzip it first. This then replaces the .jar file in ~/Documents/Processing/Libraries/WS2801/library

This change works only with the big pixels. The 12mm ones will have the red/green swapped if using this version of the library.
Attachments
WS2801.jar.zip
(4.31 KiB) Downloaded 81 times

pburgess
 
Posts: 4023
Joined: Sun Oct 26, 2008 2:29 am

Re: Trying to get adavision working on 33mm pixel array. (prod id: 683)

by domorethanyoucan on Sat Feb 25, 2012 12:03 am

thank you pburgess, i'll post video of the cocktail dress you just helped build soon. :)
domorethanyoucan
 
Posts: 17
Joined: Tue Feb 21, 2012 9:52 pm

Re: Trying to get adavision working on 33mm pixel array. (prod id: 683)

by anstone on Tue Mar 06, 2012 11:25 am

Ahhh, just what I was looking for! @domorethanyoucan, how did your array turn out? I'm doing a 10x10 (piece by piece, of course). Thanks for the fix @pburgess. Lifesaver.
anstone
 
Posts: 34
Joined: Tue Mar 06, 2012 11:23 am

Re: Trying to get adavision working on 33mm pixel array. (prod id: 683)

by anstone on Tue Mar 06, 2012 11:35 am

This will fix the red/green swap for the adalight code too, correct?
anstone
 
Posts: 34
Joined: Tue Mar 06, 2012 11:23 am

Re: Trying to get adavision working on 33mm pixel array. (prod id: 683)

by pburgess on Tue Mar 06, 2012 11:57 am

anstone wrote:This will fix the red/green swap for the adalight code too, correct?


No, because that code was written before the WS2801 library existed. Maybe I should update that to use the library now.

But I digress. In the meantime, there's a pretty quick fix. In the file Adalight.pde (the Processing source code), around line 368, change this:
Code: Select all | TOGGLE FULL SIZE
    serialData[j++] = gamma[ledColor[i][0]][0];
    serialData[j++] = gamma[ledColor[i][1]][1];
    serialData[j++] = gamma[ledColor[i][2]][2];

to this:
Code: Select all | TOGGLE FULL SIZE
    serialData[j++] = gamma[ledColor[i][1]][0];
    serialData[j++] = gamma[ledColor[i][0]][1];
    serialData[j++] = gamma[ledColor[i][2]][2];

(Yes, the last column of numbers stays in-order. Only the middle column changes.)

As with the other "fix," this works only with the big pixels. Using the altered code on the 12mm pixels will exhibit a red/green swap there now.

pburgess
 
Posts: 4023
Joined: Sun Oct 26, 2008 2:29 am

Re: Trying to get adavision working on 33mm pixel array. (prod id: 683)

by domorethanyoucan on Tue Mar 06, 2012 8:18 pm

@anstone definitely unfinished, but at the moment it's nailed to my wall and looks pretty much like this. pixels are bright bright bright.

Image
Image
Image
Image
domorethanyoucan
 
Posts: 17
Joined: Tue Feb 21, 2012 9:52 pm

Re: Trying to get adavision working on 33mm pixel array. (prod id: 683)

by DJ4MC on Tue Mar 06, 2012 11:22 pm

Now that is a thing of beauty. I am going large and am building one of these!

Jules
DJ4MC
 
Posts: 35
Joined: Sun Feb 22, 2009 10:34 am

Re: Trying to get adavision working on 33mm pixel array. (prod id: 683)

by anstone on Wed Mar 07, 2012 12:26 pm

Looks great! To accommodate the brightness I'll be spreading mine out a bit more than you have. I've got a 48"x48" frame waiting for 100 holes :D . Comes to ~4.25" between pixels, just enough to only have to cut and solder the turnaround points. Hopefully not too blinding, but then again WHO CARES?! Awesome job. I'll post mine when finished. Thanks for sharing!
anstone
 
Posts: 34
Joined: Tue Mar 06, 2012 11:23 am

Re: Trying to get adavision working on 33mm pixel array. (prod id: 683)

by domorethanyoucan on Wed Mar 07, 2012 2:35 pm

Yeah this is temporary, they''re just hanging on brad nails...just needed them off my workbench and in an array while i toy with the driver hardware and software. they'd look better with some kind of diffusion layer above them. hope to see your project when it's complete
domorethanyoucan
 
Posts: 17
Joined: Tue Feb 21, 2012 9:52 pm

Re: Trying to get adavision working on 33mm pixel array. (prod id: 683)

by michu on Wed Mar 21, 2012 12:29 pm

great work! would be nice if you create an output for the pixelcontroller software (https://github.com/neophob/PixelController)...
michu
 
Posts: 19
Joined: Sun May 25, 2008 5:47 pm

Re: Trying to get adavision working on 33mm pixel array. (prod id: 683)

by anstone on Tue Mar 27, 2012 12:28 pm

Here's mine. Not quite done but it's turning out so awesome I can't help but share. The last 40 lights are in the mail! Follow the link to watch the video of the Adavision software playing Kanye West's "All of the Lights" music video. I felt that was rather....appropriate. I'm really happy with the spacing and how it's all coming together. I'll post another video and pictures once the frame is complete.

Thanks Adafruit for all your awesome products. Thinking about making an Instructable for this (if there isn't one already..?) to promote your endeavors. :)

Cheers!!!!

Video of 60 mounted lights here...
http://www.youtube.com/watch?v=9fiY2L4gRU8

Outdated picture of frame...
IMAG0429.jpg
IMAG0429.jpg (889.53 KiB) Viewed 1665 times
anstone
 
Posts: 34
Joined: Tue Mar 06, 2012 11:23 am

Re: Trying to get adavision working on 33mm pixel array. (prod id: 683)

by anstone on Tue Mar 27, 2012 12:57 pm

Sorry for the massive picture...lol.

Here's a shrunken version for non-abnormal viewing purposes..

IMAG0429.jpg
IMAG0429.jpg (123.06 KiB) Viewed 1659 times
anstone
 
Posts: 34
Joined: Tue Mar 06, 2012 11:23 am

Please be positive and constructive with your questions and comments.