Question about the 12 pixel neopixel ring

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
Pranavesh
 
Posts: 2
Joined: Thu Jul 03, 2014 10:25 am

Question about the 12 pixel neopixel ring

Post by Pranavesh »

Is it possible to damage a few pixels on a neopixel ring? I have tried several variation of the sketch (Gemma, 12 pixel ring, powered over USB) but cannot get the last 5 pixels to light up. Only 0 through 6 power up and I can change colors, animate etc.

Details:
I received my first Gemma and neopixel ring (12 pixel) yesterday and promptly proceeded to test everything out late last night (in hindsight it was probably a bad idea :-))
The blink test on Gemma worked great, and so did the Slow Vibration Sensor Switch. I should have stopped there but felt encouraged with the success and proceeded to test the neopixel ring using alligator clips (not recommended, I know :-( )
As soon as i plugged the USB cable the ring flashed once and then the first pixel kept flashing red, I uploaded the sketch but it did not work. I unplugged and re-plugged the USB cable and this time nothing came back on (Gemma successfully powered up). I proceeded to check my wiring and realized that I have connected Gemma's vout to the neopixel's data out :-( (instead of power). I reconnected everything correctly and tried again, no luck.
To try and reset the wiring I connected small sections of solid core wires to the 3 pad on the neopixel ring (just twist tied, I don't have a soldering iron yet) and connected the alligator clips to that and then powered the setup again. This time the sketch ran, but only the first 7 pixels came on. I tried variations of the sketch, but could not get the last 5 pixels to power up.
Could this be because I have not soldered the wires to the ring? I have checked the wires and made them pretty tight using a pair of pliers.
Am I doing something incorrect in the code (I can post the sketch here if needed)?
What should I check/try next?

Thank you for your patience for reading through this post :-) Any help is greatly appreciated.

- a NeoPixel novice

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Question about the 12 pixel neopixel ring

Post by adafruit_support_rick »

Soldering would certainly help. Feel free to post your sketch, as well.

Pranavesh
 
Posts: 2
Joined: Thu Jul 03, 2014 10:25 am

Re: Question about the 12 pixel neopixel ring

Post by Pranavesh »

Was finally able to solder it all up last night, but that did not help, still only 7 leds (of the 12) light up.
Here is the sketch.

Code: Select all

#include <Adafruit_NeoPixel.h>

#define PIN 2

// Parameter 1 = number of pixels in strip
// Parameter 2 = 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(12, PIN, NEO_GRB + NEO_KHZ800);

void setup() {
  strip.begin();
  strip.setBrightness(20); //adjust brightness here
  strip.show(); // Initialize all pixels to 'off'
}

void loop() {
  // Some example procedures showing how to display to the pixels:
  rainbow(20);
  colorWipe(strip.Color(0, 0, 0), 0); // off
  delay(2000);

  cycleOnOff();
  colorWipe(strip.Color(0, 0, 0), 0); // off
  delay(2000);

  cycleOn();
  colorWipe(strip.Color(0, 0, 0), 0); // off
  delay(2000);

  rainbowCycle(20);
  colorWipe(strip.Color(0, 0, 0), 0); // off
  delay(5000);
}

// Fill the dots one after the other with a color
void colorWipe(uint32_t c, uint8_t wait) {
  for(uint16_t i=0; i<strip.numPixels(); i++) {
      strip.setPixelColor(i, c);
      strip.show();
      delay(wait);
  }
}

void rainbow(uint8_t wait) {
  uint16_t i, j;

  for(j=0; j<256; j++) {
    for(i=0; i<strip.numPixels(); i++) {
      strip.setPixelColor(i, Wheel((i+j) & 255));
    }
    strip.show();
    delay(wait);
  }
}

// Slightly different, this makes the rainbow equally distributed throughout
void rainbowCycle(uint8_t wait) {
  uint16_t i, j;

  for(j=0; j<256*5; j++) { // 5 cycles of all colors on wheel
    for(i=0; i< strip.numPixels(); i++) {
      strip.setPixelColor(i, Wheel(((i * 256 / strip.numPixels()) + j) & 255));
    }
    strip.show();
    delay(wait);
  }
}

// Input a value 0 to 255 to get a color value.
// The colours are a transition r - g - b - back to r.
uint32_t Wheel(byte WheelPos) {
  if(WheelPos < 85) {
   return strip.Color(WheelPos * 3, 255 - WheelPos * 3, 0);
  } else if(WheelPos < 170) {
   WheelPos -= 85;
   return strip.Color(255 - WheelPos * 3, 0, WheelPos * 3);
  } else {
   WheelPos -= 170;
   return strip.Color(0, WheelPos * 3, 255 - WheelPos * 3);
  }
}

//animate White, R, G, B individial pixel on then off
void cycleOnOff() {
  colorWipe(strip.Color(255, 255, 255), 100); // white
  colorWipe(strip.Color(0, 0, 0), 100); // off
  colorWipe(strip.Color(255, 0, 0), 100); // Red
  colorWipe(strip.Color(0, 0, 0), 100); // off
  colorWipe(strip.Color(0, 255, 0), 100); // Green
  colorWipe(strip.Color(0, 0, 0), 100); // off
  colorWipe(strip.Color(0, 0, 255), 100); // Blue
  colorWipe(strip.Color(0, 0, 0), 100); // off
}

void cycleOn() {
  colorWipe(strip.Color(255, 0, 0), 100); // Red
  colorWipe(strip.Color(0, 255, 0), 100); // Green
  colorWipe(strip.Color(0, 0, 255), 100); // Blue
}

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Question about the 12 pixel neopixel ring

Post by adafruit_support_rick »

Please email [email protected] with a link to this thread for a replacement ring

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

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