Programming Adafruit NEOPIXELS? Answered

I would like to know where I can find commands for the Neopixels sold by Adafruit.  More specifically command to just turn the pixels on solid.... no blinking, no chase, etc.... just on solid with the ability to tweak the color via the program (or analog pots, one for each color would be great too).?

Question by theawesomekid   |  last reply

Stamp drive a NeoPixel ? Answered

Has anyone driven a NeoPixel with a Basic Stamp ?Regrets, the NeoPixel data neatly specifies timing cycles as short as 400 nswhile the fastest Stamp Compiled Basic can only do 800 nsSo No Go ! except for the ML option.

Question by iceng   |  last reply

Arduino neopixel pattern controllers?

I'm new to arduino. I managed to get one working for my phoenix headpiece, however I'm working on a new project and would love to make something with multiple patterns on about a meter of neopixel strip. I'm not that interested in learning how to write arduino code, and after struggling just to get one basic pattern working last time I am wondering if there are either out of the box controllers out there with pre-programmed patterns (does this exist?), or good apps for generating code that offer something other than frenetic chase/blink type patterns. I really like more organic and/or slow fading patterns. I've found a few things searching online, but given my newness I'm having a hard time narrowing in on what would be best for a total noob :) One alternative to arduino that came up was Pixelblaze, in case anyone has ever used one of those controllers.Any advice welcome!

Question by Natalina 

Powering 60 Neopixels and an arduino? Answered

I am in need of powering a 30 LED Neopixel strip and an arduino with the smallest sized (as in dimensions of the physical battery) battery possible. The arduino I am still trying to find because of the limited space I have to work with. I was thinking of the Gemma but not positive. I am in need of it lasting at least an hour, and price isnt too big of an issue. I can not find a battery online that could power this. Really appreciate any help or suggestions!

Question by bigjohn412   |  last reply

Is it possible for the Arduino to execute a Neopixel strip animation while simultaneously playing some type audio effects?

Hi,I have my Arduino mega connected to a 84 pixel Neopixel strip with an IR proximity sensor monitoring a basketball hoop. When the sensor is triggered the program executes a Neopixel animation. Simple as that. My question is:Is it possible for the Arduino to execute a Neopixel strip animation while simultaneously playing some type audio effects?

Topic by LEDLIT1 

Neopixel motorcycle brake light and turn signals

