Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Stealthburner LED colors and brightness change with a macro

    Scheduled Pinned Locked Moved Solved
    Duet Hardware and wiring
    3
    8
    291
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Wobiundefined
      Wobi
      last edited by

      So far a change only works at startup. All further M150 commands entered in the WDC console have no effect.
      Duet3 Mini5+; version 3.5.0-rc.1
      config.g entry:
      M950 E0 C"led" T2 Q3000000
      M150 E0 R255 P100 S1 F1
      M150 E0 U255 B255 P100 S2 F1
      M150 E0 U255 B255 P100 S3 F0
      What does the M150 command have to look like so that the color or brightness can be changed at any time with a macro?

      Many thanks for your help

      Exerqtorundefined 1 Reply Last reply Reply Quote 0
      • Exerqtorundefined
        Exerqtor @Wobi
        last edited by

        @Wobi I've writen a macro set to controll the Stealthburner leds.

        The one on git is somewhat outdated, but should work with RRF 3.5.0 beta 2/3 (can't remember exactly) and ondwards.

        Please backup your current config before you try mine out, since i haven't had time to push the updates to git in quite some time (as you can see).

        1 Reply Last reply Reply Quote 0
        • Wobiundefined
          Wobi
          last edited by

          Thanks, I'll test that

          1 Reply Last reply Reply Quote 0
          • Wobiundefined
            Wobi
            last edited by

            Thank you, that worked.
            I just have to use the M950 command on every change
            Problem solved

            droftartsundefined 1 Reply Last reply Reply Quote 0
            • droftartsundefined
              droftarts administrators @Wobi
              last edited by

              @Wobi You should not need to set M950 each time. Can you post the code you are using? I think you might be misunderstanding the use of the S parameter and F parameter.

              You can also set the number of LEDs in M950 with the U parameter, which will save memory.

              Ian

              Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

              1 Reply Last reply Reply Quote 0
              • Wobiundefined
                Wobi
                last edited by

                @Wobi said in Stealthburner LED colors and brightness change with a macro:
                Hello Ian, the start code of config.g is above, here is my macro code to turn off the two nozzle LEDs:
                M950 E0 C"led" T2 Q3000000
                M150 E0 R255 P100 S1 F1
                M150 E0 U255 B255 P0 S2 F1
                M150 E0 U255 B255 P0 S3 F0

                droftartsundefined 1 Reply Last reply Reply Quote 0
                • droftartsundefined
                  droftarts administrators @Wobi
                  last edited by

                  @Wobi I think you have the S parameter a bit wrong. You have S1 followed by S2 then S3. The S parameter isn't the LED number, it is the number of LEDs to be set to that colour, ie S1 sets the first LED, S2 sets the next two LEDs, and S3 sets the next 3 LEDS. So it is implying you have six LEDs. I think you only have three! Try:

                  M150 E0 R255 P100 S1 F1
                  M150 E0 U255 B255 P0 S2 F0
                  

                  You shouldn't need the M950 line.

                  Ian

                  Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                  1 Reply Last reply Reply Quote 0
                  • Wobiundefined
                    Wobi
                    last edited by

                    Hello Ian, that's right, that's how it works without the M950 command.
                    Thank you very much and problem solved now, thank you.

                    1 Reply Last reply Reply Quote 0
                    • droftartsundefined droftarts marked this topic as a question
                    • droftartsundefined droftarts has marked this topic as solved
                    • First post
                      Last post
                    Unless otherwise noted, all forum content is licensed under CC-BY-SA