-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with Raspberry Pi Zero W and the W2812B LEDstrip #151
Comments
Hello @BowenDragonheart, welcome to the Wordclock builders.
Greetings, plotaBot |
Thank you for your input!
Furthermore, I have read that it is important that the LED strip and the PI do not share the 5V+ This is currently the case for my clock. Why is this important? Can this explain the wrong behaviour? |
I reinstalled the pi and the behaviour is exactly the same. So it is at least reproducible. Next thing I tried is not using the same power supply for the LEDs and the PI. No difference. The third test is exclude the beefy power supply. So now I power the Pi through the USB and the LEDs with GPIO's. Exactly the same result. So now can conclude that it is not the power supply. I realise now that I am not using exactly the commit to which you are referring, but the latest version. Do you think there is actually a problem with a newer version of the rpi lib? There are three suspects left:
Thanks for helping me plotaBot |
Is that not the problem? It is not an RGB strip, but a RGBW strip. Is this not supported? Oke, I can get the standard rpi_ws281x test to work now by specifing in the main.c that I'm using a SK6812 RGBW strip. Now actually 10 LEDS start to shine when I specify a Width of 10. However, the simple python script still doesn't work. I think it only supports the RGB strip? |
Apparently rpi_ws281x supports RGBW but implementing it requires more effort and a strip at hand. Sorry if you bought the wrong LED strip. @bk1285: Would you add the enhancment label so @BowenDragonheart is able to use his LEDs (somewhere in the future). |
to address the LEDs, jgarff's library is currently used. As mentioned here, it's probably an issue, that you need to provide another byte to setup the fourth color channel. As soon, as jgarff's library supports this, I expect the wordclock to work smoothly with th RGBW-type of LEDs. Meanwhile, you'll have to choose standard RGB-strip. Best, |
Hi WordClock makers!,
I am trying to build my own Word Clock and am in the final stage of testing the LED strips. Unfortunately, I ran into problems here.
I'm using a Raspberry Pi Zero W, combined with a Mean Well power supply (5V, 50W) and the a W2812B LEDstrip.
Using both the strandtest.py and the test script of the source directory, I run into a strange problem: I need to specifiy four more LEDs than are actually in the LEDstring to have all light up.
To investigate more, I made a simple program based on the strandtest.py and an issue raised in the rpi_ws281x github (jgarff/rpi_ws281x#314) .
from neopixel import *
LED strip configuration:
LED_COUNT = 10 # Number of LED pixels.
LED_PIN = 18 # GPIO pin connected to the pixels (18 uses PWM!).
#LED_PIN = 10 # GPIO pin connected to the pixels (10 uses SPI /dev/spidev0.0).
LED_FREQ_HZ = 800000 # LED signal frequency in hertz (usually 800khz)
LED_DMA = 10 # DMA channel to use for generating signal (try 10)
LED_BRIGHTNESS = 255 # Set to 0 for darkest and 255 for brightest
LED_INVERT = False # True to invert the signal (when using NPN transistor level shift)
LED_CHANNEL = 0 # set to '1' for GPIOs 13, 19, 41, 45 or 53
strip = Adafruit_NeoPixel(LED_COUNT, LED_PIN, LED_FREQ_HZ, LED_DMA, LED_INVERT, LED_BRIGHTNESS, LED_CHANNEL)
strip.begin()
strip.setPixelColorRGB(0, 127, 127, 127)
strip.show()
If I run this, the first LED become white. So far so good. If also the second LED is activated,
strip.setPixelColorRGB(0, 127, 127, 127)
strip.setPixelColorRGB(1, 127, 127, 127)
then the first remains white, but the second becomes yellowish green. If also the third is given a signal
strip.setPixelColorRGB(0, 127, 127, 127)
strip.setPixelColorRGB(1, 127, 127, 127)
strip.setPixelColorRGB(2, 127, 127, 127)
Then the first and second become white and the third bright green.
To conclude
strip.setPixelColorRGB(0, 127, 127, 127)
strip.setPixelColorRGB(1, 127, 127, 127)
strip.setPixelColorRGB(2, 127, 127, 127)
strip.setPixelColorRGB(3, 127, 127, 127)
strip.setPixelColorRGB(4, 127, 127, 127)
strip.setPixelColorRGB(5, 127, 127, 127)
strip.setPixelColorRGB(6, 127, 127, 127)
strip.setPixelColorRGB(7, 127, 127, 127)
strip.setPixelColorRGB(8, 127, 127, 127)
strip.setPixelColorRGB(9, 127, 127, 127)
Results in that the first seven are white, the 8th is yellow and LED9 and LED10 are not giving light at all.
I tried with several LED strips of 10 and all gave the same result.
Who can help me to solve this? I also made an issue at the rpi_ws281x github, but there people appear not to be that active.
.
You will have my eternal gratitude if you can help me with this.
Best regards,
Bart
The text was updated successfully, but these errors were encountered: