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

Fan output #39

Closed Anderson8153 closed 2 years ago

Anderson8153 commented 2 years ago

How could it be done to control a fan in place of the Z axis or other output?

21mac commented 2 years ago

to control it via Z axis output is quite difficult since it's not just a power output pin but a controller for a bldc motor. Why don't you just plug the fan into the 12 Volt port? so the fan would be on full speed as long as the board is turned on.

There is no "easy" solution to control the fans speed via an output pin.

Anderson8153 commented 2 years ago

@21mac , Hi, I understand, I just want to turn the fan on and off via Gcode

21mac commented 2 years ago

I don't think that will work. Since - as I meantioned- there is not output pin (from the microcontroller ESP32) which connects to a controllable pin for the fan, there is not Gcode for it.

The board only has one ttl (= PWM) port which is reserved for the laser. The other ports/sockets are for the motors, the spindle, the end switches or are just power pins (12V, 24V).

There is not possibility to turn these ports on/off.

only in one scenario it will work: if you dont use the ttl (PWM) port for a laser.

21mac commented 2 years ago

I don't think that will work. Since - as I meantioned- there is not output pin (from the microcontroller ESP32) which connects to a controllable pin for the fan, there is not Gcode for it.

The board only has one ttl (= PWM) port which is reserved for the laser. The other ports/sockets are for the motors, the spindle, the end switches or are just power pins (12V, 24V).

There is not possibility to turn these ports on/off.

only in one scenario it will work: if you dont use the ttl (PWM) port for a laser.

Anderson8153 commented 2 years ago

@21mac , 2.0 board with laser module, connected to TTL output.

I connected the fan to one of the 12/24V outputs and installed a switch

WhatsApp Image 2021-11-19 at 17 22 45 WhatsApp Image 2021-11-19 at 17 23 14 WhatsApp Image 2021-11-19 at 17 25 07

21mac commented 2 years ago

@21mac , 2.0 board with laser module, connected to TTL output.

I connected the fan to one of the 12/24V outputs and installed a switch

WhatsApp Image 2021-11-19 at 17 22 45 WhatsApp Image 2021-11-19 at 17 23 14 WhatsApp Image 2021-11-19 at 17 25 07

Damn. there is no other software / Gcode controllable port, just the ttl. Since the firmware is not open source there is no way to use another pin of the ESP32.

sorry

Anderson8153 commented 2 years ago

@21mac , Don't worry, thanks for the help!

makerbase-mks commented 2 years ago

Sorry, as 21mac said, now there is no method.