chaining jewels together

For makers who have purchased an Adafruit Starter Pack, get help with the tutorials here!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
TobiWan
 
Posts: 25
Joined: Wed Jul 01, 2020 10:31 pm

chaining jewels together

Post by TobiWan »

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?

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: chaining jewels together

Post by mikeysklar »

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 1869 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.

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

Re: chaining jewels together

Post by TobiWan »

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?

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: chaining jewels together

Post by mikeysklar »

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.

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

Re: chaining jewels together

Post by TobiWan »

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

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: chaining jewels together

Post by mikeysklar »

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

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

Re: chaining jewels together

Post by TobiWan »

Code: Select all

#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);
}

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

Re: chaining jewels together

Post by TobiWan »

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

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

Re: chaining jewels together

Post by TobiWan »

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?

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: chaining jewels together

Post by mikeysklar »

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.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Starter Pack”