Questions tagged [neopixel]

76 questions
1
vote
0 answers

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.GPIO as GPIO import…
LCH
  • 11
  • 1
1
vote
1 answer

Python Syntax errors detected on an if statement

i'm trying to run my code but i've been stuck for hours on a syntax error. I've tried diffrent if statement levels, rewriting the part, etc... nothing changes. Anyone has any idea? thanks I've used online chackers too but with no results. I run the…
1
vote
1 answer

Neopixel / WS2811 controlled via local HTML

I've followed Adafruit's instructions on getting WS2811 LEDs up and running using Python, and it's all good. I've also created a very simple HTML / JS / CSS page which allows the user to 'colour-in' pixels on screen. I want to run this on a…
wibbleface
  • 119
  • 14
1
vote
1 answer

BitBanging a MHz protocol with the MicroPython Inline Assembler on PyBoard

I'm trying to use a PyBoard v1.1 to drive the protocol for Adafruit's NeoPixel LEDs SK6812RGBW using Micropython's inline assembler. Protocol As can be seen in the linked data sheet, a single LED is driven by assembling 4 8-bit rgbw values. Each…
mkirche
  • 11
  • 1
  • 2
1
vote
1 answer

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 currently have is that I want to be able interupt an…
Robin Fors
  • 83
  • 7
1
vote
1 answer

Arduino controlling ledstrip with neopixel stuck

I tried controlling an rgb ws2812b led strip with my pi 3. That works fine. Now I wanted to do it with my Arduino Nano. The control itself works. If I put some code into the loop function everything works fine. But if I want to call the code by a…
Emu
  • 11
  • 2
1
vote
1 answer

How to turn an LED strip off

I was playing with the idea to install some nice LED strips in my home. But, after running the code, the LEDs would keep the last color they were given. So I set the color to RGB(0,0,0) in order to turn them off. My question is: Are they now turned…
0
votes
1 answer

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 the colour value to each respective…
0
votes
1 answer

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 lines, each 1 metre long with 60 pixels – each 4…
asvetly
  • 1,739
  • 16
  • 17
0
votes
0 answers

Connecting a 5m 300 LED ws2812b LED strip to Raspberry Pi controller using single power input point

I have a 5m ws2812b LED strip and am trying to operate it using neopixels python module from Pi4. I'm powering the strip using 5V 20A 100W SMPS to open end of red and white wires of strip directly, also data (GPIO18), ground of Pi to 3-pin…
0
votes
0 answers

Increasing size of red LED block in Neopixel rainbow wave code?

I have been using this code to run a rainbow wave on my Neopixel strip, but would like the section of red LEDs to be more prominent, as currently the blue and greens are in large sections, while the red section is only about 3 LEDs long. #include…
Naga
  • 1
0
votes
1 answer

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 writing the code below, and running it, on…
0
votes
0 answers

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 Power Supply This is how I connected everything…
coolaturon
  • 127
  • 2
  • 8
0
votes
0 answers

Running adafruit-neopixel and GTK together on raspberry pi

My script is using both neopixel library to drive LEDS and gi to display UI on raspberry pi . The issue is that neopixel requires me to run it with sudo but then gi throws an error: No protocol specified Unable to init server: Could not connect:…
0
votes
0 answers

how to have multiple "chasers" in a ws2812b strip triggered by pressing the space bar?

I wrote a small python script to have a light travel down a piece of ws2812b led strip that is triggered when I press the spacebar on the keyboard attached to the raspberry pi. The script works well, but I can only press the spacebar once and then…
djs
  • 1
  • 1