chaining jewels together
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- TobiWan
- Posts: 25
- Joined: Wed Jul 01, 2020 10:31 pm
chaining jewels together
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?
- mikeysklar
- Posts: 13946
- Joined: Mon Aug 01, 2016 8:10 pm
Re: chaining jewels together
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.
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.
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.
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.
- TobiWan
- Posts: 25
- Joined: Wed Jul 01, 2020 10:31 pm
Re: chaining jewels together
but connecting the out from the first jewel to the input of the second?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.
- mikeysklar
- Posts: 13946
- Joined: Mon Aug 01, 2016 8:10 pm
Re: chaining jewels together
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.
- TobiWan
- Posts: 25
- Joined: Wed Jul 01, 2020 10:31 pm
Re: chaining jewels together
I connected it, but it doesn't seem to work.
- Attachments
-
- leds.jpg (180.28 KiB) Viewed 1897 times
- mikeysklar
- Posts: 13946
- Joined: Mon Aug 01, 2016 8:10 pm
Re: chaining jewels together
Can you provide a shot of the wiring and code you are using?
- TobiWan
- Posts: 25
- Joined: Wed Jul 01, 2020 10:31 pm
Re: chaining jewels together
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);
}
- TobiWan
- Posts: 25
- Joined: Wed Jul 01, 2020 10:31 pm
Re: chaining jewels together
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
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?
- mikeysklar
- Posts: 13946
- Joined: Mon Aug 01, 2016 8:10 pm
Re: chaining jewels together
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.
On the lower side of just using small amounts of LEDs you will easily be able to write over 550 frames per second.
Please be positive and constructive with your questions and comments.