klipper icon indicating copy to clipboard operation
klipper copied to clipboard

Create printer-anycubic-kobra-standard-2022.cfg

Open 0darkace1 opened this issue 1 year ago • 3 comments

Hello,

I've added a configuration file for the Anycubic Kobra Standard 3D printer. This configuration should help users to easily set up their printer and start printing with optimal settings.

Please review and merge this pull request if everything looks good.

Thank you!

0darkace1 avatar Jul 15 '24 22:07 0darkace1

Thank you for submitting a PR, please refer to point 3 in "What to expect in a review" in https://github.com/Klipper3d/klipper/blob/master/docs/CONTRIBUTING.md and provide a signed off by line.

Also please refer to point 4 in the guidelines in the following link and add the printers.test with your new file for regression testing https://github.com/Klipper3d/klipper/blob/master/docs/Example_Configs.md

Please do not include macros and any code that could change a safety check as per the second link

And you will also need to fix the trailing spaces and tabs that are preventing the checks from passing.

Thanks James

JamesH1978 avatar Jul 17 '24 07:07 JamesH1978

I'm a bit lost with Git and I couldn't manage to modify the PR as intended. Here is the modified configuration for the Anycubic Kobra Standard:

# This file contains a configuration for the Anycubic Kobra (Standard) printer.
#
# The Kobra (Standard) mainboard must be modified to correct conflicting UART
# addresses. As delivered, the X stepper and E0 stepper use UART address 0.
# To correct, move resistor R65 to R66. This moves the X stepper to address 3.
#
# After making this modification, any future firmwares will need to use the new
# address for the X stepper. To revert to the stock firmware, either undo the
# modification, or recompile the stock firmware using the correct addresses for
# X_SLAVE_ADDRESS and E0_SLAVE_ADDRESS.
#
# See docs/Config_Reference.md for a description of parameters.
#
# To build the firmware, use the following configuration:
#   - Micro-controller: Huada Semiconductor HC32F460
#   - Communication interface: Serial (PA3 & PA2) - Anycube
#   - Clock Speed: 200 MHz
#
# Installation:
#  1. Rename the klipper bin to `firmware.bin` and copy it to an SD Card.
#  2. Power off the Printer, insert the SD Card and power it on.
#  3. The printer should beep several times and the LCD will be stuck on the
#     Splash screen.

# ------ CORE ------

[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
restart_method: command

[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 1800
max_z_velocity: 40
max_z_accel: 100

# ------ CORE ------


# ------ MOTORS & HEATERS ------

[stepper_x]
step_pin: PA5
dir_pin: PA4
enable_pin: !PC3
microsteps: 128
rotation_distance: 40
endstop_pin: tmc2209_stepper_x:virtual_endstop
position_min: -38
position_endstop: -38
position_max: 229
homing_speed: 100
homing_retract_dist: 0
 
[tmc2209 stepper_x]
uart_pin: PA15
uart_address: 3
diag_pin: PA6
driver_SGTHRS: 80
run_current: 0.9
stealthchop_threshold: 999999
interpolate: false
 
[stepper_y]
step_pin: PC4
dir_pin: PA7
enable_pin: !PC3
microsteps: 128
rotation_distance: 40
endstop_pin: tmc2209_stepper_y:virtual_endstop
position_min: 0
position_endstop: 0
position_max: 229
homing_speed: 100
homing_retract_dist: 0
 
[tmc2209 stepper_y]
uart_pin: PA15
uart_address: 1
run_current: 0.6
diag_pin: ^PC5
driver_SGTHRS: 80
stealthchop_threshold: 999999
interpolate: false

[stepper_z]
step_pin: PC7
dir_pin: !PC6
enable_pin: !PC3
microsteps: 128
rotation_distance: 4
endstop_pin: probe:z_virtual_endstop
position_min: -5
position_max: 250
homing_speed: 10
second_homing_speed:1
homing_retract_dist: 2.3
 
[tmc2209 stepper_z]
uart_pin: PA15
uart_address: 2
run_current: 0.6
diag_pin: ^PA8
driver_SGTHRS: 50
stealthchop_threshold: 999999
interpolate: false
 
[extruder]
max_extrude_only_distance: 1500
max_extrude_cross_section: 50.0
step_pin: PC14
dir_pin: PC15
enable_pin: !PC3
microsteps: 64
rotation_distance: 7.794750
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PA1
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC1
min_extrude_temp: 170
min_temp: 0
max_temp: 250
control: pid
pid_Kp: 14.903
pid_Ki: 0.613
pid_Kd: 90.537

[tmc2208 extruder]
uart_pin: PA15
run_current: 0.7
stealthchop_threshold: 999999

[verify_heater extruder]
max_error: 120
check_gain_time:30
hysteresis: 10
heating_gain: 2

[heater_bed]
heater_pin: PA0
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC0
min_temp: 0
max_temp: 120
control: pid
pid_Kp: 61.685
pid_Ki: 1.297
pid_Kd: 733.282

[verify_heater heater_bed]
max_error: 120
check_gain_time:120
hysteresis: 10
heating_gain: 2

# ------ MOTORS & HEATERS ------


# ------ HOMING & PROBE & BED MESH ------

[safe_z_home]
home_xy_position: 111, 111
speed: 100
z_hop: 10
z_hop_speed: 15

[probe]
pin: PB8
x_offset: 43.5
y_offset: 4.7
z_offset: 1.895
samples: 2
samples_result: average
samples_tolerance: 0.05
samples_tolerance_retries: 5
sample_retract_dist: 0.5
speed:1
lift_speed:5

[bed_mesh]
speed: 100
mesh_min: 19, 19
mesh_max: 210, 210
algorithm: bicubic
probe_count: 9, 9

# ------ BED MESH & PROBE & HOMING ------


# ------ FANS & GPIO ------
 
[controller_fan controller_fan]
pin: PA14
heater: heater_bed
 
[heater_fan extruder_fan]
pin: PA13
heater_temp: 65.0

[fan]
pin: PB9

# ------ FANS & GPIO ------

0darkace1 avatar Jul 17 '24 18:07 0darkace1

Thank you for your contribution to Klipper. Unfortunately, a reviewer has not assigned themselves to this GitHub Pull Request. All Pull Requests are reviewed before merging, and a reviewer will need to volunteer. Further information is available at: https://www.klipper3d.org/CONTRIBUTING.html

There are some steps that you can take now:

  1. Perform a self-review of your Pull Request by following the steps at: https://www.klipper3d.org/CONTRIBUTING.html#what-to-expect-in-a-review If you have completed a self-review, be sure to state the results of that self-review explicitly in the Pull Request comments. A reviewer is more likely to participate if the bulk of a review has already been completed.
  2. Consider opening a topic on the Klipper Discourse server to discuss this work. The Discourse server is a good place to discuss development ideas and to engage users interested in testing. Reviewers are more likely to prioritize Pull Requests with an active community of users.
  3. Consider helping out reviewers by reviewing other Klipper Pull Requests. Taking the time to perform a careful and detailed review of others work is appreciated. Regular contributors are more likely to prioritize the contributions of other regular contributors.

Unfortunately, if a reviewer does not assign themselves to this GitHub Pull Request then it will be automatically closed. If this happens, then it is a good idea to move further discussion to the Klipper Discourse server. Reviewers can reach out on that forum to let you know if they are interested and when they are available.

Best regards, ~ Your friendly GitIssueBot

PS: I'm just an automated script, not a human being.

github-actions[bot] avatar Aug 01 '24 00:08 github-actions[bot]