makerbase-mks / MKS-DLC32

MKS DLC32 motherboard kit, which is an offline engraving master control kit developed for desktop engraving machines. The hardware is equipped with a 32-bit high-speed ESP32 module, integrated WIFI function, and directly drives a 3.5-inch touch color screen; it can realize fast engraving and WEB web pages. Control, mobile phone APP control and other functions.
https://www.aliexpress.com/item/1005003183498253.html?spm=a2g0o.store_pc_home.productList_8356958.pic_0
275 stars 109 forks source link

Solved: Connecting MKS DLC32 v2.1 to CO2 Laser PSU #493

Closed Benglin closed 1 month ago

Benglin commented 1 month ago

Hi MKS team and community experts, I will try to make this post as clear as I possibly can so you can help me out. These might be beginner questions so please bear with me... ๐Ÿ™‚

My MKS DLC32 v2.1

Few points about my MKS DLC32 v2.1:

The document says it should be 0 ~ 5V as shown below:

image

My CO2 Laser PSU

Not wanting to destroy my laser PSU, I made my Arduino Uno output PWM signals of 0 ~ 5V through a PWM pin 9, here's how I connect the wires (I am sure the PWM signal is 0 ~ 5V using a digital multi-meter, and an associated LED that fades in and out):

image

The above connection is inspired by the following wiring diagram that has been shared in various places before (I just replaced the potentiometer with PWM that's coming from an Arduino Uno, it will be changed to MKS DLC32 v2.1 when wiring confusion is sort out)

image

Thank you all for spending the time to read this, any help I get would really be appreciated. Thanks again team ๐Ÿ˜„

Side note: I have read the other thread where Flipcnc came very close to a solution (with help from great folks like @makerbase-mks, 3Dangel, maadmackz, matonhodze and many others). I did not want to add more noise to the thread so I decided to start a new question here (I hope that is okay).

costycnc commented 1 month ago

https://www.youtube.com/shorts/79jmSSWvY7w

Benglin commented 1 month ago

Thanks for the tip, @costycnc! That looks neat ๐Ÿ‘

I see it uses SPINDLE (-) to drive the PSU, which is something I might want to try out too (based on the documentation it should produce 0 ~ 12V signal for me, I'm not sure if my LPSU can handle that, I'll check with Cloudray).

The only thing I can't tell from the video is which port does the SPINDLE (-) connect to in the LPSU (as K40 one is quite different from mine). But thanks anyway for your help!

costycnc commented 1 month ago

i have inspired from this video https://youtu.be/xfqtSgPIYKg?si=ajWVxvMtEqqSMOA0&t=382

Benglin commented 1 month ago

Thanks again for your help, @costycnc! Your video prompted me to measure the spindle's voltage (unfortunately that is also ranging from 0 ~ 12V when my laser PSU expects an input signal of 0 ~ 5V), then re-measure the power output of the S-TTL-V ports. It turns out that, unlike my original claim in my question above, the S pin does output 0 ~ 5V PWM signals! I think my previous measurements were wrong due to some bad wiring.

In any case, it turns out that I did not connect P (water protect) to GND on the laser PSU. Since the water protection is not a closed circuit, the laser PSU refuses to fire the tube. After connecting P to GND, everything works perfectly!

The diagram below illustrates the correct way to connect my laser PSU to the MKS DLC32 board (note that the pins on MKS DLC32 are incorrectly labeled as S-TTL-V when they should really be S-GND-V):

image

And to answer my own questions in the original post:

jlbarros76 commented 3 weeks ago

Hi Benglin, what a wonderful work . I have a 150W PSU and 100W CO2 Laser tube, can I use this connection (the last one) without problem? Iยดm stuck finding a solution to make functional my diy cnc laser engraver. Can I use with laser grbl o lightburn? Waiting your comments, thank you.

Benglin commented 6 days ago

Hi @jlbarros76, I'm sorry for not seeing your question earlier! I am not certain of what the issue you are facing with, can you explain a little more and also show us how the connection is made? I might not be able to help you (because I am a beginner also) but others should be able to ๐Ÿ™‚

By the way, I am having an issue myself also, the final connection works, but I realized the laser is firing even when I just turned on the laser PSU. I am not sure what is the problem here but I will continue to debug it (because it did work before with my Laser Web).