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

    Laser stopped working after RRF3 upgrade

    Scheduled Pinned Locked Moved
    General Discussion
    4
    22
    1.0k
    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.
    • FelixHundefined
      FelixH @Phaedrux
      last edited by FelixH

      @phaedrux

      on that macro I have nothing

      if I send the M452 the machine does change to laser mode

      if I send M542 S0 by itself, I don't know what happens because I haven't tried it yet

      I did take note of that, but as I said I haven't had the chance to do movements with it

      1 Reply Last reply Reply Quote 0
      • FelixHundefined
        FelixH
        last edited by

        well I've done some "progress", if I can tell it that...

        The good news is that now everything is working as expected. Router, RPM, Laser, etc...

        The bad news is that, in order to do that, I had to downgrade the firmware to the latest RRF2 available with the Ooznest web overlay. So now I have everything as it used to be.

        That confirms that there is no problem with the board, as far as I understand it.

        Now I have two boards, one with RRF2 and one with RRF3. I have order some components to put together another Laser breakout board and do some experiments. I will borrow an oscilloscope from work and see if I can find something out here, although my skills with the oscilloscope are worse than minimal...

        It would be great if somebody with time on their hands could try to replicate this setup, just to compare.

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

          Yes we are looking into it. As far as I can tell your config is correct for RRF3.

          Z-Bot CoreXY Build | Thingiverse Profile

          FelixHundefined o_lampeundefined 2 Replies Last reply Reply Quote 0
          • FelixHundefined
            FelixH @Phaedrux
            last edited by

            @phaedrux well, it‘s comforting to know that. At least it seems that the whole thing was not because some oversight on my part…

            1 Reply Last reply Reply Quote 0
            • o_lampeundefined
              o_lampe @Phaedrux
              last edited by o_lampe

              @phaedrux said in Laser stopped working after RRF3 upgrade:

              As far as I can tell your config is correct for RRF3.

              @felixh said in Laser stopped working after RRF3 upgrade:

              M106 P2 S255 ; turn on 12v PSU
              ...
              M452 C"exp.heater3" F200

              I wonder where and when " P2" was defined?
              Is it a good idea to power up the laser before declaring the control pin for Laser mode?
              What's in "config-user-setting.g"? (you call it at the end of config.g)

              FelixHundefined 1 Reply Last reply Reply Quote 0
              • FelixHundefined
                FelixH @o_lampe
                last edited by

                @o_lampe

                The M106 turns on the PSU for the laser, as it is a separate 12v PSU, which does not need to be powered on when I am on CNC mode, for example. So I turn it ON and OFF with a solid state relay using a FAN port I declared somewhere.

                The config-user-setting.g does not contain anything.

                o_lampeundefined dc42undefined 2 Replies Last reply Reply Quote 0
                • o_lampeundefined
                  o_lampe @FelixH
                  last edited by

                  @felixh
                  That's understood, but why do you switch it ON before you have the Laser-pin under control? There might be an internal pullup or something on the Laser breakout board? (I don't know)

                  1 Reply Last reply Reply Quote 0
                  • dc42undefined
                    dc42 administrators @FelixH
                    last edited by

                    @felixh you should use this line for RRF3:

                    M452 C"!exp.heater3" F200

                    The laser will turn on when you execute a G1 move with an appropriate S parameter to set the laser power.

                    Duet WiFi hardware designer and firmware engineer
                    Please do not ask me for Duet support via PM or email, use the forum
                    http://www.escher3d.com, https://miscsolutions.wordpress.com

                    FelixHundefined 2 Replies Last reply Reply Quote 0
                    • FelixHundefined
                      FelixH @dc42
                      last edited by

                      @dc42 and so I did, but doesn‘t work. The laser goes full blast as soon as I power it on.

                      I will give it another go this afternoon, however. Just to make extra sure.

                      1 Reply Last reply Reply Quote 0
                      • FelixHundefined
                        FelixH @dc42
                        last edited by

                        @dc42 said in Laser stopped working after RRF3 upgrade:

                        M452 C"!exp.heater3" F200

                        I just tested it again. It doesn't make any difference.
                        I just had two boards side, by side. One with RRF 3.3 and the other with RRF2.x (don't remember which one it is). On the RRF3, the laser turns ON as soon as I power up, no matter if C"exp.heater3" or C"!exp.heater3".

                        I even skipped the macro all together and I added the

                        M452 C"exp.heater3" F200 (with and without the ! on the config.g file...

                        I am willing to to a video if needed.

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

                          @felixh said in Laser stopped working after RRF3 upgrade:

                          I am willing to to a video if needed.

                          Being able to see what you see couldn't hurt. Photos of the wiring perhaps help.

                          Z-Bot CoreXY Build | Thingiverse Profile

                          FelixHundefined 2 Replies Last reply Reply Quote 0
                          • FelixHundefined
                            FelixH @Phaedrux
                            last edited by

                            @phaedrux I will do just that, but it will have to wait until I get the parts to prepare another breakout board for the laser, otherwise it is a mess and it would complicate things even more

                            1 Reply Last reply Reply Quote 0
                            • FelixHundefined
                              FelixH @Phaedrux
                              last edited by FelixH

                              @phaedrux
                              IMG_4669.jpg

                              So this is my setup. For testing purposes I am using a 12v PSU which powers both the laser and the Duet.

                              The small PCB in the middle is the Laser breakout board recommended for controlling a Laser with the Duet.

                              The thin wire between both boards connect the PWM input on the breakout board and the pin "exp.heater3" on the Duet.

                              If I am running FFR2.x the setup works as expected:

                              • I can switch between Laser and CNC mode without problems
                              • I can turn ON the laser with M3 Sx commands (I am aware this doesn't work on RRF3)
                              • I can turn OFF the laser with the M5 command

                              If I run RRF3.x the very same setup:

                              • I can switch between Laser and CNC modes
                              • The Laser powers up immediately when I turn on the PSU
                              • Sending M5 does NOT switch OFF the Laser
                              • changing C"exp.heater3" for C"!exp.heater3" or C"exp.8" or C"!exp.8" doesn't change anything of the above
                              1 Reply Last reply Reply Quote 0
                              • FelixHundefined
                                FelixH
                                last edited by FelixH

                                well, good news everyone.

                                After many tests done on a spare Duet2 (clone) board I finally got it to work. However, I cannot explain why. The only thing I did was to re-flash the firmware again, wire everything again (including putting terminals on some cables) and test.

                                hopefully my experience will be of some use to someone with the same experience...

                                EDIT: of course, many thanks at everyone who brainstormed with me! It is really appreciated!

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

                                  😒 That feeling you get when it starts working again without understanding why.

                                  Z-Bot CoreXY Build | Thingiverse Profile

                                  FelixHundefined 1 Reply Last reply Reply Quote 0
                                  • FelixHundefined
                                    FelixH @Phaedrux
                                    last edited by

                                    @phaedrux you get me!

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