Questions tagged [neopixel]
76 questions
0
votes
1 answer
Changing neopixels randomly between 3 colors, on each pixel randomly
So I currently have 2x 12 Pixel Neopixel rings, running from a pi zero W.
The LEDs all work as expected, going through level shifter etc. and all react as expected.
Total noob with python but I can control the pixels and get them to do what I want,…

Dusty Blagden
- 3
- 1
0
votes
1 answer
ENUM and array declaration using enum to create an array of objects
I am writing a wrapper for neopixel library. I am adding a full source code of my program:
I have created my own custom function toggle_led_strip which is using a function from the neopixelbus led strip library.
#include "NeoPixelBus.h"
#include…

TheBestPlayer
- 324
- 2
- 13
0
votes
1 answer
How to connect LOLIN 7 WS2812B LED's to Raspberry Pi Pico (RP2040)?
I have spent numerous hours googling for the solution, but no tutorial or guide uses the LED's that I own. Everyone keeps mentioning Data IN, and Data OUT, but there are no such markings on my LED's.
I only know that I need to connect the 5V on LED…

Smokus
- 149
- 1
- 9
0
votes
0 answers
Raspberry Pi Python Neopixel WS281x Script suddenly changes LED color
For my Python script I'M using this library.
I try to set one single, permanent color to all my 60 pixels.
As I'm using two LED strips (one strip at GPIO18 and one at GPIO 13), my code handels both of them simultaniously.
The problem is that the…

Daniel
- 1,179
- 4
- 18
- 31
0
votes
0 answers
Neopixel change brightness while running a animation
I'm using the Neopixel library from jgarff to control my Neopixel LED strips and I want to change the brightness while a animation is running.
In the library I'm using there isn't a command to refresh the brightness, but there is a command that…
0
votes
0 answers
Is there a way to set the whole Neopixel Led strip on one color at one time with the Library from jgarff
I was wondering if there is a way to set the whole WS2812B Led strip on one color at once with the library from Jgarff?
I know i could use this code:
while True:
for i in range(strip.numPixels()):
strip.setPixelColor(i, (0,…

Sapphire_py
- 1
- 1
0
votes
1 answer
esp8266 - micropython - neopixel. how i can turn off previous led when next one go forward?
I'm trying to get the led to go forward like a second hand.
np = neopixel.NeoPixel(machine.Pin(2), led)
while True:
t = utime.localtime()
h = int(utime.localtime()[3]) + time_zone
m = utime.localtime()[4]
s = utime.localtime()[5]
…

shkryabla
- 11
- 3
0
votes
1 answer
Fading Adafruit neopixels
I would like to create a motion-controlled night light for my corridor. For my project I have
Arduino Uno
PIR sensor
WS2812b RGBW light strip
5V power bank to drive the LEDs
After tinkering with my light strip, I have managed to get the LEDs to…

Thomas
- 13
- 1
- 4
0
votes
1 answer
How do I appropriately call constructors and pass objects around?
I have the following code, but something is wrong with it. It compiles, but nothing happens on the NeoPixel matrix. I've loaded up a strand test to verify that the hardware is working properly. Through some manual debugging, I've worked out that the…

Michael Cordingley
- 1,485
- 1
- 11
- 23
0
votes
1 answer
Exiting a while loop when a global variable changes
So, I've been working on an LED strip connected to my raspberry pi 4, and I've got TouchOSC working between the Pi and my phone. The current problem I'm having is when a toggle button I've pressed is turned off, the program it's designated to run…

jomens235
- 3
- 1
0
votes
0 answers
Blynk project on Arduino gets disconnected while initiating theater rainbow chase animation with NeoPixel
I am trying to create a simple project using Blynk on D1 Mini where I can select any animation any time and that should play unless I stop that using my Blynk App. While everything else working perfectly, I am not able to figure out what is wrong on…

Rio
- 595
- 1
- 6
- 27
0
votes
1 answer
How to pass a csv to light more single leds in one msg payload with node-red-node-pi-neopixel library
I'm currently trying to light up a 32x60 led matrix made of single WS2812B led strips. With the node-red-node-pi-neopixel node, i have to write 10 different msgs if I want to light up 10 leds that are not next to each other. Since the node uses a…

Diego Braga
- 55
- 4
0
votes
1 answer
Would my design of this adressable rgb led work?
im fairly new to this thing and my grammar isnt good,but here we go.
Im planning to light up a clear casted figurine for my school project by using addressable rgb sk6812,its 2020 in size and pretty convenient for my figure since its fairly small…

user194312
- 1
- 1
0
votes
0 answers
Python code causes faded neopixel colors where it should be bright
I'm using a microbit connected to a neopixel with 32(8x4) lights, and in the code I've made, where I've specified the code to be blue(or any color), the result is a very weak and faded color
from microbit import *
import time
import…

Leo Gortz
- 1
- 1
0
votes
0 answers
Replace octoWS2811 with fastled 2812 for streaming purposes
hello fellow arduino programmers, im currently working on a LED matrix where im driving a 30x7 (210led WS2812) matrix. im usng a arduino nano for this job.
i found this part of code on the internet, but this is using the octoWS2811 library, and i…

Igor D
- 108
- 2
- 12