Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
61 views

C++ 2D array types

I am trying to drive a Neopixel strip from a 16MHz 5V Adafruit Trinket I have a button to cycle around off, white, red, green & blue, so I want to store those five options as RGB values In my code,...
Greg's user avatar
  • 323
0 votes
1 answer
279 views

ArduinoFFT library argument list compilation error in Arduino

I am creating a sound visualizer using an arduino nano,electret condenser microphone and 8X32 matrix and i keep getting the same error. here is the code: #include <ArduinoFFT.h> #include <...
Vyomesh Vasanth's user avatar
0 votes
1 answer
128 views

Importing Neopixel

I am working on a project that requires adafruit circuitpython neopixel. So I ran pip3 install neopixel It said I need to create a virtual environment so I did and ran the command in it and it said ...
Michael Guidice's user avatar
0 votes
0 answers
118 views

NeoPixel Python LED Control?

I'm using two different modules for the NeoPixel led devices. One is the neopixel module and the other is the adafruit PixelFrame Buffer (https://docs.circuitpython.org/projects/pixel_framebuf/en/...
starboy's user avatar
1 vote
1 answer
543 views

Neopixel library can not be run in a virtual environment in python (requires sudo) for raspberry pi

Is it possible for the Adafruit neopixel library to have root access to a raspberry pi 4b, whilst not being in a virtual environment to control WS2812B leds. I have downloaded the adafruit module in ...
user100669's user avatar
0 votes
0 answers
105 views

Is it possible to animate multiple NEOPIXEL stripes in parallel via Arduino?

I´m having an ongoing project for a good friend of mine. I´m pretty new to this programming stuff, so I´m forced to ask for help. He wants to have some sort of cloud ceiling with a few LED stripes to ...
Karbonaterol's user avatar
0 votes
1 answer
67 views

Stopping a repeated for loop overloading the microcontroller

I have some RGB LEDs, and I want to draw a gradient on to them. The gradient is stored as a list of tuples, each tuple containing the R G and B values for the LEDs. I iterate through the list, and add ...
Commodore 64's user avatar
0 votes
1 answer
146 views

Animating 3600 neopixels with RPi is slow

I have SPI RGB led strip with three wires connection: – TX1818 driver (manufacturer says “it’s compatible with TM1812, UCS1903, SM16703, WS2811–2815”) – 12V, 9.3 W/m, 5060, 60/metre – 3600 pixels, 60 ...
asvetly's user avatar
  • 1,816
0 votes
1 answer
1k views

Adafruit neopixel library not loading correctly onto raspberry pi pico

I've been trying to use the adafruit neopixel library to... well... use neopixels. However, I've been having some problems. I am using a pi pico, thonny as my IDE, and Ubuntu as my OS. I started off ...
ValleyDragon888's user avatar
2 votes
0 answers
82 views

Runing and ending a Python script with sudo from inside another python script?

I am currently working on an Raspyberry Pi Camera project where I am using an Adafruit Neopixel ring as a ringlight. The Neopixle library needs the script to be run with sudo in order to work, but I ...
Jarhara's user avatar
  • 21
0 votes
0 answers
221 views

Can't get Adafruit Neopixel to work with Wemos D1

I am trying to get a very simple ESP8266 project to work but I keep failing and have no clue why. These are my components: Wemos D1 (ESP8266MOD) WS2812B 5050 LED Stripe (2m with 60 LEDs/m) 5V 10A DC ...
coolaturon's user avatar
1 vote
0 answers
27 views

Using a raspberry pi with pymongo and neopixels together

So, I am beginning a project where I want to use a Raspberry Pi to take input from a MongoDB database from the web and translate it into neopixel colours. I am running a virtual environment. My ...
Christopher Jung's user avatar
1 vote
0 answers
44 views

Trying to control

I have a raspberry pi 3 model B and a Kano LED light ring my kid stopped using the raspberry pi and i repurposed it to make a pihole, it doesn't have the KanoOS anymore and just has the regular ...
Joshua Thornburg's user avatar
0 votes
2 answers
473 views

Arduino Adafruit NeoPixel LED matrix is not working properly

