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

    Configure external trigger - using Momentary Switch for LED

    Scheduled Pinned Locked Moved Unsolved
    Duet Hardware and wiring
    3
    11
    485
    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.
    • callielliundefined
      callielli
      last edited by

      Hi guys,

      I have a question for the brains' trust.

      Can I use M581 to turn on an LED strip light via the Duet3?

      The PSU voltage and the LED are both 24V, I have a momentary switch spare which I can change to a latching setup however if I can direct the power through the board and use the mom-switch acting as a an end stop trigger of sorts, that would be my preference.

      Is M581 able to be used without a print being active? Or is it only called from inside a processing G-Code file?

      Would my code look something like:

      M581 P"e0stop" T2 C1 ; invoke trigger 2 when a rising edge is detected on the E1 endstop input

      but need to define a trigger too?

      Thanks everyone

      1 Reply Last reply Reply Quote 0
      • aidarundefined
        aidar
        last edited by

        Using Duet3 board makes me assume you are using latest firmware on it. So:

        https://duet3d.dozuki.com/Wiki/Gcode#Section_M581_RepRapFirmware_3_01RC2_and_later

        1 Reply Last reply Reply Quote 0
        • Phaedruxundefined
          Phaedrux Moderator
          last edited by

          Send M115 to verify what firmware version you are actually using. should be 3.1.1

          Z-Bot CoreXY Build | Thingiverse Profile

          callielliundefined 2 Replies Last reply Reply Quote 0
          • callielliundefined
            callielli @Phaedrux
            last edited by

            @Phaedrux FIRMWARE_NAME: RepRapFirmware for Duet 3 MB6HC FIRMWARE_VERSION: 3.01-RC9 ELECTRONICS: Duet 3 MB6HC v1.01 or later FIRMWARE_DATE: 2020-04-21b1

            1 Reply Last reply Reply Quote 0
            • callielliundefined
              callielli @Phaedrux
              last edited by

              @Phaedrux

              From what I can see there, M581 can be triggered when the SD card has an active GCode being printed.

              Is there a function I can use to trigger all the time? ie: when the Duet has power?

              Phaedruxundefined 1 Reply Last reply Reply Quote 0
              • Phaedruxundefined
                Phaedrux Moderator @callielli
                last edited by

                @callielli said in Configure external trigger - using Momentary Switch for LED:

                Is there a function I can use to trigger all the time? ie: when the Duet has power?

                That is the default of the R parameter as far as I read it.

                @callielli said in Configure external trigger - using Momentary Switch for LED:

                FIRMWARE_VERSION: 3.01-RC9

                Please update to 3.1.1

                Z-Bot CoreXY Build | Thingiverse Profile

                callielliundefined 1 Reply Last reply Reply Quote 0
                • callielliundefined
                  callielli @Phaedrux
                  last edited by

                  @Phaedrux

                  I have just tried to upload the firmware downloaded via the RRF Config tool and get an error:

                  M997 S0
                  

                  Error: M997: In-application programming binary "Duet3_SDiap_MB6HC.bin" not found

                  callielliundefined 1 Reply Last reply Reply Quote 0
                  • callielliundefined
                    callielli @callielli
                    last edited by

                    @callielli said in Configure external trigger - using Momentary Switch for LED:

                    @Phaedrux

                    I have just tried to upload the firmware downloaded via the RRF Config tool and get an error:

                    M997 S0
                    Error: M997: In-application programming binary "Duet3_SDiap_MB6HC.bin" not found

                    I will try to start from scratch on a formatted card as I am not confident the issue hasn't been introduced by something silly I might have missed.

                    1 Reply Last reply Reply Quote 0
                    • Phaedruxundefined
                      Phaedrux Moderator
                      last edited by Phaedrux

                      https://github.com/Duet3D/RepRapFirmware/releases/download/3.0/Duet3_SDiap_MB6HC.bin

                      You're just missing the IAP file from the 3.0 release.

                      Z-Bot CoreXY Build | Thingiverse Profile

                      callielliundefined 1 Reply Last reply Reply Quote 0
                      • callielliundefined
                        callielli @Phaedrux
                        last edited by

                        @Phaedrux

                        Thanks, I'll get it in there!

                        Appreciate your guidance!

                        1 Reply Last reply Reply Quote 0
                        • callielliundefined
                          callielli
                          last edited by

                          M115
                          FIRMWARE_NAME: RepRapFirmware for Duet 3 MB6HC FIRMWARE_VERSION: 3.1.1 ELECTRONICS: Duet 3 MB6HC v1.01 or later FIRMWARE_DATE: 2020-05-19b2

                          Sorted - thanks mate!

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Unless otherwise noted, all forum content is licensed under CC-BY-SA