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

Ghosting laser while rastering

Scheduled Pinned Locked Moved Solved
Laser Cutters
9
26
2.1k
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
    jay_s_uk
    last edited by jay_s_uk 11 Mar 2020, 14:34 3 Nov 2020, 14:33

    I am having another go at running my K40 laser using a duet 2 rather than an MKS Sbase running grbl.
    I am having issues with raster images having ghosting and not coming out with clean edges. This results in all images being blurry.
    PXL_20201103_140631583.jpg
    The PWM control is connected to the negative terminal of the bed MOSFET.
    I use M452 c"bed heat" F5000 in my config and I have tried in both S0 and S1 modes.
    Does anyone have any thoughts?

    I should add that it works fine with grbl

    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

    undefined 1 Reply Last reply 13 Nov 2020, 12:38 Reply Quote 0
    • undefined
      dc42 administrators
      last edited by 3 Nov 2020, 16:20

      Which firmware version are you using, and what PWM frequency have you set for the bed heater?

      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
      • undefined
        jay_s_uk
        last edited by 3 Nov 2020, 16:20

        3.1.1 and I have set a frequency of 5000

        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

        1 Reply Last reply Reply Quote 0
        • undefined
          dc42 administrators
          last edited by 3 Nov 2020, 16:23

          That sounds good, but please post your config.g file.

          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
          • undefined
            jay_s_uk
            last edited by 3 Nov 2020, 16:26

            ; Configuration file for Duet WiFi (firmware version 3)
            ; executed by the firmware on start-up
            ;
            ; generated by RepRapFirmware Configuration Tool v3.1.4 on Tue Jul 21 2020 12:06:50 GMT+0100 (British Summer Time)
            
            ; General preferences
            G90                                            ; send absolute coordinates...
            M83                                            ; ...but relative extruder moves
            M550 P"K40 Laser"                             ; set printer name
            
            ; Network
            M552 S1                                        ; enable network
            M586 P0 S1                                     ; enable HTTP
            M586 P1 S0                                     ; disable FTP
            M586 P2 S0                                     ; disable Telnet
            
            ; Drives
            M569 P0 S1                                     ; physical drive 0 goes forwards
            M569 P1 S1                                     ; physical drive 1 goes forwards
            M569 P2 S1                                     ; physical drive 2 goes forwards
            M569 P3 S1                                     ; physical drive 3 goes forwards
            M584 X0 Y1 Z2 E3                               ; set drive mapping
            M350 X16 Y16 Z16 E16 I1                        ; configure microstepping with interpolation
            M92 X160.00 Y160.00 Z400.00 E420.00              ; set steps per mm
            M566 X500.00 Y500.00 Z12.00 E120.00            ; set maximum instantaneous speed changes (mm/min)
            M203 X6000.00 Y6000.00 Z180.00 E1200.00        ; set maximum speeds (mm/min)
            M201 X500.00 Y500.00 Z20.00 E250.00            ; set accelerations (mm/s^2)
            M906 X400 Y800 Z800 E800 I30                   ; set motor currents (mA) and motor idle factor in per cent
            M84 S30                                        ; Set idle timeout
            
            ; Axis Limits
            M208 X-5 Y0 Z0 S1                               ; set axis minima
            M208 X300 Y205 Z200 S0                         ; set axis maxima
            
            ; Endstops
            M574 X1 S1 P"xstop"                            ; configure active-high endstop for low end on X via pin xstop
            M574 Y2 S1 P"ystop"                            ; configure active-high endstop for low end on Y via pin ystop
            
            ; Laser Mode
            M452 C"bedheat" F5000 S1
            

            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

            1 Reply Last reply Reply Quote 0
            • undefined
              jay_s_uk
              last edited by 3 Nov 2020, 16:36

              I can upload a gcode file if required

              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

              1 Reply Last reply Reply Quote 0
              • undefined
                jay_s_uk
                last edited by 4 Nov 2020, 07:51

                @dc42
                I have tried gcode from two different programs (lightburn and laserweb4) and they both do the same thing. I had thought that it was linked to the gcode being used but it doesn't seem to be.
                I also tried upping the frequency to 10000, 15000 and 20000 but the blurring is still present.
                I am happy to upgrade to the latest beta and retest

                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

                1 Reply Last reply Reply Quote 0
                • undefined
                  jay_s_uk
                  last edited by 4 Nov 2020, 18:45

                  I've switched back to the grbl board as my wife wanted some laser cutting doing.
                  Here is a comparison of grbl to duet.
                  The grbl is the disc, the duet version is just the writing on the wood.
                  Both generated using lightbulb
                  PXL_20201104_183607566.jpg

                  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

                  1 Reply Last reply Reply Quote 1
                  • undefined
                    Arcnsparks
                    last edited by 6 Nov 2020, 21:35

                    I'm going to guess it has something to do with the speed that the Duet turns your laser tube on and off compared to the GRBL controller. You can fine tune this adjustment in Lightburn with the "Scanning offset adjustment". It's a pretty straightforward process and I imagine you'll be surprised at the results.

                    Scanning Offset Adj. - How-To

                    undefined 1 Reply Last reply 6 Nov 2020, 21:39 Reply Quote 1
                    • undefined
                      jay_s_uk @Arcnsparks
                      last edited by 6 Nov 2020, 21:39

                      @Arcnsparks great. Didn't know that guide existed. I'll swap the controllers back and take a look tomorrow.

                      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

                      undefined 1 Reply Last reply 19 Nov 2020, 19:00 Reply Quote 0
                      • undefined
                        Phaedrux Moderator
                        last edited by 7 Nov 2020, 00:23

                        Moved to the new laser category

                        Z-Bot CoreXY Build | Thingiverse Profile

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          infamous_panda @jay_s_uk
                          last edited by 13 Nov 2020, 12:38

                          @jay_s_uk said in Ghosting laser while rastering:

                          I am having another go at running my K40 laser using a duet 2 rather than an MKS Sbase running grbl.
                          I am having issues with raster images having ghosting and not coming out with clean edges. This results in all images being blurry.
                          PXL_20201103_140631583.jpg
                          The PWM control is connected to the negative terminal of the bed MOSFET.
                          I use M452 c"bed heat" F5000 in my config and I have tried in both S0 and S1 modes.
                          Does anyone have any thoughts?

                          I should add that it works fine with grbl

                          Hi,

                          I am looking to do something similar. Have you noticed any other differences or quirks moving from GRBL-lpc to duet other than the ghosting? I am interested in increasing my raster speed. This is for a faster laser than a k40

                          1 Reply Last reply Reply Quote 0
                          • undefined
                            Arcnsparks @jay_s_uk
                            last edited by 19 Nov 2020, 19:00

                            Hi @jay_s_uk , have any luck with your setup? Just curious if the scanning offset adjustment helped out any.

                            undefined 1 Reply Last reply 19 Nov 2020, 19:10 Reply Quote 0
                            • undefined
                              jay_s_uk @Arcnsparks
                              last edited by 19 Nov 2020, 19:10

                              @Arcnsparks tbh I've gone back to grbl for the moment. Too many other projects and the Mrs wanted some stuff cutting

                              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

                              undefined 1 Reply Last reply 19 Nov 2020, 19:52 Reply Quote 0
                              • undefined
                                Arcnsparks @jay_s_uk
                                last edited by 19 Nov 2020, 19:52

                                @jay_s_uk Definitely understand that!

                                1 Reply Last reply Reply Quote 0
                                • undefined
                                  paulg4h
                                  last edited by 9 May 2021, 16:21

                                  @jay_s_uk said in Ghosting laser while rastering:

                                  moment. Too many other projects and the Mrs wanted some stuff cutting

                                  Hello Jay,

                                  as you know I run my K40 with RRF now and use Estlcam as CAM, to set it up I watched some videos where the guy told how to setup Eslcam and there he show do not switch of the Laser, just set the power to 0 in Cam

                                  on cut start GCode:

                                  M03 S<s>
                                  

                                  on cut end:

                                  M03 S0
                                  

                                  Maybe this would help in your case too?

                                  undefined 1 Reply Last reply 22 Jun 2021, 09:45 Reply Quote 0
                                  • undefined
                                    paulg4h @paulg4h
                                    last edited by 22 Jun 2021, 09:45

                                    @dc42 now I try a lot to get usable raster engraving with RRF 3.3 connected to the bed mos fet of an SKR 1.4T board

                                    Here are my config.g snipped:

                                    ;############## Laser Settings #########################
                                    M452 C"bed" R255 S1 F100 ; laser uses bed pin,  PWM frequency 100Hz
                                    

                                    I use Lightburn to create the Gcode with this settings:

                                    9e1fa7f9-fd88-4510-8403-edcdd1f5a396-image.png

                                    Here you can see the same gcode with different laser frequency settings:
                                    588d8e3e-7d6e-4353-858f-393403d973a2-image.png

                                    I also try to change the M05 in GCode by search and Replace with M03 S0 but no change.

                                    What can I do get the quality of letters as shown with 100 and the area engraving quality like 500hz?

                                    1 Reply Last reply Reply Quote 0
                                    • undefined
                                      paulg4h
                                      last edited by paulg4h 30 Jun 2021, 18:56

                                      I get the Information that the SKR 1.4T board with his LPC chip do not have a hardware PWM just Software PWM which can not handle more than a few hundred Hz, so I changed the 1.4 by an SKR 2 with n STM chip and now I can run the laser with 500 hz and get this quality when I connect the laser to the bed mos fet which is also software driven:

                                      adb551fb-1491-4c33-b3e3-68c88cc6f10f-image.png

                                      After reducing the Laser power in Lightburn it looks like:

                                      8fcac837-8a32-4a0e-819a-207e059591d3-image.png

                                      After changing the laser connection from bed mos fet to the e1heat mos fet which is hardware PWM driven I was able to revert the laser settings to 5kHz and got this result after reducing the laser power again:

                                      25675ebc-72bd-464f-bfec-275e8fd70d76-image.png

                                      This are my Lightburn settings for the result above:
                                      79499213-0c7b-4d0b-bef8-0ffcf620befd-image.png

                                      undefined 1 Reply Last reply 31 Oct 2021, 11:28 Reply Quote 1
                                      • undefined
                                        paulg4h @paulg4h
                                        last edited by paulg4h 31 Oct 2021, 11:28

                                        Today I get an test firmware for my BigtreeTech SKR 2 board to improve the raster engraving quality and speed dramatically!

                                        This is on trotec laser "plastic" aluminium / black 1.6mm

                                        The 500mm/s made with the test firmware and the others below with the stock firmware https://github.com/gloomyandy/RepRapFirmware/releases/tag/v3.4.0beta5_1
                                        RRF_laser_engraving_test.jpeg

                                        With default firmware and 150mm/s on an 70 x 23 mm size work sheet I do get such results:
                                        PIC013.JPG
                                        (each vertical line of the ruler is 0.5mm)

                                        this are the lightburn settings for that:
                                        K40_01.png

                                        with the test firmware and at the speed of 500mm/s and changing from LINE+FILL to FILL only as increasing the laser power I get this now:
                                        PIC014.JPG

                                        Here are the lightburn setting for that:
                                        K40_02.png

                                        So hopefully this major improvement made by @gloomyandy will be available in the future to the RRF release at least when it is in laser mode!

                                        undefined 1 Reply Last reply 31 Oct 2021, 13:33 Reply Quote 0
                                        • undefined
                                          paulg4h @paulg4h
                                          last edited by paulg4h 31 Oct 2021, 13:33

                                          I now also do an engraving test with an picture I found in Internet, the speed limit for the SKR 2 so far seams to be 250mm/s, at 300mm/s the head stops in the middle of an move and at more than that it either lost his reference and hit in my case the right machine limits.

                                          The first 10mm of engraving works as expected even at 500mm/s but then it stops, so this seams for me some sort of CPU power / cache / code issue.

                                          Maybe @dc42 there is some chance to cleanup / improve the code for laser usage beyond the proof of @gloomyandy s test version?

                                          But at 250mm/s I get this engraving quality which looks great for me:
                                          9158fe78-7048-4b96-9241-cd1f05141f02-image.png

                                          undefined T3P3Tonyundefined 2 Replies Last reply 31 Oct 2021, 14:10 Reply Quote 1
                                          • First post
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA