The started with the stock Configuration.h and Configuration_adv.h files and ported the changes over to the latest revision. Additionally, the following key changes were made.
Bed PID Autotune
Changed from bit-bang control to PID control for bed temperature. kP kI and kD default values from the following autotune command.
Code: Select all
M303 C5 D0 E-1 S70
Changed from default kP kI and kD values after PID autotune.
Code: Select all
M303 C5 D0 E<0 or 1> S<200 or your filament temperature>
Extruder fan turns on automatically when thermistor value reads greater than 50c.
Bed Fan Command Update
Bed cooling fan now needs index specification for control.
Example: Set bed fan to 100%.
Code: Select all
M106 P0 S255
Linear advance enabled to use pressure-based extrusion. Defaults tuned for V4 nozzle Hatchbox Black 1.75mm PLA at 200c.
Linear advance setting is dependent upon your filament and extrusion temperature and may need to be retuned for each filament
See https://marlinfw.org/docs/features/lin_advance.html and follow instructions to generate calibration g code.
See https://marlinfw.org/docs/gcode/M900.html for gcode to add to start command for custom linear advance.
Note that I have configured the firmware for only one Linear Advance Factor for both nozzles, this can be easily changed by uncommenting EXTRA_LIN_ADVANCE_K in Configuration_adv.h
Code: Select all
#define LIN_ADVANCE
#if ENABLED(LIN_ADVANCE)
//#define EXTRA_LIN_ADVANCE_K // Enable for second linear advance constants
#define LIN_ADVANCE_K 0.09 // Unit: mm compression per 1mm/s extruder speed
//#define LA_DEBUG // If enabled, this will generate debug information output over USB.
#endif
Disabled classic jerk in favor of junction deviation. Defaults tuned for previous default acceleration settings.
See http://blog.kyneticcnc.com/2018/10/comp ... arlin.html
Enabled S-Curve acceleration
Disable Soft X Travel Limit
Allows for nozzle to move beyond print area for auto-wipe.
The files are in the links below for reference. Use the following steps to build:
- Clone or download Marlin https://marlinfw.org/meta/download/
Copy Configuration.h and Configuration_adv.h to the Marlin/ subdirectory and overwrite the files.
Build and upload https://marlinfw.org/docs/basics/install.html. I used platformio to build
v0:
Configuration.h
Configuration_adv.h