Go Down

Topic: Maximum WS2811 Strips with UNO (Read 165 times) previous topic - next topic

Frnnd

Hello guys

I'm having a problem when I try to use 4 strips of the WS2811 in parallel

When I try to add a fourth strip on the code and verify/compile, I got a:


"Error compiling for board Arduino/Genuino Uno."

Code: [Select]
#include <FastLED.h>

#define NUM_LEDS 50
#define DATA_PIN0 13
#define DATA_PIN1 12
#define DATA_PIN2 8
#define DATA_PIN3 7

#define BRIGHTNESS 1

CRGB arrayLED0[NUM_LEDS];
CRGB arrayLED1[NUM_LEDS];
CRGB arrayLED2[NUM_LEDS];
CRGB arrayLED3[NUM_LEDS];


void setup() {

  FastLED.addLeds<WS2811, DATA_PIN0>(arrayLED0, NUM_LEDS);
  FastLED.addLeds<WS2811, DATA_PIN1>(arrayLED1, NUM_LEDS);
  FastLED.addLeds<WS2811, DATA_PIN2>(arrayLED2, NUM_LEDS);
  FastLED.addLeds<WS2811, DATA_PIN3>(arrayLED3, NUM_LEDS);



When I switch the board to Mega, without touching the code, it compiles.
If I try to add more strips to the code, like 16 strips, I got the same error(15 strips works fine)


This is the error message:
Code: [Select]
Arduino: 1.8.9 (Windows 7), Board: "Arduino/Genuino Uno"

Build options changed, rebuilding all
In file included from C:\Users\Administrator\Documents\Arduino\FastLED_3.0\FastLED_3.0.ino:1:0:

C:\Users\Administrator\Documents\Arduino\libraries\FastLED/FastLED.h:14:21: note: #pragma message: FastLED version 3.002.006

 #    pragma message "FastLED version 3.002.006"

                     ^

C:\Users\Administrator\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h: In member function 'showPixels':

C:\Users\Administrator\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:167:2: internal compiler error: Segmentation fault

  }

  ^

Please submit a full bug report,

with preprocessed source if appropriate.

See <http://gcc.gnu.org/bugs.html> for instructions.

lto-wrapper.exe: fatal error: C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc returned 1 exit status

compilation terminated.

c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


In my case, I want to use exactly 16 strips of those leds
Do I need a "stronger" arduino board? whitch one?

Thank you guys!


septillion

"Error compiling for board Arduino/Genuino Uno."
That's NOT the whole error. Use the scroll bar to see all and use the "Copy error messages" button in order to post it here. when you do. please use code tags!

Use fricking code tags!!!!
I want x => I would like x, I need help => I would like help, Need fast => Go and pay someone to do the job...

NEW Library to make fading leds a piece of cake
https://github.com/septillion-git/FadeLed

Frnnd

I already did that, look at the second code tag.

septillion

That's what you get and cheat by doing major edits after posting ;)


Ahh, the "Segmentation fault" error. I never had it and can't remember solutions but if you search for it around here you will find some answers I'm sure.
Use fricking code tags!!!!
I want x => I would like x, I need help => I would like help, Need fast => Go and pay someone to do the job...

NEW Library to make fading leds a piece of cake
https://github.com/septillion-git/FadeLed

Frnnd

I didn't edit the post...

Anyone else really knows how to solve this problem?
I'm searching for a solution, but nothing yet...

sterretje

It's a known bug in the recent board managers. Downgrade the board manager to version 1.6.21.

It's somewhere under tools -> boards (not behind a pc at the moment).
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

Go Up