Hey folks, I'm back working on my LED project again and I'm running into

Hey folks,

I’m back working on my LED project again and I’m running into a weird issue. I have my code working for a single LED strip. However, my goal is to have 7 strips total. I’m building a spectrum analyzer so I will have one strip for each frequency data point I have. My function works great for the first strip but for some reason I get no response from the second strip ( I haven’t purchased all 7 strips yet so I’m testing it with 2 for now).

If I load up a simple chasing led script both strips work just fine so I know the strip is good. I have also put a bunch of Serial.println statements in the code to make sure the data is what I expect it to be and everything seems to be the right value but still nothing on the second strip.

I read over the Multiple Controller docs at Multiple Controller Examples · FastLED/FastLED Wiki · GitHub
and in all of their examples they have each strip set to a different data pin. Is that a requirement to get multiple strips to work? I thought the idea behind the ‘neopixel’ type strips was that they could be driven from one data pin.

Here is a copy of the code I’m working with.

"Is that a requirement to get multiple strips to work? " Yes. If you´d like to see different data on each strip you need to connect each strip to a different data pin.
This is what you want to do: https://github.com/FastLED/FastLED/wiki/Multiple-Controller-Examples#multiple-led-arrays

@Stefan_Petrick So does that mean I have to run a separate wire to each strip from each data pin? I have them connected end to end at the moment as the strips I have came with connectors so you can daisy chain them to each other

@Dustin_Yoxall Yes, you can have them wired as one long continuous strip. (Just make sure the all get enough power as you add more strips.)
You have two strips of 60 pixels each, correct? Wired in vertical zig-zag layout, so data direction goes upward on each strip (so strip 1 Data Out goes back to bottom for strip 2 Data In?

To add more, Stefan is right in regards to your question. The code you’ve posted though looks to be for a setup with one long strip though so I think you’re going in the right direction. (Correct me if I’m confused @Stefan_Petrick !)

@Dustin_Yoxall Did you try setting #define NUM_STRPS to 7 even though you only have 2 for now?
Or try leaving #define NUM_STRPS 2, and change line 62 from:
for (freq_amp = 0; freq_amp<7; freq_amp++) {
to
for (freq_amp = 0; freq_amp<2; freq_amp++) {

@marmil Yes I have 2 strips of 60 leds. They will eventually be in vertical strips, but for now I’m just testing the code to get it to work so they are just in a long line. I’ve got a power supply for when I need to wire them all so I should have that piece covered.

So how does the multiple data pin piece work if they are all essentially one long string of leds?

@marmil I had it set to 7 to start with but wasn’t getting any result so I switched it to 2

Sorry, I misunderstood the question. Thanks, @marmil .

@Dustin_Yoxall
Try changing line 74 from
peak = i * NUM_LEDS + NUM_LEDS;
to
peak = (i * NUM_LEDS)-1 + NUM_LEDS;

@marmil That did the trick!

Thanks @Stefan_Petrick and @marmil for your help! I will post updates once I order some more strips and get more of it working!