neopixels help with project

Wearable electronics: boards, conductive materials, and projects from Adafruit!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
quini
 
Posts: 31
Joined: Wed Feb 26, 2014 7:02 pm

neopixels help with project

Post by quini »

Hello again, I'm building my project with 56 neopixels in 2 rings but I can not control the LEDs, it's like to go insane. I am using 2-ply thread, which may be the problem? I use cable to replace the wire?
Attachments
neopixels.JPG
neopixels.JPG (409.61 KiB) Viewed 437 times

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

Re: neopixels help with project

Post by adafruit_support_bill »

The photo is not so clear. I don't see any connection to the signal inputs or outputs of the pixels.

User avatar
quini
 
Posts: 31
Joined: Wed Feb 26, 2014 7:02 pm

Re: neopixels help with project

Post by quini »

adafruit_support_bill wrote:The photo is not so clear. I don't see any connection to the signal inputs or outputs of the pixels.
connections for The flora are behind the cloth with a clip for every thread, I used 3 threads together to create a ring and to connect the pixels around both + as a -, but i have a question:

I can join the neopixeles in its + or - that set 3 strands forming the ring? I have a problem or resistance to be many pixels With this connection?

I must use this cable or thread for this neopixel number?

I need your advice thanks

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

Re: neopixels help with project

Post by adafruit_support_bill »

If you are only applying power at one point on the circle, then you will probably get too much of a voltage drop with that many pixels. Measure the voltage at the point farthest from where power is applied to see how much of a drop you are getting. You can either feed power at multiple points on the circle, or replace the conductive thread with wire.

User avatar
quini
 
Posts: 31
Joined: Wed Feb 26, 2014 7:02 pm

Re: neopixels help with project

Post by quini »

adafruit_support_bill wrote:If you are only applying power at one point on the circle, then you will probably get too much of a voltage drop with that many pixels. Measure the voltage at the point farthest from where power is applied to see how much of a drop you are getting. You can either feed power at multiple points on the circle, or replace the conductive thread with wire.


Hello, I tested the cable and it works much better, but I have a question:

I can make 2 different colors and functions neopixels on 2 circles with the same circuit connection? use the +, - and step to the 2 circles

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

Re: neopixels help with project

Post by adafruit_support_bill »

I am not sure I understand the question. Can you post a diagram of the circuit you are asking about?

User avatar
quini
 
Posts: 31
Joined: Wed Feb 26, 2014 7:02 pm

Re: neopixels help with project

Post by quini »

adafruit_support_bill wrote:I am not sure I understand the question. Can you post a diagram of the circuit you are asking about?
Hello again, I have two circles and I want to do sets of lights of different colors in each circle. I can do it with the same connections of +, - and step by FLORA? or I have to have 2 different connections FLORA. thanks
Attachments
neopixels ring.JPG
neopixels ring.JPG (384.84 KiB) Viewed 387 times

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

Re: neopixels help with project

Post by adafruit_support_bill »

You can connect them all to the same power and ground. And you can connect the signal wire from the last pixel in one ring to the first pixel in the second ring. Since all the pixels are individually addressable, you can control them independently.

User avatar
quini
 
Posts: 31
Joined: Wed Feb 26, 2014 7:02 pm

Re: neopixels help with project

Post by quini »

adafruit_support_bill wrote:You can connect them all to the same power and ground. And you can connect the signal wire from the last pixel in one ring to the first pixel in the second ring. Since all the pixels are individually addressable, you can control them independently.
Nice, can you write a example code where the big ring is blank and the small is green? The big ring is 42 pixels, and the small is 12 pixels. Would be of great help to me. Thank you.

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

Re: neopixels help with project

Post by adafruit_support_bill »

This isn't tested. But it should be close to what you want.

Code: Select all

#include <Adafruit_NeoPixel.h>

#define PIN 6

// 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(54, PIN, NEO_GRB + NEO_KHZ800);

// IMPORTANT: To reduce NeoPixel burnout risk, add 1000 uF capacitor across
// pixel power leads, add 300 - 500 Ohm resistor on first pixel's data input
// and minimize distance between Arduino and first pixel.  Avoid connecting
// on a live circuit...if you must, connect GND first.

void setup() {
  strip.begin();
  strip.show(); // Initialize all pixels to 'off'
}

void loop() 
{
  // Some example procedures showing how to display to the pixels:
  colorFill(strip.Color(255, 0, 0), 0, 41); // Red
  colorFill(strip.Color(0, 255, 0), 42, 53); // Green
}

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


User avatar
quini
 
Posts: 31
Joined: Wed Feb 26, 2014 7:02 pm

Re: neopixels help with project

Post by quini »

adafruit_support_bill wrote:This isn't tested. But it should be close to what you want.

Code: Select all

#include <Adafruit_NeoPixel.h>

#define PIN 6

