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

    NEJE-like Laser as CNC upgrade

    Scheduled Pinned Locked Moved Solved
    Laser Cutters
    11
    47
    3.3k
    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.
    • dc42undefined
      dc42 administrators @A Former User
      last edited by

      @bearer said in NEJE-like Laser as CNC upgrade:

      a little OT, but M997 ignores M505 or is it just me?

      Yes, M997 always looks in /sys, and uploads of .bin and .uf2 files always go into /sys.

      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

      1 Reply Last reply Reply Quote 0
      • g0rgundefined
        g0rg
        last edited by

        @FelixH I already setup my workbee with autosquare on homing by adding a second switch on Y axis.

        As a test purpose i updated a second duet wifi board with RRF3 and i still try to understand how to wire my laser and still try to understand how to spell the fan port i would like to use 😞 maybe a help from @sh12 🙄

        Duet 2 wifi , Ooznest Worbee CNC 1510 , Neje Laser 20w. Ruida 100w Co2 Laser 6090. Some homemade laser cnc grbl 1515.

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

          The recommended way to drive an active-high laser PWM input is to use a 74HCT02 to invert one of the PWM signals on the expansion connector and gate it with +3.3V. However, if your Duet 2 is out of warranty, you could tap into one of the heater mosfet gate pins instead, if you are not using all three heater outputs.

          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

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

            Hi all again,

            I am today trying to wire the laser but, before I do I have a doubt regarding the following diagram:

            https://duet3d.dozuki.com/Wiki/Laser_PWM_control

            in this diagram, what is exactly HEATER_3 ?? It is the heated bed, extruder 1 or extruder 2 ?? Also, I am assuming is the "negative" pin of said heater, right?

            1 Reply Last reply Reply Quote 0
            • PopstarPorcupineundefined
              PopstarPorcupine
              last edited by

              I installed a similar NEJE laser ("30W" with ~7.5W optical) and got it working easier than expected after reading all the forum posts. Maybe having the Duex5 was key as it just plugs into +/- of servo plug. The TTL Board that comes with unit has 3 modes when you push the pwr button: Off, Manual PWM via board buttons, and PWM-input-controlled.

              I have been using Lightburn for Marlin with "inline" selected for "Laser Control Commands" to make gcode.

              ;Laser T6 Tool Definition
              M307 H6 A-1 C-1 D-1; disable heater6 channel
              M563 P6 D0 X3 ; Tool 6 Laser on U axis no heater or fan (change if on X axis)

              Tpre setup:
              M452 P6 R255 F10000 S1 I0 ; switch to laser mode Heater 6 PWM/servo to control the laser
              M42 P6 S0 ; Ensure Laser Off
              TFree setup:
              M451; Go back to FFF 3D print Mode

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

                @PopstarPorcupine thanks a lot for your info. I prepared the mentioned board and I used the heated-bed PWM port. I still have to bring it on-line, however. Not tried it yet. I've been really busy preparing a new electronics box for my Workbee with the Duet, the SuperPID and everything else... I think your snippets will be much uselfull. Thanks a lot again.

                EDIT: what about the Lightburn software? is it worth it? There are not many options for for mac users, Lightburn beign one of the few I found...

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

                  Well just an update on my side. I finally finished upgrading my Workbee with a worthy electronics box where everything is well organized. I never liked it to have the controller board exposed and on the moving gantry.

                  Anyway, I've been able to put my laser to work by following the indications here. I used the brake-out board suggested and it works just fine. Amazingly enough, it worked on the first try, which for my standards is amazing to say the least.

                  I have a problem though when switching back to CNC mode and it is the following error:

                  M98 P"0:/macros/Laser/Switch to CNC"
                  CNC mode selected Error: G10: Attempt to set/report offsets and temperatures for non-existent tool: 999
                  

                  The macro I'm using to switch back to CNC mode is the following, which is a mix between what I've seen and what I found on my config.g file

                  M106 P2 S0  ; turn off 12v PSU
                  
                  M453 ; Put the machine into CNC Modes
                  
                  M140 H-1 ; Disable heated bed
                  M564 S1 H1 ; Disable jog commands when not homed
                  M911 S21.0 R23 P"G91 G1 Z3 F1000" ; Configure power loss resume
                  M501 ; Load Stored Parameters 
                  M98 Pcustomconfig.g ; Execute custom config settings
                  

                  any clue in what is this about? it would be much appreciated!

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

                    @FelixH said in NEJE-like Laser as CNC upgrade:

                    M501 ; Load Stored Parameters M98 Pcustomconfig.g ; Execute custom config settings

                    What do you have in config-override.g and customconfig.g?

                    Z-Bot CoreXY Build | Thingiverse Profile

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

                      @Phaedrux thanks a lot for your help. Actually shortly after I posted the question I found where the problem was. The command disabling the heated bed was being called twice. I cleaned it up and now everything seems to be working just fine. Thanks a lot again!

                      1 Reply Last reply Reply Quote 1
                      • mdalacuundefined
                        mdalacu
                        last edited by mdalacu

                        Hi.
                        I have successfully installed a NEJE 30W laser on my MPCNC powered by Duet 2 Wifi, FW version 3.2.2.
                        I have not used any additional boards or circuits other than the supplied test board.
                        The test board is ideal as you can put the laser in test mode with power 001 to focus it and than switch to TTL mode to run the job.
                        This is the pins that I have used:
                        Duet2wifiNEJElaser.jpg
                        In the configuration i have added this lines and commented out the one with M453:

                        ;M950 H6 C"nil"
                        M452 C"exp.heater6" R255 S1 F20000
                        

                        I hope that helps someone as i had to read hundreds of forum pages to get this far...😬 😂

                        chimaeraghundefined 1 Reply Last reply Reply Quote 0
                        • chimaeraghundefined
                          chimaeragh @mdalacu
                          last edited by

                          @mdalacu Are there not any downsides with connecting this way? The laser wiki states you need a specific electronics to attach a laser to the Duet2. I'm thinking you may fry your Duet if 12v from your test board runs back into it.

                          Duet 2 Wifi, Ooznest Workbee CNC 1510

                          mdalacuundefined 1 Reply Last reply Reply Quote 0
                          • mdalacuundefined
                            mdalacu @chimaeragh
                            last edited by

                            @chimaeragh I really hope not. The test board underneath the display has an integrated circuit. I think it basically does the same thing as the circuit on the wiki. But I am not an electonist...by any means.
                            What can I tell you is that after almost 1h of total burning time, everything still works perfectly! 😉

                            chimaeraghundefined FelixHundefined 2 Replies Last reply Reply Quote 0
                            • chimaeraghundefined
                              chimaeragh @mdalacu
                              last edited by chimaeragh

                              @mdalacu I hope so. From the wiki... [Laser PWM Control( https://duet3d.dozuki.com/Wiki/Laser_PWM_control)

                              The circuit diagram for the needed circuit, including protection for shorting of 3v3 line to prevent unintended Laser Power on is shown below.

                              alt text

                              I do not think the test board has a 74HCT02 Quad NOR Gate.

                              Duet 2 Wifi, Ooznest Workbee CNC 1510

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

                                @mdalacu I don't think they designed the circuit @chimaeragh displays just for the sake of it. I actually build that circuit with TTH components and it has been working great

                                1 Reply Last reply Reply Quote 0
                                • mdalacuundefined
                                  mdalacu @chimaeragh
                                  last edited by mdalacu

                                  @chimaeragh @FelixH Maybe someone with more knowledge than us could look at that test board and tell us if it is safe.
                                  The test board has an IC roughly the same size as 74HCT02 underneath the 3 digit display, but I can not tell which one. I don't what to disassemble the board since it is working just great. 😌

                                  chimaeraghundefined FelixHundefined 2 Replies Last reply Reply Quote 0
                                  • chimaeraghundefined
                                    chimaeragh @mdalacu
                                    last edited by

                                    @mdalacu Upon further investigation, I am certain the 74HCT02 Quad NOR Gate is required to prevent shorting of the 3v3 line and accidentally turning on the laser. I will advise you to get the board if you plan on doing much laser work. It cost me less than $42 to get a batch of 5 of these boards made, assembled and shipped to me at jlcpcb.com

                                    Duet 2 Wifi, Ooznest Workbee CNC 1510

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

                                      @mdalacu said in NEJE-like Laser as CNC upgrade:

                                      @chimaeragh @FelixH Maybe someone with more knowledge than us could look at that test board and tell us if it is safe.
                                      The test board has an IC roughly the same size as 74HCT02 underneath the 3 digit display, but I can not tell which one. I don't what to disassemble the board since it is working just great. 😌

                                      mmm... I do not need such information. As I said, I made myself the Duet recommended board for using lasers and it works as advertised...

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