Git Product home page Git Product logo

Comments (4)

thatch avatar thatch commented on May 3, 2024

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.

elfhelmp avatar elfhelmp commented on May 3, 2024

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.

precision avatar precision commented on May 3, 2024

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.

elfhelmp avatar elfhelmp commented on May 3, 2024

Ok thanks for the help, much appreciated mate, I will order the parts. Problem solved.

from octoprint-ledstripcontrol.

Related Issues (20)

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.