I'm new to Arduino development, trying to display alphabets in an 8x8 LED matrix, but the simulation is not working The code was working fine with one letter, what am I doing wrong in the below ...
SuRu's user avatar
  • 739
0 votes
1 answer
1k views

Is there a function in Python to clear all of the LEDS in NeoPixel?

I am new to Raspberry Pi 4 and I am trying to used an addressable WS2812B LED Strip with Python/NeoPixel to light objects from different angles for an AI project I am working on. I am able to address ...
D. Yager's user avatar
0 votes
1 answer
90 views

What is an algorithm for displaying rpm on set of LEDs?

So I have an Arduino that is reading the rpm from my car. I also have a 15-pixel neopixel strip connected to the Arduino. What I want the Arduino to do is to make the led strip show the rpm. As the ...
Nick's user avatar
  • 37
0 votes
1 answer
141 views

Frustrating Arduino Question - Loops and Cases

I'm using the Arduino IDE to program an ESP32, I'm having a bit of a frustrating problem. I'm using a neopixel ring (adafruit clone). I've used the adafruit neopixel demo snippets and they work fine. ...
Andrew Taylor's user avatar
0 votes
0 answers
333 views

error while trying to install Neopixel plus

Hello I was trying to install the neopixel plus library but i got this error, I tried to understand it but I doesn't totally understand, seams a file is missing and the name of the file seems to have ...
ano_ponju's user avatar
1 vote
0 answers
89 views

How to use neopixel lights and sound output on Raspberry together?

