Anycubic kobra 2 neo v0.7.3.5 configs + OrcaSlicer profiles

Hello. These are my configs for anycubic kobra 2 neo. These configs are very experimental still, but working fine untill this now. I have configured input shaper and pressure advance and it prints really well, almost no defects (unlike stock marlin lol). Please share your opinions and suggestions, i would really appreciate some feedback.
Also, this wouldn’t be possible without kvgx12, j0tp3, jschuh, kuroi and other cool guys from our original thread. (full credits are in printer.cfg)


#         ORIGINAL CONFIGS BY j0tp3
#         v0.7.3.5

# kvgx12 was very first to figure out how to flash the firmware
# Input shaper frequencies was provided by xenyon
# stop macro was taken from jschuh's github repo, pause and resume currently doesn't work but i am working on it
# Also you can look at other people, without whom it would be impossible to do this at our discussion (linked below)

# Thank you all guys for making this happen and thank YOU for your interest in our work.

# For suggections or improvements contact me via discord or telegram @zamonary1 or via our discourse thread

#  Links to all of those cool guys mentioned above (except me ;_;)

# Please, do not remove this sign, these configs are distributed free of charge anyways :)

[include moonraker_obico_macros.cfg]
[include mainsail.cfg]
[include pause_resume.cfg]
[include scripts.cfg]
#[include display.cfg]


serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
restart_method: command
baud: 250000

kinematics: cartesian
max_velocity: 250
max_accel: 3000
max_z_velocity: 8
max_z_accel: 800

path: ~/printer_data/gcodes
on_error_gcode: CANCEL_PRINT

shaper_type_x : mzv
shaper_freq_x : 65.200000
shaper_type_y : 2hump_ei
shaper_freq_y : 61.200000

step_pin: PA12
dir_pin: PA11
enable_pin: !PA15
microsteps: 16
rotation_distance: 40
endstop_pin: ^!PB11
position_endstop: -10
position_min: -14
position_max: 225
homing_speed: 60

step_pin: PA9
dir_pin: !PA8
enable_pin: !PA15
microsteps: 16
rotation_distance: 40
endstop_pin: ^!PC13
position_endstop: -2
position_min: -3
position_max: 240
homing_speed: 60

step_pin: PB0
dir_pin: !PB1
enable_pin: !PA15
microsteps: 16
rotation_distance: 8
endstop_pin: probe:z_virtual_endstop
position_min: -2
position_max: 200
homing_speed: 8
second_homing_speed: 2

max_extrude_cross_section: 5.0
step_pin: PB15
dir_pin: PB14
enable_pin: !PA15
microsteps: 16
max_extrude_only_distance: 200
max_extrude_only_velocity: 80
max_extrude_only_accel: 2500
rotation_distance: 7.084
nozzle_diameter: 0.400
filament_diameter: 1.750
pressure_advance: 0.06
heater_pin: PB8
sensor_type: ATC Semitec 104GT-2
sensor_pin: PC3
min_extrude_temp: 190
min_temp: 0
max_temp: 250
control: pid
#pid_kp: 14.42
#pid_ki: 0.88
#pid_kd: 59.12 # old values
pressure_advance: 0.225 # needs more testing, i am open for suggestions

heater_pin: PB9
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC1
min_temp: 0
max_temp: 120
control: pid
#pid_kp: 97.1
#pid_ki: 1.41
#pid_kd: 1675.16 # old values

pin: PA1
x_offset : 24.0
y_offset : 13.35
#z_offset: 0
samples: 3
samples_result: average
sample_retract_dist: 1
speed: 3
lift_speed: 8
samples_tolerance : 0.1
samples_tolerance_retries : 3

speed: 200
horizontal_move_z: 3
#mesh_min: -8, 0
mesh_min: 14, 11
mesh_max: 210, 215
probe_count: 6,6
mesh_pps: 5,5 #interpolation, not the actual probe count
algorithm: bicubic
bicubic_tension: 0.2

home_xy_position: 5, 5
speed: 60
z_hop: 4
z_hop_speed: 9

retract_length: 1.8
retract_speed: 50
#unretract_extra_length: 0
unretract_speed: 50

[controller_fan controller_fan]
pin: PB12

[heater_fan extruder_fan]
pin: PB13

pin: PB5
cycle_time: 0.00005 #20kHz

#This pin enables the bed, hotend, extruder fan, part fan.
[output_pin enable_pin]
pin: PB6
value: 1

#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*# [probe]
#*# z_offset = 0

pause_resume.cfg (kinda untested still)

# Copyright (C) 2022 Justin Schuh <>
# This file may be distributed under the terms of the GNU GPLv3 license.

