I'm having a hard time with something that I'm very sure is easy.

I’m having a hard time with something that I’m very sure is easy.

I’m putting some neopixel strips on my quadcopter.
I want to run them both from the same arduino

I’ve got them setup on Pin A4, A5. I can make one or the other work, I just can’t seem to get them both to work together.

My original intent was to just do a larson scanner on both of them.

I’d like to do just blue on one, Red on the other one. It doesn’t seem like a hard thing, but I’m missing something somewhere.

I really don’t even need it to be a scanner. If I could use some of the different animations that could be used with a single color, that would be great too.

Would anyone be able to point me in the right direction for a tutorial for this? Or have time to try to point me in the right direction?

Can you post the code you’ve been trying to get working to pastebin? I’m sure we can help get them both running the Larson scanner in what ever colors you’d like.

http://pastebin.com/z2XLG5U9

Well, I made a mistake. I’m using the ADAfruit library on this one, not the fast library.

I didn’t save any of my changes. I wasn’t getting anywhere with it and left it saved as usual.

I’m not being very helpful when asking people to help me out. I’m sorry.

I realize I’m in the wrong place and will move over to a proper forum if needed.

Thanks

Hi @Sam_Smock , that is a mistake made by many that ask for help here…

You mention 2 strips connected to different pins, I do not know if the ADAfruit allows using multiple pins but FastLED does…

Just use the FastLED library and read up on the following page explaining multiple controllers and how to define and use multiple pins…

@Sam_Smock ​ Ah! Well if you do try it using FastLED give another ping. :slight_smile:

BTW, when I first tried adressable LEDs using the Adafruit library I used 4 pins with 4 strips so multiple pins should work, but I wasn’t using Neopixels.

@Sam_Smock You’ve got to multitask the different strips as I understand it. Check out this from Adafruit on how-to: https://learn.adafruit.com/multi-tasking-the-arduino-part-3

I am in the process of moving the code over to FastLED, but I’ve got several other projects in front of it.

@Sam_Smock

Look for the section on “Multiple Neopixel Objects”.

It will look something like strip_a.setPixelColor(pixel,r,g,b);
Strip_b.setPixelColor(pixel,r,g,b);

I’m unsure of whether strip.show(); will update both strips or whether you will need to output to each strip using the same method as outlined above.

Either way, you could port to fastLED it continue using the neopixel; both will work, fastLED is just more elegant IMO.