Questions tagged [neopixel]
The WS2812 Integrated Light Source from Adafruit.
103
questions
-1
votes
0
answers
9
views
Controlling UCS2904 LED flood with Neopixel library
I'm attempting to control one of these UCS2904 floodlights using the Neopixel library; according to the chip documentation it uses 800khz and RGBW ordering, both of which are set in my arduino code ...
-1
votes
2
answers
79
views
Adafruit_NeoMatrix / Adafruit_GFX / Print class - how does printing text work here
I am entirely new to Arduino and have not coded in C/C++ for quite a few years. I'm looking through a NeoMatrix library which extends upon NeoPixel class. That class extends Adafruit_GFX class which ...
1
vote
1
answer
254
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 ...
1
vote
1
answer
155
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 ...
-1
votes
1
answer
203
views
Multiple if else statements for distance-triggered LEDs
I have a sketch that calculates simple distance from the device to the nearest preset GPS coordinate (there are 3 in total) and I would like to have LEDs in the neopixel strip light up according to ...
2
votes
0
answers
406
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 ...
0
votes
1
answer
2k
views
How to smooth transition to another color NEOPIXELS
I am working on a led strip project and was looking for ways to smooth transition from color to another. Problem is my current method is not so good.
#include <Adafruit_NeoPixel.h>
#define ...
0
votes
1
answer
181
views
Modifying the neopixel rainbow function to work with 4pins
So my setup is i have strips that is separated into 4 pins and would like to modify this rainbow function from the neopixel so that it will work on 4 separate strip that are on 4 separate pins. I ...
0
votes
1
answer
305
views
How can I make my code Thread-Safe?
So I made a post yesterday running into an issue on my ESP32 using both cores on the microcontroller (with wifi enabled, incase that is important).
I'm using both cores to control two Neopixel strips ...
1
vote
0
answers
139
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 ...
1
vote
0
answers
301
views
two adafruit neopixel loops
i'm making a device that's kind of based on Russian roulette.
I have 5 LED's that are normally white, and when you press the button one of the LED's is marked red.
After some tinkering I figured out ...
1
vote
0
answers
867
views
Unexpected and incorrect HEX codes coming from IR remote, but only in second function..?
Hello:) I'm working on a lil project with some NeoPixels being controlled by an IR remote, and with there being multiple strips, I felt it would be best to first select the desired strip, and then the ...
0
votes
5
answers
509
views
Reading from EEPROM and writing to addressable LED with limited connections
UPDATE
Clock speed code has been tweaked as per the suggestion from @timemage due to inability for Wire library to reduce to below 30304Hz. Unfortunately problems still persist:
Nothing printed out to ...
1
vote
1
answer
112
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 ...
0
votes
1
answer
983
views
ESP32 light strips showing incorrect colours
I bought some individually addressable LED strips (a large reel). To keep the cost down they are WS2811 and it's one chip per 6 leds. I don't know the cheapness or LED styl makes any difference to the ...
4
votes
0
answers
114
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 ...
1
vote
1
answer
428
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 ...
3
votes
1
answer
336
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(...
0
votes
0
answers
312
views
WS2812B NeoPixels no longer working after cutting the strip and adding an extension
I am trying to use WS2812B LEDs with an Arduino.
I have 24 LEDs connected to pin 6.
When I first received the strip I connected it to 12V and data.
Using the cyclone example in the FastLED library ...
1
vote
1
answer
57
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 ...
1
vote
0
answers
274
views
Atmega 2560 IR receiver returning random values with using NeoPixels
I am using atmega 2560 to control 590 LED lights with NeoPixels library.
I also got an IR receiver connected so I could control the LED properties and it does work but only when the LEDs are not ...
2
votes
2
answers
372
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 ...
0
votes
1
answer
1k
views
NeoPixel Gradient sweep function
I'm trying to create a function that takes two colours and creates a smooth gradient between them one colour at the beginning and one at the end
I just can't figure the math of mixing them evenly
I'...
1
vote
1
answer
726
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 ...
0
votes
1
answer
632
views
Error compiling for board Arduino Uno
I am relatively new to Arduino and I am trying to code some neo pixels and every time I try to verify my code this error comes up:
Arduino: 1.8.12 (Mac OS X), Board: "Arduino Uno"
loading ...
0
votes
2
answers
428
views
Restart sequence of NeoPixel stick with a push button at any time
I am really happy with my new Arduino stuff and playing around with all those pixels :).
I am new to programming and it's difficult to understand it, but with every success, I grow in knowledge.
My ...
1
vote
0
answers
420
views
Freezing ESP8266 after 4-8h
Build my own 'Artnet to WS2812b Neopixel' boxes for lighting in a club. Working fine. I have 20 stripes with 50 pxls each. One ESP8266(NodeMCU) is feeding 6 stripes, so it gets 2 DMX universes via ...
0
votes
1
answer
476
views
Passing a NeoPixel object reference to a custom library
I'm new to Arduino programming and haven't programmed in C++ in the past. I'm trying to create a custom library to cycle a rainbow on my NeoPixel LED strip. I want to pass a reference or pointer or ...
-1
votes
1
answer
349
views
Neopixel code not working on Adafruit Feather board
I have connected a single neopixel to my Adafruit Feather board, running Arduino software.
The power pin is connected to 3V on the Feather. The data-in pin is connected to pin 15 on the Feather.
As ...
0
votes
1
answer
378
views
How to declare a pointer for arduino neopixels library so I can set it up in the setup function with dynamic variables?
I am using NeoPixel strips, and I want to be able to declare a pointer to them, but not initialize them until the setup function (because they will initialize with certain variables only made ...
0
votes
2
answers
142
views
NeoMatrix Button Troubles
I am creating a 20x15 LED Matrix using and Arduino Nano. My goal is to switch between different "scenes," if you will, using 4 buttons (I just need to run different code to make it display something ...
1
vote
2
answers
247
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 ...
2
votes
2
answers
851
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(...
1
vote
0
answers
3k
views
Neopixel LED control without library
I plan to use a single address LED (SK6812 or WS2812) to indicate controller status.
The goal is to include colors: Green / Blue / Red.
There are libraries like Neopixel, Fastled, and others, but I ...
0
votes
1
answer
741
views
Blink Adafruit_NeoPixel
I wish to blink all the strip. In the code below it just blink the first LED, how can I fix it?
Code:
#include <Adafruit_NeoPixel.h>
#define PIN 6
#define NUM_LEDS 24
Adafruit_NeoPixel strip ...
0
votes
1
answer
145
views
Translating WS2812-LED-Strip-IDs when cutting up a strip to multiple parallel ones
Lets say i have 1 meter of WS2812 Strip at 60 LEDs per meter. Now i cut the strip up in to 6 single strips but keep the wiring the same and lay them out in parallel. So it would look something like ...
2
votes
1
answer
521
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 ...
-1
votes
1
answer
497
views
APA106 random color when power applied
The APA106 RGB LED is usually blue when 5VDC is applied. Sometimes it is a random color when turning the power supply on and off. How to keep it a consistent color when power is applied?
Normal:
...
0
votes
1
answer
130
views
Looking for some help with an RGB LED animation
I'm working on a project that is running off of a Sparkfun Pro Micro 5V. I'm trying to accomplish a color rainbow cycle animation which will have a function when triggered to fade the rainbow to black ...
0
votes
1
answer
2k
views
How to programme a button per colour for a neopixel strip?
I am trying to make a particular pixel in a neopixel strip, turn green, red or blue depending which button has been pressed and to stay on until pressed off again (like a toggle), but currently when I ...
1
vote
0
answers
146
views
How can if resolve this conflict between matrix keypad library and neopixel library?
I'm trying to use a 4x3 matrix keypad as a user interface to control parameters of a Neopixel strip control program.
I'm using Adafruit's Neopixel library and This Keypad library.
Both work fine on ...
0
votes
2
answers
3k
views
Strange behaviour with WS2812B RGB LED Strip
I tried to use a RGB LED strip, following a guide.
I connected the voltage pin to the Arduino UNO 5v pin, the ground pin to the GRN pin and I used the pin 5 for DIN.
I used this image as reference:
...
0
votes
1
answer
86
views
How do you remove dependencies from a library?
I'm writing a library for a project i created, but it depends on the Neopixel library from adafruit. I want to remove this dependency and have my library be a stand-alone library.
Is there a way to ...
-1
votes
2
answers
329
views
20 m LED WS2811 Pixel Stripe 12 V
i need some help for my masterthesis.
I plan an Light and Sound installation and for this I decided to use the shape of an Dodecahedron and I want to put LED RGB Pixel Stripes on the surfaces to light ...
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 ...
1
vote
1
answer
134
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 ...
3
votes
1
answer
530
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-...
2
votes
0
answers
138
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 ...
0
votes
2
answers
789
views
Arduino Switching Between Loops IR Remote
I've been working on an LED strip project. However, I've come to a stand still at the moment. Within the program I am wanting to assign different lighting effects to each button on my IR remote. I am ...
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 ...