No fan control with Marlin2.0 on MKS Sbase April 13, 2019 01:01AM |
Registered: 5 years ago Posts: 4 |
Re: No fan control with Marlin2.0 on MKS Sbase April 13, 2019 01:34AM |
Admin Registered: 13 years ago Posts: 7,000 |
Re: No fan control with Marlin2.0 on MKS Sbase April 13, 2019 10:35AM |
Registered: 6 years ago Posts: 1,863 |
My 2nd Fan pins_MKS_BASE_14h #define MOSFET_D_PIN 7 // PH4 ** Pin16 ** PWM7 //E1 #define FAN_PIN 9 // PH6 ** Pin18 ** PWM9 In pins.RAMPS.h #ifndef MOSFET_D_PIN #define RAMPS_D7_PIN 7 // -1 to disable #define MOSFET_D_PIN RAMPS_D7_PIN #endif ------------------------ #define HEATER_BED_PIN RAMPS_D8_PIN #if HOTENDS == 1 #define FAN1_PIN RAMPS_D7_PIN #else #define HEATER_1_PIN MOSFET_D_PIN #endif ---------------------- #else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE") #define FAN_PIN RAMPS_D9_PIN #endiff
Re: No fan control with Marlin2.0 on MKS Sbase April 13, 2019 04:52PM |
Registered: 5 years ago Posts: 4 |
Re: No fan control with Marlin2.0 on MKS Sbase April 13, 2019 06:19PM |
Registered: 5 years ago Posts: 3 |
Re: No fan control with Marlin2.0 on MKS Sbase April 13, 2019 06:27PM |
Registered: 5 years ago Posts: 4 |
Quote
p-r-o-m-e-t-h-e-u-s
I've also a SBase running (but not delta). Both fans run like a charm with Marlin 2.0
e.g. Extruder fan
#define E0_AUTO_FAN_PIN P2_06 #define EXTRUDER_AUTO_FAN_TEMPERATURE 50 #define EXTRUDER_AUTO_FAN_SPEED 196
Re: No fan control with Marlin2.0 on MKS Sbase April 14, 2019 01:56AM |
Registered: 5 years ago Posts: 3 |
// // Heaters / Fans // #define HEATER_BED_PIN P2_05 #define HEATER_0_PIN P2_07 #define HEATER_1_PIN P2_06 #ifndef FAN_PIN #define FAN_PIN P2_04 #endif
// The following define selects which electronics board you have. // Please choose the name from boards.h that matches your setup #ifndef MOTHERBOARD #define MOTHERBOARD BOARD_MKS_SBASE #endif
[platformio] src_dir = Marlin build_dir = .pioenvs lib_dir = .piolib libdeps_dir = .piolibdeps boards_dir = buildroot/share/PlatformIO/boards env_default = LPC1768
Re: No fan control with Marlin2.0 on MKS Sbase April 16, 2019 01:23AM |
Registered: 5 years ago Posts: 4 |
Quote
p-r-o-m-e-t-h-e-u-s
You should not comment that out I guess. The pins_MKS_SBASE.h already defines that properly.
// // Heaters / Fans // #define HEATER_BED_PIN P2_05 #define HEATER_0_PIN P2_07 #define HEATER_1_PIN P2_06 #ifndef FAN_PIN #define FAN_PIN P2_04 #endif
Have you set your target board to
// The following define selects which electronics board you have. // Please choose the name from boards.h that matches your setup #ifndef MOTHERBOARD #define MOTHERBOARD BOARD_MKS_SBASE #endif
Also the platformio.ini should be something ike
[platformio] src_dir = Marlin build_dir = .pioenvs lib_dir = .piolib libdeps_dir = .piolibdeps boards_dir = buildroot/share/PlatformIO/boards env_default = LPC1768