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

Laser always on

Scheduled Pinned Locked Moved Solved
Laser Cutters
4
19
819
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
    shiga
    last edited by 9 Aug 2020, 07:08

    This post is deleted!
    1 Reply Last reply Reply Quote 0
    • undefined
      shiga @dc42
      last edited by 10 Aug 2020, 16:51

      @dc42 да 7 булавок на земле, я делаю это в соответствии с инструкциями ВикиIMG_20200809_100128.jpg IMG_20200807_203959.jpg

      undefined 1 Reply Last reply 10 Aug 2020, 17:52 Reply Quote 0
      • undefined
        shiga @shiga
        last edited by 10 Aug 2020, 17:52

        @shiga said in Laser always on:

        @dc42 да 7 булавок на земле, я делаю это в соответствии с инструкциями ВикиIMG_20200809_100128.jpg IMG_20200807_203959.jpg

        pin heater 3 is present at 3.3 volts, switching on without sd card is also present at 3.3 volts.

        1 Reply Last reply Reply Quote 0
        • undefined
          arhi
          last edited by 10 Aug 2020, 18:15

          Check your driver without duet. I made the similar adapter (same schematic) for @omni 's lazor and when I turned the duet on lazor was 100% on. I turned lazor on from the duet and it turned off :D. So I removed the whole adapter that's inverting the PWM signal (and rising it to 5V) and connected heater.3 directly to PWM pin of the laser driver and now it works ok. When I expect laser to be off it's off, when I expect it to be on, it's on. Power nicely go from 0 to 100%. The only issue is when I turn the duet on for the first time (poweron) the laser turn on and back off. The on period is very short but it is visible. It will not be a problem as the main power to the laser is manually controled via switch and normally laser will receive it's 12V after the duet is powered on :).

          So check what polarity your PWM port want to turn on/off the laser, maybe you do not need to be inverting it.

          undefined 1 Reply Last reply 12 Aug 2020, 16:01 Reply Quote 0
          • undefined
            Phaedrux Moderator @shiga
            last edited by 10 Aug 2020, 20:08

            @shiga said in Laser always on:

            Firmware Version: 2.02(RTOS) (2018-12-24b1)
            WiFi Server Version: 1.22
            Web Interface Version: 1.22.6

            Update your firmware to at least 2.05.1

            Z-Bot CoreXY Build | Thingiverse Profile

            undefined 1 Reply Last reply 11 Aug 2020, 17:39 Reply Quote 0
            • undefined
              shiga @Phaedrux
              last edited by 11 Aug 2020, 17:39

              @Phaedrux updated. this solution didn't help!

              1 Reply Last reply Reply Quote 0
              • undefined
                shiga @arhi
                last edited by 12 Aug 2020, 16:01

                @arhi please tell me how you did it? how did you raise it to 5 volts? And what was the piece of config.g and the circuit at least by hand, how did you connect it?

                undefined 1 Reply Last reply 12 Aug 2020, 17:05 Reply Quote 0
                • undefined
                  arhi @shiga
                  last edited by arhi 8 Dec 2020, 17:06 12 Aug 2020, 17:05

                  @shiga said in Laser always on:

                  @arhi please tell me how you did it? how did you raise it to 5 volts? And what was the piece of config.g and the circuit at least by hand, how did you connect it?

                  originally I used same circuit as you have here

                  08c8efea-01ad-4783-b4e9-a0ecc37ba452-image.png

                  so 3v to 1AB and 1Y to 2A and heater3 to 2B, this inverts the output of the heater3 and outputs it on 2Y at 5V level, and that 2Y I connected to PWM input on the laser driver (it is some aliexpress 15W laser with external driver that has a fan on itself)

                  and this made laser ON during idle, when I do G1X10S255 the laser goes off, if I do G1X10S125 laser goes to 50% power, G1X10S10 laser go to 90% power ..

                  so this driver obviously need non-inverted signal so what I did is just REMOVE the whole 74hct02 and connected HEATER3 DIRECTLY TO PWM on the laser driver, obviously this laser driver do not have a problem with 3V on the pwm so no need to get the signal up to 5V

                  when I power on duet laser blinks for a moment (milliseconds or less) and is off, when I do G1X10S10 it is at 10% during the move, G1X10S255 it is at 100% during the move, and it is off after the move

                  The only config line required:

                  M452 C"exp.heater3" F100 R255 S0 ; laser uses heater3 pin,  PWM frequency 100Hz, 0-255 is 0-100%, not sticky use S with G1
                  
                  undefined 1 Reply Last reply 13 Aug 2020, 19:21 Reply Quote 0
                  • undefined
                    shiga @arhi
                    last edited by 13 Aug 2020, 19:21

                    @arhi I did as you said, I connected the pwm directly, the laser was controlled, but not at full power, it was very dim, and did not shoot at S255. The macro to turn on the laser mode is as follows:
                    M563 P0 D-1 H-1; clear tool
                    M563 P0 D0; create a tool - no heaters
                    M307 H3 A-1 C-1 D-1; Clear heater
                    M452 P3 R255 F20000 I0
                    what should I do next?

                    undefined 1 Reply Last reply 13 Aug 2020, 20:19 Reply Quote 0
                    • undefined
                      arhi @shiga
                      last edited by 13 Aug 2020, 20:19

                      @shiga so if you do

                      G1X10S0
                      

                      your laser will move and will be OFF

                      and if you do then

                      G1X20S255
                      

                      it will move and be ON but not 100% ?

                      undefined 1 Reply Last reply 14 Aug 2020, 03:55 Reply Quote 0
                      • undefined
                        shiga @arhi
                        last edited by 14 Aug 2020, 03:55

                        @arhi said in Laser always on:

                        so if you do
                        G1X10S0

                        your laser will move and will be OFF
                        and if you do then
                        G1X20S255

                        it will move and be ON but not 100% ?

                        yes, quite right. g1x10s10 is dim, g1x10s100 is brighter, g1x10s255 is off. and if g1x10s250 also shines like on s100.grp.jpg

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          arhi
                          last edited by 14 Aug 2020, 17:27

                          dunno, that makes no sense to me, maybe your driver requires 5V pwm and will not work with 3.3V pwm, so you need to use that hct02 to up the signal to 5V but you need to get that signal trough one more part to invert it .. so instead of using 2Y as output, feed 2Y to 3A and 3B and use 3Y as output (should be inverse of what 2Y was)

                          undefined 1 Reply Last reply 20 Aug 2020, 20:00 Reply Quote 0
                          • undefined
                            shiga @arhi
                            last edited by 20 Aug 2020, 20:00

                            @arhi Many thanks for the help! the problem was resolved, it was a bad 74HCT02, from a batch of 5 pieces all were inoperative, replaced from another shop and it all worked!
                            small question: which program is the best to use for engraving with DUET?

                            undefined 1 Reply Last reply 21 Aug 2020, 02:26 Reply Quote 0
                            • undefined
                              arhi @shiga
                              last edited by 21 Aug 2020, 02:26

                              @shiga said in Laser always on:

                              bad 74HCT02

                              auch 😞

                              small question: which program is the best to use for engraving with DUET?

                              no idea. I know that visicut is often mentioned on some forums for DIY machines (grbl, smoothie...) but I have never owned an engraver and the small experience I do have with it I generated the code myself using c so I doubt anyone would fund that useful 😄 ... probbly someone with engraver can give you some hints but probbly setup a specific topic for that on forum as that will give it more visibility

                              1 Reply Last reply Reply Quote 0
                              • undefined
                                arhi
                                last edited by 21 Aug 2020, 02:27

                                btw how do you know your laser is outputting X% at any time (not knowing what the PWM pin is doing) ? you have something to measure the ray impact or ?

                                undefined 1 Reply Last reply 24 Aug 2020, 15:58 Reply Quote 0
                                • undefined
                                  shiga @arhi
                                  last edited by 24 Aug 2020, 15:58

                                  @arhi I'm looking at the current consumption.

                                  undefined 1 Reply Last reply 24 Aug 2020, 16:01 Reply Quote 0
                                  • undefined
                                    shiga @shiga
                                    last edited by 24 Aug 2020, 16:01

                                    @shiga said in Laser always on:

                                    @arhi I'm looking at the current consumption.

                                    I look at the current consumption, and compare it with the PWM of the signals from the servo tester.
                                    1396_1.jpg

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