I am working on a program to play a song and at the same time light up a 45 led Neopixel strip. The problem is when I am running the code using sudo the sound is not working (I am using a soundwave ...
Mangesh Kangule's user avatar
1 vote
0 answers
375 views

Code not lighting every LED in Adafruit Neopixel, using Processing and Arduino

I'm trying to use Processing to find the average rgb value of my computer screen in sections, and sending that data to Arduino to light my 60 LED strip. The code for changing the colors of the strip ...
Nick Schine's user avatar
0 votes
1 answer
761 views

Raspberry Pi Neopixel "Selected GPIO not possible"

I'm using an Raspberry Pi 4 Model B Rev 1.2 to control an RGB-Ringlight with Python using the Neopixel library. I'm getting the error message: ws2811_init failed with code -11 (Selected GPIO not ...
Drago's user avatar
  • 19
0 votes
1 answer
600 views

Non-blocking theater style chase animation for NeoPixels

I am trying to adapt this version of the Adafruit NeoPixel theater chase example to be non-blocking by not using the delay() function and instead of using the millis() function to create a counter, ...
Fabian Butkovich's user avatar
0 votes
1 answer
130 views

Problem with recoloring adressable LED strip

I am controlling a WS2811 LED strip from a raspberry pi in Java, using a library called Diozero. When I set a color to the LEDs for the first time, there is no problem, but when i try to do it again ...
error13660's user avatar
1 vote
0 answers
121 views

Clearing NeoPixel LEDs after running animate()?

I'm trying to run an animation for a period of time, then clear the LEDs and go back to setting the colors manually with Neopixel.pixels.fill(). Only, after I run animation.animate(), I lose the ...
Calvo's user avatar
  • 11
1 vote
2 answers
2k views

isuue running rpi_ws281x(neopixels) using python on Rasberry pi 4

I have installed the files for ws2812 neopixels on raspberry pi 4b using : curl -L http://coreelec.io/33 | bash and ran the python strandtest.py I am facing an import error File "strandtest.py&...
Ashwath's user avatar
  • 65
0 votes
0 answers
163 views

Led Matrix on the PI

I'm working a little project using a neopixel like matrix board. The board in question is here. Now this is my first adventure into addressable led boards. And I was extremely frustrated to learn that ...
ArcSpark76's user avatar
0 votes
1 answer
171 views

ATTiny85 + Adafruit_NeoPixel not working with array

I want to create a LED animation using Adafruit_NeoPixel library. Unfortunately I'm struggling with a probably dump thing. For some reason the strip does not anymore work when using a certain array ...
fragsalat's user avatar
  • 530
0 votes
2 answers
776 views

Is it possible to change the brighness on the fly for Adafruit_CircuitPython_NeoPixel

Is it possible to change the brightness on the fly for Adafruit_CircuitPython_NeoPixel ? It seems to be possible in a C library but no in python. Thanks, mcb
eemceebee's user avatar
  • 2,656
0 votes
1 answer
341 views

I have a LED Light strip and am not sure why the light isnt turning off immediately. Need code clarification

I'm fairly new at writing Arduino code and am confused by a block of code. When executed, a blue dot travels down the LED strip and eventually loops back to the start. #include <FastLED.h> #...
dosebot's user avatar
  • 113
1 vote
1 answer
723 views

ESP32 Cores are freezing when controlling two LED strings

So for the last week, I have been dealing with an issue with my ESP32. For background information, I am working on a Music Meter project. My goal is to have the ESP32 sample two audio signals, and ...
Jay's user avatar
  • 111
0 votes
0 answers
230 views

Is there a way to sync sending information across sockets on a network?

I am programming ada fruit ring LED lights in python, I have setup a local network for a midi controller to read data into my Raspberry Pi 3 and send to the 3 Pi Zero W through web sockets. I am ...
justACuriousDJ's user avatar
0 votes
1 answer
407 views

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 ...
Dusty Blagden's user avatar
0 votes
1 answer
703 views

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 ...
TheBestPlayer's user avatar
0 votes
1 answer
287 views

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. ...
Smokus's user avatar
  • 149
0 votes
0 answers
359 views

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 ...
Daniel's user avatar
  • 1,219
1 vote
1 answer
170 views

Arduino NeoPixel code behaves oddly when code is moved to class

So I've been running into a weird issue while trying to compartmentalize some test code I wrote for an Arduino/NeoPixel application. There are two scenarios: Scenario A, my code before the move, and ...
Toms Jensen's user avatar
1 vote
1 answer
302 views

Neopixel LED Library

Im' trying to create my own Library for the Neopixel Led strips, because there is no Library with the functions I need and I'm wondering how the LEDs work. In the Datasheet of the LEDs I found out ...
led_pat's user avatar
  • 21
0 votes
0 answers
475 views

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 ...
1MP0551BL3's user avatar
0 votes
0 answers
770 views

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....
Sapphire_py's user avatar
0 votes
1 answer
688 views

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 = ...
shkryabla's user avatar
0 votes
1 answer
4k views

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 ...
Thomas's user avatar
  • 13
-1 votes
1 answer
1k views

24-Bit color decoding help (python)

Working with led strips from my end I use function Color(0-255, 0-255, 0-255) for rgb, the function encodes to 24-bit color and is written below Def Color(red, green, blue, white = 0): ""...
HaZZar's user avatar
  • 11
1 vote
0 answers
87 views

I want to change Raspberry Pi code about neopixel in Python

import board import neopixel pixels = neopixel.NeoPixel(board.D18, 144) for i in range(0, 144): pixels[i] = (255, 0, 0) I'd like to change the code above to the following format. import RPi....
LCH's user avatar
  • 11
0 votes
1 answer
98 views

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. ...
Michael Cordingley's user avatar
-1 votes
1 answer
159 views

Arduino DigiSpark NeoPixel BlueTooth C++ Buffer Overflow

i was able to make the following code after about a week of desk head banging, it works, kind of. the problem is that it's not that responsive, most of the times i have to spam the buttons on my phone ...
RayShifter's user avatar
0 votes
1 answer
866 views

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 ...
jomens235's user avatar
0 votes
0 answers
508 views

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 ...
Rio's user avatar
  • 664
4 votes
1 answer
1k views

Raspberry Pi + neopixel: If brightness of RGB LEDs are reduced, does that mean certain colors cannot be rendered?

Referring to the python library neopixel (rpi_ws281x), to control WS2812B RGB LED strips, does trimming the brightness by scaling the byte for each sub-LED in a pixel from 255 to 127 limits us from ...
siva's user avatar
  • 2,145
4 votes
2 answers
1k views

Neopixel sample code crashing when using a higher number of pixels

Context I'm restarting a personal project that involved an ESP8266 and WS2812Bs (Neopixels). It is worth noting that I do not have any Neopixels hooked up at the moment; I'm simply trying to get a ...
Alex Larson's user avatar
0 votes
1 answer
93 views

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 ...
Diego Braga's user avatar