• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    callielli
    last edited by 22 Jun 2020, 23:06

    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
    • undefined
      aidar
      last edited by 23 Jun 2020, 11:53

      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
      • undefined
        Phaedrux Moderator
        last edited by 23 Jun 2020, 21:47

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

        Z-Bot CoreXY Build | Thingiverse Profile

        undefined 2 Replies Last reply 24 Jun 2020, 00:49 Reply Quote 0
        • undefined
          callielli @Phaedrux
          last edited by 24 Jun 2020, 00:49

          @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
          • undefined
            callielli @Phaedrux
            last edited by 24 Jun 2020, 00:51

            @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?

            undefined 1 Reply Last reply 24 Jun 2020, 02:41 Reply Quote 0
            • undefined
              Phaedrux Moderator @callielli
              last edited by 24 Jun 2020, 02:41

              @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

              undefined 1 Reply Last reply 24 Jun 2020, 02:57 Reply Quote 0
              • undefined
                callielli @Phaedrux
                last edited by 24 Jun 2020, 02:57

                @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

                undefined 1 Reply Last reply 24 Jun 2020, 03:11 Reply Quote 0
                • undefined
                  callielli @callielli
                  last edited by 24 Jun 2020, 03:11

                  @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
                  • undefined
                    Phaedrux Moderator
                    last edited by Phaedrux 24 Jun 2020, 03:12

                    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

                    undefined 1 Reply Last reply 24 Jun 2020, 03:23 Reply Quote 0
                    • undefined
                      callielli @Phaedrux
                      last edited by 24 Jun 2020, 03:23

                      @Phaedrux

                      Thanks, I'll get it in there!

                      Appreciate your guidance!

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        callielli
                        last edited by 24 Jun 2020, 03:30

                        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
                        6 out of 11
                        • First post
                          6/11
                          Last post
                        Unless otherwise noted, all forum content is licensed under CC-BY-SA