These are chat archives for scanlime/fadecandy

24th
Feb 2016
Alex Andre
@alexthevdwp
Feb 24 2016 00:43
@focalintent Thans for that suggestion! The code did make all the LEDs on the 8 strips fire up simultaneously but the alignment of the dots on the screens seem to double up at the start and end of the dots... Possibly because this code was originally designed for 64 Neopixels... So when a color in the Loaded image goes over the 1st dots (1st dot column) it lights up the #6 Neopix on the strips. If this is the problem I believe i would have to change the code from 64 to 54 somewhere but where?
Alex Andre
@alexthevdwp
Feb 24 2016 00:57
@M-I-Kessler Things are starting to align a little better when I code to reflect the 64 LEDs per strips as suggested by Daniel @focalintent but still experiencing inconsistencies with how the dots are aligning on the file window. I tried to do it for 54 led per strips as this is what I'm train to achieve since that's the correct number on each strips. I also trying to paste your code into the OPC file but didn't notice a difference. Could you please advice, thanks a bunch!!
Alex Andre
@alexthevdwp
Feb 24 2016 01:56
Screen Shot 2016-02-23 at 4.47.57 PM.png
Matthew Kessler
@M-I-Kessler
Feb 24 2016 02:04
something I (believe) remembered, the code could have to have the amount of the LED on the strip or the 64 depending on how the OPC server is Setup.
Alex Andre
@alexthevdwp
Feb 24 2016 02:09
@M-I-Kessler Not sure if the attachment above is visible but it was intended for Matthew @M-I-Kessler. To showcase the dots. As you can see the it gets weird on the first and the least few columns of dots. Is it possible to configure to 54 Leds or am i stuck with 64 leds per strip?
Matthew Kessler
@M-I-Kessler
Feb 24 2016 02:09
Also, the code doesnt actually know at what led address a strip begins or ends. You can split one "strip" into multiple strips. I have two "strips" of 60 broken into 5 "strips"
Alex Andre
@alexthevdwp
Feb 24 2016 02:10
@M-I-Kessler yes please post this code. I'd love to compare and try it, thanks
Matthew Kessler
@M-I-Kessler
Feb 24 2016 02:11
{
  size(600, 600);

  // Load a sample image
  im = loadImage("flames.jpeg");

  // Connect to the local instance of fcserver
  opc = new OPC(this, "InMiCoTA", 7890);

float spaceAll = width/100;

  for (int i = 0; i < 120; i++)
       opc.ledStrip( 0,  22,  (width/2)-((spaceAll*21)/2),  (height/2)-(spaceAll*9),  spaceAll,  0,       true);  //Bottom Led Addresses, Right
       opc.ledStrip(22,  17,  (width/2)-(spaceAll*21),      (height/2),               spaceAll,  3*PI/2,  true);  //Right Led Addresses
       opc.ledStrip(39,  43,  (width/2),                    (height/2)+(spaceAll*9),  spaceAll,  PI,      true);  //Top Led Addresses
       opc.ledStrip(82,  17,  (width/2)+(spaceAll*21),      (height/2),               spaceAll,  (PI)/2,  true);  //Left Led Addresses
       opc.ledStrip(99,  21,  (width/2)+((spaceAll*22)/2),  (height/2)-(spaceAll*9),  spaceAll,  0,       true);  //Bottom Led Addresses, Left


}
That looks like this
blob
Alex Andre
@alexthevdwp
Feb 24 2016 02:13
@M-I-Kessler thanks I'll try it!
Matthew Kessler
@M-I-Kessler
Feb 24 2016 02:15
just to be clear, int index is your LED index number & int count is how many LED's are on a "strip"
you could have "extra" LED's to account for depending on how the OPC server is setup
Alex Andre
@alexthevdwp
Feb 24 2016 02:21
@M-I-Kessler ok thanks for the tips. The "extra" leds set up on the OPC server may be way I'm having diffictuly getting everything aligned correctly...
Matthew Kessler
@M-I-Kessler
Feb 24 2016 02:30
so you may need to have to do as focal intent said with the index locations but you would still keep the 54 as the striplength
Alex Andre
@alexthevdwp
Feb 24 2016 02:48

Great I finally got it thanks to ur help @M-I-Kessler and @focalintent > here is the code that works: // Map one 54-LED strip to the center of the window
for (int i = 0; i < 8; i++)

opc.ledStrip(0, 54, width/2, height/4 + 15, width / 54.0, 0, false);
opc.ledStrip(64, 54, width/2, height/4 + 25, width / 54.0, 0, false);
opc.ledStrip(128, 54, width/2, height/4 + 35, width / 54.0, 0, false);
opc.ledStrip(192, 54, width/2, height/4 + 45, width / 54.0, 0, false);
opc.ledStrip(256, 54, width/2, height/4 + 55, width / 54.0, 0, false);
opc.ledStrip(320, 54, width/2, height/4 + 65, width / 54.0, 0, false);
opc.ledStrip(384, 54, width/2, height/4 + 75, width / 54.0, 0, false);
opc.ledStrip(448, 54, width/2, height/4 + 85, width / 54.0, 0, false);
}

Matthew Kessler
@M-I-Kessler
Feb 24 2016 02:49
no problem
Are you going to be using multiple PDE documents with this?
Alex Andre
@alexthevdwp
Feb 24 2016 03:01
@M-I-Kessler looking at your frame set up for the Blob file I'm wondering where is the missing 5th LED strip?
Matthew Kessler
@M-I-Kessler
Feb 24 2016 03:04
the top row is split into two "strips"
Its for an infinity table i made. it actually only uses two 60 led chains and the initial index of 0 is at the top center
blob
Alex Andre
@alexthevdwp
Feb 24 2016 03:17
@M-I-Kessler Ok thanks for clarifying. I bet that looks nice with the infinity effect!
Matthew Kessler
@M-I-Kessler
Feb 24 2016 03:19
It does! And adjujsting the frame rate has some pretty interesting and beautiful effects (depending on what I'm running) because of the dithering.
Alex Andre
@alexthevdwp
Feb 24 2016 05:04
@M-I-Kessler @focalintent So as you can see I'm new to the Art of addressable LEDs.. I was wondering about the best resources for learning about that stuff. I've checked the Open Pixel Protocol on the GitHub page, The Processing site for recommended books about processing and the Examples attached to the Fadecandy file and have done a lot of searching the web.. I'm just not sure where to start to learn about coding LEDs for Fadecandy. Can you pass along any valuabl. links or books recommendation about that? I know the blinky lights are getting to my head.., Yes but also I'm inspired so I want to learn! thanks for the help and support