Hi!
I am making a project from instructable Arduino Powered Headdress
Most of the LEDs are not producing the expecting colors. On the picture attached, all LEDs should be green.
There are 88 LEDs : 2 strips of 11 (the eyes), and 1 strip of 66 (the dome)
Only the eyes and 5 groups of 2 in the front are consistently correct, all other ones are consistently the wrong colors.
Since the issue is with the same LEDs with different programs, I concluded that it was a hardware problem, so I swapped a "correct" one with a "wrong" one, and the issue is at the same place, meaning that the LED or the wiring is probably not at fault
Only with 100% white I can get all LEDs the same color.
-
The board is a Arduino pro mini atmega328 p 5V
-
Schematics:
-
The code (error is the same with all the other codes)
// 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>
#ifdef __AVR__
#include <avr/power.h>
#endif
// Which pin on the Arduino is connected to the NeoPixels?
// On a Trinket or Gemma we suggest changing this to 1
#define PIN 6
// How many NeoPixels are attached to the Arduino?
#define NUMPIXELS 88
// 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 = 10; // delay for half a second
void setup() {
pixels.begin(); // This initializes the NeoPixel library.
}
void loop() {
// For a set of NeoPixels the first NeoPixel is 0, second is 1, all the way up to the count of pixels minus one.
for(int i=0;i<NUMPIXELS;i++){
// pixels.Color takes RGB values, from 0,0,0 up to 255,255,255
pixels.setPixelColor(i, pixels.Color(0,150,0)); // Moderately bright green color.
pixels.show(); // This sends the updated pixel color to the hardware.
delay(delayval); // Delay for a period of time (in milliseconds).
}
}
The instructable mentions:
According to the Neopixel online guide it specifies 1000uF capacitors on the live and ground lines and a 300-ohm resistor on the signal lines, I have omitted these in my build by mistake, it has not affected the lights in any way but you may want to add them to be sure on your build.
Can it be the issue?
Any help appreciated!