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
284 stars 115 forks source link

Laser pulse when moving the X Y axes #135

Open Devil-67 opened 2 years ago

Devil-67 commented 2 years ago

Hello all,

my new laser is almost ready for use. However, I have noticed a problem when the X or Y axis is moved without the laser being switched on, there is always a very short and also very weak laser pulse. This is dangerous and should not be the case. Does anyone have an idea what could be the reason for this? I use two Mean Well power supplies, one for the controller and one for the Neje laser head. The rack is earthed. I suspect it is coming from the MKS board but I am not sure.

Lasermax3000 commented 2 years ago

Is the Controller turned on or also off? When the stepper motors are moved the induce voltage and when you have two seperate Power Supplies and they are not well grounded, your GND potential on the Board varies and that might cause this Problem. Are the GND Outputs of the two Power Supplies connected together or a both grounded, if not try this? I hope that this helps you finding your Problem.

Devil-67 commented 2 years ago

Axis control and laser controller are switched on. GND of the two power supplies are not connected to each other. Both are earthed Mean to connect GND of both power supplies

Lasermax3000 commented 2 years ago

Yes, i would reccomend you to try this.

Devil-67 commented 2 years ago

Connecting GND from both power supplies did not solve the problem. Nothing has changed. Even if I remove GND from the TTL cable which is used to control the laser, it does not change - the laser switches on again and again briefly with very low power when the axes are moved.

Firmware Version 1

TTL and GND connection from the MKS board to the Neje Laser Control Board. Power line + not connected, because an extra power supply is used as recommended here. 3

Neje Laser Control Board with power supply connection 1 Power supply unit 2 connection to the MKS 32 board 2

Maybe I have connected it the wrong way ? However, the laser works fine in cutting and engraving so I think it will be connected to the right post?

Devil-67 commented 2 years ago

Here is a video to help you understand what I mean and where the problem is. https://user-images.githubusercontent.com/31169133/154863149-84117979-551b-4fa9-874a-8911eb733d2c.mp4

Devil-67 commented 2 years ago

Now I have just measured the voltage at the TTL signal at S1000 and it comes out 8.6V shouldn't it be 12V ?

Can I also use the spindle power connection as an alternative, this supplies 12V at S1000?

Devil-67 commented 2 years ago

The instructions from the Neje say: 4

abinoer commented 2 years ago

@Devil-67 Are the GND of MKS motherboard and GND of laser board connected properly? 1645409824(1) Try connecting the picture link to see if it works

abinoer commented 2 years ago

Now I have just measured the voltage at the TTL signal at S1000 and it comes out 8.6V shouldn't it be 12V ?

Can I also use the spindle power connection as an alternative, this supplies 12V at S1000?

I don't quite understand what you're saying. TTL voltage can be up to 5V, why 8.6 V

Devil-67 commented 2 years ago

@Devil-67 Are the GND of MKS motherboard and GND of laser board connected properly? 1645409824(1) Try connecting the picture link to see if it works

Yes GND is connected at both points, I just checked again.

Devil-67 commented 2 years ago

So far I have not been able to find anything to change the problem, it is always the same, when the X / Y axes are moved the laser keeps triggering a weak laser beam at irregular intervals as shown in the video above.

Here I have looked at the TTL output on an OSZI.

In the green areas the axes are stationary, the red area shows when the axes are moving.

I assume that these peaks in the diagram are the laser pulses.

5

torenich commented 2 years ago

Is the wiring that goes to the laser head bundled together with the stepper wiring runs? It may be inducing voltage into the TTL wire. Those NEJE lasers will work with 3-12v for the TTL input so maybe separate the wiring going to the laser and re-test.

Devil-67 commented 2 years ago

the MKS and the Neje have their own power supply, GND is necessarily connected to the MKS board for TTL. How do you mean disconnect image

Devil-67 commented 2 years ago

Is the wiring that goes to the laser head bundled together with the stepper wiring runs? It may be inducing voltage into the TTL wire. Those NEJE lasers will work with 3-12v for the TTL input so maybe separate the wiring going to the laser and re-test.

now I understand, no the wiring is not bundled with the stepper motors

abinoer commented 2 years ago

1645517566 @Devil-67 The voltage burr on your picture is only about 0.6V peak-to-peak value, far less than 5V, which should not meet the REQUIREMENTS of TTL signal. Why is there weak laser

Devil-67 commented 2 years ago

@abinoer

1645517566 67.-67. @Devil Der Spannungsgrat auf Ihrem Bild beträgt nur etwa 0,6 V Spitzen-Spitze-Wert, weit weniger als 5 V, was die ANFORDERUNGEN des TTL-Signals nicht erfüllen sollte. Warum gibt es einen schwachen Laser?

That is the question... I have not found a solution yet

mejson80 commented 2 years ago

I've had the same issue, you need to use shielded cable, TTL from DLC is 0-5V, I'm suspecting stepper wires induct current in the TTL wire, hence it's pulsing or going on low power beam, was the same when I touched the TTL wire - laser came on, anotherwords, use a shielded 4wire cable, connect shield with GND, that solved my problem, I've extended my signal cable from original one to 1.5m ;)