# Flying Bear Ghost 6 Klipper config file # Based on https://github.com/Tombraider2006/klipperFB6/blob/main/klipper_config/printer.cfg # For more details see the article https://eax.me/fbg6-klipper/ #[include timelapse.cfg] #[include macro.cfg] [filament_switch_sensor filament_detection] pause_on_runout: True switch_pin: PA4 [output_pin caselight] pin: !PE6 value: 1 [output_pin _Zummer] pin: PA2 [gcode_macro beep] gcode: SET_PIN PIN=_Zummer VALUE=1 G4 P5000 SET_PIN PIN=_Zummer VALUE=0 # Input shaping works OK as is but still needs calibration [input_shaper] shaper_type_x = ei shaper_freq_x = 55 shaper_type_y = ei shaper_freq_y = 70 [fan_generic camera_Fan] pin: PB0 kick_start_time: 0.5 [stepper_x] step_pin: PE3 dir_pin: !PE2 enable_pin: !PE4 microsteps: 16 rotation_distance: 20 endstop_pin: !PA15 position_endstop: 1 position_max: 255 homing_speed: 40 [stepper_y] step_pin: PE0 dir_pin: !PB9 enable_pin: !PE1 microsteps: 16 rotation_distance: 20 endstop_pin: !PD2 position_endstop: 1 position_max: 220 homing_speed: 40 [stepper_z] step_pin: PB5 dir_pin: !PB4 enable_pin: !PB8 microsteps: 32 rotation_distance: 8 endstop_pin: !PC8 position_endstop: 0.5 homing_speed: 10 second_homing_speed: 2 position_min: 0 position_max: 200 [extruder] step_pin: PD6 dir_pin: PD3 enable_pin: !PB3 microsteps: 32 rotation_distance: 15.632 max_extrude_only_distance: 1400.0 nozzle_diameter: 0.400 filament_diameter: 1.750 heater_pin: PE5 sensor_type: ATC Semitec 104GT-2 # sensor_type: Generic 3950 sensor_pin: PC1 min_temp: 0 max_temp: 320 [heater_bed] heater_pin: PA0 sensor_type: EPCOS 100K B57560G104F sensor_pin: PC0 min_temp: 0 max_temp: 130 [fan] pin: PB1 [heater_fan nozzle_fan] pin: PC14 shutdown_speed: 1.0 heater: extruder heater_temp: 50 fan_speed: 1.0 [temperature_sensor orange_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 [safe_z_home] home_xy_position: 1,1 # Depends on probe X/Y offset z_hop: 10 move_to_previous: True # Return back ~X0/Y0 after Z0 at center z_hop_speed: 20 speed: 200 [firmware_retraction] retract_length: 1.5 retract_speed: 25 unretract_extra_length: 0 unretract_speed: 25 [exclude_object] [mcu] serial: /dev/ttyS3 # serial: /dev/serial/by-path/platform-5101400.usb-usb-0:1:1.0 restart_method: command [printer] kinematics: corexy max_velocity: 400 square_corner_velocity: 5.0 max_accel: 8000 max_z_velocity: 25 max_z_accel: 100 [bed_screws] # BED_SCREWS_ADJUST screw1: 28,31 screw1_name: front left screw screw2: 228,31 screw2_name: front right screw screw3: 228,181 screw3_name: back right screw screw4: 28,181 screw4_name: back left screw speed: 150 [virtual_sdcard] path: ~/printer_data/gcodes [pause_resume] [display_status] [gcode_macro SHUTDOWN_MACHINE] gcode: {action_call_remote_method("shutdown_machine")} [gcode_macro PAUSE] rename_existing: BASE_PAUSE gcode: SAVE_GCODE_STATE NAME=PAUSE_state BASE_PAUSE {% set X = params.X|default(10) %} {% set Y = params.Y|default(10) %} {% set E = params.E|default(2) %} {% set Z = params.Z|default(150) %} G91 G1 E-{E} F2100 G1 Z{Z} G90 G1 X{X} Y{Y} F6000 [gcode_macro RESUME] rename_existing: BASE_RESUME gcode: {% set E = params.E|default(2) %} 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 M106 S0 G91 G1 Z5 G90 G1 X5 Y105 M84 [gcode_macro PID_E] gcode: {% set T = params.T|default(255) %} PID_CALIBRATE HEATER=extruder TARGET={T} [gcode_macro PID_B] gcode: {% set T = params.T|default(80) %} PID_CALIBRATE HEATER=heater_bed TARGET={T} #*# <---------------------- SAVE_CONFIG ----------------------> #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. #*# #*# [heater_bed] #*# control = pid #*# pid_kp = 64.303 #*# pid_ki = 1.280 #*# pid_kd = 807.807 #*# #*# [extruder] #*# control = pid #*# pid_kp = 26.886 #*# pid_ki = 1.368 #*# pid_kd = 132.079