• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    Wobi
    last edited by 14 Jan 2024, 15:32

    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

    undefined 1 Reply Last reply 14 Jan 2024, 16:50 Reply Quote 0
    • undefined
      Exerqtor @Wobi
      last edited by 14 Jan 2024, 16:50

      @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
      • undefined
        Wobi
        last edited by 15 Jan 2024, 07:45

        Thanks, I'll test that

        1 Reply Last reply Reply Quote 0
        • undefined
          Wobi
          last edited by 15 Jan 2024, 08:42

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

          undefined 1 Reply Last reply 15 Jan 2024, 12:35 Reply Quote 0
          • undefined
            droftarts administrators @Wobi
            last edited by 15 Jan 2024, 12:35

            @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
            • undefined
              Wobi
              last edited by 16 Jan 2024, 15:33

              @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

              undefined 1 Reply Last reply 16 Jan 2024, 15:55 Reply Quote 0
              • undefined
                droftarts administrators @Wobi
                last edited by 16 Jan 2024, 15:55

                @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
                • undefined
                  Wobi
                  last edited by 17 Jan 2024, 14:11

                  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
                  • undefined droftarts marked this topic as a question 17 Jan 2024, 14:48
                  • undefined droftarts has marked this topic as solved 17 Jan 2024, 14:48
                  1 out of 8
                  • First post
                    1/8
                    Last post
                  Unless otherwise noted, all forum content is licensed under CC-BY-SA