SKR PRO 1.2 WITH TMC 2209 AND tft35 E3 V3 LIKE TO PLUG A LASER

You don’t describe what problems you are having or what questions you want answered. For the firmware, laser support is already enabled, so you should not change anything from what V1 setup.

Laser: Marlin mode|Marlin mode of the laser/plasma cutter ()| M106 |M106 S{PWM}/M107 = 0; M3 O{PWM}/M5 = 1; M42 P{pin} S{PWM} = 2;|

I’m not sure what this means. With the V1 firmware and the pin I specified, both M3/M5 and M42 should work to send the signal to the laser. With LightBurn, you want to use the “inline” option to drive your laser.

I’m not sure of your wiring. If you give the brand of your laser and/or a link to an online reference for your laser, someone might be able to give you guidance for hookup. For input from the control board to the laser, usually it is only two wires: a ground and a signal line. Sometimes there is a third enable line. If you need the enable line, the pin is defined as follows:

#define SPINDLE_LASER_ENA_PIN PB0 // Heater2

Usually, the laser is powered by a separate power supply, and often requires care if you attempt to pull the current from the control board.

Sorry for my English, and i can only post 1 image, one by one…
This is the laser (bought on VEVOR, 15w laser) → I already ask for the manual (now answer yet)

Problem/Questions are :

  1. I don’t know how does the PWM signal work. My laser has a switch button ON/OFF : what is the good position to make it working with PWM signal ? When OFF → only the laser fan is running; when I press ON, the fan slow down, and the laser burns non stop…
  2. I don’t now how to connect the laser to the board. And I would like to know what is the easiest way or the more obvious way to connect the laser to the board, please.

If the “Mperino” configuration is THE way to connect the laser, I will try too do the same.
But need : change Marlin config, buy an SSR DC (do you know which model ?) and add a resistance.

I hope to be more understandable, thank you for your time.

There are some unknowns here with respect to hooking up your laser. The biggest is what voltages of PWM will it accept. If it can handle 3.3V or 5V PWM signals, then you have a good shot of hooking your laser up without any additional electronics. I searched the VEVOR website and did not find your laser module. I’m assuming it is powered by 12V. I suggest this recipe:

  • Use the firmware from V1 unmodified.
  • Have the laser switch in the off position.
  • Use the 2 + 2 → 3 pin cable
  • Supply 12V power from a second power supply to the black and red wires. Don’t try and draw power from the control board. Red will be positive, and black will be ground.
  • Plug the yellow and white wires into the PC9 pin and the ground pin just to the left in the picture I provided above. I cannot clearly see the connection, but I believe the white wire is ground and the yellow is the signal that should be connected to PC9.
  • Test with the g-code file attached to the first post in this topic.
3 Likes

It works !
I connected everything as you said, except the push button (I push it → the yellow DEL switch to a BLUE one on the top of the laser - switch TTL/PWM maybe ?).
Thanks for your advice, this is the result →


The laser is the VEVOR one which cost 145€ (but the images are wrong → fix focal point…).

Now, I need to find a way to export a my own gcode with Fusion 360 (but the laser post processor from guffy1234 doesn’t seem to work for me…).
I read the gcode (of E2 engraving test), but I didn’t find indication about the PWM (only a M5 code at the end ??)
I will do some tests tomorrow :wink:
Thank you very much and will try to post some images very soon.

2 Likes

LightBurn is a must have when working with laser, it is far more efficient than Fusion.
Give it a try, you have 30 days free, then it costs 50$, but that software really worth its price.

1 Like

I read the gcode (of E2 engraving test ), but I didn’t find indication about the PWM (only a M5 code at the end ??)

The laser strength can be controlled by inline codes. It uses the ‘S’ parameter in the G0, G1, G2, and G3 codes. Full power PWM is 255, so if you look at this line in the file you used:

G1 X34.01 F3180 S70

…you see ‘S70’ The laser is set at 70/255 power…roughly 27% power. In addition, M3 and M5 should also work, plus M42 works to directly turn the pin on and off. I don’t think the Fusion 360 post processor supports inline laser PWM codes.

I second @Olijouve touting of LightBurn. I frequently using Fusion 360 for my design work, but export the finished pieces as DXF files and do the cutting in LightBurn. LightBurn does support inline commands.

I’m not sure it makes any difference for laser cutting, but Don Gamble has made significant improvements to the Fusion 360 Guffy post processor. You can find a link to his latest release here.

Hi
I try to configure lightburn and do some tests.
Problem → when I start a cut from lightburn, the laser works only for the first form, and there no power for the following form :confused: ??
A problem in the parameter ? I look to the controler (Marlin ? GRBL M3 ? GRBL M4 ? GRBL LPC ?) what is the good one (M4 I guess ?) - but doesn’t work.
A problem in the baudsrate maybe ? Which one is the best ?
Thank you for your help


LightBurn has an option to cut only selected path or all forms on the screen. it’s on the laser tab, same tab where you choose origin.
I think default behavior is the selected path.
Did you select more than only one form ?

1 Like

The option is unselected. The laser do the course of every forms, but it only burns the first form… :confused: :sweat:

Which one, the frame or one of the 2 circles ?

Did you create the design within lightburn or was it an import ?
If imported check at line weight, if a line is to thin it can happen to be ignored by lightburn.

Also did you try to enable « couper les graphiques sélectionnés » ?

Yes, i create the design in Lightburn.
Yes, I try the option “cut only selected design” → no light.



Gcode problem ?

Here is the gcode exported from Lightburn (contained 2 forms)
No second form.gc.zip (1.0 KB)

Try to move your design at 5mm on the grid, look like it is at negative coordinate on Y.

But doesn’t explain the miss on the second circle

Your origin is set to top right, is it your choice ?
We mainly set the origin on left bottom

In device settings you could also try to switch to inline mode. Your UI is in french so if i’m right enable « Utiliser les déplacements G0 »
It is what i use on my machine

1 Like

My CNC origin is in the top Left → After finishing building the cnc, I realized that i was wrong : according to Fusion 360 axes, my cnc origin needs to be localized in top right or bottom left.
I will correct it very soon.
But this doesn’t seem to be the problem (I try with other configuration of the axes in lightburn, the result is the same).
Switch inline mode ? What do you mean ? Where is this option ?
“Utiliser les déplacements G0” → I only see “use G0 move for overscan”, is it what you mean ?
Thank you for your help

Forget about use G0 move for overscan, my bad.
That’s strange because your device screen doesn’t have Laser Control Commands options.

Do you have Laser mode enabled on your Marlin firmware( then compiled and flashed on your SKR ) ?

Very strange… option hidden because of my free version of Lightburn ?!
I realized that my computer or Lightburn (mac) is unable to find my cnc. I have to configure manually.


I’m not sure about what you said (enable laser mode).
This is my marlin file :

any error somewhere ?
thanks

The standard device setting windows (in lightburn website) looks like mine.
https://lightburnsoftware.github.io/NewDocs/DeviceSettings.html
no option for PWM signal

From lightburn website : " If that doesn’t work, your laser connects with Ethernet, or you have a Marlin device, you’ll need to use Create Manually."