Comments (4)
From this:
If I send M150 R U B then the LEDs turn off.
M150 R255 turns on Blue.
M150 turns ON all colors.
For validating what I think is happening, can you also try with "M150 R", "M150 U", "M150 B" -- each should be a distinct color. Ideally red, green, and blue. Can you report on what the colors are; I suspect your setup will look like aqua, violet, and yellow-green. Then if you run "M150 R U" it should be blue, "M150 R B" should be green, and "M150 U B" should be red.
If that's the case, then your relays are working but the output is inverted. Does your relay board have connections labeled "NC" and "NO"? If so, switch to using the other.
from octoprint-ledstripcontrol.
M150 R - aqua
M150 U - violet
M150 B - yellow green
M150 R U - blue
M150 R B - green
M150 U B - red
You were right. After moving to NC contacts, the commands worked as they should have. So the relays have to be in active state in order to keep the LEDs off. When I shutdown the RPI all LEDs turn on, which means this is not a good solution either. So... how do other people connect their LED strips to get it going? Can you please point me to a valid tutorial or give me a little explanation? many thanks!
from octoprint-ledstripcontrol.
Most people connect their LEDs via mosfets. Something ala https://learn.adafruit.com/rgb-led-strips/usage I'm using a custom board (OSHW release soon) designed by @thatch
from octoprint-ledstripcontrol.
Ok thanks for the help, much appreciated mate, I will order the parts. Problem solved.
from octoprint-ledstripcontrol.
Related Issues (20)
- Problem LEDStripControl
- KeyError: 'w' HOT 7
- Plugin does not save\function HOT 13
- adressable leds HOT 1
- add a button on octopi page to light on/off the led HOT 1
- Cannot trigger with M150 command (Prusa I3 Mk2s) HOT 9
- M150 Codes Ignored By Terminal HOT 2
- Help HOT 1
- Cabling + Compatibility Ender 3 HOT 9
- Just a simple white LED strip HOT 3
- Orange Pi Support HOT 4
- Unable To Save Config Without Reboot Then Freeze HOT 7
- Wrong link for pigpiod.
- After updating to newest octoprint version - only HOT 13
- After install, Octoprint can't start up HOT 5
- Documentation link not working HOT 2
- Not running consistently HOT 8
- Not an actual issue, more of a question. HOT 1
- Plug-in enables two lights per one M150 command HOT 3
- Settings will not save and octo hangs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octoprint-ledstripcontrol.