Hello all,  i am planning to use a string of 144/m Neopixel RGB strip as a rear light unit for my upcoming motorcycle project. the idea is to have the lights work as rear running light, brake light, indicators and emergency indicators. so far i figured that i would need: - Arduino Nano(didn't want to use a a big micro controller, need to fit under a thin seat) - Water tight container to house the Arduino(also not to big) - Grommet to run the wires safely and dry in and out of the Arduino container - 1M Neopixel 144/m RGB  - Various wires - Clear 3/4" width PVC tube - Some Arduino programming knowledge i was planning to use the running power source from the motorcycle to power everything, which is 12v, now if i am correct the Arduino nano can take the 12v no problem, i am wondering if i power the Neopixels through the nano if i would need a power converter to switch the output to 5v from 12v. also i am not sure how the whole analog switching to digital signalling would work, so if any of you more experienced with Arduino people have any ideas or suggestion it would be much appreciated! Cheers Mimizuku.

Topic by Mimizuku   |  last reply

Higher Amperage

Hello guys, i need help with one of my projects.I have make an DIY Keyboard with neopixel at any button,it works perfect but i have problem with power. i have 2 usb from keyboard one for arduino and one for keyboard.if i load #define BRIGHTNESS         20  all is good but if i load #define BRIGHTNESS         80 the usb connection is lost and arduino start to lag.this is amperage problem and the question is if any1 know how i can take that usb output from pc and make it with circuit to higher amperage.

Topic by NetariaT   |  last reply

Need Arduino Neopixel program written, will pay

Hey Guys! I am new to Arduino and simply pulling my hair out trying to code things way over my level. I have a project I am working on that needs a program written for it, and maybe some hardware suggestions. -NeoPixel Lights that switch to different patterns based on pin inputs. I can explain further via email/IG, I am not on here very much! Pay is open for discussion once we figure out how much work it will actually be to knock out! Thank you!! Sam IG: Gooichimotors

Topic by sales12   |  last reply

Custom PCB: Help needed for the design of RGB Chemion-like glasses?

When I found the Chemion glasses I at first thought they were very cool, but they were still missing something. So searching on Instructables got me to this project from RGBFreak with RGB's. However this project was for my purpose still missing something. So my main goal was to create a portable (a wire down the glasses to a box in your pockets seems a bit annoying) version of RGBFreak's glasses with the following subgoals: Built-in Arduino with dip socket First of all to burn the arduino image on the chip and also to transfer new code to the chip Rechargeable batteries Li-ion batteries to ensure a good battery life (also maybe decrease brightness) A way to recharge the batteries Batteries behind the ears (looks like the most ergonomic position) More memory Additional memory to extend the memory on the arduino alone (RGBFreak had to include this because of much code) Shrink down the code (RGBFreak used 256 colors, maybe a way to use less colors?) Different presets and being able to switch between them, with one eq preset and one or more BT presets (later explained) Bluetooth RGBFreak created an app to control the glasses with an app from his smartphone A Visual EQ (because it's pretty darn awesome) Include a microphone (RGBFreak worked on it, but wanted it via his smartphone and it was too timeconsuming to figure it out) So, according to these goals I made this design. However, since this project costs a lot of money, especially the custom pcb's, I would like to know for sure my project should work. Otherwise, a good idea which can reduce cost is also very helpfull. What I found was that EasyEDA is still the cheapest manufacturer I can find (and I must admit I would like to have black pcb's because it looks very professional).

Question by Jeremyv30   |  last reply

Arduino controlled NeoPixel 300 LED strip, code only works if I specify 295 LEDs? Answered

I am controlling a 5m (60 LEDs/m) NeoPixel RGBW LED strip with an Arduino Uno.  When using the NeoPixel library you specify the number of LEDs connected to the Arduino.  On another LED strip (1m @ 144LEDs/m) specifying more LEDs than are on the strip will just send data to the imaginary LEDs and the rest of the strip will still work.  On the 5m strip it will only work if I specify 295 or less; specifying more than 295 makes the whole strip freeze.  Only specifying 295 leaves 5 LEDs at the end that don't light up at all. Any ideas why that might be?

Question by DeanRogers   |  last reply

Wearable RGB LED Strips (with NeoPixel strips) added to Rave Hat

Hello Instructables community! This is my first post so I hope this is the proper forum to post this question in.  I am looking to add some RGB LED strips to a fluffy hat I got a while back. Im very familiar with arduino (second semester Electronics Engineering Tech @ NAIT), although I've never made any sort of wearable project before. I was looking into the arduino FLORA, though they almost always seem to be sold out. I have already configured (on breadboard) the circuit for sending messages from my phone to the bluetooth dongle, and thus changing the colour of the RGB strip seems to work (later on ill program designs and patterns). Where I need help has to do with batteries and how to determine what will be needed given  I am using 2  8light  NeoPixel rgb strips and a HC06 bluetooth module. I was thinking about soldering the circuit onto a circuit board, cutting it out and putting it in a case, though with an arduino nano, bluetooth module, and batteries it will likely be cumbersome and uncomfortable to mount on the hat. I know I need 5 volts to power the arduino but what kind of batteries should I use? I was reading about thin lithium ion ones with the FLORA but as expected they are all sold out.  If anyone has any ideas or suggestions please share them with me as I was looking to have this project completed before the 6th of May. I can attach images and whatnot later as for whatever info is needed to help me integrate these lights onto my hat. Thanks.

Topic by HEADTRiK   |  last reply

is there a fix to my ambilight 2812B endless malfuncion?

I am using ~170 LEDs (2812b) with a 10A 5V PS. the power is connected to two parts of the strips due to voltage drop that results in a yellowish white color, close to the end of the strip. I also added a 1000uF 6.3V Cap on the PS and a 470ohm Resistor on the Din starting point. GND connected to the Arduino and using Ambibox software. after a few weeks of usage and especially when turned on, the LEDs flicker or stuck on a certain color up until led (x). few minutes later it overcome whatever problem it had and works regularly. Alas, on white color (guess when it consume the max current) it start to flick again mostly on this led(x) again. of course, I replaced led(x) and led(x-1), enjoy a few weeks of the Ambilight project working perfectly and then another led(y) want my attention and again and again.... should I replace the whole strip? am I using too much current? is it a known issue?or there is a galaxy where these leds replacement slaving don't occur. thanks in advance

Question by TalT3   |  last reply

1 Button & 6 Neopixel Strips for an Explorers Map

Here is what I am attempting to make.... An interactive display where a user pushes a single button and 1 of the 6 strips lights in a slow sequence, showing the path an explorer took from point a to point b. There are 6 paths, each path will be its own neopixel strip. When the button is pressed a second time, the first strip goes off and the second strip sequentially lights, all the way through the 6 strips, ending at all strips off. I'd like to make the code work so I can use 6 PMW pins as wiring these as one large array is not practical, possible, just not practical. I am using the following: - 1 Arduino Mega 2560, - 1 momentary push button, and - 6 5v neopixel strips (currently with 19 pixels each, end product will be 60 each. - Windows PC and USB to power for testing I am attaching a code that works great with the button pushes for a single strip, and have a different color applied to each "case" so I'd know which one was active. Is a variable for the output pin number IE 3,4,5,6,7,8 the best way, or do I require a different type of condition? Thank you for any help here! Gary // This is a demonstration on how to use an input device to trigger changes on your neo pixels. // You should wire a momentary push button to connect from ground to a digital IO pin.  When you // press the button it will change to a new pixel animation.  Note that you need to press the // button once to start the first animation! #include #define BUTTON_PIN   3    // Digital IO pin connected to the button.  This will be                           // driven with a pull-up resistor so the switch should                           // pull the pin to ground momentarily.  On a high -> low                           // transition the button press logic will execute. #define PIXEL_PIN    6    // Digital IO pin connected to the NeoPixels. #define PIXEL_COUNT 19 // Parameter 1 = number of pixels in strip,  neopixel stick has 8 // Parameter 2 = pin number (most are valid) // Parameter 3 = pixel type flags, add together as needed: //   NEO_RGB     Pixels are wired for RGB bitstream //   NEO_GRB     Pixels are wired for GRB bitstream, correct for neopixel stick //   NEO_KHZ400  400 KHz bitstream (e.g. FLORA pixels) //   NEO_KHZ800  800 KHz bitstream (e.g. High Density LED strip), correct for neopixel stick Adafruit_NeoPixel strip = Adafruit_NeoPixel(PIXEL_COUNT, PIXEL_PIN, NEO_GRB + NEO_KHZ800); bool oldState = HIGH; int showType = 0; void setup() {   pinMode(BUTTON_PIN, INPUT_PULLUP);   strip.begin();; // Initialize all pixels to 'off' } void loop() {   // Get current button state.   bool newState = digitalRead(BUTTON_PIN);     // Check if state changed from high to low (button press).   if (newState == LOW && oldState == HIGH) {     // Short delay to debounce button.     delay(20);     // Check if button is still low after debounce.     newState = digitalRead(BUTTON_PIN);     if (newState == LOW) {       showType++;       if (showType > 6)         showType=0;       startShow(showType);     }   }   // Set the last button state to the old state.   oldState = newState; } void startShow(int i) {   switch(i){     case 0: colorWipe(strip.Color(0, 0, 0), 0);    // Black/off             break;     case 1: colorWipe(strip.Color(255, 0, 0), 100);  // Red             break;     case 2: colorWipe(strip.Color(0, 255, 0), 100);  // Green             break;     case 3: colorWipe(strip.Color(0, 0, 255), 100);  // Blue             break;     case 4: colorWipe(strip.Color(127,127,127), 100);  // White             break;     case 5: colorWipe(strip.Color(255, 0, 0), 100);  // Red             break;     case 6: colorWipe(strip.Color(0, 0, 255), 100);  // Blue             break;   } } // 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.setPixelColor(i, c);;       delay(wait);   } }

Topic by grroane123   |  last reply

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 !

Question by GellertK   |  last reply

How to connect an attachable object the best using arduino

Hi all technical people, I have a question regarding my project. For the project we have build an flower containing a neopixel. This neopixel is attached to iron wire. The object is part of an installation in which you can hang the object so it can light up. Besides that the object can be used on in a stand-alone object which is powered by an powerbank. And now the problem. The iron wireing works fine when the object is hung up, but when put into the object it doesn’t connect very well. Is there anyone who has an idea on how to fix this. When the object is placed in the stand-alone object and the on button is pressed it should light up without problems. All of this is done with arduino. The powering and code is not the problem, the connection between the objects is.

Question by KellyV17 

Divoom MicroPixels RGB+W Matrix Board ... HELP!?

Divoom MicroPixels RGB+W Matrix Board ... HELP! A while ago I ordered a 8x8 WS2812B RGB matrix, and to make a long story short the matrix I was sent was not what I ordered, but Is very nice, I kinda like it! It appears to be high quality, the soldering is flawless & the chip & led placement is perfect, and it included a grid bezels &  tinted cover I am perplexed in a way I have worked with hundreds of adafruits & neopixels & RGB leds but I dont remember ever seeing these, not a 100bit layout with 25mm RGB leds, these are basically 1/2 size of the standard RGB 50mm leds -photos attached- I was able to get a test animation and it seemed to run quick, it looked about as bright & colorful as Neopixels but smaller, the squares are very defined with the tinted cover/diffuser I have no idea what technology this is using, I was able to find the developer "Divoom" but they indicated this product is not open source so they cannot help me via the support pages! Anwyas outside of them I cant find anyone or anything documentation about these board, im very curious about getting it working, ive made a few clocks & this might complement a neopixel ring if I can start addressing these! does anyone have experience with this led/ic setup? or know what the official driver is?

Question by rdlockrey   |  last reply

Electrical schematic help/wiring + arduino programming

Hello,first time user here, so i would like to just apologize for the wall of text that's coming up.Im trying to build this little enclosure here and i have a hard time understanding the basics of the electronic schematic thats invovled, when he shows how to build it. Nor do i truly understand what components are in it, hence why i cannot determine the price of this build (based on electronics). So i was wondering if anyone could lable one component by one for me, aswell as how to connect them all together? so that i could calculate the pricing and see how much it would actually cost. Seccond thing is that i wanted to change it up a bit, and use neopixels, or ws2812b led strips instead with a teensy 3.2 and fastled library code, for that fiery effect. Thought that might look really cool. However im concerned with the power draw of these ws2812b led strips. Getting information from adafruit: 60mah per led at maximum brightness, but thats eye blinding, so a 20mah per led is more logical, as someone with neopixels wouldnt be running full white anyways, and more colorful setup, or patterns. Im able to get 144 led/m quite cheap, but then the power draw of just 1m is a whopping 8.64 A. Which is starting to sound pretty dangerous at 5v. But then again, im not buying neopixels to run at full white brightness, i want the patterns. Im wondering if there is any possibilites to make a admin command or a priority list or something to lower the brightness of the strip entirely without messing up the code? i know regular leds have ir remotes to dim the light. I mainly just want the red flame effect, which is only 20mah at max brightness and a peacefull 2.88 A, but i also want white light + i want the safety of knowing i can supply the strip of the power it needs, just incase. The video with the code is underneath: (code in video desc)and i know 144 leds/m is probably overkill, but then again, im getting them dirt cheap, + it would give off a much better fiery effect than a 60 leds/m or even a 30 leds/m thanks in advance for any replies, and sorry for my wall of text. :)

Topic by karminderb 

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; I worked around the neopixal library until I got the rainbow cycle effect seen here (Not my video) 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();; // 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<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));     };     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 < 85) {     return strip.Color(255 - WheelPos * 3, 0, WheelPos * 3);   }   if(WheelPos < 170) {     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!

Topic by Constructed   |  last reply

(Beginner) Programmable RGB LED Strip with Ardunio?

Hi all, I'm new to arduino uno. And I'm thinking to use an ardunio to control a Programmable RGB LED Strip, like making it change its color/the speed of the lights. Are there any simple tutorials/tips related to this to guide me? Question 1: I have look into a library called FastLED. If i'm not wrong, the library can be used to control any kind of programmable RGB LED strips? What do I have to look out for when purchasing a programmable RGB LED strips? Model number? Brand? (First timer here) Question 2: I would like to know if I’m able to control the rate of the lights with NeoPixel/FastLED? (for example, the lights lit up from the beginning of the LED strips till the end of the LED strips) Thanks for your reply. Need some guides/tips from you guys for a newbie like me :)

Question by LouisL9   |  last reply

Raspberry Pi 3 Interactive Led Strip Wall

At the moment we're working on an interactive led screen wall for the entrance hall of our new studio. I've setup the following frame (  with 17meters of WS2812B addressable led strips.We're using the Neopixel library for rasp ( and it works like a charm with the rasp 3. Anyway they next step is to control these ledstrips so they work as one big display. I had a look on the internet and a lot of people advices to work with the FadeCandy from Adafruits but I want to know if there are other solutions using only Python and write software to control the ledstrips. The purpose is to use the rasp's camera module like this guy did so when someone is entering the room, his reflection appears on the wall... Any information / tips / other solutions about how to achieve what I described above are welcome. Thanks

Topic by Fightbean   |  last reply

3 Float/Reed Switches Controlling a 16 Pixel RGB LED Ring via UNO

Good evening, My latest project is for a level indicator on my chicken coops water supply.  I am using an Arduino UNO, 3 reed float switches and a 16 pixel RGB LED Ring (adafruit Neopixel).  I have the switches at 3 different positions in the water tank. I am wanting to light the RGB LED ring a different colour depending on which switch is closed.  The bottom one red, the middle orange and when at the top, green. I have the LED ring working.  I also can have the switch working on its own.  But not controlling the LED. I have no idea what to do next.  I am thinking that i need to get the switch turning the LEDs on.  Then I can start thinking about using all three at once. I am hoping someone can help?  It seems a simple task for the arduino to do but I am very new at this so I'm struggling a little bit. Thank you all in advance.

Topic by NuclearGreyhound   |  last reply

Arduino DS1302 & creating interupt for updating display

> I am building an clock with an arduino UNO & DS1302  RTC & some neopixels, got it working mostly but I cannot seem to implment a interupt that will update the time only when it has changed. I have tried a few methods but with no luck, but none of which address the flow, its impossible to keep checking & sometimes even when I do seconds are missed here & there so an interupt is the best way Does anyone have any examples of a working interupts  I can modifyt to work with RTC, I simply want to trigger  the update time function when the DS1302 sends trigger, then I can go about my sketch & let the interupt handle it I havent had much luck reading the pulse either, I can read the time, set the time & all that but I havent been able to set/verify its bytes, theres one for example that sets "trickle_charger" I can disable , but I havent been able to read the byte to verify if its 1 or 0 any help would be great, 

Question by rdlockrey   |  last reply


Привет! Мне очень понравились часы.Хотите сделать.Я купил все компоненты для часов, и я не могу программировать.Ошибка Arduino: 1.8.5 (Windows 8.1), Доска: "Arduino Nano, ATmega328P"C:\Program файлы (x86)\Arduino\примеры\исходный код часов \ исходный код часов.no: 2: 31: фатальная ошибка: Adafruit_NeoPixel.h: нет такого файла или каталога #включать ^компиляция завершена.статус выхода 1 Ошибка компиляции для Arduino Nano Board. Помогите решить проблему.

Question by strollermoscow 

WS2812b strip stopped working,what could be the possible cause? Answered

Hi, I'm using a 1m ws2812b (30 led/m) strip for my ambilight setup with adrilight, using an arduino mega. I cut the 1m strip into 5 smaller strips  ['data direction as per this description':  (5+5 leds in bottom) -> 5 leds at the left side -> 10 leds at the top -> 5 leds at the right side) ] and soldered them together, rechecked everything and installed it on my monitor. I'm powering it with a 5v 2a power supply and everything was working good for 3 days. Suddenly, the strip stopped responding to any data input from the arduino. Only the 6th led of the 2nd strip at the bottom lights up with 'green' colour as soon as I turn on the power adapter.  I tried using Adafruit neopixel rgb strand test as well as fastled library's sample codes but none work any longer(they were working perfectly prior to this sudden failure). It's as if the strip doesn't care that the arduino is connected. The single led (6th one as per data line & 1st one as per divided section, on the 2nd strip) works when connected to the power adapter and lights on/off as per the power adapter's state. None of the other leds work or even light up. What could be the possible problems of the sudden strip failure? Any help would be highly appreciated.

Question by Sudoer-_-me   |  last reply