// 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(54, PIN, NEO_GRB + NEO_KHZ800);

// IMPORTANT: To reduce NeoPixel burnout risk, add 1000 uF capacitor across
// pixel power leads, add 300 - 500 Ohm resistor on first pixel's data input
// and minimize distance between Arduino and first pixel.  Avoid connecting
// on a live circuit...if you must, connect GND first.

void setup() {
  strip.begin();
  strip.show(); // Initialize all pixels to 'off'
}

void loop() 
{
  // Some example procedures showing how to display to the pixels:
  colorFill(strip.Color(255, 0, 0), 0, 41); // Red
  colorFill(strip.Color(0, 255, 0), 42, 53); // Green
}

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





this code only makes a pass red LED does not work

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

Re: neopixels help with project

Post by adafruit_support_bill »

As I said. It is not tested. I do not have your setup to test with. I do see one bug. Try this:

Code: Select all

#include <Adafruit_NeoPixel.h>

#define PIN 6

// 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(54, PIN, NEO_GRB + NEO_KHZ800);

// IMPORTANT: To reduce NeoPixel burnout risk, add 1000 uF capacitor across
// pixel power leads, add 300 - 500 Ohm resistor on first pixel's data input
// and minimize distance between Arduino and first pixel.  Avoid connecting
// on a live circuit...if you must, connect GND first.

void setup() {
  strip.begin();
  strip.show(); // Initialize all pixels to 'off'
}

void loop() 
{
  // Some example procedures showing how to display to the pixels:
  colorFill(strip.Color(255, 0, 0), 0, 41); // Red
  colorFill(strip.Color(0, 255, 0), 42, 53); // Green
}

// Fill the dots one after the other with a color
void colorFill(uint32_t c, uint8_t start, uint8_t finish) 
{
  for(uint16_t i=start; i<= finish; i++) 
  {
      strip.setPixelColor(i, c);
  }
  strip.show();
}

User avatar
quini
 
Posts: 31
Joined: Wed Feb 26, 2014 7:02 pm

Re: neopixels help with project

Post by quini »

adafruit_support_bill wrote:As I said. It is not tested. I do not have your setup to test with. I do see one bug. Try this:

Code: Select all

#include <Adafruit_NeoPixel.h>

#define PIN 6

// 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(54, PIN, NEO_GRB + NEO_KHZ800);

// IMPORTANT: To reduce NeoPixel burnout risk, add 1000 uF capacitor across
// pixel power leads, add 300 - 500 Ohm resistor on first pixel's data input
// and minimize distance between Arduino and first pixel.  Avoid connecting
// on a live circuit...if you must, connect GND first.

void setup() {
  strip.begin();
  strip.show(); // Initialize all pixels to 'off'
}

void loop() 
{
  // Some example procedures showing how to display to the pixels:
  colorFill(strip.Color(255, 0, 0), 0, 41); // Red
  colorFill(strip.Color(0, 255, 0), 42, 53); // Green
}

// Fill the dots one after the other with a color
void colorFill(uint32_t c, uint8_t start, uint8_t finish) 
{
  for(uint16_t i=start; i<= finish; i++) 
  {
      strip.setPixelColor(i, c);
  }
  strip.show();
}

Im working Thanks so much

User avatar
quini
 
Posts: 31
Joined: Wed Feb 26, 2014 7:02 pm

Re: neopixels help with project

Post by quini »

Hi friends, I inserted my flora code that you put me up there and my rings are as seen the photo, but the fixed neopixels stay and would like to start again, to add more shows, as is the sample code called strandtest Arduino IDE, I can do? This is the code I have used. thanks



#include <Adafruit_NeoPixel.h>

#define PIN 6

// 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(54, PIN, NEO_GRB + NEO_KHZ800);

// IMPORTANT: To reduce NeoPixel burnout risk, add 1000 uF capacitor across
// pixel power leads, add 300 - 500 Ohm resistor on first pixel's data input
// and minimize distance between Arduino and first pixel. Avoid connecting
// on a live circuit...if you must, connect GND first.

void setup() {
strip.begin();
strip.show(); // Initialize all pixels to 'off'
}

void loop()
{
// Some example procedures showing how to display to the pixels:
colorFill(strip.Color(255, 255, 255), 0, 40); // White
colorFill(strip.Color(0, 255, 0), 41, 53); // Green
}

// Fill the dots one after the other with a color
void colorFill(uint32_t c, uint8_t start, uint8_t finish)
{
for(uint16_t i=start; i<= finish; i++)
{
strip.setPixelColor(i, c);
strip.show();
delay(50);
}
}
Attachments
rings pixels.JPG
rings pixels.JPG (266.61 KiB) Viewed 330 times

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

Re: neopixels help with project

Post by adafruit_support_bill »

Yes, it is possible to add more to your loop. You can copy other functions from the strandtest code and just call them from your loop.

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

Return to “Wearables”