Duet2Wifi Laser Diode (2pin Power + 2 pin TTL type) hook up



  • Dear All

    I know that many have asked the same questions on wiring up a laser - but most I saw are 3 pin type (+/-/PWN) ... but I have 2 x 2 pins type (one 12v another 5v for ttl)

    Knowing that there might be a need for a 74hct02 to do this, but there were comments that a Duet expansion board can do in place of this? (sorry getting bits and pieces of info left and right and got confused)

    f0fd7c70-8a75-4e80-adfc-00239085af6e-image.png

    I have 12 v plugin into PSU for Duet and laser diode seperatly ( sorry if the drawing on the pic is a lil confusing)

    how would this plug up? 3 pins on heater while ttl have only 2... can anyone pls help?? thanks!

    TonyW



  • Hook the 5v ttl up a a 5v fan output? You may need to invert the pin in configuration if laser is on when it should be off. (Be aware this can also result in sort burts of laser when starting up, so wear goggles at all times the machine has power)

    And the 12v to a 12v supply?



  • hooking it to fan... will it still work with g1 sxxxx like commands? if so how to declare it? can you help? how to invert the pin config? using "i1"?

    Yes 12v plug goes directly to 12v supply


  • administrators

    @otaku521 said in Duet2Wifi Laser Diode (2pin Power + 2 pin TTL type) hook up:

    how would this plug up? 3 pins on heater while ttl have only 2... can anyone pls help?? thanks!

    Leave the +5V pin on the 3- pin servo connector unconnected.



  • @dc42 Thanks! To further the question:

    So I plug + on laser diode to heater 7 pwm and - to GND?

    laser seems doesn't fire...

    Here is my config.g:
    ; General preferences
    G90 ; Send absolute coordinates...
    M83 ; ...but relative extruder moves
    M667 S1 ; Select CoreXY mode
    G21 ; milimeter Mode
    ; Network
    M550 PLaserMk1 ; Set machine name
    M551 PXXXXXXXX ; Set password

    M587 S"XXXXXXXX" P"12345678" ; Configure access point. You can delete this line once connected
    M552 S1 ; Enable network
    M586 P0 S1 ; Enable HTTP
    M586 P1 S0 ; Disable FTP
    M586 P2 S0 ; Disable Telnet
    ; Drives
    M569 P0 S0 ; Drive 0 goes BACKWARDS (X)
    M569 P1 S0 ; Drive 1 goes BACKWARDS (Y)
    M584 X0 Y1 ; Drive 0-X 1-Y
    M350 X16 Y16 I1 ; Configure microstepping with interpolation(I=1) (x16 from 16)
    M92 X80 Y80 ; microstep 16 Interpol 256
    M201 X1000 Y1000 ; Max Accerlation (mm/min)
    M203 X24000 Y24000 ; Maximum speeds (mm/min)
    M566 X1200 Y1200 ; jerk values
    M906 X900 Y900 I30 ; Set motor currents (mA) and motor idle factor in per cent
    M84 S50 ; Set idle timeout
    ; Axis Limits
    M208 X0 Y0 S1 ; Set axis min
    M208 X220 Y210 S0 ; Set axis max
    ; Endstops
    M574 X1 S1 ; Set active High endstops (S1=SENSORED) (X-MIN(1)) (S3=SENSORLESS)
    M574 Y1 S1 ; Set active High endstops (S1=SENSORED) (Y-MIN(1)) (S3=SENSORLESS)
    ; LASER SETTINGS
    M563 P0 D-1 H-1 ; clear tool
    M563 P0 D0 ; create a tool - no heaters
    M307 H6 A-1 C-1 D-1 ; Clear Heater 7
    M452 P6 R255 F500 I0 ; switch to laser mode using Heater 7 PWM to control the laser

    ; Tools
    G10 P0 X0 Y0 ; Set tool 0 axis offsets
    G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C
    ; Automatic saving after power loss is not enabled
    ; Custom settings are not configured
    ; Miscellaneous
    T0 ; Select first tool

    Here is my homeall.g

    M400 ; make sure everything has stopped before we make changes
    G91 ; relative positioning

    M400
    G1 H1 Y-300 F2800 ; move quickly to X or Y endstop and stop there (first pass)
    M400
    G1 Y20 F2800 ; Move Away 20mm X axis
    M400
    G1 H1 X-305 F2800 ; move quickly to X or Y endstop and stop there (first pass)
    M400
    G1 X20 F2800 ; Move Away 20mm X axis
    M400
    G92 Z0 ; No Z, Home "Z"



  • @dc42 updated wiring

    253435ba-125d-449a-a2a4-04c3bee8240e-image.png



  • Dear everyone,
    is the above correct? (wiring and config)
    much appreciated

    Thx
    Tony


Log in to reply