connecting to A K40 laser (designing my own driver board) #341
Replies: 1 comment 2 replies
-
You can find the grbl-Mega-5X pinout in the wiki: https://github.com/fra589/grbl-Mega-5X/wiki/grbl-Mega-5X-pinout By default, the PWM output is on the pin D8. The laser is driven by the spindle command: M3 & M4 for laser on and M5 for power off laser (the difference between M3 & M4 is just the status of the spindle direction pin (D5 by default) which is generaly not used by laser). S<number> is driving the PWM power. Proportional to <number>:
When the GCode status of spindle is M3 or M4 and the spindle S value is strictly upper than zero, the SPINDLE_ENABLE pin (default to D4) is set to up. In any other cases (M5 or S0) the SPINDLE_ENABLE pin is set to down. @++; |
Beta Was this translation helpful? Give feedback.
-
Hi I'm the embedded hobbyist, which is just a nick name and the name of my YouTube channel :-)
I'm currently looking at upgrading my K40 laser so i can use LightBurn to control it and so i need to replace the controller board it came with. I had a Mega laying around so thought grbl-mega might be the way to go, But grbl-mega-5x seems to be more active and could provide a better upgrade path.
So here's my problem,
I want to get my head around the pins i need to connect to when designing the driver board to fit the Mega.
I need the following signals
1: Laser PWM to provide the power to the "IN" input on the K40 power supply to control laser power
2: Laser fire to provide the enable to the "Fire" input on the PSU to enable the laser.
With just the bare Mega i can use the command
$32=1
M3 G1 X100 S500 F1000
the laser PWM starts and shows about 50% duty cycle on the scope
But i cant find the signal i need to enable the laser.
Am i correct in thinking that the "spindle enable" should be active during the above command?
Can somebody point me in the right direction?
Thanks in Advance
Teh
Beta Was this translation helpful? Give feedback.
All reactions