0

Neopixel Throughhole Not Showing Yellow
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Neopixel Throughhole Not Showing Yellow

by Duffyhaha on Fri Nov 17, 2017 11:51 pm

H have a project that i am building using the 8mm through-hole pixels and noticed that they are not showing some colors. For example, the RED (255,0,0) shows fine on a test strip of 4, but if I try PINK(255, 128, 0) only the 3rd will show and the others are black.

I can get them all to show RED, BLUE, GREEN and ORANGE (255, 128, 0) though.

I have a D-Cell battery 3 pack powering the pixels on their own and a 1000uf cap in the power rail before the pixels. Additionally, i have a 10K resistor in front of the data line but i tried with a 330 and that didnt make a difference.

Not sure what i am doing wrong...

Thanks!

Duffyhaha
 
Posts: 4
Joined: Fri Nov 17, 2017 11:43 pm

Re: Neopixel Throughhole Not Showing Yellow

by franklin97355 on Fri Nov 17, 2017 11:58 pm

Post your code and pictures of your circuit. The pixels only have red, green, and blue LEDs so if you can get those colors they are working.

franklin97355
 
Posts: 17057
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Neopixel Throughhole Not Showing Yellow

by Duffyhaha on Sat Nov 18, 2017 12:05 am

Thanks for the quick reply! I dont have my phone with me now for a picture of the circuit though.

Code: Select all | TOGGLE FULL SIZE

#include <Adafruit_NeoPixel.h>

Adafruit_NeoPixel strip1 = Adafruit_NeoPixel(4, 8, NEO_RGB + NEO_KHZ800); //Zone 1 Light Strip

//define colors
uint32_t magenta = strip1.Color(255, 0, 255);
uint32_t red = strip1.Color(255, 0, 0);
uint32_t green = strip1.Color(0, 255, 0);
uint32_t blue = strip1.Color(0, 0, 255);
//uint32_t yellow = strip1.Color(255, 255, 0);
uint32_t yellow = strip1.Color(100, 100, 0);
uint32_t pink = strip1.Color(240, 51, 240);
uint32_t orange = strip1.Color(255, 128, 0);

void setup()
{
  Serial.begin(9600); //setup serial monitor

  strip1.begin();
  strip1.show(); // Initialize all pixels to 'off'

  colorFill(pink, &strip1);
}

void loop()
{
  //empty for now....
}

// Fill the dots one after the other with a color
void colorFill(uint32_t c, Adafruit_NeoPixel *s) {
  for (uint16_t i = 0; i < s->numPixels(); i++) {
    s->setPixelColor(i, c);
  }
  delay(10);
  s->show();
}

Attachments
FB6A009A-E36A-4B90-9AB1-23819CEA0E13.jpeg
FB6A009A-E36A-4B90-9AB1-23819CEA0E13.jpeg (518.85 KiB) Viewed 67 times
Last edited by Duffyhaha on Sat Nov 18, 2017 10:05 am, edited 2 times in total.

Duffyhaha
 
Posts: 4
Joined: Fri Nov 17, 2017 11:43 pm

Re: Neopixel Throughhole Not Showing Yellow

by Duffyhaha on Sat Nov 18, 2017 12:07 am

One other thing i just noticed is that all 4 lights flash PINK for a second and then all but the third (index 2) turn off.
Attachments
AB023012-E3A6-4B56-95D6-4403EEC69303.jpeg
AB023012-E3A6-4B56-95D6-4403EEC69303.jpeg (409.87 KiB) Viewed 67 times

Duffyhaha
 
Posts: 4
Joined: Fri Nov 17, 2017 11:43 pm

Re: Neopixel Throughhole Not Showing Yellow

by Duffyhaha on Fri Dec 01, 2017 5:53 pm

Wanted to let everyone know that I was able to fix the issue.

I looked at the documentation for the chip and noticed the capacitor used between ground and the 5v pins.

I added capacitors for each pixel and they work properly now!

Duffyhaha
 
Posts: 4
Joined: Fri Nov 17, 2017 11:43 pm

Please be positive and constructive with your questions and comments.