Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

chaining jewels together
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

chaining jewels together

by TobiWan on Thu Jul 02, 2020 2:53 pm

To connect 2 adafruit neopixel jewel together you have to connect output of the jewel(the microcontroller is connected to) to input of another jewel, gnd to gnd, and 5DC power to 5DC power, yes? And it is enough that the first jewel is programmed and you don't have to write any code for the second?

TobiWan
 
Posts: 25
Joined: Wed Jul 01, 2020 10:31 pm

Re: chaining jewels together

by mikeysklar on Thu Jul 02, 2020 3:07 pm

Hi TobiWan,

In order for the Jewel's to operate they must be chained together in series with the microcontroller always attached. The Jewel's cannot run on their own.

Here is an example image of chainging one Jewel to a controller.

5145398F-B786-4F59-94BD-0CAF05505F66.png
5145398F-B786-4F59-94BD-0CAF05505F66.png (57.1 KiB) Viewed 38 times


You will need to chain the second jewel off the first jewel. Conencting the Out from the first jewel to the second jewel. You can pull the GND and PWR from either the first jewel or the microcontroller.

mikeysklar
 
Posts: 1353
Joined: Mon Aug 01, 2016 8:10 pm

Re: chaining jewels together

by TobiWan on Thu Jul 02, 2020 3:36 pm

mikeysklar wrote:Hi TobiWan,

Conencting the Out from the first jewel to the second jewel. You can pull the GND and PWR from either the first jewel or the microcontroller.


but connecting the out from the first jewel to the input of the second?

TobiWan
 
Posts: 25
Joined: Wed Jul 01, 2020 10:31 pm

Re: chaining jewels together

by mikeysklar on Thu Jul 02, 2020 5:17 pm

Exactly. The 'out' from the first jewel goes to the 'input' of the second. To the microcontroller it will now see 14 NeoPixels. The first jewel is 0-6 and the second jewel will be 7-13.

mikeysklar
 
Posts: 1353
Joined: Mon Aug 01, 2016 8:10 pm

Re: chaining jewels together

by TobiWan on Thu Jul 02, 2020 7:46 pm

I connected it, but it doesn't seem to work.
Attachments
leds.jpg
leds.jpg (180.28 KiB) Viewed 33 times

TobiWan
 
Posts: 25
Joined: Wed Jul 01, 2020 10:31 pm

Re: chaining jewels together

by mikeysklar on Thu Jul 02, 2020 8:58 pm

Can you provide a shot of the wiring and code you are using?

mikeysklar
 
Posts: 1353
Joined: Mon Aug 01, 2016 8:10 pm

Re: chaining jewels together

by TobiWan on Thu Jul 02, 2020 9:18 pm

Code: Select all | TOGGLE FULL SIZE
#include <Adafruit_NeoPixel.h>


#define LED_PIN    2
#define LED_COUNT  7
 
 
// Set up use of NeoPixels
const int NUMPIXELS = 7;           // Put the number of NeoPixels you are using here
const int BRIGHTNESS = 255;          // Set brightness of NeoPixels here
int next_red;
Adafruit_NeoPixel strip(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800);

void setup(){
  strip.begin();
  strip.setBrightness(BRIGHTNESS);
  for (int x=0; x < NUMPIXELS; x++) {  // Initialize all pixels to 'off'
     strip.setPixelColor(x, strip.Color(0, 0, 0));
  }
  strip.show();                     // Ensure the pixels are off
  delay(1000);                      // Wait a second
}

void setStrip(int r) {     // Set the strip to one color intensity (red)
   int g = 0;              // Green is set to zero (for non-red colors, change this)
   int b = 0;              // Blue is set to zero (for non-red colors, change this)
   for (int x=0; x < NUMPIXELS; x++) {
      strip.setPixelColor(x, strip.Color(r, g, b));
   }
   strip.show();
}

void loop()
{
  setStrip(next_red);
  if (next_red == 0) {
    next_red = 255;
  } else {
    next_red = 0;
  }
  delay(1.5);
}

TobiWan
 
Posts: 25
Joined: Wed Jul 01, 2020 10:31 pm

Re: chaining jewels together

by TobiWan on Thu Jul 02, 2020 9:26 pm

oh now I see, in code I set numbers of LEDS to 7 instead of 14, thank you!

TobiWan
 
Posts: 25
Joined: Wed Jul 01, 2020 10:31 pm

Re: chaining jewels together

by TobiWan on Thu Jul 02, 2020 9:37 pm

is there the data sheet for the lights and drivers of the neopixel jewel? Or maybe you know what is the maximum fps for each of those LEDS?

TobiWan
 
Posts: 25
Joined: Wed Jul 01, 2020 10:31 pm

Re: chaining jewels together

by mikeysklar on Mon Jul 06, 2020 12:39 pm

You can drive up to 1024 WS2812B NeoPixels at their default 800 kHz which can give you 30 FPS.

On the lower side of just using small amounts of LEDs you will easily be able to write over 550 frames per second.

mikeysklar
 
Posts: 1353
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.


cron