# Enables pause/resume functionality


[gcode_macro PRINT_END]
  M106 S0
  G1 E-2
  G1 Z5 F200
  G1 F2000 X20
  G1 F2500 Y200 ; expose the print
  M140 S0
  M104 S0

[gcode_macro pause]
description: Pauses the current print.
  Usage: PAUSE [X=<pos>] [Y=<pos>] [Z=<pos>] [E=<retract_length>] [B=<beeps>]
rename_existing: _KM_PAUSE_BASE
  {% set km = printer["gcode_macro _km_globals"] %}
  # Retract length (negative)
  {% set E = (params.E|default(5))|float %}
  # Beeps
  {% set B = params.B|default(10)|int if "output_pin beeper" in printer else 0

  {% if printer.pause_resume.is_paused %}
    { action_respond_info("Print already paused") }
  {% elif printer.idle_timeout.state | string == "Printing" or
          (printer.virtual_sdcard|default({})).is_active|default(False) %}
    {% set position = printer.gcode_move.gcode_position %}
    SET_GCODE_VARIABLE MACRO=resume VARIABLE=saved_x VALUE="{position.x}"
    SET_GCODE_VARIABLE MACRO=resume VARIABLE=saved_y VALUE="{position.y}"
    SET_GCODE_VARIABLE MACRO=resume VARIABLE=saved_z VALUE="{position.z}"
    {% if printer.extruder.can_extrude %}
      G1 E{'%.4f' % -E} F{km.load_speed}
    {% endif %}
    PARK P=2{% for k in params|select("in", "XYZ") %}{
        ' '~k~'="'~params[k]~'"'}{% endfor %}
    # Beep on pause if there's an M300 macro.
    {% for i in range(B) %}
      M300 P100
      G4 P200
    {% endfor %}
  {% else %}
    { action_respond_info("Print not in progress") }
  {% endif %}

[gcode_macro m600]
description: Pauses the current print.
  Usage: M600 [B<beeps>] [E<pos>] [L<pos>] [R<temp>] [U<pos>] [X<pos>] [Y<pos>]
  PAUSE B="{0}" P=2{% for k in params|select("in", "EXYZ") %}{
      ' '~k~'="'~params[k]~'"'}{% endfor %}
  UNLOAD_FILAMENT{% if 'U' in params %} LENGTH={params.U}{% endif
               %} BEEPS="{params.B|default(10)|int}"
  {% if 'R' in params %}M109 S{params.R}{% endif %}

[gcode_macro m601]
description: Pauses the current print.
  Usage: M601

[gcode_macro m602]
description: Resumes the currently paused print.
  Usage: M602

[gcode_macro m24]
rename_existing: M24.6245197
  {% if printer.pause_resume.is_paused %}
  {% else %}
  {% endif %}

[gcode_macro m25]
rename_existing: M25.6245197

[gcode_macro resume]
description: Resumes the currently paused print.
  Usage: RESUME [E<pos>]
variable_saved_extruder_temp: 0
variable_saved_x: 0.0
variable_saved_y: 0.0
variable_saved_z: 0.0
variable_saved_e: 0.0
rename_existing: _KM_RESUME_BASE
  {% if printer.pause_resume.is_paused %}
    {% set km = printer["gcode_macro _km_globals"] %}
    # Warm the extruder back up if needed.
    {% set extruder = printer[printer.toolhead.extruder] %}
    {% if <= printer.configfile.settings[
                             | float + 0.5 %}
      M109 S{saved_extruder_temp}
    {% endif %}

    # If there's no saved_e assume we're completing a filament change and
    # retract enough to avoid drooling on the model.
    {% if 'E' not in params and not saved_e %}
      {% set saved_e = 5.0 %}
      G1 E{'%.4f' % -saved_e } F{km.load_speed}
    {% endif %}

    SET_GCODE_VARIABLE MACRO=resume VARIABLE=saved_extruder_temp VALUE="{0}"
    # Move back to last position before unretracting.
    G0 X{saved_x} Y{saved_y} F{km.travel_speed_xy}
    G0 Z{saved_z} F{km.travel_speed_z}
    # Unretract
    G1 E{'%.4f' % (params.E|default(saved_e))} F{km.load_speed}
  {% else %}
    { action_respond_info("Printer is not paused.") }
  {% endif %}

# TODO: Fix casing after front-ends get fixed
[gcode_macro CANCEL_PRINT]
description: Cancels the current print.
rename_existing: _KM_CANCEL_PRINT_BASE
  SET_GCODE_VARIABLE MACRO=_print_end_inner VARIABLE=cancelled VALUE="{True}"
  {% if printer.pause_resume.is_paused %}
  {% endif %}
  {% if 'virtual_sdcard' in printer and not printer.virtual_sdcard.is_active %}
  {% endif %}

[gcode_macro clear_pause]
description: Clears the current pause state.
rename_existing: _KM_CLEAR_PAUSE
  SET_GCODE_VARIABLE MACRO=resume VARIABLE=saved_extruder_temp VALUE="{0}"


[gcode_macro PULL_FILAMENT_OUT]
  G1 E20 F500
  G1 E-100 F500
  M84 #motors off

[gcode_macro FILAMENT_INSERT]
  G1 E40 F500 #extrude 40mm of filament
  M84 #motors off

[gcode_macro DRY_FILAMENT]
  G4 P10800000 #3 hours (3*60*60*1000)

start gcode (prusaslicer, orcaslicer)

M140 S[bed_temperature_initial_layer_single]
M104 S[nozzle_temperature_initial_layer]

M190 S[bed_temperature_initial_layer_single]
M109 S[nozzle_temperature_initial_layer]
G28 X Y Z
PRINT_START EXTRUDER=[nozzle_temperature_initial_layer] BED=[bed_temperature_initial_layer_single]

G92 E0; zero the extruded length
G1 X70 Y-2 Z0.6 F2400                ; that's scary
G1 E3 F1000
G1 X130  E43 F500                       ; Extrude 45mm of filament in a 6cm line.
G1 Z1

end gcode (prusaslicer, orcaslicer) (informative)




  • Addied dry_filament macro that heats up the bed, waits for 3 hours and then cools down. Just place a spool of filament on the heated bed and cover it with it’s own box. Because of convection it removes moisture from the spool. Don’t forget to make small holes in the box on the side that would be facing up during the process.
  • Improved the original bed calibration algorithm from j0tp3, now it’s way more precise (no more offset by x and y axis)
  • Small improvement to pressure advance
  • Small improvements to printer.cfg
  • Finally got an idea for a changelog and start/end slicer gcode


  • I’ve removed my testing functions from bed_mesh section, that was awkward


  • Added input shaper frequencies provided by xenyon
  • adjusted the pressure advance but this is not the final value, there are still sharp corners on the models.
  • small improvements to slicer end gcode


  • Added firmware retractions
  • Calibrated pid values so the printer will not overshoot temperatures anymore.
  • Improved bed calibration algorhitm
  • Small unimportant improvements
  • Important: bed pid values are calibrated with my bed thermal insulator glued on, but it’s such an essential and at the same time such a cheap upgrade that i recommend everyone either buy one from amazon or aliexpress or just use the default values.


  • Changed start gcode automatically loaded bed mesh from “main” to “default” to avoid confusion


  • Added baud definition in mcu section of printer.cfg because i’ve had problems with it recently


  • Added gcode_arcs section to printer.cfg for arc moves support (G2, G3). @Nemcio
  • Added exclude_object section to printer.cfg. Please consider following the instructions to use it.


  • Fixed the virtual sdcard section, it had “/home/zamonary1” absolute path in it (oops) @kosoyamour


  • Changed deprecated “static_value” to “value” in [output_pin enable_pin] section of printer.cfg.

OrcaSlicer profiles (BETA)
They are preconfigured to work with klipper and kobra 2 neo, in the start gcode loaded bed mesh profile is “default”. Use with caution.
OrcaSlicer_PETG.3mf v.1.0 (2.2 MB)

WARNING! You’ll need to calibrate the z offset to avoid damage! You’ll need to figure your value out manually because there is no universal one. The configs are still very experimental so i am not viable for any damage even if done exactly like described here.
Don’t leave your machine completely unattended, especially while drying your filament spools, they might be flammable!
Also, don’t forget to name your bed mesh “default” or change the start gcode.


Wet filament ringing test (120mm/s)

Those are made with an Adxl sensor

#this is my input shaper result, change or disable this only if you know what it does and at best have an adxl sensor
shaper_freq_x: 54.8
shaper_type_x: ei
shaper_freq_y: 34.0
shaper_type_y: mzv

hmm, that differs very much from what i took from kuroi’s kobra 2 configs. I was thinking that the toolheads and the heated beds are the same on a kobra 2 neo and original kobra 2 and thus the resonant frequencies should be the same. I will test your frequencies out later. By the way thank you for sharing!

I am not sure why, but your frequencies look almost the same as the kuroi’s ones. But after close inspection your frequencies look a bit better so i will add them. Thank you for contributing!

It’s not the same front end, 2 neos only a single geared extruder for example

Fyi to use the button for the z-stop rather than the induction probe:

step_pin: PB0
dir_pin: !PB1
enable_pin: !PA15
microsteps: 16
rotation_distance: 8
position_min: 0
position_max: 220
homing_speed: 2
second_homing_speed: 1
endstop_pin: ^PA0

#zhome probing.
home_xy_position: 56,238.5
speed: 250
z_hop: 10
z_hop_speed: 15

1 Like

This is klipper firmware v.12.0-114 for anycubic kobra 2 neo. It flashes and functions as normal. I’ve used modified build configs from kvgx12.

1 Like

Thank you for your answer.
Can you share your config file you are using?
I am curious how you modernized him.

yeah, sometime later.

The printer.cfg file should contain accurate information about the parameters and settings necessary for the correct compilation of a given printer model.
These are the rules adopted at the Klipper’s github.
This is the code and open software.
This is the code and open software. Otherwise they will not officially accept the printer model.

Um, no. They’re not. I know that klipper is an open source software and distributed free of charge but i don’t need to publish my compilation configs. They are already in the public access. I’ve changed the kvgx12’s baud rate from 115200 to 500000, as recommended in the klipper manual. That’s all i did. If you don’t trust me then just use kvgx12’s configs. I am not forcing anyone for using my configs or compiled binaries and i am publishing them just for other people’s convenience.

Since Klippera to Kobra 2 Neo data is not available officially and you can’t compile, I give up. Let the Russians keep this knowledge for themselves.
I will deal with it as it will officially be at Github.

man, why do you want to compile it yourself? There is already binaries and even compilation configs out there. If you want to recreate compilation process step-by-step then just download kvgx12 file (you can find the original post above), unpack the contents of it to your klipper installation folder and delete the “out” folder. Then you’ll need to open .config file and edit the baudrate line. You need to change it fron 115200 to 500000 and that’s it. That was all the modifications that i did to kvgx12’s configs. It’s him who did all the hard work. Then you’ll need to run “make” command in linux terminal while in klipper folder. It will put the compiled binary file in ./out directory. You’ll need to rename it to firmware.bin and continue the process yourself.

Also, why are you putting politics on the 3d printing forum? I’ve never talked about anything related to politics here.

1 Like


@Nemcio just fyi:

  • KevinOConnor merged the PR for adding the 36KiB bootloader option to the official Klipper repo at January 23rd already, so you can compile your own klipper.bin.
  • As for what you wrote about printer.cfg files above: that comes into account if one wants to add a printer.cfg for a specific model to the config section of the official Klipper repo.
    In that case it’s a ‘basic’ config so to say, without e.g. any additional features and optional functionality.
    Besides, such a config for a specific printer will not ‘automagically’ added by the Klipper team for a printer as soon as someone made Klipper running on it - someone has to make a PR with the basic config that follows the rules to have it accepted and implemented.
    BUT: that doesn’t mean that people can’t modify their config files how they like and share them as how @zamonary1 did.

And here you are wrong.
I do not mix policy on the 3D forum.
I live several kilometers from the border and I have friends from you and from other thematic forums led by yours from your countrymen. Which I help selflessly as well as they to me.
You could write it right away and not tease.
I will test this configuration and your recommendations.

That is why I wrote that I will wait until this printer model is placed and approved in the official repository Klipper.
I have an idea about the rules for accepting corrections and changes.
I reported mistakes and solutions in other projects myself, but here for now I have too little knowledge because this is my first 3D printer, and I want to teach the Klipper.

Unfortunately this might never happen though, because -as mentioned- someone has to open a PR and then it has to be reviewed by someone. As I said, not all printers that are successfully running Klipper are available in their config section.
But that doesn’t mean that it’s not safe for you to use it - many users already switched to Klipper and there’s sth like a ‘basic’ cfg available with which you can start.

Sorry that I have to ask, but just that I get you right: do you wanna teach Klipper (to other people) or do you wanna use Klipper (on your own first of all)? If it’s the latter one, then start with that basic config, read the Klipper docs and go from there.

May I ask which settings you now used for compiling the bin file? I’d like to mention it at the Kobra2NeoInsights page. In your other post/thread I saw your screenshot with the following settings:

  • Micro-controller Architecture: STMicroelectronics STM32
  • Processor model: STM32F103
  • Communication interface: Serial on USART1 PA10/PA9
    → is that still correct, or did you use USART2 PA3/PA2 ?
    Looking at the settings from @kvgx12 I think it’s the latter one, but I just wanted to make sure.

I think he was meaning to learn, not to teach

That’s bullshit, it uses usart2 as a usb interface.

I got it from your screenshot here, but later USART with PA3/PA2 came up, that’s why I wanted to make sure the latter one is correct then. Thanks.