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

    ONE PING ONLY --- M42

    Scheduled Pinned Locked Moved
    Using Duet Controllers
    4
    20
    797
    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.
    • jay_s_ukundefined
      jay_s_uk @tecno
      last edited by

      @tecno whats your method of triggering it now?

      I would suggest using a custom gcode e.g. M5000 and creating a file called M5000.g in sys.
      The contents could then be

      M42 P0 S1
      G4 P500
      M42 P0 S0
      

      That would turn the output high for 0.5 seconds whenever M5000 is called

      Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

      tecnoundefined 1 Reply Last reply Reply Quote 1
      • tecnoundefined
        tecno @jay_s_uk
        last edited by tecno

        @jay_s_uk said in ONE PING ONLY --- M42:

        M42 P0 S1 G4 P500 M42 P0 S0

        Still continious, so question is if my M950 needs editing?

        jay_s_ukundefined 1 Reply Last reply Reply Quote 0
        • jay_s_ukundefined
          jay_s_uk @tecno
          last edited by

          @tecno what do you mean its still continuous?
          Are you using M42 in your config.g?

          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

          tecnoundefined 1 Reply Last reply Reply Quote 0
          • tecnoundefined
            tecno @jay_s_uk
            last edited by

            @jay_s_uk

            No M42 in config.g

            M950 in config.g
            M5000.g in sys

            Console command M5000

            It triggers but does it coninously instead of one shot

            jay_s_ukundefined 1 Reply Last reply Reply Quote 0
            • jay_s_ukundefined
              jay_s_uk @tecno
              last edited by

              @tecno maybe 0.5s is too long, try reducing to P100
              Otherwise it sounds like you might need to add something to pull it back down to ground once released?

              Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

              tecnoundefined 1 Reply Last reply Reply Quote 0
              • tecnoundefined
                tecno @jay_s_uk
                last edited by

                @jay_s_uk
                Tested that still same issue

                tecnoundefined 1 Reply Last reply Reply Quote 0
                • tecnoundefined
                  tecno @tecno
                  last edited by

                  @jay_s_uk said in ONE PING ONLY --- M42:

                  @tecno maybe 0.5s is too long, try reducing to P100
                  Otherwise it sounds like you might need to add something to pull it back down to ground once released?

                  Take away the 1K serial resistor on output?

                  jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                  • jay_s_ukundefined
                    jay_s_uk @tecno
                    last edited by

                    @tecno dunno, i'm not really an electronics guy

                    Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                    tecnoundefined 1 Reply Last reply Reply Quote 1
                    • tecnoundefined
                      tecno @jay_s_uk
                      last edited by

                      @jay_s_uk said in ONE PING ONLY --- M42:

                      @tecno dunno, i'm not really an electronics guy

                      Tested = same issue 😉

                      Hopefully sombody else chimes in ta advice what to try next.

                      Thanks !

                      fcwiltundefined 1 Reply Last reply Reply Quote 0
                      • fcwiltundefined
                        fcwilt @tecno
                        last edited by

                        @tecno

                        What are the specs on the device you have connected to that output?

                        What does it expect to see in the way of signal voltage and duration?

                        Frederick

                        Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

                        tecnoundefined 1 Reply Last reply Reply Quote 0
                        • tecnoundefined
                          tecno @fcwilt
                          last edited by tecno

                          @fcwilt said in ONE PING ONLY --- M42:

                          @tecno

                          What are the specs on the device you have connected to that output?

                          What does it expect to see in the way of signal voltage and duration?

                          Frederick

                          The IO output goes go GND to trigger camera ( switch is NO and swithes to ground )

                          https://forum.duet3d.com/topic/23976/mini5-bt-dongle-for-transmit/19

                          jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                          • jay_s_ukundefined
                            jay_s_uk @tecno
                            last edited by

                            @tecno can you change the M950 to

                            M950 P0 C"^io1.out" Q1
                            

                            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                            tecnoundefined 1 Reply Last reply Reply Quote 0
                            • tecnoundefined
                              tecno @jay_s_uk
                              last edited by

                              @jay_s_uk said in ONE PING ONLY --- M42:

                              @tecno can you change the M950 to

                              M950 P0 C"^io1.out" Q1
                              

                              Tried that still same issue with serial 1K, will test with no serial 1K

                              tecnoundefined 1 Reply Last reply Reply Quote 0
                              • tecnoundefined
                                tecno @tecno
                                last edited by

                                @fcwilt @jay_s_uk

                                IT WORKS NOW !!!

                                ;Camera trigger
                                M950 P0 C"!io1.out" Q1

                                Thank you guys, this forum is so helpful !

                                fcwiltundefined alankilianundefined 2 Replies Last reply Reply Quote 4
                                • fcwiltundefined
                                  fcwilt @tecno
                                  last edited by

                                  @tecno said in ONE PING ONLY --- M42:

                                  @fcwilt @jay_s_uk

                                  IT WORKS NOW !!!

                                  ;Camera trigger
                                  M950 P0 C"!io1.out" Q1

                                  Thank you guys, this forum is so helpful !

                                  Glad to hear you got it working.

                                  Do you understand why you needed that ! character?

                                  Frederick

                                  Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

                                  tecnoundefined 1 Reply Last reply Reply Quote 0
                                  • alankilianundefined
                                    alankilian @tecno
                                    last edited by

                                    @tecno

                                    Excellent.

                                    I did say:

                                    I would put a series resistor inline.
                                    Maybe 100 Ohms to 1,000 Ohms and try it.
                                    

                                    So I was already thinking 1,000 Ohms might be too large.

                                    I'm glad you stuck with the experiments and got it working!

                                    SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                                    tecnoundefined 1 Reply Last reply Reply Quote 0
                                    • tecnoundefined
                                      tecno @fcwilt
                                      last edited by

                                      @fcwilt said in ONE PING ONLY --- M42:

                                      @tecno said in ONE PING ONLY --- M42:

                                      @fcwilt @jay_s_uk

                                      IT WORKS NOW !!!

                                      ;Camera trigger
                                      M950 P0 C"!io1.out" Q1

                                      Thank you guys, this forum is so helpful !

                                      Glad to hear you got it working.

                                      Do you understand why you needed that ! character?

                                      Frederick

                                      This inverts the signal and by that the level rises above the trigg point in the BT circuit, right?

                                      fcwiltundefined 1 Reply Last reply Reply Quote 0
                                      • tecnoundefined
                                        tecno @alankilian
                                        last edited by

                                        @alankilian said in ONE PING ONLY --- M42:

                                        @tecno

                                        Excellent.

                                        I did say:

                                        I would put a series resistor inline.
                                        Maybe 100 Ohms to 1,000 Ohms and try it.
                                        

                                        So I was already thinking 1,000 Ohms might be too large.

                                        I'm glad you stuck with the experiments and got it working!

                                        Experiments are always good as long one tries to follow good practis, in my case ask questions frequently.

                                        Thanks for guidance!

                                        1 Reply Last reply Reply Quote 1
                                        • fcwiltundefined
                                          fcwilt @tecno
                                          last edited by

                                          @tecno said in ONE PING ONLY --- M42:

                                          @fcwilt said in ONE PING ONLY --- M42:

                                          @tecno said in ONE PING ONLY --- M42:

                                          @fcwilt @jay_s_uk

                                          IT WORKS NOW !!!

                                          ;Camera trigger
                                          M950 P0 C"!io1.out" Q1

                                          Thank you guys, this forum is so helpful !

                                          Glad to hear you got it working.

                                          Do you understand why you needed that ! character?

                                          Frederick

                                          This inverts the signal and by that the level rises above the trigg point in the BT circuit, right?

                                          Correct.

                                          Without that ! character the normal state of the output is low which is the state that triggers the camera. Adding that ! character makes the normal state of the output high.

                                          Frederick

                                          Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

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