Skip to content

Instantly share code, notes, and snippets.

@seya128
Created May 2, 2021 22:27
Show Gist options
  • Save seya128/6a822dc2607bb20c29951e110ae200e5 to your computer and use it in GitHub Desktop.
Save seya128/6a822dc2607bb20c29951e110ae200e5 to your computer and use it in GitHub Desktop.
Tronxy D01 Klipper printer.cfg
# Tronxy D01
# This is a Klipper configuration for TronXY X5SA, with CXY-V6
# motherboard.
# === FLASHING WITH STOCK BOOTLOADER ===
# You should make firmware for STM32F103 with bootloader offset
# at 0x8008800 (Chitu v6 Bootloader) and serial (on USART1 PA10/PA9)
# communication.
# Use "./scripts/update_chitu.py ./out/klipper.bin ./out/update.cbd"
# after make to generate update.cbd. Put `update.cbd` onto SD card,
# and reboot the printer. It will be automatically installed, and you
# will be able to update it this way.
[mcu rpi]
serial: /tmp/klipper_host_mcu
[adxl345]
cs_pin: rpi:None
[resonance_tester]
accel_chip: adxl345
probe_points:
110,110,20 # an example
[virtual_sdcard]
path: ~/gcode_files
[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
restart_method: command
[input_shaper]
shaper_freq_x: 84.6
shaper_type_x: ei
shaper_freq_y: 55.0
shaper_type_y: 3hump_ei
[printer]
kinematics: corexy
max_velocity: 300
max_accel: 2100
max_accel_to_decel: 2100
max_z_velocity: 25
max_z_accel: 30
[stepper_x]
step_pin: PE5
dir_pin: PE6
enable_pin: !PC13
microsteps: 16
rotation_distance: 20
endstop_pin: !PG10
position_endstop: -1
position_min: -1
position_max: 220
homing_speed: 50
homing_retract_dist: 10
second_homing_speed: 10.0
[stepper_y]
step_pin: PE2
dir_pin: PE3
enable_pin: !PE4
microsteps: 16
rotation_distance: 20
endstop_pin: !PA12
position_endstop: 0
position_max: 220
homing_retract_dist: 10
homing_speed: 50.0
second_homing_speed: 10.0
[stepper_z]
step_pin: PB9
dir_pin: PE0
enable_pin: !PE1
microsteps: 16
rotation_distance: 4
endstop_pin: !PA14
#position_endstop: 0
position_min: -2
position_max: 220
homing_retract_dist: 10
homing_speed: 10.0
second_homing_speed: 5.0
[extruder]
step_pin: PB4
dir_pin: !PB5
enable_pin: !PB8
microsteps: 32
rotation_distance: 24.7258 #22.478 # Titan Extruder Clone Rotation Distance
gear_ratio: 66:22 # Titan Extruder Clone Gear Ratio
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PG12
sensor_type: ATC Semitec 104GT-2
sensor_pin: PA1
#control: pid
#pid_Kp: 18.831
#pid_Ki: 0.821
#pid_Kd: 108.044
min_temp: 0
max_temp: 260
max_extrude_only_distance: 350
pressure_advance: 0.35
[heater_bed]
heater_pin: PG11
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA0
#control: pid
min_temp: 0
max_temp: 130
#pid_Kp: 73.932
#pid_Ki: 1.521
#pid_Kd: 898.279
[heater_fan hotend_fan]
pin: PG14
#fan_speed: 0.5
[fan]
pin: PG13
#max_power: 0.5
[controller_fan drivers_fan]
pin: PD6
[filament_switch_sensor sentinel]
pause_on_runout: True
runout_gcode:
M25
switch_pin: ^PA15
[output_pin beeper]
pin: PB0
[bed_screws]
screw1: 5,5
screw2: 215,5
screw3: 215,215
screw4: 5,215
[temperature_sensor raspberry_pi]
sensor_type: temperature_host
min_temp: 10
max_temp: 100
[temperature_sensor mcu_temp]
sensor_type: temperature_mcu
min_temp: 0
max_temp: 100
[pause_resume]
[gcode_macro PAUSE]
rename_existing: BASE_PAUSE
default_parameter_X: 5 #edit to your park position
default_parameter_Y: 215 #edit to your park position
default_parameter_Z: 10 #edit to your park position
default_parameter_E: 2 #edit to your retract length
gcode:
SAVE_GCODE_STATE NAME=PAUSE_state
BASE_PAUSE
G91
G1 E-{E} F2100
G1 Z{Z}
G90
G1 X{X} Y{Y} F6000
[gcode_macro RESUME]
rename_existing: BASE_RESUME
default_parameter_E: 2 #edit to your retract length
gcode:
G91
G1 E{E} F2100
G90
RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
BASE_RESUME
[gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL_PRINT
gcode:
TURN_OFF_HEATERS
CLEAR_PAUSE
SDCARD_RESET_FILE
BASE_CANCEL_PRINT
[gcode_macro MOTER_DISABLE]
gcode:
M84
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 21.099
#*# pid_ki = 0.977
#*# pid_kd = 113.936
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 65.838
#*# pid_ki = 0.942
#*# pid_kd = 1150.510
#*#
#*# [stepper_z]
#*# position_endstop = 0.800
@merald
Copy link

merald commented Apr 21, 2022

What performance have you archived with tronxy d01 with klipper?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment