From 63e71da2c1d114e01fdfaae3ea832dfdf4ed5125 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 21 Apr 2023 22:14:54 +0200 Subject: [PATCH] Set lin_adv value, own steps per mm, PID, increased acceleration and jerk --- .idea/.gitignore | 8 ++++ .idea/Kobra_Neo_Firmware.iml | 9 ++++ .idea/misc.xml | 6 +++ .idea/modules.xml | 8 ++++ .idea/vcs.xml | 6 +++ README.md | 10 +++-- source/Marlin/Configuration.h | 20 ++++----- source/Marlin/Configuration_adv.h | 4 +- .../RTE/_firmware_Release/RTE_Components.h | 42 +++++++++---------- workspace/anycubic.uvprojx | 2 +- 10 files changed, 78 insertions(+), 37 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/Kobra_Neo_Firmware.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..1c2fda5 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/Kobra_Neo_Firmware.iml b/.idea/Kobra_Neo_Firmware.iml new file mode 100644 index 0000000..18ec59d --- /dev/null +++ b/.idea/Kobra_Neo_Firmware.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..9715c22 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..3a332bd --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..c8397c9 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index 2690835..0baff68 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ #### Modified Anycubic Kobra Neo V1.33 Firmware +I modified jokubasver's version of the kobra neo firmware and seems like got Lin_Advance working. Also I increased the acceleration. Can't say if it's safe to run, so run on own risk + + ## Features - Increase probing accuracy by doing multiple probes per point - Increased speed for the first Z-probe approach when double-probing @@ -9,9 +12,8 @@ - Enable M73 Gcode for setting progress bar on printer screen - UI changes - black background, removed ugly yellow text color - Add personal PID and E-Step values - -## Download -https://github.com/jokubasver/Kobra_Neo/releases +- LIN_ADVANCE working (V1.5 Marlin!) +- Increased ## Flashing Copy firmware.bin to your microSD card, insert the card with the printer off, turn printer on and wait until you get to the home screen. Afterwards, delete the firmware.bin file from your card. @@ -36,6 +38,8 @@ Having these values saved in the firmware itself could save a lot of headaches, https://www.reddit.com/r/anycubic/comments/y2waxu/tutorial_how_to_build_anycubic_marlin_source_code/ ## Based on +https://github.com/jokubasver/Kobra_Neo + https://github.com/sjorge/Kobra_Neo_Fw https://github.com/jojos38/anycubic-kobra-improved-firmware diff --git a/source/Marlin/Configuration.h b/source/Marlin/Configuration.h index bc3d61a..5b4722a 100644 --- a/source/Marlin/Configuration.h +++ b/source/Marlin/Configuration.h @@ -519,9 +519,9 @@ #if ENABLED(PID_PARAMS_PER_HOTEND) // Specify between 1 and HOTENDS values per array. // If fewer than EXTRUDER values are provided, the last element will be repeated. - #define DEFAULT_Kp_LIST { 22.20, 22.20 } - #define DEFAULT_Ki_LIST { 1.08, 1.08 } - #define DEFAULT_Kd_LIST { 114.00, 114.00 } + #define DEFAULT_Kp_LIST { 16.40, 16.40 } + #define DEFAULT_Ki_LIST { 0.95, 0.95 } + #define DEFAULT_Kd_LIST { 70.80, 70.80 } #else #define DEFAULT_Kp 10.08 #define DEFAULT_Ki 0.39 @@ -564,9 +564,9 @@ // 120V 250W silicone heater into 4mm borosilicate (MendelMax 1.5+) // from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10) - #define DEFAULT_bedKp 87.84 - #define DEFAULT_bedKi 8.51 - #define DEFAULT_bedKd 604.50 + #define DEFAULT_bedKp 97.10 + #define DEFAULT_bedKi 1.41 + #define DEFAULT_bedKd 1675.16 // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles. #endif // PIDTEMPBED @@ -767,7 +767,7 @@ * Override with M92 * X, Y, Z, E0 [, E1[, E2...]] */ -#define DEFAULT_AXIS_STEPS_PER_UNIT { 80, 80, 400, 414.68 } //原来是390 +#define DEFAULT_AXIS_STEPS_PER_UNIT { 80.630, 80.030, 405.860, 397.96 } //原来是390 /** * Default Max Feed Rate (mm/s) @@ -787,7 +787,7 @@ * Override with M201 * X, Y, Z, E0 [, E1[, E2...]] */ -#define DEFAULT_MAX_ACCELERATION { 500, 500, 100, 500 } +#define DEFAULT_MAX_ACCELERATION { 1000, 1000, 100, 500 } //#define LIMITED_MAX_ACCEL_EDITING // Limit edit via M201 or LCD to DEFAULT_MAX_ACCELERATION * 2 #if ENABLED(LIMITED_MAX_ACCEL_EDITING) @@ -816,8 +816,8 @@ */ #define CLASSIC_JERK #if ENABLED(CLASSIC_JERK) - #define DEFAULT_XJERK 5 - #define DEFAULT_YJERK 5 + #define DEFAULT_XJERK 8 + #define DEFAULT_YJERK 8 #define DEFAULT_ZJERK 5 //#define TRAVEL_EXTRA_XYJERK 0.0 // Additional jerk allowance for all travel moves diff --git a/source/Marlin/Configuration_adv.h b/source/Marlin/Configuration_adv.h index 3e77b32..7d54433 100644 --- a/source/Marlin/Configuration_adv.h +++ b/source/Marlin/Configuration_adv.h @@ -1711,10 +1711,10 @@ * * See https://marlinfw.org/docs/features/lin_advance.html for full instructions. */ -//#define LIN_ADVANCE +#define LIN_ADVANCE #if ENABLED(LIN_ADVANCE) //#define EXTRA_LIN_ADVANCE_K // Enable for second linear advance constants - #define LIN_ADVANCE_K 0 // Unit: mm compression per 1mm/s extruder speed + #define LIN_ADVANCE_K 0.12 // Unit: mm compression per 1mm/s extruder speed //#define LA_DEBUG // If enabled, this will generate debug information output over USB. #define EXPERIMENTAL_SCURVE // Enable this option to permit S-Curve Acceleration #endif diff --git a/workspace/RTE/_firmware_Release/RTE_Components.h b/workspace/RTE/_firmware_Release/RTE_Components.h index 2a950a7..498522d 100644 --- a/workspace/RTE/_firmware_Release/RTE_Components.h +++ b/workspace/RTE/_firmware_Release/RTE_Components.h @@ -1,21 +1,21 @@ - -/* - * Auto generated Run-Time-Environment Configuration File - * *** Do not modify ! *** - * - * Project: 'anycubic' - * Target: 'firmware_Release' - */ - -#ifndef RTE_COMPONENTS_H -#define RTE_COMPONENTS_H - - -/* - * Define the Device Header File: - */ -#define CMSIS_device_header "HC32F460KETA.h" - - - -#endif /* RTE_COMPONENTS_H */ + +/* + * Auto generated Run-Time-Environment Configuration File + * *** Do not modify ! *** + * + * Project: 'anycubic' + * Target: 'firmware_Release' + */ + +#ifndef RTE_COMPONENTS_H +#define RTE_COMPONENTS_H + + +/* + * Define the Device Header File: + */ +#define CMSIS_device_header "HC32F460KETA.h" + + + +#endif /* RTE_COMPONENTS_H */ diff --git a/workspace/anycubic.uvprojx b/workspace/anycubic.uvprojx index fed0698..8db77b1 100644 --- a/workspace/anycubic.uvprojx +++ b/workspace/anycubic.uvprojx @@ -134,7 +134,7 @@ 0 0 1 - 1 + 0 4096 1