google / OctoPrint-LEDStripControl

OctoPrint plugin that intercepts M150 GCode commands and controls local GPIOs connected to LEDs.
Apache License 2.0
63 stars 50 forks source link

Plug-in enables two lights per one M150 command #35

Open professor305 opened 4 years ago

professor305 commented 4 years ago

When entering the "M150" command 2 lights of the RGB lights come on. For example,

I've tried uninstalling/reinstalling the plug-in to no notable change in the actions above and have verified pin location and even moved to other GPIO pins.

Use pigpiod is unchecked

cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Octoprint 1.4.0 LED setup 12v led strip ran thru relays All relays work fine with enclosure plug in but would have to be toggled on/off. But within this plugin, not so well.

chrstrvs commented 4 years ago

Hi!

I'm experiencing the same issue. Have you had any luck finding a solution?

Regards, Christian

precision commented 4 years ago

Are either or both of you using pigpiod? I hate to admit it, but OctoPrint setup is really outdated. I'll see if I can get some time later this week to get my Pi upgraded with the latest OctoPrint to reproduce.

chrstrvs commented 4 years ago

I'm sorry if I have wasted your time, but it turns out I'm an idiot =P Before wiring a bunch of relays I wanted to try out your plugin and the LED strips powering them directly from the Pi, but it wasn't until now that I realized that the GPIO pins are not grounded to make the LED strip light up, but powered on, so of course it won't work. I'm a complete beginner when it comes to Pi's and I've never used them for anything else than Octoprint. Can the GPIO pins be connected to ground?