Hi Everyone! I’m Timo, and I have been following this community for a while now. I am an Industrial Design student in the Netherlands and I love to use fastLED, or microcontrollers in general (because sensors). Currently I am facing a problem with a Teensy 3.2 with Octows2811 adapter running fastLED, which I am trying out for some more calculating power. The problem simply is; I can’t get the FastLED library running on this setup. It works pretty well with the octows2811 library, as you can see in this video:
Hi Timo, I use the Teensy 3.1 with the OCTOWS2811 adapter for my 8X8X8 RGB LED cube (512 * WS2811 LEDS).
The FastLED library works great with my setup and I do not understand what actual problem you have. The still picture does not explain your problem !?
I quickly scanned your code and nothing seems wrong to me in your definitions, includes and setup. I did not dig into your code at all.
However, I see that you have an array of 22 * 22 (484 LEDs ?) and you define 136 LEDs per pin. Exactly how is your setup wired !?
Hello JP Roy, thanks for your reply. I use the 22 * 22 matrix to calculate my visuals, which I translate into the right array for my triangular shaped panel later on in the XY function.
I hope this makes it a bit more clear, the LED’s are connected in a serpentine layout (not in picture) and I use two pins for each panel (2x 136 LEDs, leaving a few leds blank). https://drive.google.com/file/d/0ByKJ5xhwbdFxSXBEUlRNeFJRT0U/view?usp=sharing
The XY function works fine with the octows2811 library, so I doubt that’s the problem. I really have no clue why it’s not working
I think the pixels that are showing in the picture are caused by noise. I just plug it in like this, and this is what’s showing up. Nothing is moving, or shows up as it should do. In theory it should give the same result as in the youtube video (it’s essentially the same code).
@Timo_Lejeune Also Replace…
CRGB color = (0,255,0);
with…
CRGB color = CRGB (0,255,0);
Note that I loaded that code, with minimal changes on my cube and it does work !!
@JP_Roy thank you! Didn’t know I have to define CRGB color like that, and pretty bad that I overlooked the NUM_LEDS formula mistake. I’m going to test it first thing when I get back home on sunday. I’ll keep you posted!
@Timo_Lejeune The NUM_LEDS error is easy to overlook. I thought I had carefully scanned over the #define and #include section the first time and also overlooked it !
I only spotted it after loading your code in my cube to see what it actually did !
The CRGB thing is also a common and easy mistake to do. In that case, the compiler took the statement CRGB color = (0,255,0); and does not interpret the comma separated values as a CRGB type and will ignore the first 2 items and actually set color to the last item so color gets set to 0.
If you had used CRGB color = (0,0,255); You would actually have the intended color displayed correctly as blue. Still a wrong way to do it but it would have worked in this specific case !
CRGB color = 0x00FF00; would have worked OK.
@JP_Roy It works Occasionally it still gliches a bit after some point in the array, but I think I might have destroyed the isolation of the strip at that point.
Hi @Timo_Lejeune , glad to see that you made progress with that issue…
Did not notice any glitches in that video but I hope you are able to find the problem and easily fix it… Good luck !!