On the bench my first strip lights up fine but connecting the second strip (with 24 gauge wire) produces nothing but the briefest flash (albeit with the right colors) when I apply power ( your 5v 10amp supply ).
I'm thinking possibly a timing issue. I tried two separate strips to try to isolate for a dead pixel 1 on strip 2. The code I'm using is very simple currently and should light both strips.
If it is a timing issue I assume I'd have to run each strip off a different Arduino pin, or perhaps if I could duplicate content multiple strips from a single pin?
Thanks!
Sketch code, just for completeness ( I ported rainbowparty up from the older strip, but the red fill also fails to light the second strip ):
Code: Select all
#include <Adafruit_NeoPixel.h>
#define PIN 6
#define LED 13
Adafruit_NeoPixel strip = Adafruit_NeoPixel(34, PIN);
void setup()
{
strip.begin();
strip.show();
}
void loop() {
rainbowParty(120);
//allRed();
}
void allRed() {
uint8_t i;
for (i=0; i < strip.numPixels(); i++)
{
strip.setPixelColor(i,255,0,0);
}
strip.show();
}
void rainbowParty(uint8_t wait) {
uint8_t i, j;
for (i=0; i< strip.numPixels(); i+=6) {
// initialize strip with 'rainbow' of colors
strip.setPixelColor(i, 255,0,0); //RED
strip.setPixelColor(i+1, 255,255,0); //YELLOW
strip.setPixelColor(i+2, 0,255,0); //GREEN
strip.setPixelColor(i+3, 0,255,255); //TEAL
strip.setPixelColor(i+4, 0,0,2555); //BLUE
strip.setPixelColor(i+5, 255,0,255); //VIOLET
}
strip.show();
for (j=0; j < strip.numPixels(); j++) {
// now set every LED to the *next* LED color (cycling)
uint32_t savedcolor = strip.getPixelColor(0);
for (i=1; i < strip.numPixels(); i++) {
strip.setPixelColor(i-1, strip.getPixelColor(i)); // move the color back one.
}
// cycle the first LED back to the last one
strip.setPixelColor(strip.numPixels()-1, savedcolor);
strip.show();
delay(wait);
}
}