Skip to content

adding a 6th WS2811 strip won't work #839

Closed

Description

@Nagymadar

Adding a 6th strip (on separate pins) breaks the program completely. Until 5 strips it works like a charm. With 6+ it starts something random after boot, but then freezes after ~100 milliseconds or does some other random stuff. I have a 8x 272 LED strips on 8 pins on an ESP-WROOM-32. Seems to be some memory issue. ESP32 has enough memory. But I tried to reduce the length of the strips. No effect. Separate arrays instead of array of an array: same. I have everything the latest. Any idea?

bug seems to be the same or similar as:
#197

And this. I tried this workaround, but did not work:
#224

CODE:
#include <FastLED.h>

#define LED_TYPE WS2811
#define COLOR_ORDER GRB
#define NUM_STRIPS 8
#define NUM_LEDS_PER_STRIP 272
#define TOTAL_NUM_LEDS (NUM_LEDS_PER_STRIP * NUM_STRIPS)
#define FRAMES_PER_SECOND 50
#define BRIGHTNESS 16
CRGB leds[NUM_STRIPS][NUM_LEDS_PER_STRIP];
CRGB dummyleds[TOTAL_NUM_LEDS*2];
uint8_t gHue = 0; // rotating "base color" used by many of the patterns

// Heartbeat LED on the board (net the strip!)
uint8_t led_state = 0;
#define LED_PIN 2

void setup() {
// tell FastLED there's 60 NEOPIXEL leds on pin 10
FastLED.addLeds<NEOPIXEL, 25>(leds[0], NUM_LEDS_PER_STRIP);
FastLED.addLeds<NEOPIXEL, 26>(leds[1], NUM_LEDS_PER_STRIP);
FastLED.addLeds<NEOPIXEL, 27>(leds[2], NUM_LEDS_PER_STRIP);
FastLED.addLeds<NEOPIXEL, 14>(leds[3], NUM_LEDS_PER_STRIP);
FastLED.addLeds<NEOPIXEL, 12>(leds[4], NUM_LEDS_PER_STRIP);
FastLED.addLeds<NEOPIXEL, 18>(leds[5], NUM_LEDS_PER_STRIP);
FastLED.addLeds<NEOPIXEL, 17>(leds[6], NUM_LEDS_PER_STRIP);
FastLED.addLeds<NEOPIXEL, 16>(leds[7], NUM_LEDS_PER_STRIP);

//Tried workaround as in bug #224 but did not work:
FastLED.addLeds<LED_TYPE,19,COLOR_ORDER>(dummyleds, TOTAL_NUM_LEDS);

FastLED.setBrightness(BRIGHTNESS);
pinMode(LED_PIN, OUTPUT);
}

void loop() {
// Generatig some rainbow
for(int x = 0; x < NUM_STRIPS; x++) {
uint8_t h = gHue + 14 * x;
fill_rainbow( leds[x], NUM_LEDS_PER_STRIP, h, 7);
}

FastLED.show();
FastLED.delay(1000/FRAMES_PER_SECOND);
gHue++;

// LED heartbeat (also stops after adding a 6th strip)
EVERY_N_MILLISECONDS( 200 ) {
if (led_state == 0) {digitalWrite(LED_PIN, HIGH); led_state = 1;} // turn the LED on (HIGH is the voltage level)
else {digitalWrite(LED_PIN, LOW); led_state = 0;} // turn the LED off by making the voltage LOW
}
}

I have no error but this message while compiling:

#pragma message "FastLED version 3.002.010"
#pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output

Activity

  1. Nagymadar commented on Jul 15, 2019

    @Nagymadar
    Author

    Seems to be the same as: #835

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions