Questions tagged [neopixel]

The WS2812 Integrated Light Source from Adafruit.

Filter by
Sorted by
Tagged with
5 votes
3 answers
705 views

Is it possible to query (or otherwise detect) if Arduino is connected to 60 NeoPixel strip vs 144 strip?

Is there any way to have an arduino detect how many LEDs are on a connected strip? I have a 60 strip and 144 strip. The code is identical for both, aside from setting the number of LEDs in a variable ...
producerism's user avatar
5 votes
2 answers
971 views

How to deal with unusual neopixel grid

I have built a custom installation in my home with 896 WS2812 LED driven by an ArduinoMega 2560 and powered by several rails just fine. However, the installation is arranged in a checkerboard-like ...
GhostToast's user avatar
4 votes
5 answers
2k views

Is it possible to infer the length of a neopixel string using 1-wire protocol?

I'have been looking at the AdaFruit NeoPixels recently and am trying to understand how the addressing scheme works. All of the examples I've seen explicitly identify the length of the string (number ...
Dave G's user avatar
  • 155
4 votes
2 answers
11k views

NeoPixel library performance: Adafruit vs. FastLED

I'm new to these addressable LED things – I just received a 149-LED WS2812B strip today, and I'm experimenting with various approaches. Adafruit's own tutorial says the FastLED library is faster than ...
Bogdan Stăncescu's user avatar
4 votes
2 answers
2k views

RGBW LED strip: which components are required?

I'm brand new to this community, and in electronics as well. I'm a software developer and I want to start a new journey with a project in mind: I want to control a 5 meters addressable LED strip for ...
Darkendorf's user avatar
4 votes
0 answers
113 views

What’s the most stable digital communication protocol for sewable electronics? [closed]

I’ve spent the past few days trying researching communication protocols and I have a few issues. With sewable electronics, you need to work with cables with a fairly high resistance that are ...
Delaney Fitzpatrick's user avatar
3 votes
2 answers
741 views

Neopixels with I/O expander

Because I have no pins available on my Wemos D1 mini, I want to drive my Neopixel ring from a MCP23008 I/O expander. I'm trying to run the 'simple' example from the Adafruit_neopixel library. How do ...
BobJ's user avatar
  • 31
3 votes
1 answer
524 views

Simplify if then else statements for Neopixel/compass project

I am working on a project where a rotary encoder is generating 0 - 359° output and I am feeding that to a 60 Neopixel ring but I need a way to simplify or come up with a better way of a bunch of if-...
Bkukuk62's user avatar
3 votes
1 answer
294 views

Pass Color to a function without using a specific Adafruit_NeoPixel

I'm initializing my strips as an array: // Declare NeoPixel strip array: Adafruit_NeoPixel strip[] = { Adafruit_NeoPixel(LED_COUNT[0], LED_PIN[0], NEO_RGBW + NEO_KHZ800), Adafruit_NeoPixel(...
Johnny Rollerfeet's user avatar
3 votes
2 answers
511 views

FastLED and Neopixel Help

I'm in the process of trying to create a "Aurora Glow" effect using a Particle Photon and a Neopixel ring. I have the code fully working using a single Breadboard-friendly NeoPixel however when ...
4dogsofwar's user avatar
2 votes
2 answers
838 views

ignoring potentiometer value variations

I've got a 50k potentiometer connected to an Arduino Uno. The user should adjust the hue of an Adafruit NeoPixelStrip. I've got the following code inside the loop function: int hue = analogRead(...
WalterBeiter's user avatar
2 votes
4 answers
3k views

WS2812B LED strip + Arduino First Pixel keeps dying/breaking

I am trying too hook up a WS2812B LED strip to an Arduino Nano. The current strip consists of 6 pixels, and the whole thing is powered by a 5.26 V PC power supply. The problem is that the first pixel ...
Bart B's user avatar
  • 41
2 votes
1 answer
4k views

Arduino and WS2812 RGB LED Strip "freezing"

I have been working on a project as a gift for my girlfriend for Christmas which involves some a bunch of standard "white" LEDs controlled by shift registers and darlington arrays, and also some RGB ...
MZimmerman6's user avatar
2 votes
1 answer
508 views

Run light sequence function continuously in if statement

My goal - run light sequence function on momentary button press (button 2) continuously until another of the 3 momentary buttons are pressed. /* switch * * Each time the input pin goes ...
MorningStar's user avatar
2 votes
3 answers
10k views

Control multiple WS2812B strips with different leds count

First of all, my English is not that good so sorry if I made any mistake. I'm using the WS2812FX, an awesome WS2812 effect library base on Adafruit NeoPixel library to make a small controller for the ...
PhuocBull's user avatar
2 votes
3 answers
152 views

How much power can a proto board handle?

I have been working on a project where I will be powering an Arduino and some LED light strips (2 x 3 Meter strips w/ 30 LEDs per meter). I am powering all of it from a 5v 10amp power supply. ...
Tyler Pearce's user avatar
2 votes
3 answers
3k views

Function for converting milliseconds to minutes?

I'm playing around with a Neopixel strip and want to be able to enter the amount of minutes I want an LED to do something rather than in milli seconds. So for example, void loop() { colorWipe(strip....
Alex's user avatar
  • 123
2 votes
1 answer
327 views

Adafruit Flora V2 use onboard and external NeoPixels

I am working on wearable project using an Adafruit Flora V2, and for this project I need to use the onboard NeoPixel. I also need to use Neopixels that are attached to the D6 pin (is it a pin?). I ...
kungfushark's user avatar
2 votes
2 answers
356 views

What is "tws_delay" and how can I use it? (with an ATTiny85)

EDIT: Alright I'm stupid, I had the 2012 library installed somehow, maybe when I downloaded it indirectly from another old tutorial site. Thanks a ton to Peter Freerick for pointing that out! It ...
tatty fish pickle's user avatar
2 votes
1 answer
900 views

LED strip and SD card

My problem is simple yet extremely problematic. For some reason, I cannot interact with an SD card and a LED strip at the same time with my arduino. After hours of testing multiple scripts, I am 99.99%...
moyk's user avatar
  • 21
2 votes
1 answer
72 views

What is the correct way to create large project files?

I am currently working on a 10x10 RGB LED screen (using Neopixels from Adafruit) and my project files are starting to get rather large. I have several different devices used in this project: The LED ...
Matt's user avatar
  • 158
2 votes
0 answers
365 views

Using both FastLED and Webserver without glitches possible?

I'm using an ESP8266 to control a short strip of WS2812 LEDs. I also want some way of remote Control so I'm looking into using a Web UI with the ESPAsyncWebServer library. However using that Webserver ...
Christopher's user avatar
2 votes
0 answers
136 views

How can I power MKR1000 and 25 NeoPixels 24hrs or longer?

I have an arduino MKR1000 which I would like to run off battery power for a few days with 1-3 dimly lit NeoPixels active. Every day for an hour there will be 10 NeoPixels active. Brightness for both ...
user avatar
2 votes
0 answers
4k views

Turn on one by one the LEDs of a Neopixel rgb LEDs strip for each detection at the same distance from an Ultrasonic Distance Sensor (HC-SR04)

For this project I seek to create a counter of water glasses we drank throughout the day. I use for this an Arduino UNO card, a Piezo buzzer and a Neopixel rgb LEDs strip (5 LEDs for this test). ...
Thibaut's user avatar
  • 21
2 votes
1 answer
108 views

Neopixel Painter - Need to change few lines. Not sure where to start

My name is Maria and I'm learning programing in high school. I'm working on a birthday present for my mom, want to make a mood light. Using light painter, a neopixel strip, and an arduino. https://...
Nah's user avatar
  • 37
1 vote
3 answers
2k views

Adafruit Neopixel Library- only the first 16 LEDs respond

I am using Adafruit Neopixel Library to work with a strand of 21 RGB LEDs. AT this point only the first 16 light up. It is not a soldering problem, battery issue or a short. This troubleshooting page ...
ksenia's user avatar
  • 61
1 vote
1 answer
130 views

Powering Arduino Uno, CAN Crocodile and NeoPixels from Car

I have purchased a cigarette adapter that gives me 2 USB ports, however this gives me 5v and up to 2.4A. Thats ok for powering the Arduino Uno, I need 12/24v to power the CAN crocodile. I also want ...
SPlatten's user avatar
  • 113
1 vote
1 answer
5k views

LED strip problem... getting red when expecting white with lots of pixels. Fine with 1 pixel

I have an Arduino Uno. I bought this LED strip: https://www.amazon.com/gp/product/B019DYZNO6/ref=oh_aui_detailpage_o08_s02?ie=UTF8&psc=1 Starting initially using FastLED library. When I tried ...
adeena's user avatar
  • 111
1 vote
2 answers
162 views

Same code in setup() and loop() give different results

As the answers to this question and this one state, setup() and loop() are identical in the way they execute code (apart from the obvious looping function of loop()). However. I get different ...
KJdev's user avatar
  • 175
1 vote
1 answer
571 views

Arduino only addresses 3 LED at a time

I am running the following sketch on an Arduino Uno using Arduino 1.6.8. Strip is a WS2811 12V. #include <Adafruit_NeoPixel.h> #define PIN 6 Adafruit_NeoPixel strip = Adafruit_NeoPixel(30, PIN, ...
Brian's user avatar
  • 11
1 vote
1 answer
77 views

strip.clear() is not clearing/turning off the NeoPixel strip after resetting the ESP8266

In the code below which is running on a WEMOS D1 (ESP8266), a NeoPixel strip turns on 1 LED in red which moves left to right and then right to left whilst the board attempts to connect to Wi-Fi in the ...
Lachlan Etherton's user avatar
1 vote
1 answer
101 views

How can I operate the leds and neopixel strips together (at the same time)?

Here's the code I wrote: #include <Adafruit_NeoPixel.h> #ifdef __AVR__ #include <avr/power.h> // Required for 16 MHz Adafruit Trinket #endif int latchPin = 8; int clockPin = 12; int ...
Uthpala Ratnayake's user avatar
1 vote
1 answer
384 views

Adafruit Neopixel Individual Addressable LEDs issue - Any and every code make LEDs go "crazy"

Hi everyone I have an issue with getting these LEDs to cooperate. I'm using a 470ohm resistor on the data port and a capacitor for the power. I complied and uploaded the "strandtest"(I ...
Alex 's user avatar
  • 11
1 vote
2 answers
999 views

Accelerometer axis inputs driving three RGB LED strips - Trinket Pro 5V

I am looking to take the analogRead Value of the x, y and z axis (at pins 0, 2 and 4) and if it's a motion state, perform a rainbow, cylone and cascade LED sequences using Adafruit Neopixel library. ...
ksenia's user avatar
  • 61
1 vote
2 answers
3k views

Neopixel led strip stops responding after change in brightness

I have an arduino UNO hooked up to a neopixel LED strip with 148 lights. Most of the time it works fine, but when I upload a program that changes the brightness frequently, particularly when I ...
Lorenz's user avatar
  • 121
1 vote
1 answer
146 views

WS2812b - Interpolate pixels on neopixel matrix with mask

simplified my goal is to display a transitional Background and some shapes. This shapes are not moving hard rasterized by 1 pixel, more like .1 each cycle. So I need a way to interpolate the movement ...
AngelOfEffekt's user avatar
1 vote
1 answer
56 views

Cutting neopixel routine code short

I've been working on a level meter with a neopixel strip (WS2812). The code is very simple: reading a potentiometer, mapping the input and showing the output in the led strip. So far, so good. The ...
Vidal's user avatar
  • 13
1 vote
1 answer
630 views

Having trouble assigning colour to my neopixels

Hi I was wondering if someone is able to help me! I am currently trying to get a strip of 10 neopixels to change colour. I want to be able to code a random neopixel in the strip to change to either ...
Erin Shankland's user avatar
1 vote
2 answers
223 views

Receive socket when in loop arduino (Interupt a while loop with a socket)

I'm currently working on an arduino project. Were the arduino is communicating with a NodeJS server via web sockets. The socket connection is working fine and has no problems. But the problem I ...
Jonathan Thunberg's user avatar
1 vote
2 answers
4k views

How to control Neopixel LEDs in parallel?

Imagine a collection of LEDs (Neopixel or otherwise) labeled 2 through 12. There may be more than 11 LEDs, so repeat numberings are allowed. I want a simple way to control them from a single Arduino ...
Twiffy's user avatar
  • 131
1 vote
1 answer
2k views

(Neopixels) How to keep the pixels of the same colour despite increasing brightness?

I've been doing a fade function for the NeoPixels. However, the moment I have maximum brightness for the pixels, I noticed there 2 colours even though in my function I have only specified one colour. ...
petrichor-vellichor's user avatar
1 vote
2 answers
471 views

How can I make a rotary encoder change between neopixel programs?

I am making a program to use a rotary encoder instead of a button in the buttoncycler example in the Adafruit NeoPixel library. I am using the US Digital S1-256-250-IE-B-D. Datasheet can be found ...
Another Shrubbery's user avatar
1 vote
1 answer
852 views

Loop code without manually pressing the button

In a piece off code I am modifying I have a button connected to start the code and then it resets its self afterwards. Is they a way to make the arduino loop that code without manually pressing the ...
MaskedCoding's user avatar
1 vote
1 answer
2k views

Using a potentiometer to control number of lit pixels on an NeoPixel strip

I'm working on controlling an Adafruit NeoPixel strip with an Arduino and a potentiometer. Specifically, I'm trying to use the potentiometer to control how many pixels are lit up on the strip. As I ...
narner's user avatar
  • 267
1 vote
1 answer
1k views

Help me restructure code for multitasking Neopixel + IR remote + arduino

First of all, I'm completely new to both arduino, and programing. Second, as for a good newbie, i'm trying to build a fairly complicated project. So, any help and suggestion is welcome. The goal is: ...
shdow's user avatar
  • 29
1 vote
1 answer
672 views

NeoPixel Blink/Glitch

I'm having this weird effect where my NeoPixel will blink/glitch after every cycle of a fading sketch. I'm not certain whether the issue is hardware or in my code. The blinking only occurs during the ...
Joshua Garcia's user avatar
1 vote
1 answer
1k views

Problems With Fading Through Neopixel Colors

I have a 20x20 matrix of neopixel LED's. I have a certain set of LED's on in different places at different times. Each one is set to mainColor. Right now mainColor is just set to strip.Color(r, g, b) ...
mr-matt's user avatar
  • 147
1 vote
1 answer
7k views

Neopixel Ring - How to breathe in a circle motion?

I'm trying to get an effect like (https://vine.co/v/Mwwbi5a1BFK) using a neopixel ring. I can get the neopixels to turn on and off in a circle motion and I can get the neopixels to fade all at once. ...
user2252219's user avatar
1 vote
1 answer
539 views

Loop though array values at end of each for loop cycle

I'm using the NeoPixel Ring from Adafruit and trying to pulse though and array of colors. However, I'm having trouble with having the loop go to the next color at the end of each pulse (end of loop). ...
Brooke.'s user avatar
  • 115
1 vote
0 answers
128 views

How to use 5v and 12v addressable led strip together

Hi guys I’m new to this forum and also not much experience about led lights question already asked but didn’t get any detailed answer I want to know can I provide working data signal to 2 different 5v ...
J Dis's user avatar
  • 11