Questions tagged [neopixel]

The WS2812 Integrated Light Source from Adafruit.

NeoPixels are the common name for Adafruit's implementation of WS2812 Integrated Light Source. They refer to simple, scalable and affordable full-color Light Emitting Diodes (LEDs).

Red, green and blue LEDs are integrated alongside a driver chip into a tiny surface-mount package controlled through a single wire.

They can be used individually, chained into longer strings or assembled into still more interesting form-factors.

103 questions
5
votes
2 answers

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 pattern. There are 14 panels with 8 strips of 8 LED…
GhostToast
  • 153
  • 5
5
votes
2 answers

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 their Adafruit_NeoPixel library, so I wanted to…
Bogdan Stăncescu
  • 155
  • 1
  • 1
  • 5
5
votes
3 answers

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 to iterate over.
producerism
  • 153
  • 4
4
votes
0 answers

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

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 constantly moving. That means unreliable and noisy…
4
votes
2 answers

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 my living-room. I need all the components for this…
Darkendorf
  • 141
  • 5
4
votes
5 answers

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 of neopixel units) and are typically set using an…
Dave G
  • 155
  • 1
  • 6
3
votes
1 answer

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(LED_COUNT[1], LED_PIN[1], NEO_RGBW + NEO_KHZ800), …
3
votes
1 answer

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-then-else statements. Here is some sample code. //…
Bkukuk62
  • 57
  • 5
3
votes
2 answers

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 I declare the Neopixel pin number when using say…
BobJ
  • 31
  • 1
3
votes
2 answers

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 upgrading this to a NeoPixel Ring (16 LED) the code…
4dogsofwar
  • 31
  • 2
2
votes
0 answers

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 makes the LEDs flicker so I tried disabling…
2
votes
2 answers

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 finally compiled now So I'm currently doing a little…
2
votes
2 answers

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(poti1); int mappedHue = map(hue, 0, 1023, 0,…
2
votes
1 answer

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 from LOW to HIGH (e.g. because of a push-button *…
2
votes
4 answers

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 keeps dying after about 1 minute. This means I…
Bart B
  • 41
  • 1
  • 6
1
2 3 4 5 6 7