MKS DLC V2.1 and K40

Hi all,

I’m looking for some assistance as I have just bought a MKS dlc32 2,1 board for my K40 as it would be nice to wifi and to be able to use lightburn directly instead of going via meek40t, now looking at some forums and you videos I have managed to work out where some of the wires go, see attached picture

and that I will need to order 2 x 3 pin pcb connectors for the limit switches and a dc connector for the 24v power required

I want to check the following before I start the work.

  1. Does anything else need to be attached to the board for the K40 to work?
  2. Since I cannot get to motors to see what they are with out taking the machine further a part (I’d rather not), is it ok to move the jumper switch until I find the correct one with out damaging the motors?
  3. What setting will need changing in lightburn?
  4. How do I limit the max power so I do not damage the CO2 tube in lightburn
    5: What will not work after the change?

Thanks for your help

I’m not sure what you mean here. What jumper switch, and correct one what?

There’s a general rule never to connect or disconnect a stepper motor with power on, as it can easily kill the stepper drivers.

1 Like

Yes, you need to connect up your laser PWM control. It is common to leave the POT connected to the LPS( 5V/IN/Gnd) and use that to set your maximum avg current output(~18mA) and then you use one of the FET connections on the board to pull the LPS-L signal low for PWM control.

Stock motors are 9deg motors so 400 steps/rotation. As for the switches on the board, those set the micro-step setting and you can use 1/16th or 1/32 and after you set the jumper, install the motor driver boards(tmc2209 can be a good choice) you have to setup your firmware config’s “Steps/mm”

  • so that when you command it to move 100mm it moves the motor enough steps to truly get 100mm of movement.

[quote]What setting will need changing in lightburn?
[/quote]
LightBurn does not care about your microsteps, it will send GCode which tells the firmware to move 100mm in X and 50mm in Y and expect the firmware to tell the motors to do that accurately.

You don’t, you set the POT which puts a voltage into the LPS-IN signal and intern sets the max avg power the laser will output. In the firmware you set it to output 100% PWM as max and LightBurn is non the wise about what’s going on at the laser except to command it to set the lasing to some percentage of power which you define in your layer settings.

This is considered and upgrade and what won’t work is any application which expects to be controlling an M2Nano board because it now is not and M2Nano.

What firmware will you be installing on this controller board?

1 Like

This is a conversion I helped with but is not the same board. The implementation should be similar.
Perhaps you can use this as a reference to choose the equivalent connections on this alternate board.

2 Likes

Found this over on the Lightburn forum:

This configuration does not use a pot.
I would suggest using a pot rather than digital IN control.

What LPS do you have? Please post a picture of the connector.

1 Like

In case you do not have this…
DLC32 wiring manual.pdf (2.2 MB)

1 Like

I thought the board has a separate laser enable and pwm output… Am I mistaken?

Just looked at the pdf… I didn’t see a laser enable line… :frowning:

And I have one of these boards…


The L input is laser enable, but most also have an H input, which is enabled high, so you wouldn’t need to invert the output signal… just wire it to the H input instead …

I just don’t think much of the ‘pot’ to the IN structure… That is not how it’s designed … Seems to work …

:smiley_cat:

yup, it seems to work and it is how 100% of the K40 machines come from the factory. They either have a POT across 5v/IN/Gnd or they have a digital POT doing the same thing. PWM is always into the LPS-L input.

But the Ruida machines are another story and as you mentioned, LPS-L is used as Laser-Enable and PWM is driven into the LPS-IN signal.

I do like your method of limiting max current output via the onboard LPS output POT but as the tube ages it can be a bit tougher to up the power a bit so that a 70% power cut is the same as new and as aged. With the front panel POT we can easily adjust the avg output power through the tube upward so that numbers we are familiar with, on materials we are familiar with, cut the same on day one and day 1000.

I would still like to get to the bottom of these differences to see where there might be signs of vastly better or worst results.

1 Like