Welcome! Log In Create A New Profile

Advanced

No fan control with Marlin2.0 on MKS Sbase

Posted by jarhead_h 
No fan control with Marlin2.0 on MKS Sbase
April 13, 2019 01:01AM
I have an FLSUN 2016 model Delta that I managed to burn out the ramps board on. Took the opportunity to upgrade to 32bit thinking Smoothieware would be great. After a year of periodically trying and failing to get Smoothie to do anything, I heard about Marlin2.0 and switched. I have managed to run a bunch of test cubes and one failed benchy thanks to an extension cord I made for the parts cooling fan - it's plugged into a spare plug off of my PC PSU. But I would like to get fans working in Marlin and I have no idea if it's something I have set wrong or if I have found a bug. Hoping this is a common enough problem that someone knows what setting to edit so that I can feel like a twit, but a twit with a fully working printer.

Second issue - EEPROM settings. Enabling them gives me an error message when M500, M501, or M502 is sent.

Using Fedora 29, Atom+PlatformIO, and last weeks download of Marlin 2.0bugfix from Github.
Re: No fan control with Marlin2.0 on MKS Sbase
April 13, 2019 01:34AM
And what exact board are you running?

Smoothieboards and clones don't have eeproms...

But they can used either flash eeprom emulation or the SD card on the controller

Did you have a SD card installed in the controller.?
Re: No fan control with Marlin2.0 on MKS Sbase
April 13, 2019 10:35AM
Marlin 2.0.x has a few examples of configurations to help assist you under src\config\examples.
With a these examples you should be able to configure Marlin 2.0.x

If you would like help with Marlin 2.0.x reply, will help you to configure.
Would like to know what you already have configured include controller model to assist in with the board pins.


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

Edited 2 time(s). Last edit at 04/13/2019 06:56PM by Roberts_Clif.


Computer Programmer / Electronics Technician
Re: No fan control with Marlin2.0 on MKS Sbase
April 13, 2019 04:52PM
[gist.github.com] that returns a 404.

MKS_SBASE V1.3 It's listed in the example configurations that I based my own config file on before signing up to this board. Motion control is working. Extruder control is working. The hot end and heated bed are both working perfectly. Fan control is not. I have managed to print about a dozen test cubes, two delta config rings, and about 85% of a benchy before heat creep clogged the knockoff V6 because it was in a crappy aftermarket effector with terrible airflow. Currently have the original knockoff V5 that came with it reinstalled.

Here are the errors I am getting:

SENDING:M501
echo:EEPROM version mismatch (EEPROM=? Marlin=V64)
echo:Hardcoded Default Settings Loaded

And yes that's with the sd card installed. But this issue concerns me almost not at all.

Fan issue concerns me greatly. Here are those :

M43 I P0.26 W
SENDING:M43 I P0.26 W
Watching pins
>>> m106

M43 I P2.04 W
SENDING:M43 I P0.26 W
Watching pins
>>> m106


There is a known good 40mm fan plugged into each set of pins verified by plugging each one into my PC PSU first and then plugged into the SBASE. No fan spin on either with M106 even though Pronterface reports they are at full speed. Have tried enabling and disabling AUTO_POWER_CONTROL. Have tried manually defining both of them as E0_AUTO_FAN_PIN.

pins_MKS_SBASE.h

#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
#define FAN1_PIN P0_26 // TH4 Connector
#endif
Re: No fan control with Marlin2.0 on MKS Sbase
April 13, 2019 06:19PM
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 13, 2019 06:27PM
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


And did you comment out the corresponding section in the pins_.h? Because if I don't Marlin won't finish compiling. And then it still hasn't worked because I tried that pin, too.

This is what M43 spit out : PIN: 2.06 Output = 0
PIN: 0.26 (A 3) FAN1_PIN protected
PIN: 2.04 FAN_PIN protected

I don't know what any of that means.

Edited 2 time(s). Last edit at 04/13/2019 06:30PM by jarhead_h.
Re: No fan control with Marlin2.0 on MKS Sbase
April 14, 2019 01:56AM
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
Re: No fan control with Marlin2.0 on MKS Sbase
April 16, 2019 01:23AM
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

I had all of that done well before I started asking for help. Trust me, none of my problems are ever that basic. It's either a cable left unplugged or something completely unique that requires a complete rebuild. Like right now. I have two hot ends(Knockoff V5&V6) and can't keep either of them cool enough to finish a print bigger than a test box. The 30mm is spinning but the airflow sucks and I don't have a spare. I have plenty of 40mm fans for the V5 and no good way to mount it to avoid heat creep. All the benchys fail about 80% of the way done due to sudden under-extrusion because the the filament is jammed up in the meat sink.

I swear if I had the money I would buy a big CR10 and melt this dammed delta.
Sorry, only registered users may post in this forum.

Click here to login