Connecting two neopixel rings?

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
splatten
 
Posts: 439
Joined: Mon Mar 17, 2014 3:08 pm

Connecting two neopixel rings?

Post by splatten »

I have a 24 neopixel ring and a 16 neopixel ring, I have connected:

5V of the 24 neopixel ring to the 5V of the 16 neopixel ring
GND of 24 neopixel ring to GND of 16 neopixel ring
Data Out of 24 neopixel ring to Data In of 16 neopixel ring

5V of 24 neopixel ring to Arduino Uno 5V
GND of 24 neopixel ring to Arduino GND
Data In of 24 neopixel ring to Arduino Pin 6

I assumed that addressing the 16 neopixel ring would take on the next logical numbers 24 to 39. However this doesn't seem to be the case, can anyone clarify if what I have done is correct? And how should it work?

Thank you,

User avatar
adafruit_support_bill
 
Posts: 88141
Joined: Sat Feb 07, 2009 10:11 am

Re: Connecting two neopixel rings?

Post by adafruit_support_bill »

However this doesn't seem to be the case
What is is doing? The addressing should just continue on from 24. Make sure that your strip definition has at least 40 pixels. Also, if I remember right, some of the rings increment clockwise and some counter-clockwise.

User avatar
splatten
 
Posts: 439
Joined: Mon Mar 17, 2014 3:08 pm

Re: Connecting two neopixel rings?

Post by splatten »

Thanks for the reply, its difficult to describe, I simply changed my code definition from 24 to 40, however instead of the new pixels coming on from 24...they all came on at once in a random state.

User avatar
splatten
 
Posts: 439
Joined: Mon Mar 17, 2014 3:08 pm

Re: Connecting two neopixel rings?

Post by splatten »

I've split the 'data in' using two pins on an Arduino and modified my code to drive both pins, now everything works fine, but chaining neopixels rings on the same pin and changing the LED count didn't work as I would have thought.

User avatar
splatten
 
Posts: 439
Joined: Mon Mar 17, 2014 3:08 pm

Re: Connecting two neopixel rings?

Post by splatten »

Ok, I think I know why it was failing....now I've been playing around with both rings on two pins and turning on LED's one after the other, it looks like the sequence of LED's is different on each ring...on the 24 neopixel ring the LED's are numbered 0 to 23 with LED's lighting in clockwise order. However, on the 16 neopixel ring the LED's 0 to 15 seem to be ordered in anti-clockwise order.

User avatar
adafruit_support_bill
 
Posts: 88141
Joined: Sat Feb 07, 2009 10:11 am

Re: Connecting two neopixel rings?

Post by adafruit_support_bill »

Yes. I believe that the 16 pixel ring is the only size ordered like that.

User avatar
splatten
 
Posts: 439
Joined: Mon Mar 17, 2014 3:08 pm

Re: Connecting two neopixel rings?

Post by splatten »

Thank you, that explains a lot, got it all working now and very pleased to!

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

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”