TheeRed
September 14, 2025, 6:49pm
1
What is the problem?
Leds not turning on at all
What did you already try to solve it?
Tryed with logic level shifter
Have you tried running in safe mode?
No
Did running in safe mode solve the problem?
WRITE HERE
Systeminfo Bundle
Running octopi on raspberry pi 4 using ws2812b
I know this is not a lot of info. But im hoping that someone can help me figure this out.
Which type of LEDs are you using and how many?
How do you power them, via the Pi, via the printer or via a separate PSU?
How did you wire them to the GPIO on the Pi?
Did you follow all the steps in the plugin's setup guide, e.g. setup of SPI on the Pi?
These are just some of the info that would be helpful to assist you.
TheeRed
September 16, 2025, 11:22am
3
I am using ws2812b just 15leds.
I wired the data wire to gpio18 i also tryed gpio10.
The os config test passed.
The issue seems to be a software issue. The wiring is definitely correct. In the LOG i get this.
ERROR: RuntimeError('ws2811 init failed with code -5 (mmap() failed)')
Do you use a separate power supply or are you powering those 15 LEDs via the Pi?
15 x 60mA is too much, I think. The instructions state that max output of the Pi is 500mA.
Also the instructions recommend to use GPIO 10, because with SPI you do not need to run it as root. Else with PWM you need to run it as root.
I just looked up my settings. I use the wiring scheme without level shifter and a 5V phone charger as power supply. See the screenshot for the plugin settings for the LEDs.
TheeRed
September 16, 2025, 12:30pm
7
I use a separate power supply. But even gpio10 does not work. The leds dont turn on. And im 100% sure that the wiring is correct. I usually do wled with an esp.
Did you turn on the SPI interface?
1 Like
Follow the instructions in the link I gave you.
TheeRed
September 16, 2025, 1:00pm
11
That was it. Now it works. But not so smooth. Is that the buffer sice that needs to be changed?
The setup wizard should do this when you provide the password for the pi user. To take effect it will need a reboot, I think. Otherwise you can edit the file /boot/cmdline.txt yourself.
TheeRed
September 16, 2025, 1:13pm
13
It should have done the spi thing too. My user is caled admin not pi. So that might be it.
TheeRed
September 17, 2025, 12:47pm
14
First of all thank you so much for the help.
But im having this issue right now.
It is flickering and eventually it is constant white.
Also when i reload the octoprint website. The leds do the rainbow thing for about 2 second.
Any idea why?
Could this be one of the effects of the plugin that triggers because of a certain state of the printer?
TheeRed
September 17, 2025, 1:10pm
16
Nope. Printer is not connected
I have put a buffer capacitor on the terminals of my phone charger to stabilize the voltage, similar to this:
TheeRed
September 17, 2025, 2:33pm
18
Didnt fix it. I dont think its a hardware issue. Since it works for a few seconds when i reload the page.
TheeRed
September 17, 2025, 4:56pm
19
I got it to work. I changed the spi buffer sice and core min. frequency now it works. It seems that the os config test didn't change any settings.
Glad you could work it out! Some scripts just take it for granted that the user is called pi and won't work correctly otherwise, I guess.