makerbase-mks / MKS-SGEN_L-V2

MKS SGEN_L V2.0 is powerful 32-bit 3D printer control board. The CPU is LPC1769 120MHZ, SGEN_L V2 hardware Integrated 4KB EEPROM, 5AXIS and dual Z interface, has 2 way FANs and Dc12/24V out interface, support TMC UART and SPI mode...
https://www.aliexpress.com/item/4001283346331.html?spm=a2g0o.store_home.slider_165457030.0
GNU General Public License v3.0
71 stars 28 forks source link

Extruder fan not working #16

Closed Doyle4 closed 3 years ago

Doyle4 commented 3 years ago

I did a 1:1 copy of my configs for the MKS GEN L board and changed steppers and directions etc, but for the life of me can not get the Extruder fan to work, does anyone know where to change the pin or define a new pin please? it use to kick in around 50c automatically.

Thanks!

Doyle4 commented 3 years ago

define E0_AUTO_FAN_PIN 7 is what my MKS GEN L was set too, and what the SGEN L V2 is set too, but its not working.

In the pins.h file there is no mention of pin 7 for the old board or new, pretty confusing

Doyle4 commented 3 years ago

got it, P2_06 was needed, not 07

ILGROSSOFA commented 3 years ago

got it, P2_06 was needed, not 07

Hi Doyle4, I have the same problem on my MKS SGEN L v2: where did you change value to P2_06? Thank you in advance!

Doyle4 commented 3 years ago

@ILGROSSOFA Configuration_adv.h > #define E0_AUTO_FAN_PIN P2_06

ILGROSSOFA commented 3 years ago

@ILGROSSOFA Configuration_adv.h > #define E0_AUTO_FAN_PIN P2_06

Now there is written:

define E0_AUTO_FAN_PIN 7

define E1_AUTO_FAN_PIN -1

define E2_AUTO_FAN_PIN -1

define E3_AUTO_FAN_PIN -1

define E4_AUTO_FAN_PIN -1

define E5_AUTO_FAN_PIN -1

define E6_AUTO_FAN_PIN -1

define E7_AUTO_FAN_PIN -1

define CHAMBER_AUTO_FAN_PIN -1

define EXTRUDER_AUTO_FAN_TEMPERATURE 50

define EXTRUDER_AUTO_FAN_SPEED 255 // 255 == full speed

define CHAMBER_AUTO_FAN_TEMPERATURE 30

define CHAMBER_AUTO_FAN_SPEED 255

Is it correct to change from 7 to P2_06?

ILGROSSOFA commented 3 years ago

It looks like I have to add following command in pins_MKS_SGEN_L_V2.h file:

define HEATER_1_PIN P2_06

Isn't it?

ILGROSSOFA commented 3 years ago

SOLVED! In configuration.adv.h file:

define E0_AUTO_FAN_PIN P2_06

dplumly commented 2 years ago

Hi ILGROSSOFA,

I am having the same issue, but just defining: #define E0_AUTO_FAN_PIN P2_06 in configuration_adv.h throws and error - P2_06 not declared in scope. Is there something you needed to declare first? Thank you.

ILGROSSOFA commented 2 years ago

Are you using Arduino or Visual Studio Code? I have used Visual Studio Code and it worked for me.

dplumly commented 2 years ago

Are you using Arduino or Visual Studio Code? I have used Visual Studio Code and it worked for me.

I have used both. The way I did get it to work for anyone else that has this issue is I didn't use the terminal that said fan. In configuration_adv.h, I set my fan to E0_AUTO_FAN_PIN 7. I then took 2 jumpers and plugged the fan into E1 interface.

truonghuutoanonenote commented 2 years ago

simply just plug the fan to 12v output on top left conner and everything is done