EricHigdon / OctoPrint-RGB_status

Adds RGB LED support to OctoPrint with the ability to choose effects based on the current status of your printer
33 stars 12 forks source link

cant get it to work #23

Closed Kolk123 closed 5 years ago

Kolk123 commented 5 years ago

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

EricHigdon commented 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

Kolk123 commented 5 years ago

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

EricHigdon commented 5 years ago

An Arduino is unnecessary. Try connecting the leds directly to the RPi.

Kolk123 commented 5 years ago

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

Kolk123 commented 5 years ago

The LEDs are connected direct to the raspberry. It looks like the raspberry dont give any output on the gpio10.

EricHigdon commented 5 years ago

Ok. Your log looks fine.

Have you set your spidev.bufsiz and core_freq?

Kolk123 commented 5 years ago

Yes. I set it just like the tutorials. Can it be related to the newest octoprint update ?

EricHigdon commented 5 years ago

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

Kolk123 commented 5 years ago

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

Kolk123 commented 5 years ago

More detail. I'm using the rgb version. https://www.aliexpress.com/item/32808513592.html?spm=a2g0s.9042311.0.0.27424c4dhVVlnP

EricHigdon commented 5 years ago

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?

Kolk123 commented 5 years ago

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 :)

EricHigdon commented 5 years ago

Awesome. Glad it’s working.

NickOne81 commented 4 years ago

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?

EricHigdon commented 4 years ago

@NickOne81 GPIO 18 requires root access to control. You can either run OctoPrint as root, which is strongly discouraged, or use GPIO 10.

NickOne81 commented 4 years ago

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?

EricHigdon commented 4 years ago

@NickOne81 does the python script that worked with GPIO 18 work with GPIO 10 now?

NickOne81 commented 4 years ago

No, unfortunately not. If I change the script to GPIO 10 it no longer works.

EricHigdon commented 4 years ago

Are you on a Raspberry pi 4?

NickOne81 commented 4 years ago

No. I have a Raspberry Pi 3 Model B.

EricHigdon commented 4 years ago

Did you use the wizard to change the buffer and core_freq settings?

NickOne81 commented 4 years ago

Yes, I made these settings using the wizard. The values ​​are also correct in the cmdline and in the config.

EricHigdon commented 4 years ago

Interesting. Try adding enable_uart=1 to config.txt.

NickOne81 commented 4 years ago

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

EricHigdon commented 4 years ago

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