makerbase-mks / MKS-Robin-Nano-V3.X

Robin nano V3 is an upgraded version of Robin Nano V2.0. The upgrade changes are quite large, including upgrading the MCU to the M4 core, and adding support for USB disk.
GNU General Public License v3.0
141 stars 69 forks source link

Problems with Marlin with custom FLSUN QQ-S Pro #111

Open davedouthettrb opened 2 years ago

davedouthettrb commented 2 years ago

I've spent hours working with FLSUN to fix the firmware for my custom QQ-S Pro with an MKS Robin Nano V3.1 and a TS35 V2.0.

I have the Homing fixed except, if I offset any axis by a small amount manually after homing, Homing fails every time even after a printer reset or power up until I reinstall the firmware.bin file.

Other unresolved issues which either cause build failures or printer function failures:

  1. Auto-leveling crashes into build plate even after homing.
  2. The stock sensor lights up when pressed manually but doesn't get detected by the controller.
  3. My hotend thermistor (from SeeMeCNC) doesn't work correctly (stopped between 160°C and 170°C ... setting 1 & 11 tried). I'm getting a new one (included with E3D Revo Micro Kit).

A few others have tried the same mods with similar results.

Using the following: Mks-Robin-Nano-Marlin2.0-Firmware-master.zip Configurations-release-2.0.9.3.zip (using one of the Delta/FLSUN examples

Someone please help!

Thanks!

MKS-hosiey commented 2 years ago

Is this the motherboard of the machine? Or did you replace it yourself? This is because your configuration parameters are incorrect. The configuration of delta is very complicated. It is recommended that you look for the configuration file of this machine in the configuration file of marlin.

davedouthettrb commented 2 years ago

MKS-hosiey, I replace the original because it failed.A lot of modifications were done to get the Robin Nano and the TS35 in the chassis. I'm still working on the firmware myself (just finished a build that passed using Configurations-bugfix-2.0.x.zip & Marlin-bugfix-2.0 downloaded today).I've already spent hours on the firmware trying to get everything to work. I can send you the configuration files to look at if you wish. Thanks! Dave On Sunday, May 22, 2022, 08:41:13 PM MDT, MKS-hosiey @.***> wrote:

Is this the motherboard of the machine? Or did you replace it yourself? This is because your configuration parameters are incorrect. The configuration of delta is very complicated. It is recommended that you look for the configuration file of this machine in the configuration file of marlin.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

davedouthettrb commented 2 years ago

MKS-hosiey,

Just tried the new firmware. 1.    Homing is working correctly now.2.    Previously, the touch-screen and decoder were working but now they are erratic.  It takes a bit of effort to get the correct selection and then to activate it.3.    Leveling looked like it was going to work, it stopped moving down about 20mm from the build plate and then move toward the edge of the plate.  Unfortunately, it moved about 5 mm beyond the edge of the build plate and crashed below it. The sensor lights up on contact with the build plate but the controller doesn't seem to detect it. If you can help me with this, that would be great!  Files attached. Thanks! Dave

On Sunday, May 22, 2022, 10:12:31 PM MDT, Dave Douthett ***@***.***> wrote:  

MKS-hosiey, I replace the original because it failed.A lot of modifications were done to get the Robin Nano and the TS35 in the chassis. I'm still working on the firmware myself (just finished a build that passed using Configurations-bugfix-2.0.x.zip & Marlin-bugfix-2.0 downloaded today).I've already spent hours on the firmware trying to get everything to work. I can send you the configuration files to look at if you wish. Thanks! Dave On Sunday, May 22, 2022, 08:41:13 PM MDT, MKS-hosiey @.***> wrote:

Is this the motherboard of the machine? Or did you replace it yourself? This is because your configuration parameters are incorrect. The configuration of delta is very complicated. It is recommended that you look for the configuration file of this machine in the configuration file of marlin.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

/**

define CONFIG_EXAMPLES_DIR "delta/FLSUN/QQS-Pro"

/**

//=========================================================================== //============================= Getting Started ============================= //===========================================================================

/**

// @section info

// Author info of this build printed to the host during boot and M115

define STRING_CONFIG_H_AUTHOR "(Foxies-CSTL, QQS-Pro)" // Who made the changes.

//#define CUSTOM_VERSION_FILE Version.h // Path from the root directory (no quotes)

/**

// Show the Marlin bootscreen on startup. ENABLE FOR PRODUCTION

define SHOW_BOOTSCREEN

// Show the bitmap in Marlin/_Bootscreen.h on startup. //#define SHOW_CUSTOM_BOOTSCREEN

// Show the bitmap in Marlin/_Statusscreen.h on the status screen. //#define CUSTOM_STATUS_SCREEN_IMAGE

// @section machine

// Choose the name from boards.h that matches your setup

ifndef MOTHERBOARD

#define MOTHERBOARD BOARD_MKS_ROBIN_NANO_V3

endif

/**

/**

/**

/**

// Enable the Bluetooth serial interface on AT90USB devices //#define BLUETOOTH

// Name displayed in the LCD "Ready" message and Info menu

define CUSTOM_MACHINE_NAME "FLSUN QQS-Pro Robin Nano V3.1 TS35 V2"

// Printer's unique ID, used by some programs to differentiate between machines. // Choose your own or use a service like https://www.uuidgenerator.net/version4 //#define MACHINE_UUID "00000000-0000-0000-0000-000000000000"

/**

/**

// @section extruder

// This defines the number of extruders // :[0, 1, 2, 3, 4, 5, 6, 7, 8]

define EXTRUDERS 1

// Generally expected filament diameter (1.75, 2.85, 3.0, ...). Used for Volumetric, Filament Width Sensor, etc.

define DEFAULT_NOMINAL_FILAMENT_DIA 1.75

// For Cyclops or any "multi-extruder" that shares a single nozzle. //#define SINGLENOZZLE

// Save and restore temperature and fan speed on tool-change. // Set standby for the unselected tool with M104/106/109 T...

if ENABLED(SINGLENOZZLE)

//#define SINGLENOZZLE_STANDBY_TEMP //#define SINGLENOZZLE_STANDBY_FAN

endif

/**

// A dual extruder that uses a single stepper motor //#define SWITCHING_EXTRUDER

if ENABLED(SWITCHING_EXTRUDER)

define SWITCHING_EXTRUDER_SERVO_NR 0

define SWITCHING_EXTRUDER_SERVO_ANGLES { 0, 90 } // Angles for E0, E1[, E2, E3]

if EXTRUDERS > 3

#define SWITCHING_EXTRUDER_E23_SERVO_NR 1

endif

endif

// A dual-nozzle that uses a servomotor to raise/lower one (or both) of the nozzles //#define SWITCHING_NOZZLE

if ENABLED(SWITCHING_NOZZLE)

define SWITCHING_NOZZLE_SERVO_NR 0

//#define SWITCHING_NOZZLE_E1_SERVO_NR 1 // If two servos are used, the index of the second

define SWITCHING_NOZZLE_SERVO_ANGLES { 0, 90 } // Angles for E0, E1 (single servo) or lowered/raised (dual servo)

endif

/**

/**

if EITHER(PARKING_EXTRUDER, MAGNETIC_PARKING_EXTRUDER)

define PARKING_EXTRUDER_PARKING_X { -78, 184 } // X positions for parking the extruders

define PARKING_EXTRUDER_GRAB_DISTANCE 1 // (mm) Distance to move beyond the parking point to grab the extruder

if ENABLED(PARKING_EXTRUDER)

#define PARKING_EXTRUDER_SOLENOIDS_INVERT           // If enabled, the solenoid is NOT magnetized with applied voltage
#define PARKING_EXTRUDER_SOLENOIDS_PINS_ACTIVE LOW  // LOW or HIGH pin signal energizes the coil
#define PARKING_EXTRUDER_SOLENOIDS_DELAY 250        // (ms) Delay for magnetic field. No delay if 0 or not defined.
//#define MANUAL_SOLENOID_CONTROL                   // Manual control of docking solenoids with M380 S / M381

elif ENABLED(MAGNETIC_PARKING_EXTRUDER)

#define MPE_FAST_SPEED      9000      // (mm/min) Speed for travel before last distance point
#define MPE_SLOW_SPEED      4500      // (mm/min) Speed for last distance travel to park and couple
#define MPE_TRAVEL_DISTANCE   10      // (mm) Last distance point
#define MPE_COMPENSATION       0      // Offset Compensation -1 , 0 , 1 (multiplier) only for coupling

endif

endif

/**

/**

/**

if ANY(SWITCHING_TOOLHEAD, MAGNETIC_SWITCHING_TOOLHEAD, ELECTROMAGNETIC_SWITCHING_TOOLHEAD)

define SWITCHING_TOOLHEAD_Y_POS 235 // (mm) Y position of the toolhead dock

define SWITCHING_TOOLHEAD_Y_SECURITY 10 // (mm) Security distance Y axis

define SWITCHING_TOOLHEAD_Y_CLEAR 60 // (mm) Minimum distance from dock for unobstructed X axis

define SWITCHING_TOOLHEAD_X_POS { 215, 0 } // (mm) X positions for parking the extruders

if ENABLED(SWITCHING_TOOLHEAD)

#define SWITCHING_TOOLHEAD_SERVO_NR       2         // Index of the servo connector
#define SWITCHING_TOOLHEAD_SERVO_ANGLES { 0, 180 }  // (degrees) Angles for Lock, Unlock

elif ENABLED(MAGNETIC_SWITCHING_TOOLHEAD)

#define SWITCHING_TOOLHEAD_Y_RELEASE      5         // (mm) Security distance Y axis
#define SWITCHING_TOOLHEAD_X_SECURITY   { 90, 150 } // (mm) Security distance X axis (T0,T1)
//#define PRIME_BEFORE_REMOVE                       // Prime the nozzle before release from the dock
#if ENABLED(PRIME_BEFORE_REMOVE)
  #define SWITCHING_TOOLHEAD_PRIME_MM           20  // (mm)   Extruder prime length
  #define SWITCHING_TOOLHEAD_RETRACT_MM         10  // (mm)   Retract after priming length
  #define SWITCHING_TOOLHEAD_PRIME_FEEDRATE    300  // (mm/min) Extruder prime feedrate
  #define SWITCHING_TOOLHEAD_RETRACT_FEEDRATE 2400  // (mm/min) Extruder retract feedrate
#endif

elif ENABLED(ELECTROMAGNETIC_SWITCHING_TOOLHEAD)

#define SWITCHING_TOOLHEAD_Z_HOP          2         // (mm) Z raise for switching

endif

endif

/**

// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing). // The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder). // For the other hotends it is their distance from the extruder 0 hotend. //#define HOTEND_OFFSET_X { 0.0, 20.00 } // (mm) relative X-offset for each nozzle //#define HOTEND_OFFSET_Y { 0.0, 5.00 } // (mm) relative Y-offset for each nozzle //#define HOTEND_OFFSET_Z { 0.0, 0.00 } // (mm) relative Z-offset for each nozzle

// @section machine

/**

if ENABLED(PSU_CONTROL)

//#define MKS_PWC // Using the MKS PWC add-on //#define PS_OFF_CONFIRM // Confirm dialog when power off //#define PS_OFF_SOUND // Beep 1s when power off

define PSU_ACTIVE_STATE LOW // Set 'LOW' for ATX, 'HIGH' for X-Box

//#define PSU_DEFAULT_OFF // Keep power off until enabled directly with M80 //#define PSU_POWERUP_DELAY 250 // (ms) Delay for the PSU to warm up to full power //#define LED_POWEROFF_TIMEOUT 10000 // (ms) Turn off LEDs after power-off, with this amount of delay

//#define POWER_OFF_TIMER // Enable M81 D to power off after a delay //#define POWER_OFF_WAIT_FOR_COOLDOWN // Enable M81 S to power off only after cooldown

//#define PSU_POWERUP_GCODE "M355 S1" // G-code to run after power-on (e.g., case light on) //#define PSU_POWEROFF_GCODE "M355 S0" // G-code to run before power-off (e.g., case light off)

//#define AUTO_POWER_CONTROL // Enable automatic control of the PS_ON pin

if ENABLED(AUTO_POWER_CONTROL)

#define AUTO_POWER_FANS         // Turn on PSU if fans need power
#define AUTO_POWER_E_FANS
#define AUTO_POWER_CONTROLLERFAN
#define AUTO_POWER_CHAMBER_FAN
#define AUTO_POWER_COOLER_FAN
#define POWER_TIMEOUT              30 // (s) Turn off power if the machine is idle for this duration
//#define POWER_OFF_DELAY          60 // (s) Delay of poweroff after M81 command. Useful to let fans run for extra time.

endif

if EITHER(AUTO_POWER_CONTROL, POWER_OFF_WAIT_FOR_COOLDOWN)

//#define AUTO_POWER_E_TEMP        50 // (°C) PSU on if any extruder is over this temperature
//#define AUTO_POWER_CHAMBER_TEMP  30 // (°C) PSU on if the chamber is over this temperature
//#define AUTO_POWER_COOLER_TEMP   26 // (°C) PSU on if the cooler is over this temperature

endif

endif

//=========================================================================== //============================= Thermal Settings ============================ //=========================================================================== // @section temperature

/**

// Dummy thermistor constant temperature readings, for use with 998 and 999 //#define DUMMY_THERMISTOR_998_VALUE 25 //#define DUMMY_THERMISTOR_999_VALUE 100

// Resistor values when using MAX31865 sensors (-5) on TEMP_SENSOR_0 / 1 //#define MAX31865_SENSOR_OHMS_0 100 // (Ω) Typically 100 or 1000 (PT100 or PT1000) //#define MAX31865_CALIBRATION_OHMS_0 430 // (Ω) Typically 430 for Adafruit PT100; 4300 for Adafruit PT1000 //#define MAX31865_SENSOR_OHMS_1 100 //#define MAX31865_CALIBRATION_OHMS_1 430

define TEMP_RESIDENCY_TIME 10 // (seconds) Time to wait for hotend to "settle" in M109

define TEMP_WINDOW 1 // (°C) Temperature proximity for the "temperature reached" timer

define TEMP_HYSTERESIS 3 // (°C) Temperature proximity considered "close enough" to the target

define TEMP_BED_RESIDENCY_TIME 10 // (seconds) Time to wait for bed to "settle" in M190

define TEMP_BED_WINDOW 1 // (°C) Temperature proximity for the "temperature reached" timer

define TEMP_BED_HYSTERESIS 3 // (°C) Temperature proximity considered "close enough" to the target

define TEMP_CHAMBER_RESIDENCY_TIME 10 // (seconds) Time to wait for chamber to "settle" in M191

define TEMP_CHAMBER_WINDOW 1 // (°C) Temperature proximity for the "temperature reached" timer

define TEMP_CHAMBER_HYSTERESIS 3 // (°C) Temperature proximity considered "close enough" to the target

/**

// Below this temperature the heater will be switched off // because it probably indicates a broken thermistor wire.

define HEATER_0_MINTEMP 5

define HEATER_1_MINTEMP 5

define HEATER_2_MINTEMP 5

define HEATER_3_MINTEMP 5

define HEATER_4_MINTEMP 5

define HEATER_5_MINTEMP 5

define HEATER_6_MINTEMP 5

define HEATER_7_MINTEMP 5

define BED_MINTEMP 5

define CHAMBER_MINTEMP 5

// Above this temperature the heater will be switched off. // This can protect components from overheating, but NOT from shorts and failures. // (Use MINTEMP for thermistor short/failure protection.)

define HEATER_0_MAXTEMP 275

define HEATER_1_MAXTEMP 275

define HEATER_2_MAXTEMP 275

define HEATER_3_MAXTEMP 275

define HEATER_4_MAXTEMP 275

define HEATER_5_MAXTEMP 275

define HEATER_6_MAXTEMP 275

define HEATER_7_MAXTEMP 275

define BED_MAXTEMP 120

define CHAMBER_MAXTEMP 60

/**

//=========================================================================== //============================= PID Settings ================================ //===========================================================================

// Enable PIDTEMP for PID control or MPCTEMP for Predictive Model. // temperature control. Disable both for bang-bang heating.

define PIDTEMP // See the PID Tuning Guide at https://reprap.org/wiki/PID_Tuning

//#define MPCTEMP // EXPERIMENTAL

define BANG_MAX 255 // Limits current to nozzle while in bang-bang mode; 255=full current

define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current

define PID_K1 0.95 // Smoothing factor within any PID loop

if ENABLED(PIDTEMP)

//#define PID_PARAMS_PER_HOTEND // Uses separate PID parameters for each extruder (useful for mismatched extruders) // Set/get with gcode: M301 E[extruder number, 0-2]

if ENABLED(PID_PARAMS_PER_HOTEND)

// Specify up to one value per hotend here, according to your setup.
// If there are fewer values, the last one applies to the remaining hotends.
#define DEFAULT_Kp_LIST { 21.6708, 21.6708 }
#define DEFAULT_Ki_LIST {  1.2515,  1.2515 }
#define DEFAULT_Kd_LIST { 93.8127, 93.8127 }

else

// FLSUN QQS-Pro, PET 235 C with 70% part cooling
#define DEFAULT_Kp 21.6708
#define DEFAULT_Ki  1.2515
#define DEFAULT_Kd 93.8127

endif

endif

/**

//=========================================================================== //====================== PID > Bed Temperature Control ====================== //===========================================================================

/**

//#define BED_LIMIT_SWITCHING

/**

if ENABLED(PIDTEMPBED)

//#define MIN_BED_POWER 0 //#define PID_BED_DEBUG // Sends debug data to the serial port.

// FLSUN QQS-Pro 1.6mm aluminium heater with 4mm lattice glass

define DEFAULT_bedKp 82.98

define DEFAULT_bedKi 15.93

define DEFAULT_bedKd 288.25

// FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.

endif // PIDTEMPBED

//=========================================================================== //==================== PID > Chamber Temperature Control ==================== //===========================================================================

/**

/**

if ENABLED(PIDTEMPCHAMBER)

define MIN_CHAMBER_POWER 0

//#define PID_CHAMBER_DEBUG // Sends debug data to the serial port.

// Lasko "MyHeat Personal Heater" (200w) modified with a Fotek SSR-10DA to control only the heating element // and placed inside the small Creality printer enclosure tent. //

define DEFAULT_chamberKp 37.04

define DEFAULT_chamberKi 1.40

define DEFAULT_chamberKd 655.17

// M309 P37.04 I1.04 D655.17

// FIND YOUR OWN: "M303 E-2 C8 S50" to run autotune on the chamber at 50 degreesC for 8 cycles.

endif // PIDTEMPCHAMBER

if ANY(PIDTEMP, PIDTEMPBED, PIDTEMPCHAMBER)

//#define PID_DEBUG // Sends debug data to the serial port. Use 'M303 D' to toggle activation. //#define PID_OPENLOOP // Puts PID in open loop. M104/M140 sets the output power from 0 to PID_MAX //#define SLOW_PWM_HEATERS // PWM with very low frequency (roughly 0.125Hz=8s) and minimum state time of approximately 1s useful for heaters driven by a relay

define PID_FUNCTIONAL_RANGE 30 // If the temperature difference between the target temperature and the actual temperature

                              // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.

define PID_EDIT_MENU // Add PID editing to the "Advanced Settings" menu. (~700 bytes of flash)

define PID_AUTOTUNE_MENU // Add PID auto-tuning to the "Advanced Settings" menu. (~250 bytes of flash)

endif

// @section extruder

/**

/**

//=========================================================================== //======================== Thermal Runaway Protection ======================= //===========================================================================

/**

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

//=========================================================================== //============================= Mechanical Settings ========================= //===========================================================================

// @section machine

// Enable one of the options below for CoreXY, CoreXZ, or CoreYZ kinematics, // either in the usual order or reversed //#define COREXY //#define COREXZ //#define COREYZ //#define COREYX //#define COREZX //#define COREZY //#define MARKFORGED_XY // MarkForged. See https://reprap.org/forum/read.php?152,504042 //#define MARKFORGED_YX

//=========================================================================== //============================== Delta Settings ============================= //=========================================================================== // Enable DELTA kinematics and most of the default configuration for Deltas

define DELTA

if ENABLED(DELTA)

// Make delta curves from many straight lines (linear interpolation). // This is a trade-off between visible corners (not enough segments) // and processor overload (too many expensive sqrt calls).

define DELTA_SEGMENTS_PER_SECOND 160

// After homing move down to a height where XY movement is unconstrained //#define DELTA_HOME_TO_SAFE_ZONE

// Delta calibration menu // uncomment to add three points calibration menu option. // See http://minow.blogspot.com/index.html#4918805519571907051 //#define DELTA_CALIBRATION_MENU

// uncomment to add G33 Delta Auto-Calibration (Enable EEPROM_SETTINGS to store results) //#define DELTA_AUTO_CALIBRATION

// NOTE NB all values for DELTA_* values MUST be floating point, so always have a decimal point in them

if ENABLED(DELTA_AUTO_CALIBRATION)

// set the default number of probe points : n*n (1 -> 7)
#define DELTA_CALIBRATION_DEFAULT_POINTS 4

endif

if EITHER(DELTA_AUTO_CALIBRATION, DELTA_CALIBRATION_MENU)

// Set the steprate for papertest probing
#define PROBE_MANUALLY_STEP 0.05      // (mm)

endif

// Print surface diameter/2 minus unreachable space (avoid collisions with vertical towers).

define DELTA_PRINTABLE_RADIUS 127.0 // (mm)

// Maximum reachable area

define DELTA_MAX_RADIUS 127.0 // (mm)

// Center-to-center distance of the holes in the diagonal push rods.

define DELTA_DIAGONAL_ROD 280.00 // (mm)

// Distance between bed and nozzle Z home position

define DELTA_HEIGHT 350.00 // (mm) Get this value from G33 auto calibrate

define DELTA_ENDSTOP_ADJ { 0.0, 0.0, 0.0 } // Get these values from G33 auto calibrate

// Horizontal distance bridged by diagonal push rods when effector is centered.

define DELTA_RADIUS 140.8 // (mm) Get this value from G33 auto calibrate

// Trim adjustments for individual towers // tower angle corrections for X and Y tower / rotate XYZ so Z tower angle = 0 // measured in degrees anticlockwise looking from above the printer

define DELTA_TOWER_ANGLE_TRIM { 0.0, 0.0, 0.0 } // Get these values from G33 auto calibrate

// Delta radius and diagonal rod adjustments (mm) //#define DELTA_RADIUS_TRIM_TOWER { 0.0, 0.0, 0.0 }

define DELTA_DIAGONAL_ROD_TRIM_TOWER { 0.0, 0.0, 0.0 }

endif

//=========================================================================== //============================== Endstop Settings =========================== //===========================================================================

// @section homing

// Specify here all the endstop connectors that are connected to any endstop or probe. // Almost all printers will be using one per axis. Probes will use one or more of the // extra connectors. Leave undefined any used for non-endstop and non-probe purposes. //#define USE_XMIN_PLUG //#define USE_YMIN_PLUG

define USE_ZMIN_PLUG // a Z probe

//#define USE_IMIN_PLUG //#define USE_JMIN_PLUG //#define USE_KMIN_PLUG //#define USE_UMIN_PLUG //#define USE_VMIN_PLUG //#define USE_WMIN_PLUG

define USE_XMAX_PLUG

define USE_YMAX_PLUG

define USE_ZMAX_PLUG

//#define USE_IMAX_PLUG //#define USE_JMAX_PLUG //#define USE_KMAX_PLUG //#define USE_UMAX_PLUG //#define USE_VMAX_PLUG //#define USE_WMAX_PLUG

// Enable pullup for all endstops to prevent a floating state

define ENDSTOPPULLUPS

if DISABLED(ENDSTOPPULLUPS)

// Disable ENDSTOPPULLUPS to set pullups individually //#define ENDSTOPPULLUP_XMIN //#define ENDSTOPPULLUP_YMIN //#define ENDSTOPPULLUP_ZMIN //#define ENDSTOPPULLUP_IMIN //#define ENDSTOPPULLUP_JMIN //#define ENDSTOPPULLUP_KMIN //#define ENDSTOPPULLUP_UMIN //#define ENDSTOPPULLUP_VMIN //#define ENDSTOPPULLUP_WMIN //#define ENDSTOPPULLUP_XMAX //#define ENDSTOPPULLUP_YMAX //#define ENDSTOPPULLUP_ZMAX //#define ENDSTOPPULLUP_IMAX //#define ENDSTOPPULLUP_JMAX //#define ENDSTOPPULLUP_KMAX //#define ENDSTOPPULLUP_UMAX //#define ENDSTOPPULLUP_VMAX //#define ENDSTOPPULLUP_WMAX //#define ENDSTOPPULLUP_ZMIN_PROBE

endif

// Enable pulldown for all endstops to prevent a floating state //#define ENDSTOPPULLDOWNS

if DISABLED(ENDSTOPPULLDOWNS)

// Disable ENDSTOPPULLDOWNS to set pulldowns individually //#define ENDSTOPPULLDOWN_XMIN //#define ENDSTOPPULLDOWN_YMIN //#define ENDSTOPPULLDOWN_ZMIN //#define ENDSTOPPULLDOWN_IMIN //#define ENDSTOPPULLDOWN_JMIN //#define ENDSTOPPULLDOWN_KMIN //#define ENDSTOPPULLDOWN_UMIN //#define ENDSTOPPULLDOWN_VMIN //#define ENDSTOPPULLDOWN_WMIN //#define ENDSTOPPULLDOWN_XMAX //#define ENDSTOPPULLDOWN_YMAX //#define ENDSTOPPULLDOWN_ZMAX //#define ENDSTOPPULLDOWN_IMAX //#define ENDSTOPPULLDOWN_JMAX //#define ENDSTOPPULLDOWN_KMAX //#define ENDSTOPPULLDOWN_UMAX //#define ENDSTOPPULLDOWN_VMAX //#define ENDSTOPPULLDOWN_WMAX //#define ENDSTOPPULLDOWN_ZMIN_PROBE

endif

// Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).

define X_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define Y_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define Z_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.

define I_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define J_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define K_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define U_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define V_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define W_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define X_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define Y_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define Z_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define I_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define J_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define K_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define U_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define V_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define W_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define Z_MIN_PROBE_ENDSTOP_INVERTING true // Set to true to invert the logic of the probe.

// Enable this feature if all enabled endstop pins are interrupt-capable. // This will remove the need to poll the interrupt pins, saving many CPU cycles. //#define ENDSTOP_INTERRUPTS_FEATURE

/**

// Check for stuck or disconnected endstops during homing moves. //#define DETECT_BROKEN_ENDSTOP

//============================================================================= //============================== Movement Settings ============================ //============================================================================= // @section motion

// delta speeds must be the same on xyz /**

/**

/**

// delta speeds must be the same on xyz

define DEFAULT_XYZ_STEPS_PER_UNIT ((XYZ_FULL_STEPS_PER_ROTATION) * (XYZ_MICROSTEPS) / double(XYZ_BELT_PITCH) / double(XYZ_PULLEY_TEETH))

define DEFAULT_AXIS_STEPS_PER_UNIT { DEFAULT_XYZ_STEPS_PER_UNIT, DEFAULT_XYZ_STEPS_PER_UNIT, DEFAULT_XYZ_STEPS_PER_UNIT, 396 } // default steps per unit

/**

//#define LIMITED_MAX_FR_EDITING // Limit edit via M203 or LCD to DEFAULT_MAX_FEEDRATE * 2

if ENABLED(LIMITED_MAX_FR_EDITING)

define MAX_FEEDRATE_EDIT_VALUES { 600, 600, 10, 50 } // ...or, set your own edit limits

endif

/**

//#define LIMITED_MAX_ACCEL_EDITING // Limit edit via M201 or LCD to DEFAULT_MAX_ACCELERATION * 2

if ENABLED(LIMITED_MAX_ACCEL_EDITING)

define MAX_ACCEL_EDIT_VALUES { 6000, 6000, 3000, 20000 } // ...or, set your own edit limits

endif

/**

/**

define DEFAULT_EJERK 5.0 // May be used by Linear Advance

/**

/**

//=========================================================================== //============================= Z Probe Options ============================= //=========================================================================== // @section probes

// // See https://marlinfw.org/docs/configuration/probes.html //

/**

// Force the use of the probe for Z-axis homing //#define USE_PROBE_FOR_Z_HOMING

/**

/**

/**

/**

/**

/**

/**

/**

/**

// A probe that is deployed and stowed with a solenoid pin (SOL1_PIN) //#define SOLENOID_PROBE

// A sled-mounted probe like those designed by Charles Bell. //#define Z_PROBE_SLED //#define SLED_DOCKING_OFFSET 5 // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.

// A probe deployed by moving the x-axis, such as the Wilson II's rack-and-pinion probe designed by Marty Rice. //#define RACK_AND_PINION_PROBE

if ENABLED(RACK_AND_PINION_PROBE)

define Z_PROBE_DEPLOY_X X_MIN_POS

define Z_PROBE_RETRACT_X X_MAX_POS

endif

// Duet Smart Effector (for delta printers) - https://bit.ly/2ul5U7J // When the pin is defined you can use M672 to set/reset the probe sensitivity. //#define DUET_SMART_EFFECTOR

if ENABLED(DUET_SMART_EFFECTOR)

define SMART_EFFECTOR_MOD_PIN -1 // Connect a GPIO pin to the Smart Effector MOD pin

endif

/**

/**

if ENABLED(Z_PROBE_ALLEN_KEY)

// 2 or 3 sets of coordinates for deploying and retracting the spring loaded touch probe on G29, // if servo actuated touch probe is not defined. Uncomment as appropriate for your printer/probe.

define Z_PROBE_ALLEN_KEY_DEPLOY_1 { 30.0, DELTA_PRINTABLE_RADIUS, 100.0 }

define Z_PROBE_ALLEN_KEY_DEPLOY_1_FEEDRATE XY_PROBE_FEEDRATE

define Z_PROBE_ALLEN_KEY_DEPLOY_2 { 0.0, DELTA_PRINTABLE_RADIUS, 100.0 }

define Z_PROBE_ALLEN_KEY_DEPLOY_2_FEEDRATE (XY_PROBE_FEEDRATE)/10

define Z_PROBE_ALLEN_KEY_DEPLOY_3 { 0.0, (DELTA_PRINTABLE_RADIUS) * 0.75, 100.0 }

define Z_PROBE_ALLEN_KEY_DEPLOY_3_FEEDRATE XY_PROBE_FEEDRATE

define Z_PROBE_ALLEN_KEY_STOW_1 { -64.0, 56.0, 23.0 } // Move the probe into position

define Z_PROBE_ALLEN_KEY_STOW_1_FEEDRATE XY_PROBE_FEEDRATE

define Z_PROBE_ALLEN_KEY_STOW_2 { -64.0, 56.0, 3.0 } // Push it down

define Z_PROBE_ALLEN_KEY_STOW_2_FEEDRATE (XY_PROBE_FEEDRATE)/10

define Z_PROBE_ALLEN_KEY_STOW_3 { -64.0, 56.0, 50.0 } // Move it up to clear

define Z_PROBE_ALLEN_KEY_STOW_3_FEEDRATE XY_PROBE_FEEDRATE

define Z_PROBE_ALLEN_KEY_STOW_4 { 0.0, 0.0, 50.0 }

define Z_PROBE_ALLEN_KEY_STOW_4_FEEDRATE XY_PROBE_FEEDRATE

endif // Z_PROBE_ALLEN_KEY

/**

// Most probes should stay away from the edges of the bed, but // with NOZZLE_AS_PROBE this can be negative for a wider probing area.

define PROBING_MARGIN 15

// X and Y axis travel speed (mm/min) between probes

define XY_PROBE_FEEDRATE (66*60)

// Feedrate (mm/min) for the first approach when double-probing (MULTIPLE_PROBING == 2)

define Z_PROBE_FEEDRATE_FAST (40*60)

// Feedrate (mm/min) for the "accurate" probe of each point

define Z_PROBE_FEEDRATE_SLOW (Z_PROBE_FEEDRATE_FAST / 4)

/**

/**

/**

/**

/**

define Z_PROBE_LOW_POINT -4 // Farthest distance below the trigger-point to go before stopping

// For M851 give a range for adjusting the Z probe offset

define Z_PROBE_OFFSET_RANGE_MIN -25

define Z_PROBE_OFFSET_RANGE_MAX 20

// Enable the M48 repeatability test to test probe accuracy

define Z_MIN_PROBE_REPEATABILITY_TEST

// Before deploy/stow pause for user confirmation

define PAUSE_BEFORE_DEPLOY_STOW

if ENABLED(PAUSE_BEFORE_DEPLOY_STOW)

//#define PAUSE_PROBE_DEPLOY_WHEN_TRIGGERED // For Manual Deploy Allenkey Probe

endif

/**

// Require minimum nozzle and/or bed temperature for probing

define PREHEAT_BEFORE_PROBING

if ENABLED(PREHEAT_BEFORE_PROBING)

//#d

davedouthettrb commented 2 years ago

MKS-hosiey,

I keep getting the following error: arm-none-eabi/bin/ld.exe: region `FLASH' overflowed by 176540 bytescollect2.exe: error: ld returned 1 exit status*** [.pio\build\mks_robin_nano_v3_1_usb_flash_drive\firmware.elf] Error 1 What can I do to eliminate this error? Can I just delete all the disabled features in the Configuration.h file or is there something else I need to change in either the Configuration.h file or the Configuration_Adv.h file? Thanks! Dave

On Sunday, May 22, 2022, 10:42:50 PM MDT, Dave Douthett ***@***.***> wrote:  

MKS-hosiey,

Just tried the new firmware. 1.    Homing is working correctly now.2.    Previously, the touch-screen and decoder were working but now they are erratic.  It takes a bit of effort to get the correct selection and then to activate it.3.    Leveling looked like it was going to work, it stopped moving down about 20mm from the build plate and then move toward the edge of the plate.  Unfortunately, it moved about 5 mm beyond the edge of the build plate and crashed below it. The sensor lights up on contact with the build plate but the controller doesn't seem to detect it. If you can help me with this, that would be great!  Files attached. Thanks! Dave

On Sunday, May 22, 2022, 10:12:31 PM MDT, Dave Douthett ***@***.***> wrote:  

MKS-hosiey, I replace the original because it failed.A lot of modifications were done to get the Robin Nano and the TS35 in the chassis. I'm still working on the firmware myself (just finished a build that passed using Configurations-bugfix-2.0.x.zip & Marlin-bugfix-2.0 downloaded today).I've already spent hours on the firmware trying to get everything to work. I can send you the configuration files to look at if you wish. Thanks! Dave On Sunday, May 22, 2022, 08:41:13 PM MDT, MKS-hosiey @.***> wrote:

Is this the motherboard of the machine? Or did you replace it yourself? This is because your configuration parameters are incorrect. The configuration of delta is very complicated. It is recommended that you look for the configuration file of this machine in the configuration file of marlin.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

/** Dave's Mods 25MAY2022 — 09:51PM

define CONFIG_EXAMPLES_DIR "delta/FLSUN/QQS-Pro"

/**

//=========================================================================== //============================= Getting Started ============================= //===========================================================================

/**

// @section info

// Author info of this build printed to the host during boot and M115

define STRING_CONFIG_H_AUTHOR "(Foxies-CSTL, QQS-Pro)" // Who made the changes.

//#define CUSTOM_VERSION_FILE Version.h // Path from the root directory (no quotes)

/**

// Show the Marlin bootscreen on startup. ENABLE FOR PRODUCTION

define SHOW_BOOTSCREEN

// Show the bitmap in Marlin/_Bootscreen.h on startup. //#define SHOW_CUSTOM_BOOTSCREEN

// Show the bitmap in Marlin/_Statusscreen.h on the status screen. //#define CUSTOM_STATUS_SCREEN_IMAGE

// @section machine

// Choose the name from boards.h that matches your setup

ifndef MOTHERBOARD

#define MOTHERBOARD BOARD_MKS_ROBIN_NANO_V3_1

endif

/**

/**

/**

/**

// Enable the Bluetooth serial interface on AT90USB devices //#define BLUETOOTH

// Name displayed in the LCD "Ready" message and Info menu

define CUSTOM_MACHINE_NAME "FLSUN QQS-Pro MKS Robin Nano 3.1 TS35 V2.0"

// Printer's unique ID, used by some programs to differentiate between machines. // Choose your own or use a service like https://www.uuidgenerator.net/version4 //#define MACHINE_UUID "00000000-0000-0000-0000-000000000000"

/**

/**

// @section extruder

// This defines the number of extruders // :[0, 1, 2, 3, 4, 5, 6, 7, 8]

define EXTRUDERS 1

// Generally expected filament diameter (1.75, 2.85, 3.0, ...). Used for Volumetric, Filament Width Sensor, etc.

define DEFAULT_NOMINAL_FILAMENT_DIA 1.75

// For Cyclops or any "multi-extruder" that shares a single nozzle. //#define SINGLENOZZLE

// Save and restore temperature and fan speed on tool-change. // Set standby for the unselected tool with M104/106/109 T...

if ENABLED(SINGLENOZZLE)

//#define SINGLENOZZLE_STANDBY_TEMP //#define SINGLENOZZLE_STANDBY_FAN

endif

/**

// A dual extruder that uses a single stepper motor //#define SWITCHING_EXTRUDER

if ENABLED(SWITCHING_EXTRUDER)

define SWITCHING_EXTRUDER_SERVO_NR 0

define SWITCHING_EXTRUDER_SERVO_ANGLES { 0, 90 } // Angles for E0, E1[, E2, E3]

if EXTRUDERS > 3

#define SWITCHING_EXTRUDER_E23_SERVO_NR 1

endif

endif

// A dual-nozzle that uses a servomotor to raise/lower one (or both) of the nozzles //#define SWITCHING_NOZZLE

if ENABLED(SWITCHING_NOZZLE)

define SWITCHING_NOZZLE_SERVO_NR 0

//#define SWITCHING_NOZZLE_E1_SERVO_NR 1 // If two servos are used, the index of the second

define SWITCHING_NOZZLE_SERVO_ANGLES { 0, 90 } // Angles for E0, E1 (single servo) or lowered/raised (dual servo)

endif

/**

/**

if EITHER(PARKING_EXTRUDER, MAGNETIC_PARKING_EXTRUDER)

define PARKING_EXTRUDER_PARKING_X { -78, 184 } // X positions for parking the extruders

define PARKING_EXTRUDER_GRAB_DISTANCE 1 // (mm) Distance to move beyond the parking point to grab the extruder

if ENABLED(PARKING_EXTRUDER)

#define PARKING_EXTRUDER_SOLENOIDS_INVERT           // If enabled, the solenoid is NOT magnetized with applied voltage
#define PARKING_EXTRUDER_SOLENOIDS_PINS_ACTIVE LOW  // LOW or HIGH pin signal energizes the coil
#define PARKING_EXTRUDER_SOLENOIDS_DELAY 250        // (ms) Delay for magnetic field. No delay if 0 or not defined.
//#define MANUAL_SOLENOID_CONTROL                   // Manual control of docking solenoids with M380 S / M381

elif ENABLED(MAGNETIC_PARKING_EXTRUDER)

#define MPE_FAST_SPEED      9000      // (mm/min) Speed for travel before last distance point
#define MPE_SLOW_SPEED      4500      // (mm/min) Speed for last distance travel to park and couple
#define MPE_TRAVEL_DISTANCE   10      // (mm) Last distance point
#define MPE_COMPENSATION       0      // Offset Compensation -1 , 0 , 1 (multiplier) only for coupling

endif

endif

/**

/**

/**

if ANY(SWITCHING_TOOLHEAD, MAGNETIC_SWITCHING_TOOLHEAD, ELECTROMAGNETIC_SWITCHING_TOOLHEAD)

define SWITCHING_TOOLHEAD_Y_POS 235 // (mm) Y position of the toolhead dock

define SWITCHING_TOOLHEAD_Y_SECURITY 10 // (mm) Security distance Y axis

define SWITCHING_TOOLHEAD_Y_CLEAR 60 // (mm) Minimum distance from dock for unobstructed X axis

define SWITCHING_TOOLHEAD_X_POS { 215, 0 } // (mm) X positions for parking the extruders

if ENABLED(SWITCHING_TOOLHEAD)

#define SWITCHING_TOOLHEAD_SERVO_NR       2         // Index of the servo connector
#define SWITCHING_TOOLHEAD_SERVO_ANGLES { 0, 180 }  // (degrees) Angles for Lock, Unlock

elif ENABLED(MAGNETIC_SWITCHING_TOOLHEAD)

#define SWITCHING_TOOLHEAD_Y_RELEASE      5         // (mm) Security distance Y axis
#define SWITCHING_TOOLHEAD_X_SECURITY   { 90, 150 } // (mm) Security distance X axis (T0,T1)
//#define PRIME_BEFORE_REMOVE                       // Prime the nozzle before release from the dock
#if ENABLED(PRIME_BEFORE_REMOVE)
  #define SWITCHING_TOOLHEAD_PRIME_MM           20  // (mm)   Extruder prime length
  #define SWITCHING_TOOLHEAD_RETRACT_MM         10  // (mm)   Retract after priming length
  #define SWITCHING_TOOLHEAD_PRIME_FEEDRATE    300  // (mm/min) Extruder prime feedrate
  #define SWITCHING_TOOLHEAD_RETRACT_FEEDRATE 2400  // (mm/min) Extruder retract feedrate
#endif

elif ENABLED(ELECTROMAGNETIC_SWITCHING_TOOLHEAD)

#define SWITCHING_TOOLHEAD_Z_HOP          2         // (mm) Z raise for switching

endif

endif

/**

// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing). // The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder). // For the other hotends it is their distance from the extruder 0 hotend. //#define HOTEND_OFFSET_X { 0.0, 20.00 } // (mm) relative X-offset for each nozzle //#define HOTEND_OFFSET_Y { 0.0, 5.00 } // (mm) relative Y-offset for each nozzle //#define HOTEND_OFFSET_Z { 0.0, 0.00 } // (mm) relative Z-offset for each nozzle

// @section machine

/**

if ENABLED(PSU_CONTROL)

//#define MKS_PWC // Using the MKS PWC add-on //#define PS_OFF_CONFIRM // Confirm dialog when power off //#define PS_OFF_SOUND // Beep 1s when power off

define PSU_ACTIVE_STATE LOW // Set 'LOW' for ATX, 'HIGH' for X-Box

//#define PSU_DEFAULT_OFF // Keep power off until enabled directly with M80 //#define PSU_POWERUP_DELAY 250 // (ms) Delay for the PSU to warm up to full power //#define LED_POWEROFF_TIMEOUT 10000 // (ms) Turn off LEDs after power-off, with this amount of delay

//#define POWER_OFF_TIMER // Enable M81 D to power off after a delay //#define POWER_OFF_WAIT_FOR_COOLDOWN // Enable M81 S to power off only after cooldown

//#define PSU_POWERUP_GCODE "M355 S1" // G-code to run after power-on (e.g., case light on) //#define PSU_POWEROFF_GCODE "M355 S0" // G-code to run before power-off (e.g., case light off)

//#define AUTO_POWER_CONTROL // Enable automatic control of the PS_ON pin

if ENABLED(AUTO_POWER_CONTROL)

#define AUTO_POWER_FANS         // Turn on PSU if fans need power
#define AUTO_POWER_E_FANS
#define AUTO_POWER_CONTROLLERFAN
#define AUTO_POWER_CHAMBER_FAN
#define AUTO_POWER_COOLER_FAN
#define POWER_TIMEOUT              30 // (s) Turn off power if the machine is idle for this duration
//#define POWER_OFF_DELAY          60 // (s) Delay of poweroff after M81 command. Useful to let fans run for extra time.

endif

if EITHER(AUTO_POWER_CONTROL, POWER_OFF_WAIT_FOR_COOLDOWN)

//#define AUTO_POWER_E_TEMP        50 // (°C) PSU on if any extruder is over this temperature
//#define AUTO_POWER_CHAMBER_TEMP  30 // (°C) PSU on if the chamber is over this temperature
//#define AUTO_POWER_COOLER_TEMP   26 // (°C) PSU on if the cooler is over this temperature

endif

endif

//=========================================================================== //============================= Thermal Settings ============================ //=========================================================================== // @section temperature

/**

// Dummy thermistor constant temperature readings, for use with 998 and 999 //#define DUMMY_THERMISTOR_998_VALUE 25 //#define DUMMY_THERMISTOR_999_VALUE 100

// Resistor values when using MAX31865 sensors (-5) on TEMP_SENSOR_0 / 1 //#define MAX31865_SENSOR_OHMS_0 100 // (Ω) Typically 100 or 1000 (PT100 or PT1000) //#define MAX31865_CALIBRATION_OHMS_0 430 // (Ω) Typically 430 for Adafruit PT100; 4300 for Adafruit PT1000 //#define MAX31865_SENSOR_OHMS_1 100 //#define MAX31865_CALIBRATION_OHMS_1 430

define TEMP_RESIDENCY_TIME 10 // (seconds) Time to wait for hotend to "settle" in M109

define TEMP_WINDOW 1 // (°C) Temperature proximity for the "temperature reached" timer

define TEMP_HYSTERESIS 3 // (°C) Temperature proximity considered "close enough" to the target

define TEMP_BED_RESIDENCY_TIME 10 // (seconds) Time to wait for bed to "settle" in M190

define TEMP_BED_WINDOW 1 // (°C) Temperature proximity for the "temperature reached" timer

define TEMP_BED_HYSTERESIS 3 // (°C) Temperature proximity considered "close enough" to the target

define TEMP_CHAMBER_RESIDENCY_TIME 10 // (seconds) Time to wait for chamber to "settle" in M191

define TEMP_CHAMBER_WINDOW 1 // (°C) Temperature proximity for the "temperature reached" timer

define TEMP_CHAMBER_HYSTERESIS 3 // (°C) Temperature proximity considered "close enough" to the target

/**

// Below this temperature the heater will be switched off // because it probably indicates a broken thermistor wire.

define HEATER_0_MINTEMP 5

define HEATER_1_MINTEMP 5

define HEATER_2_MINTEMP 5

define HEATER_3_MINTEMP 5

define HEATER_4_MINTEMP 5

define HEATER_5_MINTEMP 5

define HEATER_6_MINTEMP 5

define HEATER_7_MINTEMP 5

define BED_MINTEMP 5

define CHAMBER_MINTEMP 5

// Above this temperature the heater will be switched off. // This can protect components from overheating, but NOT from shorts and failures. // (Use MINTEMP for thermistor short/failure protection.)

define HEATER_0_MAXTEMP 275

define HEATER_1_MAXTEMP 275

define HEATER_2_MAXTEMP 275

define HEATER_3_MAXTEMP 275

define HEATER_4_MAXTEMP 275

define HEATER_5_MAXTEMP 275

define HEATER_6_MAXTEMP 275

define HEATER_7_MAXTEMP 275

define BED_MAXTEMP 120

define CHAMBER_MAXTEMP 60

/**

//=========================================================================== //============================= PID Settings ================================ //===========================================================================

// Enable PIDTEMP for PID control or MPCTEMP for Predictive Model. // temperature control. Disable both for bang-bang heating.

define PIDTEMP // See the PID Tuning Guide at https://reprap.org/wiki/PID_Tuning

//#define MPCTEMP // EXPERIMENTAL

define BANG_MAX 255 // Limits current to nozzle while in bang-bang mode; 255=full current

define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current

define PID_K1 0.95 // Smoothing factor within any PID loop

if ENABLED(PIDTEMP)

//#define PID_PARAMS_PER_HOTEND // Uses separate PID parameters for each extruder (useful for mismatched extruders) // Set/get with gcode: M301 E[extruder number, 0-2]

if ENABLED(PID_PARAMS_PER_HOTEND)

// Specify up to one value per hotend here, according to your setup.
// If there are fewer values, the last one applies to the remaining hotends.
#define DEFAULT_Kp_LIST { 21.6708, 21.6708 }
#define DEFAULT_Ki_LIST {  1.2515,  1.2515 }
#define DEFAULT_Kd_LIST { 93.8127, 93.8127 }

else

// FLSUN QQS-Pro, PET 235 C with 70% part cooling
#define DEFAULT_Kp 21.6708
#define DEFAULT_Ki  1.2515
#define DEFAULT_Kd 93.8127

endif

endif

/**

//=========================================================================== //====================== PID > Bed Temperature Control ====================== //===========================================================================

/**

//#define BED_LIMIT_SWITCHING

/**

if ENABLED(PIDTEMPBED)

//#define MIN_BED_POWER 0 //#define PID_BED_DEBUG // Sends debug data to the serial port.

// FLSUN QQS-Pro 1.6mm aluminium heater with 4mm lattice glass

define DEFAULT_bedKp 82.98

define DEFAULT_bedKi 15.93

define DEFAULT_bedKd 288.25

// FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.

endif // PIDTEMPBED

//=========================================================================== //==================== PID > Chamber Temperature Control ==================== //===========================================================================

/**

/**

if ENABLED(PIDTEMPCHAMBER)

define MIN_CHAMBER_POWER 0

//#define PID_CHAMBER_DEBUG // Sends debug data to the serial port.

// Lasko "MyHeat Personal Heater" (200w) modified with a Fotek SSR-10DA to control only the heating element // and placed inside the small Creality printer enclosure tent. //

define DEFAULT_chamberKp 37.04

define DEFAULT_chamberKi 1.40

define DEFAULT_chamberKd 655.17

// M309 P37.04 I1.04 D655.17

// FIND YOUR OWN: "M303 E-2 C8 S50" to run autotune on the chamber at 50 degreesC for 8 cycles.

endif // PIDTEMPCHAMBER

if ANY(PIDTEMP, PIDTEMPBED, PIDTEMPCHAMBER)

//#define PID_DEBUG // Sends debug data to the serial port. Use 'M303 D' to toggle activation. //#define PID_OPENLOOP // Puts PID in open loop. M104/M140 sets the output power from 0 to PID_MAX //#define SLOW_PWM_HEATERS // PWM with very low frequency (roughly 0.125Hz=8s) and minimum state time of approximately 1s useful for heaters driven by a relay

define PID_FUNCTIONAL_RANGE 30 // If the temperature difference between the target temperature and the actual temperature

                              // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.

define PID_EDIT_MENU // Add PID editing to the "Advanced Settings" menu. (~700 bytes of flash)

define PID_AUTOTUNE_MENU // Add PID auto-tuning to the "Advanced Settings" menu. (~250 bytes of flash)

endif

// @section extruder

/**

/**

//=========================================================================== //======================== Thermal Runaway Protection ======================= //===========================================================================

/**

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

//=========================================================================== //============================= Mechanical Settings ========================= //===========================================================================

// @section machine

// Enable one of the options below for CoreXY, CoreXZ, or CoreYZ kinematics, // either in the usual order or reversed //#define COREXY //#define COREXZ //#define COREYZ //#define COREYX //#define COREZX //#define COREZY //#define MARKFORGED_XY // MarkForged. See https://reprap.org/forum/read.php?152,504042 //#define MARKFORGED_YX

//=========================================================================== //============================== Delta Settings ============================= //=========================================================================== // Enable DELTA kinematics and most of the default configuration for Deltas

define DELTA

if ENABLED(DELTA)

// Make delta curves from many straight lines (linear interpolation). // This is a trade-off between visible corners (not enough segments) // and processor overload (too many expensive sqrt calls).

define DELTA_SEGMENTS_PER_SECOND 80

// After homing move down to a height where XY movement is unconstrained //#define DELTA_HOME_TO_SAFE_ZONE

// Delta calibration menu // uncomment to add three points calibration menu option. // See http://minow.blogspot.com/index.html#4918805519571907051

define DELTA_CALIBRATION_MENU

// uncomment to add G33 Delta Auto-Calibration (Enable EEPROM_SETTINGS to store results)

define DELTA_AUTO_CALIBRATION

// NOTE NB all values for DELTA_* values MUST be floating point, so always have a decimal point in them

if ENABLED(DELTA_AUTO_CALIBRATION)

// set the default number of probe points : n*n (1 -> 7)
#define DELTA_CALIBRATION_DEFAULT_POINTS 4

endif

if EITHER(DELTA_AUTO_CALIBRATION, DELTA_CALIBRATION_MENU)

// Set the steprate for papertest probing
#define PROBE_MANUALLY_STEP 0.05      // (mm)

endif

// Print surface diameter/2 minus unreachable space (avoid collisions with vertical towers).

define DELTA_PRINTABLE_RADIUS 130.0 // (mm)

// Maximum reachable area

define DELTA_MAX_RADIUS 130.0 // (mm)

// Center-to-center distance of the holes in the diagonal push rods.

define DELTA_DIAGONAL_ROD 280.00 // (mm)

// Distance between bed and nozzle Z home position

define DELTA_HEIGHT 370.00 // (mm) Get this value from G33 auto calibrate

define DELTA_ENDSTOP_ADJ { 0.0, 0.0, 0.0 } // Get these values from G33 auto calibrate

// Horizontal distance bridged by diagonal push rods when effector is centered.

define DELTA_RADIUS 140.8 // (mm) Get this value from G33 auto calibrate

// Trim adjustments for individual towers // tower angle corrections for X and Y tower / rotate XYZ so Z tower angle = 0 // measured in degrees anticlockwise looking from above the printer

define DELTA_TOWER_ANGLE_TRIM { 0.0, 0.0, 0.0 } // Get these values from G33 auto calibrate

// Delta radius and diagonal rod adjustments (mm) //#define DELTA_RADIUS_TRIM_TOWER { 0.0, 0.0, 0.0 }

define DELTA_DIAGONAL_ROD_TRIM_TOWER { 0.0, 0.0, 0.0 }

endif

//=========================================================================== //============================== Endstop Settings =========================== //===========================================================================

// @section homing

// Specify here all the endstop connectors that are connected to any endstop or probe. // Almost all printers will be using one per axis. Probes will use one or more of the // extra connectors. Leave undefined any used for non-endstop and non-probe purposes. //#define USE_XMIN_PLUG //#define USE_YMIN_PLUG

define USE_ZMIN_PLUG // a Z probe

//#define USE_IMIN_PLUG //#define USE_JMIN_PLUG //#define USE_KMIN_PLUG //#define USE_UMIN_PLUG //#define USE_VMIN_PLUG //#define USE_WMIN_PLUG

define USE_XMAX_PLUG

define USE_YMAX_PLUG

define USE_ZMAX_PLUG

//#define USE_IMAX_PLUG //#define USE_JMAX_PLUG //#define USE_KMAX_PLUG //#define USE_UMAX_PLUG //#define USE_VMAX_PLUG //#define USE_WMAX_PLUG

// Enable pullup for all endstops to prevent a floating state

define ENDSTOPPULLUPS

if DISABLED(ENDSTOPPULLUPS)

// Disable ENDSTOPPULLUPS to set pullups individually //#define ENDSTOPPULLUP_XMIN //#define ENDSTOPPULLUP_YMIN //#define ENDSTOPPULLUP_ZMIN //#define ENDSTOPPULLUP_IMIN //#define ENDSTOPPULLUP_JMIN //#define ENDSTOPPULLUP_KMIN //#define ENDSTOPPULLUP_UMIN //#define ENDSTOPPULLUP_VMIN //#define ENDSTOPPULLUP_WMIN //#define ENDSTOPPULLUP_XMAX //#define ENDSTOPPULLUP_YMAX //#define ENDSTOPPULLUP_ZMAX //#define ENDSTOPPULLUP_IMAX //#define ENDSTOPPULLUP_JMAX //#define ENDSTOPPULLUP_KMAX //#define ENDSTOPPULLUP_UMAX //#define ENDSTOPPULLUP_VMAX //#define ENDSTOPPULLUP_WMAX //#define ENDSTOPPULLUP_ZMIN_PROBE

endif

// Enable pulldown for all endstops to prevent a floating state //#define ENDSTOPPULLDOWNS

if DISABLED(ENDSTOPPULLDOWNS)

// Disable ENDSTOPPULLDOWNS to set pulldowns individually //#define ENDSTOPPULLDOWN_XMIN //#define ENDSTOPPULLDOWN_YMIN //#define ENDSTOPPULLDOWN_ZMIN //#define ENDSTOPPULLDOWN_IMIN //#define ENDSTOPPULLDOWN_JMIN //#define ENDSTOPPULLDOWN_KMIN //#define ENDSTOPPULLDOWN_UMIN //#define ENDSTOPPULLDOWN_VMIN //#define ENDSTOPPULLDOWN_WMIN //#define ENDSTOPPULLDOWN_XMAX //#define ENDSTOPPULLDOWN_YMAX //#define ENDSTOPPULLDOWN_ZMAX //#define ENDSTOPPULLDOWN_IMAX //#define ENDSTOPPULLDOWN_JMAX //#define ENDSTOPPULLDOWN_KMAX //#define ENDSTOPPULLDOWN_UMAX //#define ENDSTOPPULLDOWN_VMAX //#define ENDSTOPPULLDOWN_WMAX //#define ENDSTOPPULLDOWN_ZMIN_PROBE

endif

// Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).

define X_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define Y_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define Z_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.

define I_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define J_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define K_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define U_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define V_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define W_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define X_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define Y_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define Z_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define I_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define J_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define K_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define U_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define V_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define W_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.

define Z_MIN_PROBE_ENDSTOP_INVERTING true // Set to true to invert the logic of the probe.

// Enable this feature if all enabled endstop pins are interrupt-capable. // This will remove the need to poll the interrupt pins, saving many CPU cycles. //#define ENDSTOP_INTERRUPTS_FEATURE

/**

// Check for stuck or disconnected endstops during homing moves. //#define DETECT_BROKEN_ENDSTOP

//============================================================================= //============================== Movement Settings ============================ //============================================================================= // @section motion

// delta speeds must be the same on xyz /**

/**

/**

// delta speeds must be the same on xyz

define DEFAULT_XYZ_STEPS_PER_UNIT ((XYZ_FULL_STEPS_PER_ROTATION) * (XYZ_MICROSTEPS) / double(XYZ_BELT_PITCH) / double(XYZ_PULLEY_TEETH))

define DEFAULT_AXIS_STEPS_PER_UNIT { DEFAULT_XYZ_STEPS_PER_UNIT, DEFAULT_XYZ_STEPS_PER_UNIT, DEFAULT_XYZ_STEPS_PER_UNIT, 396 } // default steps per unit

/**

//#define LIMITED_MAX_FR_EDITING // Limit edit via M203 or LCD to DEFAULT_MAX_FEEDRATE * 2

if ENABLED(LIMITED_MAX_FR_EDITING)

define MAX_FEEDRATE_EDIT_VALUES { 600, 600, 10, 50 } // ...or, set your own edit limits

endif

/**

//#define LIMITED_MAX_ACCEL_EDITING // Limit edit via M201 or LCD to DEFAULT_MAX_ACCELERATION * 2

if ENABLED(LIMITED_MAX_ACCEL_EDITING)

define MAX_ACCEL_EDIT_VALUES { 6000, 6000, 3000, 20000 } // ...or, set your own edit limits

endif

/**

/**

define DEFAULT_EJERK 5.0 // May be used by Linear Advance

/**

/**

//=========================================================================== //============================= Z Probe Options ============================= //=========================================================================== // @section probes

// // See https://marlinfw.org/docs/configuration/probes.html //

/**

// Force the use of the probe for Z-axis homing //#define USE_PROBE_FOR_Z_HOMING

/**

/**

/**

/**

/**

/**

/**

/**

/**

// A probe that is deployed and stowed with a solenoid pin (SOL1_PIN) //#define SOLENOID_PROBE

// A sled-mounted probe like those designed by Charles Bell. //#define Z_PROBE_SLED //#define SLED_DOCKING_OFFSET 5 // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.

// A probe deployed by moving the x-axis, such as the Wilson II's rack-and-pinion probe designed by Marty Rice. //#define RACK_AND_PINION_PROBE

if ENABLED(RACK_AND_PINION_PROBE)

define Z_PROBE_DEPLOY_X X_MIN_POS

define Z_PROBE_RETRACT_X X_MAX_POS

endif

// Duet Smart Effector (for delta printers) - https://bit.ly/2ul5U7J // When the pin is defined you can use M672 to set/reset the probe sensitivity. //#define DUET_SMART_EFFECTOR

if ENABLED(DUET_SMART_EFFECTOR)

define SMART_EFFECTOR_MOD_PIN -1 // Connect a GPIO pin to the Smart Effector MOD pin

endif

/**

/**

if ENABLED(Z_PROBE_ALLEN_KEY)

// 2 or 3 sets of coordinates for deploying and retracting the spring loaded touch probe on G29, // if servo actuated touch probe is not defined. Uncomment as appropriate for your printer/probe.

define Z_PROBE_ALLEN_KEY_DEPLOY_1 { 30.0, DELTA_PRINTABLE_RADIUS, 100.0 }

define Z_PROBE_ALLEN_KEY_DEPLOY_1_FEEDRATE XY_PROBE_FEEDRATE

define Z_PROBE_ALLEN_KEY_DEPLOY_2 { 0.0, DELTA_PRINTABLE_RADIUS, 100.0 }

define Z_PROBE_ALLEN_KEY_DEPLOY_2_FEEDRATE (XY_PROBE_FEEDRATE)/10

define Z_PROBE_ALLEN_KEY_DEPLOY_3 { 0.0, (DELTA_PRINTABLE_RADIUS) * 0.75, 100.0 }

define Z_PROBE_ALLEN_KEY_DEPLOY_3_FEEDRATE XY_PROBE_FEEDRATE

define Z_PROBE_ALLEN_KEY_STOW_1 { -64.0, 56.0, 23.0 } // Move the probe into position

define Z_PROBE_ALLEN_KEY_STOW_1_FEEDRATE XY_PROBE_FEEDRATE

define Z_PROBE_ALLEN_KEY_STOW_2 { -64.0, 56.0, 3.0 } // Push it down

define Z_PROBE_ALLEN_KEY_STOW_2_FEEDRATE (XY_PROBE_FEEDRATE)/10

define Z_PROBE_ALLEN_KEY_STOW_3 { -64.0, 56.0, 50.0 } // Move it up to clear

define Z_PROBE_ALLEN_KEY_STOW_3_FEEDRATE XY_PROBE_FEEDRATE

define Z_PROBE_ALLEN_KEY_STOW_4 { 0.0, 0.0, 50.0 }

define Z_PROBE_ALLEN_KEY_STOW_4_FEEDRATE XY_PROBE_FEEDRATE

endif // Z_PROBE_ALLEN_KEY

/**

// Most probes should stay away from the edges of the bed, but // with NOZZLE_AS_PROBE this can be negative for a wider probing area.

define PROBING_MARGIN 15

// X and Y axis travel speed (mm/min) between probes

define XY_PROBE_FEEDRATE (66*60)

// Feedrate (mm/min) for the first approach when double-probing (MULTIPLE_PROBING == 2)

define Z_PROBE_FEEDRATE_FAST (40*60)

// Feedrate (mm/min) for the "accurate" probe of each point

define Z_PROBE_FEEDRATE_SLOW (Z_PROBE_FEEDRATE_FAST / 4)

/**

/**

/**

/**

/**

define Z_PROBE_LOW_POINT -4 // Farthest distance below the trigger-point to go before stopping

// For M851 give a range for adjusting the Z probe offset

define Z_PROBE_OFFSET_RANGE_MIN -25

define Z_PROBE_OFFSET_RANGE_MAX 20

// Enable the M48 repeatability test to test probe accuracy

define Z_MIN_PROBE_REPEATABILITY_TEST

// Before deploy/stow pause for user confirmation

define PAUSE_BEFORE_DEPLOY_STOW

if ENABLED(PAUSE_BEFORE_DEPLOY_STOW)

//#define PAUSE_PROBE_DEPLOY_WHEN_TRIGGERED // For Manual Deploy Allenkey Probe

endif

/**

JoeSiro commented 5 months ago

hello good morning

were you able to configure the printer?

I have exactly the same electronics as you and I can't get it to work well.

If you can, could you give me the configuration.h and the adv.h, thank you