Have a interesting problem
I have a WS2811 led strip, which I am controlling from a raspberry pi zero.
I have connected it up to an external 12v power supply, and have shared the grounds
during testing on a short strip, i was having zero problems, but when I move to my longer strip, i start having odd issues.
I wrote a small test script to try figure out what was going on, and whenever I run the test, the middle value never lights up. the lights always turn off
It doesnt matter what values I put in the range, its always the middle show that fails.
Any ideas? and do I make sense?
Script attached below
Code: Select all
import time import board import neopixel pixel_pin = board.D18 num_pixels = 80 ORDER = neopixel.GRB bright = 1 pixels = neopixel.NeoPixel(pixel_pin, num_pixels, brightness=bright, auto_write=False, pixel_order=ORDER) pixels.fill((0,0,0)) pixels.show() time.sleep(2) for i in range(0,80): pixels[i] = (0,255,0) pixels.show() print("red") time.sleep(2) for i in range(0,80): pixels[i] = (255,0,0) pixels.show() print("Blue") time.sleep(2) for i in range(0,80): pixels[i] = (0,0,255) pixels.show() print("green")