DUEX5 Laser wiring and setings in g-code
-
Hi,
I dont wont to make shorts on board and i didnt find what I am tryng make so i ask here for help and guidence...
I have custom made RRVcast 3 3d printer and recently i have bought Laser and will it to connect to printer so i can do engraving and small laser cutting eg.balsa2mm or making electronic boards ...
Laser is 5W 12 VDC 1.5-2Amp power request, with 5V PWM 5kHz
It has 3 pin for power and control it:
+12V
-Gnd
5V PWM 5kHz
My config is Duet 2 Wifi with Duex5 board on 24V supply.
First is it better to go with voltage regulator for droping down voltage from 24v to 12v ...it will be then GND shared with Duet/Duex...or to go with external 12 V supply...i have both and then do i need to connect GND with Duet/Duex for PWM to work or not?
If I can power it from external power supply and just connect PWM I would rather go that way, but if not posible i have also voltage droper.
Here is part of gcode for seting and controling laser...as stated from manual of Duex5 i can use PWM1-5 to control laser:
;;Controlling the laserM950 P4 C"duex.pwm1" Q5000 ; create Laser on pin Duex5_pwm1_E2_pwm pin
M452 C"duex.pwm1" R50 S0 F5000 ; set Laser mode, C"name" Pin name(s) and optional inversion!, Rnnn The value of the S parameter in G1 commands that corresponds to full laser power, default 255, Sn 1= laser power is sticky across G1 commands, 0 (default) = laser is off when executing G1 commands that have no S parameter, Fnnn The PWM frequency used to drive the laser - default is 500Hz
; M571 P"duex.pwm1" F200 S255Thank You for looking and help!
-
@Stduplic I would use a second 12V supply for the laser and connect the GND side with the 24V supply GND.
It's safer that way, since you can switch off the laser, while the Duet board boots up.
Without shared GND the PWM signal will float and it won't work. -
@o_lampe Thanks for clearing this out for me.
Do You think this part of the code is ok? or should I something change? -
@Stduplic said in DUEX5 Laser wiring and setings in g-code:
Do You think this part of the code is ok? or should I something change?
I'm not sure about the 5kHz part. If it's max. PWM frequency from the laser, I'd go slower.
-
@o_lampe ok thx,i will start with default 500 and then test and change from there...