Giter Site home page Giter Site logo

octoprint-rgb_status's Issues

Two WS2812 Strips...

Hi, I'm trying to set up two WS2812 strips (for two instances of Octoprint) on a Raspberry Pi 3+. The first one uses SPI0 (BCM 10 and works), the other one I would like to add to SPI1 (BCM 20).

I'm running Octopi (so user pi is in the GPIO-Group). Both SPI interfaces are enabled. I can see them in /dev

pi@octopi:~ $ ll /dev | grep spi
crw-rw---- 1 root spi 153, 0 Nov 2 13:12 spidev0.0
crw-rw---- 1 root spi 153, 1 Nov 2 13:12 spidev0.1
crw-rw---- 1 root spi 153, 4 Nov 2 13:12 spidev1.0
crw-rw---- 1 root spi 153, 3 Nov 2 13:12 spidev1.1
crw-rw---- 1 root spi 153, 2 Nov 2 13:12 spidev1.2

But only the first strip works... What have I missed?

Another option wold be to be able to specify "parts of a strip".
If I have one strip with 144 leds. Then the first 72 leds could be for printer 1 and the last 72 could be for printer 2. :)
Then only one SPI interface would be needed. :)

Ability to 'reserve' LEDs wired in series for distinct behaviour

Use case: To have an additional X LEDs wired in series, reserved for certain statuses, such as probing or errors scenarios etc, but default to white at other times (or even for starters, to be reversed for just white at all times and not be affected by neighbouring effects).

I have a bar of LEDs across the top of the printer and it would be nice to be able to wire in series, an extra for e.g, 3 LEDs and run these down to the hotend, to provide a set of distinct LEDs that can be always white (or set to other colours to show hotend status etc).

I have a feeling that this might be covered by the idea of having 'LED groups' but I'm not sure at a technical level whether this is doable, so I wanted to create a more simplistic approach if this an easier solution in the interim.

Thanks again for the great plugin!

Configuration/pins

Hi,

First of all, thanks for the amazing plug in, it should be of one "must have" for Octoprint.
I'm would like to ask, a lame question, but how the led strip should be connected to raspi? I mean, I have WS2812B LED strip with five wires. I would like to connect it to raspi 4 (3, 4 or 5 LEDs). How the wiring should be done?

I should cut the plug and connect it like this?
https://tutorials-raspberrypi.de/wp-content/uploads/Raspberry-Pi-WS2812-Steckplatine-600x361.png

Or I must to use mosfets?
http://lucylimd.com/a/a/co/controllable-christmas-lights-using-raspberry-pi-rgb-led-strip-aruls_mosfet-transistor_nmos-transistor-pnp-electronics-bc109-nkt275-series-pass-common-transistors-what-is-tutorial-on-amp.png

Maybe I should add some resistors and capacitors?
https://i.stack.imgur.com/fXj79.png

Thanks in advance!

Newly installation on RP4b

Installed the latest update, that was compatible with RP4.
Could not get the plugin to work before, but now there is life.
But i experience some issues, and i dont know if this is normal behavior.

Im running the WS2812w strip on the pi, and heres what happening.

-When idle/octoprint idle, the LED strip is white.
-When printing and configured to show print status, the status is showing, but the led strip shifts between all white and the status with the green led? the white fase shouldnt be there or ?
When finish printing i have chosen the knight rider theme, but the same thing happens with the shifting between all white and the theme.

it seems that the all white fase is interfering with all states.

br Tom

Random Flicker

Now that I got them working with the frequency fix, the LEDs will randomly flicker. It only flashes for an instant but enough to be annoying. Sometimes random LEDs are different colors than they should be. The flicker is rather spaced out, sometimes ever 5 mins, or up to 30 mins, making it hard to catch on video. Im using WS2812b strips of 72.
octoprint .log
Screenshot (1)
Screenshot (2)

cant get it to work

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

Setup Wizard appears every time i visit the Octoprint page

Not sure if this one is just me or... but since upgrading recently to the new RGB Status version that has the rather nice setup wizard, i cant seem to get it to go away!

I performed all the steps it wanted me to, and have green ticks by them all, but every time i access the Octoprint admin page, the setup wizard comes back up again. Its still all green ticks, i just have to press finish and it goes away,

Its just rather annoying it does this at every login.

Support for LPD8806 Led strips...

Hi! I'm sitting on a bunch of LPD8806-strips. Is there anyway to be able to control these somehow? Or maybe add support for them? :)

Thank you!

Best regards Erik

[Feature request] : Add duration for Print Finished/Failed Effects

Currently when a print finish, the print finished effect last for ever even if the status of octoprint is operationnal.
It would be nice to add a duration for the effect of Print Finished/Failed. And after this delay, the led strip goes back to the idle effect.

