How can I tell which pin to wire to?
-
@Jonty-0 you don't use M950 etc after using M452. You use M3 to turn the laser on and M5 to turn it off and the S value on G1 moves sets the power level, with S255 being full power and S0 being off.
I use lightburn to generate gcode. Vcarve should work too -
@jay_s_uk Thanks so to check I've got this right.
I put this code in to turn laser on.
M452 ; put into laser mode
M3 S255 - Turns laser on full power
M3 S0 - Turns laser off - or M5 right?Brill - I think that's the code vcarve created using M3 etc. Thanks mate.
-
@Jonty-0 Hey - So I've just downloaded lightburn to use for this as having trouble using vcarve.
Is the key to this to use the right start G code in lightburn? If so - would you mind sharing the code I can put in so I can double check against myself?
Thanks in advance! J
-
@Jonty-0 here's a good explanation for setting up lightburn for RRF https://github.com/TeamGloomy/LPC-STM32-RRFUserConfigs/tree/master/K40 CO2 Laser - SKR 2 - ESP - paulg4h
-
@Jonty-0 said in How can I tell which pin to wire to?:
I put this code in to turn laser on.
M452 ; put into laser mode
M3 S255 - Turns laser on full power
M3 S0 - Turns laser off - or M5 right?No, it's G1 Xnnn Sppp that set's the power level while moving the (X) axis for example.
With M3 and M5 you switch it on/off.M3 and M5 no longer turn the laser on and off; use G1 Snn moves to control laser power.
These lines are generated by lightburn AFAIK.
There are also laser engraving plugins for Inkscape. Although that's quite oldschool, it's still useful. The graphic tools are better than lightburns -
@jay_s_uk Thanks jay - I'll have a go with that and see if I can get it to work. Looks like I can choose M3/M5 in the dialogue box on that page so I'll try that. Thanks. I think once I've got it set, I'll be ok but it's just getting there. I'm also worried about how to focus the laser as it doesn't seem like there's a good option for that that I've found. I need it on 10% while I make small z adjustments etc.
-
@o_lampe Thanks a lot - So I should see the laser working if manually type in G1 X-100 S255 for example?
-
@o_lampe - OK that works - the laser came on, went off - Yessss! No just need to figure the lightburn setup to create the right g code.
-
Introduction: Identifying LED Pins
1, Looking down from the top of the LED there is usually a flattened edge, this identifies the negative pin of the LED. 2, If the LED is new, there will be one lead longer than the other. The long lead is the positive pin and the short lead will be the negative pin.
-
This post is deleted!