summaryrefslogtreecommitdiff
path: root/assets/printer
diff options
context:
space:
mode:
Diffstat (limited to 'assets/printer')
-rw-r--r--assets/printer/printer.cfg100
1 files changed, 67 insertions, 33 deletions
diff --git a/assets/printer/printer.cfg b/assets/printer/printer.cfg
index b09a875..e790ba6 100644
--- a/assets/printer/printer.cfg
+++ b/assets/printer/printer.cfg
@@ -1,10 +1,3 @@
-# This file contains a configuration for the Anycubic Vyper printer from 2021.
-# It uses a clone of the STM32F103 chip named GD32F103.
-# There are 2 Mainboard versions out there v0.0.5 and v0.0.6, this config has
-# been tested with the v0.0.6 only. It should probably work for v0.0.5 as well
-# since there are no different changes in the Anycubic Marlin firmware.
-# The LCD is not supported yet (might work, but didn't try yet).
-#
# To create the Firmware you need to use the following configuration:
# - Micro-controller: STM32
# - Processor model: STM32F103
@@ -21,6 +14,14 @@
# If you want to revert the Firmware back to Marlin you simply need to flash it
# with a anycubic firmware through the SD Card
+# note: this config is a modified version of the Anycubic Vyper configuration
+# from the main Klipper repository.
+# the default configuration does NOT work, so i've tried adjusting it with
+# other values found in any repository i could find which has one.
+# see:
+# - https://github.com/Klipper3d/klipper/blob/master/config/printer-anycubic-vyper-2021.cfg
+# - https://github.com/xmtrcv/vyper-klipper/printer.cfg
+
[stepper_x]
step_pin: PC2
dir_pin: PB9
@@ -40,8 +41,8 @@ enable_pin: !PC13
microsteps: 16
rotation_distance: 32
endstop_pin: !PC5
-position_min: -17
-position_endstop: -17
+position_min: -10
+position_endstop: -10
position_max: 245
homing_speed: 30.0
@@ -52,8 +53,8 @@ enable_pin: !PC14
microsteps: 16
rotation_distance: 8
endstop_pin: PB2
-position_endstop: -1.600
-position_max: 260
+position_endstop: 0.0
+position_max: 250
position_min: -3
homing_speed: 5.0
@@ -70,7 +71,7 @@ step_pin: PB4
dir_pin: !PB3
enable_pin: !PA15
microsteps: 16
-rotation_distance: 22.76500 #has to be calibrated by everyone, official document: diameter = 7.25
+rotation_distance: 21.807 #has to be calibrated by everyone, official document: diameter = 7.25
gear_ratio: 50:17
full_steps_per_rotation: 200
nozzle_diameter: 0.400
@@ -78,10 +79,12 @@ filament_diameter: 1.750
heater_pin: PA1
sensor_type: ATC Semitec 104GT-2
sensor_pin: PC4
+max_extrude_cross_section: 50.0
+max_extrude_only_distanec: 500
control: pid
-pid_kp: 28.937
-pid_ki: 1.295
-pid_kd: 161.688
+pid_kp: 28.347
+pid_ki: 1.588
+pid_kd: 126.496
min_temp: 0
max_temp: 260
@@ -93,9 +96,9 @@ heater_pin: PA4
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PB0
control: pid
-pid_kp: 67.648
-pid_ki: 1.044
-pid_kd: 1095.893
+pid_kp: 68.259
+pid_ki: 1.058
+pid_kd: 1100.678
min_temp: 0
max_temp: 110
@@ -106,54 +109,85 @@ pin: PA0
pin: PA14
stepper: stepper_x,stepper_y,stepper_z,stepper_z1
+[temperature_fan Mainboard]
+pin: mcu:PA14
+sensor_type: temperature_mcu
+max_power: 1.0
+shutdown_speed: 1.0
+hardware_pwm: false
+kick_start_time: 0.5
+off_below: 0.4
+max_temp: 100
+min_temp: 20
+target_temp: 50
+max_speed: 1.0
+min_speed: 0.3
+control: pid
+pid_Kp: 1
+pid_Ki: 1
+pid_Kd: 1
+
[probe]
pin: !PB12
-z_offset: 0
+z_offset: -0.150
+speed: 1
+samples: 1
activate_gcode:
- probe_reset
+ PROBE_RESET
-[output_pin BEEPER_PIN]
+[output_pin beeper_pin]
pin: PB15
pwm: True
value: 0
shutdown_value: 0
cycle_time: 0.001
-scale: 1
-[output_pin probe_reset_pin]
+[output_pin PROBE_RESET_PIN]
pin: PB13
-[output_pin LED]
+[output_pin led_pin]
pin: mcu:PA13
pwm: False
value: 0
[bed_mesh]
-mesh_min: 15,15
+speed: 50
+horizontal_move_z: 5
+mesh_min: 15, 15
mesh_max: 230, 230
+probe_count: 7, 7
+mesh_pps: 2, 3
+algorithm: basic
+fade_end: 10.0
[filament_switch_sensor runout]
pause_on_runout: True
switch_pin: PA5
+[temperature_sensor Raspberry_Pi_4]
+sensor_type: temperature_host
+min_temp: 0
+max_temp: 100
+
[mcu]
-serial: /dev/ttyUSB0
+serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
restart_method: command
[safe_z_home]
-home_xy_position: -3,-17
+home_xy_position: -3,-7
z_hop: 10
[printer]
kinematics: cartesian
-max_velocity: 300
-max_accel: 3000
-max_z_velocity: 10
+max_velocity: 150
+max_accel: 1500
+max_accel_to_decel: 1500
+max_z_velocity: 5
max_z_accel: 100
-[gcode_macro probe_reset]
+[gcode_macro PROBE_RESET]
gcode:
- SET_PIN PIN=probe_reset_pin VALUE=0
+ SET_PIN PIN=PROBE_RESET_PIN VALUE=0
G4 P300
- SET_PIN PIN=probe_reset_pin VALUE=1
+ SET_PIN PIN=PROBE_RESET_PIN VALUE=1
G4 P100