makerbase-mks / MKS-EAGLE

MKS Eagle is an integrated design version of Nano V3.0. It retains the functions of Nano V3, but intergrates 5 TMC2209 drivers on board with UART mode, and uses integrated heat dissipation and four-layer PCB optimization design.
https://www.aliexpress.com/item/1005003183498253.html?spm=a2g0o.store_pc_home.productList_8356958.pic_0
GNU General Public License v3.0
13 stars 2 forks source link

Chamber fan #13

Open dupaser opened 1 year ago

dupaser commented 1 year ago

I use MKS EAGLE + MKS H43. I also use the firmware Marlin 02000902 sent to me by the manufacturer. The problem is that the #define CHAMBER_AUTO_FAN_TEMPERATURE function works well. However, the temperature maintenance function #define CHAMBER_FAN does not work, the fans do not turn on when I set the temperature through the slicer.

I've tried different firmware versions, but there are significantly more problems with the rest.

I'll attach some lines of code below.

define TEMP_SENSOR_0 1

define TEMP_SENSOR_1 0

define TEMP_SENSOR_2 0

define TEMP_SENSOR_3 0

define TEMP_SENSOR_4 0

define TEMP_SENSOR_5 0

define TEMP_SENSOR_6 0

define TEMP_SENSOR_7 0

define TEMP_SENSOR_BED 1

define TEMP_SENSOR_PROBE 0

define TEMP_SENSOR_CHAMBER 1

define TEMP_SENSOR_COOLER 0

define TEMP_SENSOR_BOARD 0

define TEMP_SENSOR_REDUNDANT 0

//#define PIDTEMPCHAMBER //#define CHAMBER_LIMIT_SWITCHING

define THERMAL_PROTECTION_HOTENDS // Enable thermal protection for all extruders

define THERMAL_PROTECTION_BED // Enable thermal protection for the heated bed

//#define THERMAL_PROTECTION_CHAMBER // Enable thermal protection for the heated chamber //#define THERMAL_PROTECTION_COOLER // Enable thermal protection for the laser cooling

if TEMP_SENSOR_CHAMBER

define HEATER_CHAMBER_PIN PB0 // Required heater on/off pin (example: SKR 1.4 Turbo HE1 plug)

define HEATER_CHAMBER_INVERTING true

define FAN1_PIN PB0 // Remove the fan signal on pin P2_04 (example: SKR 1.4 Turbo HE1 plug)

define CHAMBER_FAN // Enable a fan on the chamber

if ENABLED(CHAMBER_FAN)

#define CHAMBER_FAN_MODE 2        // Fan control mode: 0=Static; 1=Linear increase when temp is higher than target; 2=V-shaped curve; 3=similar to 1 but fan is always on.
#if CHAMBER_FAN_MODE == 0
  #define CHAMBER_FAN_BASE  250   // Chamber fan PWM (0-255)
#elif CHAMBER_FAN_MODE == 1
  #define CHAMBER_FAN_BASE  128   // Base chamber fan PWM (0-255); turns on when chamber temperature is above the target
  #define CHAMBER_FAN_FACTOR 25   // PWM increase per °C above target
#elif CHAMBER_FAN_MODE == 2
  #define CHAMBER_FAN_BASE  130   // Minimum chamber fan PWM (0-255)
  #define CHAMBER_FAN_FACTOR 65   // PWM increase per °C difference from target
#elif CHAMBER_FAN_MODE == 3
  #define CHAMBER_FAN_BASE  128   // Base chamber fan PWM (0-255)
  #define CHAMBER_FAN_FACTOR 25   // PWM increase per °C above target
#endif

endif

define E0_AUTO_FAN_PIN PB1

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 PB0

define COOLER_AUTO_FAN_PIN -1

define COOLER_FAN_PIN -1

define EXTRUDER_AUTO_FAN_TEMPERATURE 50

define EXTRUDER_AUTO_FAN_SPEED 250 // 255 == full speed

define CHAMBER_AUTO_FAN_TEMPERATURE 55

define CHAMBER_AUTO_FAN_SPEED 250

define COOLER_AUTO_FAN_TEMPERATURE 18

define COOLER_AUTO_FAN_SPEED 255