Add Raspberry Pi 4 support

rpi-ws281x 4.2.0 supports the Raspberry Pi 4, I'll need to upgrade that dependency, then test everything on a 3 and a 4.

Effect Delay?

What is the effect delay supposed to do?

My guess should be that after minutes the effect should be cleared, and it goes back to idle state?

It doesn't appear to have this behaviour though. so what is the purpose of the effect delay?

WS2812B WS2812 not working

Hi I'm trying to get the WS2812 with my Raspberry pi 3B+ working. But my Raspberry pi 3B+ preferes to respond with the following answer (from the octoprint.log):

2019-07-09 16:17:02,785 - octoprint.plugins.rgb_status - ERROR - ws2811_init failed with code -11 (Selected GPIO not possible)
2019-07-09 16:17:02,788 - octoprint.plugins.rgb_status - ERROR - Error running effect: The strip object does not exist. Did it fail to initialize?
2019-07-09 16:17:02,796 - octoprint.plugins.rgb_status - INFO - Starting Idle Effect
2019-07-09 16:17:02,802 - octoprint.plugins.rgb_status - ERROR - Error running effect: The strip object does not exist. Did it fail to initialize?

Points I've done:
-enabled SPI
-connected the data pin from the LED strip to pin number 10 (BCM)
-connected the ground of the LED strip with the Ground of the Raspberry pi
-the LEDs are powered by a seperate PSU

Cannot instal

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-2fSZRe/
Error!
Could not parse output from pip, see plugin_pluginmanager_console.log for generated output

Octoprint Version 1.3.10

Octopi Version 0.15.1, running on Raspberry Pi 3 Model B Plus Rev 1.3

[Feature Request] Support WS2812B GRBW

Hi,
today I tried to use my WS2812B GRBW modules with the plugin.
They are working fine on arduino with Neopixel-library as RGBW.
But I cant find a setting, where they do as they are supposed to. Looks like the 2811/12 only aims at RGB and not RGBW. 6812 RGBW is also not working.

Please add, if possible.

Cheers
Armin

Please show a video and pictures of this project in action

Would be good if you can provide a video and pictures of this plugin running so we can see how it works.

Also as a side note
what is the benefit of the having RGB status indicators vs just looking at the LCD screen or octoprint terminal message?
Maybe adding some more info about the project benefits would be good..

And what does the different color indicators signal?
Please update the info page so we can understand what would each of the colors signal and if there is any flashing of colors means?

Adding common LED strips

Hi Eric
I saw your module introduction, on the Octoprint discussion group, and I think I have a idea for you. As this would probably be easy for you to implement.

Would it be possible for you to add 3 single color output (RGB) to 3 pins on the Pi, so every color has it's own pin ? (on/off) In this way the status indication would work with LED strips too.

I know this code is for ws281x SPI, but I think that adding this, the people could choose between common LED strips and Neopixel LED strips :D (not in so many colors as neopixel, but 7 is also ok)

The only thing people has to do, is to add 3 transistors, and 3 resistors to drive the 3 colors of the LED strip. And then connect it the gate to pi, the LED to drain and the source to the power supply.

Br Tim

Update to V1.0.5 does not set new version correctly

After installation, the information about the new version RGB Status: V1.0.5 pops up again and again. Reason seems to be that the upgrade sets the version to 1.0.4, so it is not correctly detected that the upgrade was already implemented on that system.

Output of "plugin_softwareupdate_console.log":

...
2019-03-09 01:57:30,111 > Collecting https://github.com/EricHigdon/OctoPrint-RGB_status/archive/1.0.5.zip
2019-03-09 01:57:31,114 > Downloading https://github.com/EricHigdon/OctoPrint-RGB_status/archive/1.0.5.zip
2019-03-09 01:57:33,532 > Installing collected packages: RGB-Status
2019-03-09 01:57:33,534 > Running setup.py install for RGB-Status: started
2019-03-09 01:57:36,115 > Running setup.py install for RGB-Status: finished with status 'done'
2019-03-09 01:57:36,116 > Successfully installed RGB-Status-1.0.4
...

Please have a look.

Only 1st LED shows Print progress

While using the Print Progress Function, only the first LED of my strip is changing the colour. All other 59 LED still using the base color.

All other Functions of the Plugin seems to be working.

Add "off" mode for states

I would like to not use the idle colour, as my octoprint will be on most of the time, however I can't see a way to just use some of the states.

WS2801 Support

Is it possible to add WS2801 Support into this plugin?

Reverse LED Direction & More

Not an issue, more of a suggestion, or two!

  1. Provide an option for the “print status” lighting mode to reverse the direction of the progress bar.

