Arduino & Neo Pixel help... Answered

Hey Everyone ! I've been having some problems with the Adafruit Neo-Pixel Library Using Arduino. I need to set the Entire strip to one color and no mater how many google searches I do I can't find the code. Rather then the "colorWipe" or "theaterChase" mode I need to set a strip of 39 pixels to one color all at once. Or, just fast enough that you can't tell the difference. I remember using a command once that did this, but for the life of me I can't find it >. Any Ideas?

Asked by Wired_Mist 2 years ago


how to find what causes a LED strip ws2812 to work partially ?

HI All, i having trouble with my ambient light project. though it worked fine for a few weeks, all of a sudden less than half of the strip (the closer to PSU half) has been act strange and than stop to work. the rest of the strip work fine and still responsive. how do i discover which led is the culprit? is it possible that only part of the strip burnt or only one led? any suggestions for a quick test without ruin the led configuration on TV assembly. thanks in advance

Asked by TalT3 2 years ago


How can I change an "if" in an arduino code ? Answered

So I have this code from James Hutton and what I want to do is to change the "rainbowCycle" to something else, like "NeoPixel_Cylon_Scrolling_Eye". Is it possible ? Thank you very much !

Asked by GellertK 1 year ago





URL controlled led strip animation

Hi all,I need some help with a diy led strip projectI have 3 led strips (WS2812), Arduino mega, and an Ethernet shield (W5100).I want to mount the strips in our kitchen and control via a url.Eg. http://192.168.1.12/fire demo would kick off one of the FastLED example animation.My aim is to be able to choose different animations using urls sent via actiontiles (Samsung smartthings interface) and play a selected animation continuously until I select a different url.I can get it to play once but I can’t get it to play something else when I click a different url.I’m guessing my problem is my nested loops but I don’t have the skill or knowledge to be able to troubleshoot it. I suspect The url is jumping to a continuous loop and never exits it to see if a different url is selected... At least that’s my theoryAnyone care to start me off with an example of how to achieve this ?Arduino Mega,Ethernet shield (WS5100)Using FastLED.

Asked by JasonK275 3 months ago


Arduino code help

Hey guys, So Im by no means good at coding. I can work with electronics, but the coding part of arduino is beyond me. I normally work with libraries that others have already created.  Im just wondering, is there anyway someone could help me write an arduino sketch for a personal project? Im using a arduino nano and a strip of 22 ws2812b led strips seen in my last instructable; https://www.instructables.com/id/DIY-Bike-LED-Lights/ I worked around the neopixal library until I got the rainbow cycle effect seen here (Not my video) https://www.youtube.com/watch?v=qUL7x_0r-bA Im just wondering if its possible to make the rainbow cycle code run between 3 different colors such as red green and yellow or red white and blue. here is my current code #include #ifdef __AVR__   #include #endif #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) //   NEO_RGBW    Pixels are wired for RGBW bitstream (NeoPixel RGBW products) Adafruit_NeoPixel strip = Adafruit_NeoPixel(PUT THE NUMBER OF LED's HERE, 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'   // Some example procedures showing how to display to the pixels: } void loop() {   rainbowCycle(20); } // Slightly different, this makes the rainbow equally distributed throughout void rainbowCycle(uint8_t wait) {   uint16_t i, j;   for(j=0; j     for(i=0; 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) {   WheelPos = 255 - WheelPos;   if(WheelPos     return strip.Color(255 - WheelPos * 3, 0, WheelPos * 3);   }   if(WheelPos     WheelPos -= 85;     return strip.Color(0, WheelPos * 3, 255 - WheelPos * 3);   }   WheelPos -= 170;   return strip.Color(WheelPos * 3, 255 - WheelPos * 3, 0); } Please let me know or if you can help ill take any advice Thanks!

Posted by Constructed 1 year ago