NeoPixel 30 LED / 1m random pixels light up

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
YoungSoul
 
Posts: 20
Joined: Mon Sep 01, 2014 2:34 pm

NeoPixel 30 LED / 1m random pixels light up

Post by YoungSoul »

Hi Everyone
I was trying a very simple test with a 30 LED / 1m neopixel strip and a 5v trinket.

I decided to see what would happen if I blink the '0' led on/off and I noticed other LEDs randomly displaying. I took a video at the link below so you could see what I mean. Is there something I can do to make it more deterministic?

http://www.youtube.com/watch?v=-pEfDKotZlw

BTW - to keep the strip from having the 'whiteout' problem I had to add a 10k resistor in series with the data line. A diode nor a 470 ohm resistor ( uber guide) worked.

The sketch is below

Code: Select all

// NeoPixel Ring simple sketch (c) 2013 Shae Erisson
// released under the GPLv3 license to match the rest of the AdaFruit NeoPixel library
#include <Adafruit_NeoPixel.h>

// Which pin on the Arduino is connected to the NeoPixels?
#define PIN 2       

// How many NeoPixels are attached to the Arduino?
#define NUMPIXELS      30

// When we setup the NeoPixel library, we tell it how many pixels, and which pin to use to send signals.
// Note that for older NeoPixel strips you might need to change the third parameter--see the strandtest
// example for more information on possible values.
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);

int delayval = 500; // delay for half a second

void setup() {
  pixels.begin(); // This initializes the NeoPixel library.
}

void loop() {
    pixels.setPixelColor(0, pixels.Color(0,150,0));
    pixels.show(); 
    delay(delayval); 
    pixels.setPixelColor(0, pixels.Color(0,0,0)); 
    pixels.show(); 
    delay(delayval); 

}
Thanks as always for your great support.

Pat

User avatar
Franklin97355
 
Posts: 23938
Joined: Mon Apr 21, 2008 2:33 pm

Re: NeoPixel 30 LED / 1m random pixels light up

Post by Franklin97355 »

Can't tell in the video but do you have a connection between the power ground and the micro ground?

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: NeoPixel 30 LED / 1m random pixels light up

Post by pburgess »

Darn, I can't -quite- see if it's a 3V or 5V Trinket. If the former, you'll need to do level-shifting to reliably control the 5V NeoPixel strip (or lower the voltage to the strip slightly).

User avatar
davidl13
 
Posts: 187
Joined: Fri Oct 25, 2013 10:51 pm

Re: NeoPixel 30 LED / 1m random pixels light up

Post by davidl13 »

I'd suggest also re-evaluating your power wiring. Anything close to the maximum current draw (which you can easily test by pushing the strand into whiteout... ;-) will very likely cause those tiny M/M wires to get really warm, really quickly. With a 144-length strand in whiteout I've had even your gator-clip-sized wires get uncomfortably warm.

User avatar
YoungSoul
 
Posts: 20
Joined: Mon Sep 01, 2014 2:34 pm

Re: NeoPixel 30 LED / 1m random pixels light up

Post by YoungSoul »

Thanks for all of your replies - I did manage to get it to work.

Here are some of your answers:
5V trinket

Power supply:
5V 2A power supply

Ground:
I did tie the power ground and micro ground in the video.

but based on davidl13 suggestion, I decide to get away from all of the alligator clips, and make sure everything was wired up properly.

This initially did not solve the problem, actually made it worse - until I increased in the inline resistor with the data line to 22k and then it started to behave consistently. However, I still think there was an issue with the breadboard and all of the clips.

here is a video of it working:
https://www.youtube.com/watch?v=KO9HK_v-qg8

Thanks for all of your replies.

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

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