In my setup, the strip wires come in on the right hand side, meaning the progress changes from right to left rather than left to right.

I know that for some people, just swapping the led tapes mounting direction may be easy to do, in some cases however this may not be possible due to access or wiring.

—-

  1. Timeout of some LED states.

For example, if a print fails, or actually if I click Cancel in octoprint, the LED’s pulse red, which is great. However, my RPI always stays powered up. So I may turn the printer totally off and give up for that day, but the led tape is still flashing red.

The only way I get get them to go back to the “idle” state, is to reboot the RPI, or change a setting in the RGB Status options, then they seem to go back to “idle” (which in my case is off)

—-

Other than that, an amazingly useful plugin, that especially with the new setup wizard, actually works really really well! Makes it super simple to see my print status just by a quick glance at the led’s. Top work!

Add support for LED groups

LED groups. I mean, for example if one has leds under the printer, above the printer and next to the printer and can divide them into the above-mentioned areas. The man then turns the LEDs under the printer and white next to the printer when the printer is printing and the above e.g. show the status of the printer (that's how it is now)

LEDs

Thanks for making this. Do you have any references for where to get the LED's to control?

N channel mosfet usage

Ive been searching for days about the proper way to do this and everything I find is counter intuitive and seems like it would fry my pi if I tried it. Logically I think that +5v should be connected to drain, GPIO 10 connected to gate, and source connected to DI on the led strip. If im wrong what is the proper way to do this because buying a bidirectional logic shifter seems overkill when I only need to shift a single line in one direction and I have bags of different mosfets sitting around already.

GRBW richtig anschließen

Hallo zusammen,

ich steh aufm Schlauch. Ich habe einen GRBW-Streifen. Aber wo kommt jetzt welcher PIN bei den GPIO hin? Das schwarze Kabel kommt auf die +12V. Aber die Farben GRBW kommen an welche Pin's?

Danke für Eure Hilfe
Matze

Neopixel and Level Shifting Chip

Hello!

First time poster here. I am new to Neopixels and the RPI in general, but I believe I have everything wired and installed correctly. I am using a long strip of LED's (53 in total) in conjunction with this OctoPrint plugin and I cannot get the LED's to reliably produce color. They will turn on and stay white, occasionally throwing color for a few seconds. The colors seem to coincide with the "ACT" light on the RPI. I wired the lights using the first diagram here with the 74AHCT125 level shifting chip: https://learn.adafruit.com/neopixels-on-raspberry-pi/raspberry-pi-wiring

My question is thus: Is there any change required due to the level shifting chip? Could the frequency of the signal be affected by using the chip?

Schematic needed

It would be helpful to have schematics to show how to hook up the types of LEDs supported.

Reset to idle after print cancel

It would be better and nice if the status leds (maybe after an adjustable delay) return to Idle after cancelling a print.

(The plugin can very good to be used to light the bed during a print. This works excellent!)

Kind Regards,
Wallgarden

Turn of LED if not print

Hi,

I am looking for how I can do to cut the led once the print finished and if no printing is in progress, I try to put the idl in color 0 0 0 but it remains in white light if I do not print.

What to do ?

Thank you for your work this is really good except segfault from time to time octoprint server x)

PS: I'm using Octoprint distribution

Add sidebar control UI to test effects on demand

I think expanding this to a few utility functions would be very handy for testing effects and that you've got everything setup correctly. It's quite cumbersome to keep going into settings, changing idle to X and then hitting save, to then have to go through the same routine again to test another colour. - @drewzh

Add setup wizard

The wizard needs to walk the user through the process of enabling SPI and adding the pi user to the gpio group.

LED won´t go in idle Mode

When print has finished and the last LED switches to the correct progress color, all LED going off for some milliseconds and then still shining in the progress color.

octoprint.log

In logfile see lines 3307 - 3322

When Octoprint switches in line 3320 from "Finishing" to "Operational" the solid color will be killed.
What does the error in Line 3311 mean ? Is this a problem with your plugin ?

Here a link to the video showing the last seconds of printing:

https://streamable.com/5uqhr

[REQUEST] Ability to call a script at various points

This is a great plugin to directly control a wired LED strip. It looks like it lets you select certain colors for certain stages of a print (startup, idle, progress)

It would be great if you could add the option to call a script (or anything you can type at the terminal). This would allow for other devices to be controlled (WiFi Lights, Audio Speakers etc)
It would just be a string a parameter for each stage.

Hardware revision not supported

I'm running this on a pi 4 and am getting the following log message (as well as nothing working):

2019-07-30 02:56:43,198 - octoprint.plugins.rgb_status - ERROR - ws2811_init failed with code -3 (Hardware revision is not supported)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.