Closed Kolk123 closed 5 years ago
If you've followed the directions here then I would confirm that the wiring is all correct.
If all of those things are correct, and it's still not working please share your octoprint.log file
hey Eric,
Thank you for the response. i can confirm that im using the right pin. the 19e pin gpio10. i've connected the ground pin to the powersupply and the arduino. the wiring between the rpi and the leds are max 20cm. i've tryed multiple led strips. when im testing it in my arduino led stair it works.
here is my log file. octoprint (7).log
greetz, Roy
An Arduino is unnecessary. Try connecting the leds directly to the RPi.
dont used a arduino. I've tested it if my LEDs are working. If maked a mistake. I mean raspberry .
i've connected the ground pin to the powersupply and the raspberry
The LEDs are connected direct to the raspberry. It looks like the raspberry dont give any output on the gpio10.
Ok. Your log looks fine.
Have you set your spidev.bufsiz and core_freq?
Yes. I set it just like the tutorials. Can it be related to the newest octoprint update ?
Perhaps, though I would think that would cause errors in the log.
Just to confirm, you've restarted your pi since changing those settings and enabling SPI?
Also, which type of LEDs are you using? #22 seems to describe issues with some LED types
Hey Eric.
Thanks for responding! Yes I've restart multiple times. I enabled it in the config. And checked it in the log. I'm using 5v ws2812b leds. Maybe is that the problem.
I dont have other leds available for testing.
Greetz, Roy kolk
More detail. I'm using the rgb version. https://www.aliexpress.com/item/32808513592.html?spm=a2g0s.9042311.0.0.27424c4dhVVlnP
Interesting. Those look very similar to the ones that I use. Maybe they aren’t working on 3v, and you need a level shifter.
Can you share a screenshot of your rgb status settings in OctoPrint?
no they working with 5v. but i got the solution. i've swaped to another raspberry and this one works fine. i thing one of the pie's are broken. thanks for you help :)
Awesome. Glad it’s working.
Hi there, I also connected the WS2812 to the Raspberry with an additional power supply, but unfortunately nothing happens. But when I run it via Python script, it works fine. I connected it to the GPIO 18 and also set it up under the Octoprint plugin. Could someone help me with that?
@NickOne81 GPIO 18 requires root access to control. You can either run OctoPrint as root, which is strongly discouraged, or use GPIO 10.
Hi EricHigdon, yes, I also just read. I now have it on GPIO 10. Unfortunately it still doesn't work. I also activated SPI and buffer size and core frequency also fit. What could not fit there?
@NickOne81 does the python script that worked with GPIO 18 work with GPIO 10 now?
No, unfortunately not. If I change the script to GPIO 10 it no longer works.
Are you on a Raspberry pi 4?
No. I have a Raspberry Pi 3 Model B.
Did you use the wizard to change the buffer and core_freq settings?
Yes, I made these settings using the wizard. The values are also correct in the cmdline and in the config.
Interesting. Try adding enable_uart=1 to config.txt.
Now I have found out what it is. An LCD display is connected to my Raspberry. If I take out the values in the config for the display then the LED strip works.
dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
That would explain it. The LCD probably uses the SPI pin.
I think your option moving forward from here then is to go back to GPIO 18 and run OctoPrint as root. I did confirm that it worked in the past, but be careful. https://community.octoprint.org/t/starting-octoprint-with-sudo-as-root-tells-me-you-should-not-run-octoprint-as-root-why/230
hello.
if got a question. if installed the plugin, and enables spi. i connect my ws2812b strip to the pi with port giopin 10.
what do i need to do more ? they dont work atm
Greetz Roy