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

    Red laser diode to align worksheet

    Scheduled Pinned Locked Moved
    Laser Cutters
    1
    1
    259
    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.
    • paulg4hundefined
      paulg4h
      last edited by

      To align the worksheet exactly I installed and red laser diode parallel to the laser beam after the last mirror.

      ef89b4d1-8c17-4e43-974c-0ae9a9a7a341-image.png

      e61647b4-8979-40b8-8191-a87c21260145-image.png

      f8e801f0-268c-4951-853d-1f7cbf035e87-image.png

      The wiring was easy, I just use an available fan2 connector and the 5V my BTT SKR 2 board offers and connect this directly to the laser diode.

      To activate the pin I add in config.g

      ; Tools --> red dot Laser
      M950 F2 C"fan2" Q100                             ; create red dot laser as 2 on pin fan2
      M106 P2 S0 C"RED Laser" H-1                 ; set red dot laser to off on startup --> controlled by macros
      

      To use it I create two macros, first LASER ON with the following content:

      G10 L2 X0 Y0                        ; Reset workplace coordinates to zero
      
      ; Move laser head by red laser offset
      G1 F5000 X{move.axes[0].machinePosition + 14.5} Y{move.axes[1].machinePosition + 8.5}
      
      M106 P2 S0.7                        ; switch on red laser diode to 70% brightness
      

      and the LASER OFF which contains:

      ; move main laser headto current red laser position
      G1 F5000 X{move.axes[0].machinePosition - 14.5} Y{move.axes[1].machinePosition - 8.5}
      
      ; set the current position as X and Y zero position
      G10 L20 P1 X0 Y0
      
      M118 P3 S"Workplace zero set"
      
      ; switch of red laser
      M106 P2 S0
      

      To find the right values for your offset here is an SVG which you can use to engrave a 50x50mm raster:
      50x50_raster.svg

      To get your values just engrave the raster and then run LASER ON macro, place the red dot in direction where your ZERO is configured (mine is front left) and then fire your laser, then read the offset and change the values in LASER ON and LASER OFF macro.

      Hopefully someone else find this feature useful too

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