Skip to content
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

Neopixel Support #945

Closed
meganssmith opened this issue Aug 26, 2020 · 8 comments · Fixed by #1044
Closed

Neopixel Support #945

meganssmith opened this issue Aug 26, 2020 · 8 comments · Fixed by #1044
Labels
enhancement New feature or request

Comments

@meganssmith
Copy link

_Is your feature request related to a problem? Please describe.
NA

Describe the solution you'd like
It would be nice to have a button on octodash that would let us control the enclosure lights via the Neopixels control in the Enclosure Plugin or similar.

Link other projects
https://github.com/vitormhenrique/OctoPrint-Enclosure

Additional context
NA

@meganssmith meganssmith added the enhancement New feature or request label Aug 26, 2020
@dmiart
Copy link

dmiart commented Aug 26, 2020

I replaced one of six action with a GCODE to turn on the lights as a temporary solution to this.

In config replace one of them with

                           {
                                    "icon": "lightbulb",
                                    "command": "M150 B200 R200 U200",
                                    "color": "#44bd32",
                                    "confirm": false,
                                    "exit": true
                            },

200 sets the brightness of each individual color. In this case Blue Red Green are set to 200 out 255 brightness and so you will get white color. Don't set it to max or you might damage your LEDs. Mine are inside the IP67 housing and they don't even heat up with continuous use.

This is for when Neopixels are connected directly to the printer board though. Also you will have to recompile firmware to enable Neopixel support. In my opinion having them connected directly to the printer is better than when connected to enclosure. You get cool features such as heater indicator etc.

@meganssmith
Copy link
Author

I run the BTT SKR 1.3, so no real easy spot to put the neopixles on there. I have seen where some move the BLtouch to Y-max and put the pixels on the servo pins, but with them working well on the Pi, I don't feel the need to sort out that mess in Marlin.

@dmiart
Copy link

dmiart commented Aug 26, 2020

I think you can also re-use some of the monochrome LCD pins EXP to drive PWM on those strips. Just need to find one pin and attach second pin to the ground since it's powered externally. But yeah I agree it's a pain to set it up if there is no dedicated pinout on the board for it.

@UnchartedBull
Copy link
Owner

Will be added as a custom action.

@UnchartedBull
Copy link
Owner

Docs: https://github.com/UnchartedBull/OctoDash/wiki/Custom-Actions#predefined-actions. Plese let me know if this works once the new release is ready. My LED strips are directly hooked up to the printers mainboard, so I can't test it.

@meganssmith
Copy link
Author

OK, I can do that, thank You!

@carcamerarig
Copy link

I think you can also re-use some of the monochrome LCD pins EXP to drive PWM on those strips. Just need to find one pin and attach second pin to the ground since it's powered externally. But yeah I agree it's a pain to set it up if there is no dedicated pinout on the board for it.

Would you be able to help me set this up on an Einsy board?

@meganssmith
Copy link
Author

OK, Test and it works! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants