I used arduino 1.6.5 program with Arduino UNO and 5V 2.5 amp DC power supply performing strandtest on NEOPIXEL RGBW 60 pixels/meter, RGBW 144 Pixels/meter, and LED strip 20 Pixels strip (out of 30 pixels/meter).
The result is that LED Strip of 20 pixels all lighted.
Neopixel RGBW 60/m == only lighted 45 pixels
Neopixel RGBW 144/m == only lighted 108 pixels.
this is an example of 144 pixel/m in the photo.
Only change i made to the code was the number of pixels as i tested the strip.
should they be all lighted? how can i be sure if they are all working?
is there a code that i can place in the program to test the each pixel or group of pixel at a time?
Thank you very much.
I also have RGBW 60/m -- 4 meters of this and how do i test?
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#define PIN 6 // Flora Pin 6 Gemma Pin 1
// Parameter 1 = number of pixels in strip
// Parameter 2 = Arduino pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
// NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
// NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products)
// NEO_RGB Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2)
Adafruit_NeoPixel strip = Adafruit_NeoPixel(60, PIN, NEO_GRB + NEO_KHZ800);
Neopixel RGBW Strandest Problem
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Neopixel RGBW Strandest Problem
RGBW is 4 LEDs. 3/4 of 60 is 45, 3/4 of 144 is 108.
- yangela
- Posts: 12
- Joined: Mon Nov 09, 2015 11:26 am
Re: Neopixel RGBW Strandest Problem
thank you for your helpful response. i ran the code again and found that RGBW 60/m strip -- needs 80 (60/3 x 4 =80) to light the whole strip.
Adafruit_NeoPixel strip = Adafruit_NeoPixel(80, PIN, NEO_GRB + NEO_KHZ800);
while the 144/m strip requires 192 (144/3 x 4 =192)
Adafruit_NeoPixel strip = Adafruit_NeoPixel(192, PIN, NEO_GRB + NEO_KHZ800);
I think the real issue is that the Neopixel Uberguide needs update to include Arduino library to work with RGBW -- the existing code only deals with RGBs. Otherwise we cannot code each pixel with different color. Please update the guide.
Thank you.
Adafruit_NeoPixel strip = Adafruit_NeoPixel(80, PIN, NEO_GRB + NEO_KHZ800);
while the 144/m strip requires 192 (144/3 x 4 =192)
Adafruit_NeoPixel strip = Adafruit_NeoPixel(192, PIN, NEO_GRB + NEO_KHZ800);
I think the real issue is that the Neopixel Uberguide needs update to include Arduino library to work with RGBW -- the existing code only deals with RGBs. Otherwise we cannot code each pixel with different color. Please update the guide.
Thank you.
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Neopixel RGBW Strandest Problem
Have you downloaded the latest library and looked at the code?
Code: Select all
// The order of primary colors in the NeoPixel data stream can vary
// among device types, manufacturers and even different revisions of
// the same item. The third parameter to the Adafruit_NeoPixel
// constructor encodes the per-pixel byte offsets of the red, green
// and blue primaries (plus white, if present) in the data stream --
// the following #defines provide an easier-to-use named version for
// each permutation. e.g. NEO_GRB indicates a NeoPixel-compatible
// device expecting three bytes per pixel, with the first byte
// containing the green value, second containing red and third
// containing blue. The in-memory representation of a chain of
// NeoPixels is the same as the data-stream order; no re-ordering of
// bytes is required when issuing data to the chain.
// Bits 5,4 of this value are the offset (0-3) from the first byte of
// a pixel to the location of the red color byte. Bits 3,2 are the
// green offset and 1,0 are the blue offset. If it is an RGBW-type
// device (supporting a white primary in addition to R,G,B), bits 7,6
// are the offset to the white byte...otherwise, bits 7,6 are set to
// the same value as 5,4 (red) to indicate an RGB (not RGBW) device.
// i.e. binary representation:
// 0bWWRRGGBB for RGBW devices
// 0bRRRRGGBB for RGB
- yangela
- Posts: 12
- Joined: Mon Nov 09, 2015 11:26 am
Re: Neopixel RGBW Strandest Problem
yes. it works now. Thank you for updating the library to include RGBW!
another question -- i have 4 meter roll of RGBW 60/m strip. (240 pixels).
Can i run a strandtest on this using one 5v DC with 2.5amp?
I have extra 5v DC with 2 amp.
if this doesn't work, do i need connect another 5v DC with 2 amp -- i suppose i can put this at the end of 4m strip. will this work?
Also what is the code for lighting one pixel in the strip?
thank you. i really appreciate getting help.
another question -- i have 4 meter roll of RGBW 60/m strip. (240 pixels).
Can i run a strandtest on this using one 5v DC with 2.5amp?
I have extra 5v DC with 2 amp.
if this doesn't work, do i need connect another 5v DC with 2 amp -- i suppose i can put this at the end of 4m strip. will this work?
Also what is the code for lighting one pixel in the strip?
thank you. i really appreciate getting help.
- yangela
- Posts: 12
- Joined: Mon Nov 09, 2015 11:26 am
Re: Neopixel RGBW Strandest Problem
where in the library can i find the below text?
i looked through the Strandtest, ButtonCycler, and Simple files, but i didn't see the below.
Thank you.
i looked through the Strandtest, ButtonCycler, and Simple files, but i didn't see the below.
Thank you.
franklin97355 wrote:Have you downloaded the latest library and looked at the code?Code: Select all
// The order of primary colors in the NeoPixel data stream can vary // among device types, manufacturers and even different revisions of // the same item. The third parameter to the Adafruit_NeoPixel // constructor encodes the per-pixel byte offsets of the red, green // and blue primaries (plus white, if present) in the data stream -- // the following #defines provide an easier-to-use named version for // each permutation. e.g. NEO_GRB indicates a NeoPixel-compatible // device expecting three bytes per pixel, with the first byte // containing the green value, second containing red and third // containing blue. The in-memory representation of a chain of // NeoPixels is the same as the data-stream order; no re-ordering of // bytes is required when issuing data to the chain. // Bits 5,4 of this value are the offset (0-3) from the first byte of // a pixel to the location of the red color byte. Bits 3,2 are the // green offset and 1,0 are the blue offset. If it is an RGBW-type // device (supporting a white primary in addition to R,G,B), bits 7,6 // are the offset to the white byte...otherwise, bits 7,6 are set to // the same value as 5,4 (red) to indicate an RGB (not RGBW) device. // i.e. binary representation: // 0bWWRRGGBB for RGBW devices // 0bRRRRGGBB for RGB
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Neopixel RGBW Strandest Problem
Neopixel.h
Please be positive and constructive with your questions and comments.