diff --git a/Flying Bear Generic Configs/board/mks-rn-11.cfg b/Flying Bear Generic Configs/board/mks-rn-11.cfg new file mode 100644 index 0000000..0b0c730 --- /dev/null +++ b/Flying Bear Generic Configs/board/mks-rn-11.cfg @@ -0,0 +1,158 @@ +################################################################################ +# Board: MKS Robin Nano 1.1 (Flying Bear Reborn 2.0) +# Config by ODUCCEU +################################################################################ +# WARNING! DO NOT EDIT THIS FILE! +# To override settings from this file, you can copy and paste the relevant +# sections into your printer.cfg and change it there. +################################################################################ + +# Documentation +# https://www.klipper3d.org/Config_Reference.html + +################################################################################ +# Firmware Configuration for MKS Robin Nano v1.1 +################################################################################ + +# Reference +# https://github.com/KevinOConnor/klipper/blob/master/config/generic-mks-robin-nano-v1.cfg +# +# —————————————————————————————————————————————————————————————————————————————— +# Klipper Firmware Configuration +# —————————————————————————————————————————————————————————————————————————————— +# [*] Enable extra low-level configuration options +# Micro-controller Architecture (STMicroelectronics STM32) ---> +# Processor model (STM32F103) ---> +# Bootloader offset (28KiB bootloader) ---> +# Clock Reference (8 MHz crystal) ---> +# Communication interface (Serial (on USART3 PB11/PB10)) ---> +# (250000) Baud rate for serial port +# [ ] Specify a custom step pulse duration +# () GPIO pins to set at micro-controller startup +# —————————————————————————————————————————————————————————————————————————————— +# +# Select "Communication interface (Serial (on USART3 PB11/PB10))" for USB connection +# Select "Communication interface (Serial (on USART1 PA10/PA9))" for UART using WiFi slot +# +# Note that the "make flash" command does not work with MKS Robin boards. +# After running "make", run the following command to encrypt and rename: +# ~/klipper/scripts/update_mks_robin.py ~/klipper/out/klipper.bin ~/klipper/out/Robin_nano35.bin +# Copy the file out/Robin_nano35.bin to an SD card and then restart the +# printer with that SD card inserted. + +################################################################################ +# Pin Definitions for MKS Robin Nano v1.1 +################################################################################ + +# Reference for MKS Robin Nano v1.1 +# https://github.com/makerbase-mks/MKS-Robin-Nano-V1.X/blob/master/hardware/MKS%20Robin%20Nano%20V1.1_001/MKS%20Robin%20Nano%20V1.1_001%20PIN.pdf + +## X_STEP PE3 +## X_DIR PE2 +## X_ENABLE PE4 +## X_STOP PA15 + +## Y_STEP PE0 +## Y_DIR PB9 +## Y_ENABLE PE1 +## Y_STOP PA12 + +## Z_STEP PB5 +## Z_DIR PB4 +## Z_ENABLE PB8 +## Z_MIN_STOP PA11 +## Z_MAX_STOP PC4 + +## E0_STEP PD6 +## E0_DIR PD3 +## E0_ENABLE PB3 + +## E1_STEP PA6 # Z1_STEP +## E1_DIR PA1 # Z1_DIR +## E1_ENABLE PA3 # Z1_ENABLE + +## HE0 PC3 +## HE1 PB0 # HE0_FAN +## BED PA0 +## TH1 (HE0 Temp) PC1 +## TH2 (HE1 Temp) PC2 +## TB (BED Temp) PC0 + +## FAN PB1 + +## MT_DET1 PA4 +## MT_DET2 PE6 +## PW_DET PA2 +## PB2 PB2 + +## BEEPER PC5 + +## WiFi_IO0 PA8 +## WiFi_IO1 PC7 +## WiFi_TX PA9 +## WiFi_RX PA10 + +## USB_TX PB10 +## USB_RX PB11 + +################################################################################ +# Pin Aliases +################################################################################ + +[board_pins mks_rn_11] +aliases: +## Steppers #################################################################### + X_STEP_PIN=PE3, X_DIR_PIN=PE2, X_ENABLE_PIN=PE4, X_STOP_PIN=PA15, + Y_STEP_PIN=PE0, Y_DIR_PIN=PB9, Y_ENABLE_PIN=PE1, Y_STOP_PIN=PA12, + Z_STEP_PIN=PB5, Z_DIR_PIN=PB4, Z_ENABLE_PIN=PB8, Z_STOP_PIN=PA11, + Z1_STEP_PIN=PA6, Z1_DIR_PIN=PA1, Z1_ENABLE_PIN=PA3, Z1_STOP_PIN=PC4, + E0_STEP_PIN=PD6, E0_DIR_PIN=PD3, E0_ENABLE_PIN=PB3, +## Heaters ##################################################################### + E_HEATER_PIN=PC3, E_SENSOR_PIN=PC1, + BED_HEATER_PIN=PA0, BED_SENSOR_PIN=PC0, +## Fans ######################################################################## + HEATER_FAN_PIN=PB0, + PARTCOOLING_FAN_PIN=PB1, +## Controls #################################################################### + MT_DET1_PIN=PA4, MT_DET2_PIN=PE6, + PW_DET_PIN=PA2, AUTO_OFF_PIN=PB2, +## BLTouch ##################################################################### + BLTOUCH_SENSOR_PIN=PE6, # MT_DET2 + BLTOUCH_CONTROL_PIN=PB2, # PB2 +## TMC2209 UART ################################################################ + TMC_UART_PIN=PA1, TMC_TX_PIN=PA6, + +################################################################################ +# MCU +################################################################################ + +[mcu] +serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 # USB +restart_method: command + +################################################################################ +# Sensors +################################################################################ + +[temperature_sensor board] +sensor_type: temperature_mcu +min_temp: 0 +max_temp: 100 + +[filament_switch_sensor filament_sensor] +switch_pin: PA4 +runout_gcode: + BEEP P=1500 + +################################################################################ +# Beeper +################################################################################ + +[output_pin _BEEPER_pin] +pin: PC5 +pwm: True +value: 0 +shutdown_value: 0 +cycle_time: 0.001 + +################################################################################ diff --git a/Flying Bear Generic Configs/board/mks-rn-13.cfg b/Flying Bear Generic Configs/board/mks-rn-13.cfg new file mode 100644 index 0000000..0db4595 --- /dev/null +++ b/Flying Bear Generic Configs/board/mks-rn-13.cfg @@ -0,0 +1,162 @@ +################################################################################ +# Board: MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3 +# Config by ODUCCEU +################################################################################ +# WARNING! DO NOT EDIT THIS FILE! +# To override settings from this file, you can copy and paste the relevant +# sections into your printer.cfg and change it there. +################################################################################ + +# Documentation +# https://www.klipper3d.org/Config_Reference.html + +################################################################################ +# Firmware Configuration for MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3 +################################################################################ + +# Reference +# https://github.com/KevinOConnor/klipper/blob/master/config/generic-mks-robin-nano-v1.cfg +# +# —————————————————————————————————————————————————————————————————————————————— +# Klipper Firmware Configuration +# —————————————————————————————————————————————————————————————————————————————— +# [*] Enable extra low-level configuration options +# Micro-controller Architecture (STMicroelectronics STM32) ---> +# Processor model (STM32F407) ---> +# Bootloader offset (32KiB bootloader) ---> +# Clock Reference (8 MHz crystal) ---> +# Communication interface (Serial (on USART3 PB11/PB10)) ---> +# (250000) Baud rate for serial port +# [ ] Specify a custom step pulse duration +# () GPIO pins to set at micro-controller startup +# —————————————————————————————————————————————————————————————————————————————— +# +# Select "Communication interface (Serial (on USART3 PB11/PB10))" for USB connection +# Select "Communication interface (Serial (on USART1 PA10/PA9))" for UART using WiFi slot +# +# Note that the "make flash" command does not work with MKS Robin boards. +# After running "make", no need to run py script, just rename the firmware file: +# mv ~/klipper/out/klipper.bin ~/klipper/out/Robin_nano35.bin +# Copy the file out/Robin_nano35.bin to an SD card and then restart the +# printer with that SD card inserted. + +################################################################################ +# Pin Definitions for MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3 +################################################################################ + +# Reference for MKS Robin Nano v1.3 +# https://github.com/makerbase-mks/MKS-Robin-Nano-V1.X/blob/master/hardware/MKS%20Robin%20Nano%20V1.3_002/MKS%20Robin%20Nano%20V1.3_002%20PIN.pdf + +# Reference for MKS Robin Nano-S v1.3 +# https://github.com/makerbase-mks/MKS-Robin-Nano-V1.X/blob/master/hardware/MKS%20Robin%20Nano-S%20V1.3_001/MKS%20Robin%20Nano-S%20V1.3_001%20PIN.pdf + +## X_STEP PE3 +## X_DIR PE2 +## X_ENABLE PE4 +## X_STOP PA15 + +## Y_STEP PE0 +## Y_DIR PB9 +## Y_ENABLE PE1 +## Y_STOP PA12 + +## Z_STEP PB5 +## Z_DIR PB4 +## Z_ENABLE PB8 +## Z_MIN_STOP PA11 +## Z_MAX_STOP PC4 + +## E0_STEP PD6 +## E0_DIR PD3 +## E0_ENABLE PB3 + +## E1_STEP PA6 # Z1_STEP +## E1_DIR PA1 # Z1_DIR +## E1_ENABLE PA3 # Z1_ENABLE + +## HE0 PC3 +## HE1 PB0 # HE0_FAN +## BED PA0 +## TH1 (HE0 Temp) PC1 +## TH2 (HE1 Temp) PC2 +## TB (BED Temp) PC0 + +## FAN PB1 + +## MT_DET1 PA4 +## MT_DET2 PE6 +## PW_DET PA2 +## PB2 PB2 + +## SERVO PA8 +## BEEPER PC5 + +## WiFi_IO0 P13 +## WiFi_IO1 PC7 +## WiFi_TX PA9 +## WiFi_RX PA10 + +## USB_TX PB10 +## USB_RX PB11 + +################################################################################ +# Pin Aliases +################################################################################ + +[board_pins mks_rn_13] +aliases: +## Steppers #################################################################### + X_STEP_PIN=PE3, X_DIR_PIN=PE2, X_ENABLE_PIN=PE4, X_STOP_PIN=PA15, + Y_STEP_PIN=PE0, Y_DIR_PIN=PB9, Y_ENABLE_PIN=PE1, Y_STOP_PIN=PA12, + Z_STEP_PIN=PB5, Z_DIR_PIN=PB4, Z_ENABLE_PIN=PB8, Z_STOP_PIN=PA11, + Z1_STEP_PIN=PA6, Z1_DIR_PIN=PA1, Z1_ENABLE_PIN=PA3, Z1_STOP_PIN=PC4, + E0_STEP_PIN=PD6, E0_DIR_PIN=PD3, E0_ENABLE_PIN=PB3, +## Heaters ##################################################################### + E_HEATER_PIN=PC3, E_SENSOR_PIN=PC1, + BED_HEATER_PIN=PA0, BED_SENSOR_PIN=PC0, +## Fans ######################################################################## + HEATER_FAN_PIN=PB0, + PARTCOOLING_FAN_PIN=PB1, +## Controls #################################################################### + MT_DET1_PIN=PA4, MT_DET2_PIN=PE6, + PW_DET_PIN=PA2, AUTO_OFF_PIN=PB2, +## BLTouch ##################################################################### + BLTOUCH_SENSOR_PIN=PE6, # MT_DET2 + BLTOUCH_CONTROL_PIN=PA8, # SERVO +## TMC2209 UART ################################################################ + TMC_UART_PIN=PA1, TMC_TX_PIN=PA6, + +################################################################################ +# MCU +################################################################################ + +[mcu] +serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 # USB +restart_method: command + +################################################################################ +# Sensors +################################################################################ + +[temperature_sensor board] +sensor_type: temperature_mcu +min_temp: 0 +max_temp: 100 + +[filament_switch_sensor filament_sensor] +switch_pin: PA4 +runout_gcode: + BEEP P=1500 + +################################################################################ +# Beeper +################################################################################ + +[output_pin _BEEPER_pin] +pin: PC5 +pwm: True +value: 0 +shutdown_value: 0 +cycle_time: 0.001 + +################################################################################ diff --git a/Flying Bear Generic Configs/board/mks-rn-s-13.cfg b/Flying Bear Generic Configs/board/mks-rn-s-13.cfg new file mode 100644 index 0000000..84c697e --- /dev/null +++ b/Flying Bear Generic Configs/board/mks-rn-s-13.cfg @@ -0,0 +1,166 @@ +################################################################################ +# Board: MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3 +# Config by ODUCCEU +################################################################################ +# WARNING! DO NOT EDIT THIS FILE! +# To override settings from this file, you can copy and paste the relevant +# sections into your printer.cfg and change it there. +################################################################################ + +# Documentation +# https://www.klipper3d.org/Config_Reference.html + +################################################################################ +# Firmware Configuration for MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3 +################################################################################ + +# Reference +# https://github.com/KevinOConnor/klipper/blob/master/config/generic-mks-robin-nano-v1.cfg +# +# —————————————————————————————————————————————————————————————————————————————— +# Klipper Firmware Configuration +# —————————————————————————————————————————————————————————————————————————————— +# [*] Enable extra low-level configuration options +# Micro-controller Architecture (STMicroelectronics STM32) ---> +# Processor model (STM32F407) ---> +# Bootloader offset (32KiB bootloader) ---> +# Clock Reference (8 MHz crystal) ---> +# Communication interface (Serial (on USART3 PB11/PB10)) ---> +# (250000) Baud rate for serial port +# [ ] Specify a custom step pulse duration +# () GPIO pins to set at micro-controller startup +# —————————————————————————————————————————————————————————————————————————————— +# +# Select "Communication interface (Serial (on USART3 PB11/PB10))" for USB connection +# Select "Communication interface (Serial (on USART1 PA10/PA9))" for UART using WiFi slot +# +# Note that the "make flash" command does not work with MKS Robin boards. +# After running "make", no need to run py script, just rename the firmware file: +# mv ~/klipper/out/klipper.bin ~/klipper/out/Robin_nano35.bin +# Copy the file out/Robin_nano35.bin to an SD card and then restart the +# printer with that SD card inserted. + +################################################################################ +# Pin Definitions for MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3 +################################################################################ + +# Reference for MKS Robin Nano v1.3 +# https://github.com/makerbase-mks/MKS-Robin-Nano-V1.X/blob/master/hardware/MKS%20Robin%20Nano%20V1.3_002/MKS%20Robin%20Nano%20V1.3_002%20PIN.pdf + +# Reference for MKS Robin Nano-S v1.3 +# https://github.com/makerbase-mks/MKS-Robin-Nano-V1.X/blob/master/hardware/MKS%20Robin%20Nano-S%20V1.3_001/MKS%20Robin%20Nano-S%20V1.3_001%20PIN.pdf + +## X_STEP PE3 +## X_DIR PE2 +## X_ENABLE PE4 +## X_STOP PA15 + +## Y_STEP PE0 +## Y_DIR PB9 +## Y_ENABLE PE1 +## Y_STOP PA12 + +## Z_STEP PB5 +## Z_DIR PB4 +## Z_ENABLE PB8 +## Z_MIN_STOP PA11 +## Z_MAX_STOP PC4 + +## E0_STEP PD6 +## E0_DIR PD3 +## E0_ENABLE PB3 + +## E1_STEP PA6 # Z1_STEP +## E1_DIR PA1 # Z1_DIR +## E1_ENABLE PA3 # Z1_ENABLE + +## HE0 PC3 +## HE1 PB0 # HE0_FAN +## BED PA0 +## TH1 (HE0 Temp) PC1 +## TH2 (HE1 Temp) PC2 +## TB (BED Temp) PC0 + +## FAN PB1 + +## MT_DET1 PA4 +## MT_DET2 PE6 +## PW_DET PA2 +## PB2 PB2 + +## SERVO PA8 +## BEEPER PC5 + +## WiFi_IO0 P13 +## WiFi_IO1 PC7 +## WiFi_TX PA9 +## WiFi_RX PA10 + +## USB_TX PB10 +## USB_RX PB11 + +################################################################################ +# Pin Aliases +################################################################################ + +[board_pins mks_rn_13] +aliases: +## Steppers #################################################################### + X_STEP_PIN=PE3, X_DIR_PIN=PE2, X_ENABLE_PIN=PE4, X_STOP_PIN=PA15, + Y_STEP_PIN=PE0, Y_DIR_PIN=PB9, Y_ENABLE_PIN=PE1, Y_STOP_PIN=PA12, + Z_STEP_PIN=PB5, Z_DIR_PIN=PB4, Z_ENABLE_PIN=PB8, Z_STOP_PIN=PA11, + Z1_STEP_PIN=PA6, Z1_DIR_PIN=PA1, Z1_ENABLE_PIN=PA3, Z1_STOP_PIN=PC4, + E0_STEP_PIN=PD6, E0_DIR_PIN=PD3, E0_ENABLE_PIN=PB3, +## Heaters ##################################################################### + E_HEATER_PIN=PC3, E_SENSOR_PIN=PC1, + BED_HEATER_PIN=PA0, BED_SENSOR_PIN=PC0, +## Fans ######################################################################## + HEATER_FAN_PIN=PB0, + PARTCOOLING_FAN_PIN=PB1, +## Controls #################################################################### + MT_DET1_PIN=PA4, MT_DET2_PIN=PE6, + PW_DET_PIN=PA2, AUTO_OFF_PIN=PB2, + BEEPER_PIN=PC5, +## BLTouch ##################################################################### + BLTOUCH_SENSOR_PIN=PE6, # MT_DET2 + BLTOUCH_CONTROL_PIN=PA8, # SERVO +## TMC2209 UART ################################################################ + X_UART_PIN=PA1, X_TX_PIN=PA6, + Y_UART_PIN=PA1, Y_TX_PIN=PA6, + Z_UART_PIN=PA1, Z_TX_PIN=PA6, + E0_UART_PIN=PA1, E0_TX_PIN=PA6, + +################################################################################ +# MCU +################################################################################ + +[mcu] +serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 # USB +restart_method: command + +################################################################################ +# Sensors +################################################################################ + +[temperature_sensor board] +sensor_type: temperature_mcu +min_temp: 0 +max_temp: 100 + +[filament_switch_sensor filament_sensor] +switch_pin: MT_DET1_PIN +runout_gcode: + BEEP P=1500 + +################################################################################ +# Beeper +################################################################################ + +[output_pin _BEEPER_pin] +pin: BEEPER_PIN +pwm: True +value: 0 +shutdown_value: 0 +cycle_time: 0.001 + +################################################################################ diff --git a/Flying Bear Generic Configs/fb-ghost4s-printer.cfg b/Flying Bear Generic Configs/fb-ghost4s-printer.cfg new file mode 100644 index 0000000..f7566d1 --- /dev/null +++ b/Flying Bear Generic Configs/fb-ghost4s-printer.cfg @@ -0,0 +1,106 @@ +################################################################################ +# Board: MKS Robin Nano v1.1 (Flying Bear Reborn 2.0) / MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3 +# Printer: Flying Bear Ghost 4S +# Config by ODUCCEU +################################################################################ + +# Documentation +# https://www.klipper3d.org/Config_Reference.html + +# Rename this file to 'printer.cfg'. +# Enable proper 'Control board' in 'Included configs' section. + +# It is recommended that you follow these steps to properly calibrate your printer: +# 1) Sanity check and PID Tuning: https://www.klipper3d.org/Config_checks.html +# 2) Skew Correction: https://www.klipper3d.org/skew_correction.html +# 3) Resonance Compensation: https://www.klipper3d.org/Resonance_Compensation.html +# 4) Pressure Advance: https://www.klipper3d.org/Pressure_Advance.html + +################################################################################ +# Included configs +################################################################################ + +# Duplicate parameters in included config files will override each other. +# In this case, each next included file overwrites the previous one in the list. +# 'printer.cfg' takes precedence over other included files. +# Try to avoid changing the default files by adding or changing parameters in 'printer.cfg' below. +# This does not apply to commented out parameters. + +## Control board ############################################################### +[include board/mks-rn-11.cfg] + +## Base configuration ########################################################## +[include printer/fb-ghost4s.cfg] + +## Drivers ##################################################################### +# [include printer/tmc2209_uart_mks_rn.cfg] # enable if using TMC drivers via UART on MKS Robin Nano + +## Base macros ################################################################# +[include macros/macros.cfg] + +## Additional hardware ######################################################### +# [include printer/fb-ghost4s-bltouch.cfg] # disable 'position_endstop' in [stepper_z] section +# [include printer/rpi_mcu.cfg] # enable ONLY after setting Pi as MCU https://www.klipper3d.org/RPi_microcontroller.html +# [include printer/accelerometer.cfg] # requires "rpi.cfg" + +################################################################################ +# X, Y, Z +################################################################################ + +[stepper_x] +homing_speed: 150 + +[stepper_y] +homing_speed: 150 + +[stepper_z] +position_endstop: 0.5 # disable if using BLTouch to use 'probe:z_virtual_endstop' + +################################################################################ +# E0, HB +################################################################################ + +[extruder] +rotation_distance: 7.600 # CAUTION! Calibrate using https://www.klipper3d.org/Rotation_Distance.html; FBG5: 7.880, FBG4S: 7.600 +nozzle_diameter: 0.400 +pressure_advance: 0.000 # CAUTION! Calibrate using https://www.klipper3d.org/Pressure_Advance.html +control: pid # CAUTION! Calibrate using PID_CALIBRATE https://www.klipper3d.org/G-Codes.html#extended-g-code-commands +pid_Kp: 30.891 +pid_Ki: 2.542 +pid_Kd: 93.830 +# min_extrude_temp: 0 # allow Cold Extrusion for extruder steps calibration + +[heater_bed] +control: pid # CAUTION! Calibrate using PID_CALIBRATE https://www.klipper3d.org/G-Codes.html#extended-g-code-commands +pid_Kp: 63.104 +pid_Ki: 2.350 +pid_Kd: 423.586 + +################################################################################ +# Printer +################################################################################ + +[mcu] +# serial: /dev/ttyAMA0 # enable if connected via UART1 on Pi3/PiZ +# serial: /dev/ttyAMA1 # enable if connected via UART5 on Pi4 + +[printer] +max_velocity: 150 +max_accel: 3000 +max_accel_to_decel: 2000 + +################################################################################ +# Bed leveling +################################################################################ + +[bed_screws] +screw5: 127.5,105 +screw5_name: center virtual screw + +################################################################################ +# Resonance compensation +################################################################################ + +[input_shaper] + +################################################################################ diff --git a/Flying Bear Generic Configs/fb-ghost5-printer.cfg b/Flying Bear Generic Configs/fb-ghost5-printer.cfg new file mode 100644 index 0000000..c7a4531 --- /dev/null +++ b/Flying Bear Generic Configs/fb-ghost5-printer.cfg @@ -0,0 +1,110 @@ +################################################################################ +# Board: MKS Robin Nano v1.1 (Flying Bear Reborn 2.0) / MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3 +# Printer: Flying Bear Ghost 5 +# Config by ODUCCEU +################################################################################ + +# Documentation +# https://www.klipper3d.org/Config_Reference.html + +# Rename this file to 'printer.cfg'. +# Enable proper 'Control board' in 'Included configs' section. + +# It is recommended that you follow these steps to properly calibrate your printer: +# 1) Sanity check and PID Tuning: https://www.klipper3d.org/Config_checks.html +# 2) Skew Correction: https://www.klipper3d.org/skew_correction.html +# 3) Resonance Compensation: https://www.klipper3d.org/Resonance_Compensation.html +# 4) Pressure Advance: https://www.klipper3d.org/Pressure_Advance.html + +################################################################################ +# Included configs +################################################################################ + +# Duplicate parameters in included config files will override each other. +# In this case, each next included file overwrites the previous one in the list. +# 'printer.cfg' takes precedence over other included files. +# Try to avoid changing the default files by adding or changing parameters in 'printer.cfg' below. +# This does not apply to commented out parameters. + +## Control board ############################################################### +# THERE CAN BE ONLY ONE! +[include board/mks-rn-11.cfg] +# [include board/mks-rn-13.cfg] +# [include board/mks-rn-s-13.cfg] + +## Base configuration ########################################################## +[include printer/fb-ghost5.cfg] + +## Drivers ##################################################################### +# [include printer/tmc2225.cfg] +# [include printer/tmc2209_uart_mks_rn.cfg] # enable if using TMC drivers via UART on MKS Robin Nano + +## Base macros ################################################################# +[include macros/macros.cfg] + +## Additional hardware ######################################################### +# [include printer/fb-ghost5-bltouch.cfg] # disable 'position_endstop' in [stepper_z] section +# [include printer/rpi_mcu.cfg] # enable ONLY after setting Pi as MCU https://www.klipper3d.org/RPi_microcontroller.html +# [include printer/accelerometer.cfg] # requires "rpi.cfg" + +################################################################################ +# X, Y, Z +################################################################################ + +[stepper_x] +homing_speed: 150 + +[stepper_y] +homing_speed: 150 + +[stepper_z] +position_endstop: 0.5 # disable if using BLTouch to use 'probe:z_virtual_endstop' + +################################################################################ +# E0, HB +################################################################################ + +[extruder] +rotation_distance: 7.600 # CAUTION! Calibrate using https://www.klipper3d.org/Rotation_Distance.html; FBG5: 7.880, FBG4S: 7.600 +nozzle_diameter: 0.400 +pressure_advance: 0.000 # CAUTION! Calibrate using https://www.klipper3d.org/Pressure_Advance.html +control: pid # CAUTION! Calibrate using PID_CALIBRATE https://www.klipper3d.org/G-Codes.html#extended-g-code-commands +pid_Kp: 30.891 +pid_Ki: 2.542 +pid_Kd: 93.830 +# min_extrude_temp: 0 # allow Cold Extrusion for extruder steps calibration + +[heater_bed] +control: pid # CAUTION! Calibrate using PID_CALIBRATE https://www.klipper3d.org/G-Codes.html#extended-g-code-commands +pid_Kp: 63.104 +pid_Ki: 2.350 +pid_Kd: 423.586 + +################################################################################ +# Printer +################################################################################ + +[mcu] +# serial: /dev/ttyAMA0 # enable if connected via UART1 on Pi3/PiZ +# serial: /dev/ttyAMA1 # enable if connected via UART5 on Pi4 + +[printer] +max_velocity: 150 +max_accel: 3000 +max_accel_to_decel: 2000 + +################################################################################ +# Bed leveling +################################################################################ + +[bed_screws] +screw5: 127.5,105 +screw5_name: center virtual screw + +################################################################################ +# Resonance compensation +################################################################################ + +[input_shaper] + +################################################################################ diff --git a/Flying Bear Generic Configs/fb-reborn-printer.cfg b/Flying Bear Generic Configs/fb-reborn-printer.cfg new file mode 100644 index 0000000..7f2015a --- /dev/null +++ b/Flying Bear Generic Configs/fb-reborn-printer.cfg @@ -0,0 +1,113 @@ +################################################################################ +# Board: MKS Robin Nano v1.1 (Flying Bear Reborn 2.0) / MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3 +# Printer: Flying Bear Reborn +# Config by ODUCCEU +################################################################################ + +# Documentation +# https://www.klipper3d.org/Config_Reference.html + +# Rename this file to 'printer.cfg'. +# Enable proper 'Control board' in 'Included configs' section. + +# It is recommended that you follow these steps to properly calibrate your printer: +# 1) Sanity check and PID Tuning: https://www.klipper3d.org/Config_checks.html +# 2) Skew Correction: https://www.klipper3d.org/skew_correction.html +# 3) Resonance Compensation: https://www.klipper3d.org/Resonance_Compensation.html +# 4) Pressure Advance: https://www.klipper3d.org/Pressure_Advance.html + +################################################################################ +# Included configs +################################################################################ + +# Duplicate parameters in included config files will override each other. +# In this case, each next included file overwrites the previous one in the list. +# 'printer.cfg' takes precedence over other included files. +# Try to avoid changing the default files by adding or changing parameters in 'printer.cfg' below. +# This does not apply to commented out parameters. + +## Control board ############################################################### +# THERE CAN BE ONLY ONE! +# [include board/mks-rn-11.cfg] +[include board/mks-rn-13.cfg] +# [include board/mks-rn-s-13.cfg] + +## Base configuration ########################################################## +[include printer/fb-reborn.cfg] + +## Drivers ##################################################################### +[include printer/tmc2225.cfg] + +## Base macros ################################################################# +[include macros/macros.cfg] + +## Additional hardware ######################################################### +# [include printer/fb-reborn-bltouch.cfg] # disable 'position_endstop' in [stepper_z] section +# [include printer/rpi_mcu.cfg] # enable ONLY after setting Pi as MCU https://www.klipper3d.org/RPi_microcontroller.html +# [include printer/accelerometer.cfg] # requires "rpi.cfg" + +################################################################################ +# X, Y, Z +################################################################################ + +[stepper_x] +position_min: -2.5 # define your offset here so that the print area center and the actual bed center would match +position_endstop: -2.5 # you can adjust the endstop position on FBReborn +homing_speed: 150 + +[stepper_y] +position_min: -5.7 # define your offset here so that the print area center and the actual bed center would match +position_endstop: -5.7 # you can adjust the endstop position on FBReborn +homing_speed: 150 + +[stepper_z] +position_endstop: 0.5 # disable if using BLTouch to use 'probe:z_virtual_endstop' + +################################################################################ +# E0, HB +################################################################################ + +[extruder] +rotation_distance: 7.600 # CAUTION! Calibrate using https://www.klipper3d.org/Rotation_Distance.html; FBG5: 7.880, FBG4S: 7.600 +nozzle_diameter: 0.400 +pressure_advance: 0.000 # CAUTION! Calibrate using https://www.klipper3d.org/Pressure_Advance.html +control: pid # CAUTION! Calibrate using PID_CALIBRATE https://www.klipper3d.org/G-Codes.html#extended-g-code-commands +pid_Kp: 30.891 +pid_Ki: 2.542 +pid_Kd: 93.830 +# min_extrude_temp: 0 # allow Cold Extrusion for extruder steps calibration + +[heater_bed] +control: pid # CAUTION! Calibrate using PID_CALIBRATE https://www.klipper3d.org/G-Codes.html#extended-g-code-commands +pid_Kp: 63.104 +pid_Ki: 2.350 +pid_Kd: 423.586 + +################################################################################ +# Printer +################################################################################ + +[mcu] +# serial: /dev/ttyAMA0 # enable if connected via UART1 on Pi3/PiZ +# serial: /dev/ttyAMA1 # enable if connected via UART5 on Pi4 + +[printer] +max_velocity: 150 +max_accel: 3000 +max_accel_to_decel: 2000 + +################################################################################ +# Bed leveling +################################################################################ + +[bed_screws] +screw5: 175,155 +screw5_name: center virtual screw + +################################################################################ +# Resonance compensation +################################################################################ + +[input_shaper] + +################################################################################ diff --git a/Flying Bear Generic Configs/macros/macros.cfg b/Flying Bear Generic Configs/macros/macros.cfg new file mode 100644 index 0000000..7033b75 --- /dev/null +++ b/Flying Bear Generic Configs/macros/macros.cfg @@ -0,0 +1,26 @@ +################################################################################ +# Board: MKS Robin Nano v1.1 (Flying Bear Reborn 2.0) / MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3 +# Printer: Flying Bear Ghost 4S / Ghost 5 / Reborn +# G-code Macros by ODUCCEU +################################################################################ + +[include print_management.cfg] +[include prime_line.cfg] +[include filament_management.cfg] +[include macros_marlin.cfg] + +# Beeper ####################################################################### + +[gcode_macro BEEP] +gcode: + {% set S = params.S|default(1000)|int %} # frequency in Hz + {% set P = params.P|default(100)|int %} # duration in milliseconds + SET_PIN PIN=_BEEPER_pin VALUE=0.5 CYCLE_TIME={ 1.0/S if S > 0 else 1 } + G4 P{P} + SET_PIN PIN=_BEEPER_pin VALUE=0 + +# Other ######################################################################## + + + +################################################################################ diff --git a/Flying Bear Generic Configs/macros/print_management.cfg b/Flying Bear Generic Configs/macros/print_management.cfg new file mode 100644 index 0000000..59b9a71 --- /dev/null +++ b/Flying Bear Generic Configs/macros/print_management.cfg @@ -0,0 +1,143 @@ +################################################################################ +# Board: MKS Robin Nano v1.1 (Flying Bear Reborn 2.0) / MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3 +# Printer: Flying Bear Ghost 4S / Ghost 5 / Reborn +# G-code Macros by ODUCCEU +################################################################################ + +# Print Job Management ######################################################### + +[gcode_macro START_PRINT] +## PrusaSliser: +# M190 S0 +# M109 S0 +# START_PRINT EXTRUDER_TEMP={first_layer_temperature[0]} BED_TEMP={first_layer_bed_temperature} +## Cura: +# M190 S0 +# M109 S0 +# START_PRINT EXTRUDER_TEMP={material_print_temperature_layer_0} BED_TEMP={material_bed_temperature_layer_0} +description: Start routine for the print +variable_retract: 10 +gcode: + {% set extruder_temp = params.EXTRUDER_TEMP|default(240)|float %} + {% set bed_temp = params.BED_TEMP|default(70)|float %} + {% set E = printer["gcode_macro START_PRINT"].retract|float %} + {% if bed_temp > 90 %} + {% set bed_temp_preheat = (bed_temp * 0.90)|int %} + {% else %} + {% set bed_temp_preheat = (bed_temp * 0.75)|int %} + {% endif %} + CLEAR_PAUSE + M220 S100 # reset feedrate + M221 S100 # reset flowrate + G90 # absolute positioning + M82 # relative extrusion mode + SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET={bed_temp} # set bed temp + TEMPERATURE_WAIT SENSOR=heater_bed MINIMUM={bed_temp_preheat} # wait until bed is partially heated + SET_HEATER_TEMPERATURE HEATER=extruder TARGET={extruder_temp} # set extruder temp + TEMPERATURE_WAIT SENSOR=heater_bed MINIMUM={bed_temp} # wait for bed temp + TEMPERATURE_WAIT SENSOR=extruder MINIMUM={extruder_temp} # wait for extruder temp + G28 # home + G0 Z10 F1500 # raise Z + G92 E0 # reset extruder + G1 E{E} F1500 # prime + G92 E0 # reset extruder + +[gcode_macro END_PRINT] +gcode: + {% set E = printer["gcode_macro START_PRINT"].retract|float %} + TURN_OFF_HEATERS + M107 # turn off fan + G91 # relative positioning + G1 E-{E} F1500 # retract + G0 X1 Y1 F5000 # wipe + G0 Z2 F1500 # raise Z + G90 # absolute positioning + PARK Z=30 + M84 # turn off all motors + BEEP P=200 S=250 + # NORMAL_SPEED # reset stepper current + # SAVE_IF_SET # SAVE_CONFIG + +[gcode_macro PARK] +gcode: + {% set x_park = params.X|default(printer.toolhead.axis_minimum.x)|float %} + {% set y_park = params.Y|default(printer.toolhead.axis_minimum.y)|float %} + {% set z_park = params.Z|default(10)|float + printer.toolhead.position.z|float %} + {% set x_max = printer.toolhead.axis_maximum.x|float %} + {% set y_max = printer.toolhead.axis_maximum.y|float %} + {% set z_max = printer.toolhead.axis_maximum.z|float %} + {% if x_park > x_max %} + {% set x_park = x_max %} + {% endif %} + {% if y_park > y_max %} + {% set y_park = y_max %} + {% endif %} + {% if z_park > z_max %} + {% set z_park = z_max %} + {% endif %} + SAVE_GCODE_STATE NAME=PARK_STATE + {% if printer.toolhead.homed_axes != "xyz" %} G28 {% endif %} # home if not homed + G90 # absolute positioning + G0 Z{z_park} F1500 + G0 X{x_park} Y{y_park} F5000 + RESTORE_GCODE_STATE name=PARK_STATE + +[gcode_macro PAUSE] +description: Pause the actual running print +rename_existing: BASE_PAUSE +gcode: + {% set E = printer["gcode_macro START_PRINT"].retract|float %} + SAVE_GCODE_STATE NAME=PAUSE_STATE + BASE_PAUSE + {% if printer.extruder.can_extrude|lower == 'true' %} + G91 + G1 E-{E} F2100 # retract + G90 + {% else %} + {action_respond_info("Extruder is not hot enough")} + {% endif %} + PARK + +[gcode_macro RESUME] +description: Resume the actual running print +rename_existing: BASE_RESUME +gcode: + {% set E = printer["gcode_macro START_PRINT"].retract|float %} + {% if 'VELOCITY' in params|upper %} + {% set get_params = ('VELOCITY=' + params.VELOCITY) %} + {%else %} + {% set get_params = "" %} + {% endif %} + {% if printer.extruder.can_extrude|lower == 'true' %} + G91 + G1 E{E} F2100 + G90 + {% else %} + {action_respond_info("Extruder is not hot enough")} + {% endif %} + RESTORE_GCODE_STATE NAME=PAUSE_STATE MOVE=1 + BASE_RESUME {get_params} + +[gcode_macro CANCEL_PRINT] +description: Cancel the actual running print +rename_existing: BASE_CANCEL_PRINT +gcode: + {% set E = printer["gcode_macro START_PRINT"].retract|float %} + CLEAR_PAUSE + TURN_OFF_HEATERS + M107 # turn off fan + {% if printer.extruder.can_extrude|lower == 'true' %} + G91 # relative positioning + G1 E-{E} F2100 # retract + G0 Z2 F1500 # raise Z + G90 # absolute positioning + {% else %} + {action_respond_info("Extruder is not hot enough")} + {% endif %} + SDCARD_RESET_FILE + BASE_CANCEL_PRINT + PARK Z=30 + M84 # turn off all motors + # NORMAL_SPEED # reset stepper current + +################################################################################ diff --git a/Flying Bear Generic Configs/printer/accelerometer.cfg b/Flying Bear Generic Configs/printer/accelerometer.cfg new file mode 100644 index 0000000..7c44383 --- /dev/null +++ b/Flying Bear Generic Configs/printer/accelerometer.cfg @@ -0,0 +1,27 @@ +################################################################################ +# Board: MKS Robin Nano v1.1 (Flying Bear Reborn 2.0) / MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3 +# Printer: Flying Bear Ghost 4S / Ghost 5 / Reborn +# Config by ODUCCEU +################################################################################ +# WARNING! DO NOT EDIT THIS FILE! +# To override settings from this file, you can copy and paste the relevant +# sections into your printer.cfg and change it there. +################################################################################ + +# Documentation +# https://www.klipper3d.org/Measuring_Resonances.html + +################################################################################ +# Accelerometer +################################################################################ + +[adxl345] +cs_pin: rpi:None +axes_map: -x,y,-z # check orientation + +[resonance_tester] +accel_chip: adxl345 +probe_points: + 100,100,20 + +################################################################################ diff --git a/Flying Bear Generic Configs/printer/fb-ghost4s-bltouch.cfg b/Flying Bear Generic Configs/printer/fb-ghost4s-bltouch.cfg new file mode 100644 index 0000000..a9b100f --- /dev/null +++ b/Flying Bear Generic Configs/printer/fb-ghost4s-bltouch.cfg @@ -0,0 +1,126 @@ +################################################################################ +# Board: MKS Robin Nano v1.1 (Flying Bear Reborn 2.0) / MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3 +# Printer: Flying Bear Ghost 4S +# Config by ODUCCEU +################################################################################ +# WARNING! DO NOT EDIT THIS FILE! +# To override settings from this file, you can copy and paste the relevant +# sections into your printer.cfg and change it there. +################################################################################ + +# https://www.klipper3d.org/BLTouch.html +# Most BL-Touch devices require a pullup on the sensor pin (prefix the pin name with "^") + +# Offset calculator +# https://docs.google.com/spreadsheets/d/1RAdhZYmozszxVk1wzSGsmHUTGrgdN-qGp5gZ5-Ksxr8/edit?usp=sharing + +# disable 'position_endstop' in [stepper_z] section of printer.cfg + +################################################################################ +# Pin Definitions +################################################################################ + +# You have different choices on how to plug your probe on MKS Robin Nano: +# +# Sensor can be plugged into one of the list: +## Z_MIN_STOP PA11 +## Z_MAX_STOP PC4 +## MT_DET2 PE6 +## WiFi_IO0 P13 MKSRNv1.3 +## WiFi_IO0 PA8 MKSRNv1.1 +# +# Servo control can be plugged into one of the list: +## SERVO PA8 'BLTOUCH' slot on MKSRNv1.3 +## PB2 PB2 +# +# You can check default 'BLTOUCH_SENSOR_PIN' and 'BLTOUCH_CONTROL_PIN' in your board cfg file + +################################################################################ +# BLTouch Probe +################################################################################ + +[bltouch] +sensor_pin: ^BLTOUCH_SENSOR_PIN +control_pin: BLTOUCH_CONTROL_PIN +# stow_on_each_sample: False # faster but dangerous +x_offset: 0 # CAUTION! Set your own offset +y_offset: 0 # CAUTION! Set your own offset +z_offset: 0 # CAUTION! Set your own offset +speed: 12 +samples: 3 + +################################################################################ +# Homing Z +################################################################################ + +[stepper_z] +endstop_pin: probe:z_virtual_endstop +position_min: -5 + +[safe_z_home] +home_xy_position: 127.5,105 # SET NOZZLE XY = probe_xy - offset_xy +speed: 100 +z_hop: 10 +z_hop_speed: 12 +# move_to_previous: True # return back to previous X/Y after Z-home + +################################################################################ +# Bed leveling +################################################################################ + +[bed_mesh] +speed: 100 +horizontal_move_z: 10 +mesh_min: 0,0 # CAUTION! = probe_xy = nozzle_xy + offset_xy +mesh_max: 255,210 # CAUTION! = probe_xy = nozzle_xy + offset_xy +probe_count: 7,5 +mesh_pps: 3 +algorithm: bicubic +relative_reference_index: 18 # center point + +[screws_tilt_adjust] # = nozzle_xy = probe_xy - offset_xy +screw1: 26,4 +screw1_name: front left screw +screw2: 229,4 +screw2_name: front right screw +screw3: 229,206 +screw3_name: back right screw +screw4: 26,206 +screw4_name: back left screw +horizontal_move_z: 10 +speed: 100 +screw_thread: CW-M3 + +################################################################################ +# Macros +################################################################################ + +[gcode_macro G29] # Bed Levelling (Automatic) +gcode: + {% if printer.toolhead.homed_axes != "xyz" %} G28 {% endif %} # home if not homed + BED_MESH_CALIBRATE + G0 X0 Y0 F6000 + SAVE_AFTER_ALL + +[gcode_macro PROBE_CALIBRATE] # Calibrate Z-offset +rename_existing: BASE_PROBE_CALIBRATE +gcode: + {% if printer.toolhead.homed_axes != "xyz" %} G28 {% endif %} # home if not homed + BASE_PROBE_CALIBRATE + +# Save Mesh to Config ########################################################## + +[gcode_macro SAVE_AFTER_ALL] +variable_save: 0 +gcode: + SET_GCODE_VARIABLE MACRO=SAVE_AFTER_ALL VARIABLE=save VALUE=1 + +[gcode_macro SAVE_IF_SET] +gcode: + {% if printer["gcode_macro SAVE_AFTER_ALL"].save == 1 %} + G4 P2000 # dwell 2 seconds + {action_respond_info("Saving and restarting now")} + SAVE_CONFIG + {% endif %} + +################################################################################ diff --git a/Flying Bear Generic Configs/printer/fb-ghost4s.cfg b/Flying Bear Generic Configs/printer/fb-ghost4s.cfg new file mode 100644 index 0000000..9540d46 --- /dev/null +++ b/Flying Bear Generic Configs/printer/fb-ghost4s.cfg @@ -0,0 +1,139 @@ +################################################################################ +# Board: MKS Robin Nano v1.1 (Flying Bear Reborn 2.0) / MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3 +# Printer: Flying Bear Ghost 4S +# Config by ODUCCEU +################################################################################ +# WARNING! DO NOT EDIT THIS FILE! +# To override settings from this file, you can copy and paste the relevant +# sections into your printer.cfg and change it there. +################################################################################ + +# Documentation +# https://www.klipper3d.org/Config_Reference.html + +################################################################################ +# X, Y, Z +################################################################################ + +[stepper_x] +step_pin: X_STEP_PIN +dir_pin: X_DIR_PIN +enable_pin: !X_ENABLE_PIN +rotation_distance: 40 +microsteps: 16 +endstop_pin: !X_STOP_PIN +position_min: -3.0 # home offset, measure yours or delete for no offset +position_endstop: -3.0 # home offset, measure yours or set '0' for no offset +position_max: 255 # X-axis bed size +homing_speed: 100 +homing_retract_dist: 0 # disable for head retraction after homing + +[stepper_y] +step_pin: Y_STEP_PIN +dir_pin: !Y_DIR_PIN +enable_pin: !Y_ENABLE_PIN +rotation_distance: 40 +microsteps: 16 +endstop_pin: !Y_STOP_PIN +position_min: -4.5 # home offset, measure yours or delete for no offset +position_endstop: -4.5 # home offset, measure yours or set '0' for no offset +position_max: 210 # Y-axis bed size +homing_speed: 100 +homing_retract_dist: 0 # disable for head retraction after homing + +[stepper_z] # left stepper +step_pin: Z1_STEP_PIN +dir_pin: !Z1_DIR_PIN +enable_pin: !Z1_ENABLE_PIN +rotation_distance: 8 +microsteps: 16 +endstop_pin: !Z1_STOP_PIN +position_max: 200 # Z-axis print volume size +homing_speed: 20 +second_homing_speed: 5 + +################################################################################ +# E0, HB +################################################################################ + +[extruder] +step_pin: E0_STEP_PIN +dir_pin: !E0_DIR_PIN +enable_pin: !E0_ENABLE_PIN +rotation_distance: 7.600 +microsteps: 16 +nozzle_diameter: 0.400 +filament_diameter: 1.750 +max_extrude_only_distance: 100 # ~100 direct, ~600 bowden +heater_pin: E_HEATER_PIN +sensor_type: EPCOS 100K B57560G104F +sensor_pin: E_SENSOR_PIN +min_temp: 0 +max_temp: 285 + +[heater_bed] +heater_pin: BED_HEATER_PIN +sensor_type: EPCOS 100K B57560G104F +sensor_pin: BED_SENSOR_PIN +min_temp: 0 +max_temp: 130 + +################################################################################ +# Fans +################################################################################ + +[fan] +pin: PARTCOOLING_FAN_PIN + +[heater_fan heater_fan] +pin: HEATER_FAN_PIN + +################################################################################ +# Printer +################################################################################ + +[printer] +kinematics: cartesian +max_velocity: 150 +max_accel: 3000 +max_accel_to_decel: 1500 +max_z_velocity: 20 +max_z_accel: 100 + +################################################################################ +# Optional G-Code features +################################################################################ + +[virtual_sdcard] +path: ~/gcode_files + +[pause_resume] + +[display_status] + +[firmware_retraction] +retract_speed: 40 +unretract_speed: 40 + +[respond] + +################################################################################ +# Bed leveling +################################################################################ + +# Reference: distance from bed edge to screw center is 36mm on X axis and 4mm on Y. +# Bed size is 275x210mm and print area size is 255x210mm. + +[bed_screws] +screw1: 26,4 +screw1_name: front left screw +screw2: 229,4 +screw2_name: front right screw +screw3: 229,206 +screw3_name: back right screw +screw4: 26,206 +screw4_name: back left screw +horizontal_move_z: 10 +speed: 100 + +################################################################################ diff --git a/Flying Bear Generic Configs/printer/fb-ghost5-bltouch.cfg b/Flying Bear Generic Configs/printer/fb-ghost5-bltouch.cfg new file mode 100644 index 0000000..f989c02 --- /dev/null +++ b/Flying Bear Generic Configs/printer/fb-ghost5-bltouch.cfg @@ -0,0 +1,126 @@ +################################################################################ +# Board: MKS Robin Nano v1.1 (Flying Bear Reborn 2.0) / MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3 +# Printer: Flying Bear Ghost 5 +# Config by ODUCCEU +################################################################################ +# WARNING! DO NOT EDIT THIS FILE! +# To override settings from this file, you can copy and paste the relevant +# sections into your printer.cfg and change it there. +################################################################################ + +# https://www.klipper3d.org/BLTouch.html +# Most BL-Touch devices require a pullup on the sensor pin (prefix the pin name with "^") + +# Offset calculator +# https://docs.google.com/spreadsheets/d/1RAdhZYmozszxVk1wzSGsmHUTGrgdN-qGp5gZ5-Ksxr8/edit?usp=sharing + +# disable 'position_endstop' in [stepper_z] section of printer.cfg + +################################################################################ +# Pin Definitions +################################################################################ + +# You have different choices on how to plug your probe on MKS Robin Nano: +# +# Sensor can be plugged into one of the list: +## Z_MIN_STOP PA11 +## Z_MAX_STOP PC4 +## MT_DET2 PE6 +## WiFi_IO0 P13 MKSRNv1.3 +## WiFi_IO0 PA8 MKSRNv1.1 +# +# Servo control can be plugged into one of the list: +## SERVO PA8 'BLTOUCH' slot on MKSRNv1.3 +## PB2 PB2 +# +# You can check default 'BLTOUCH_SENSOR_PIN' and 'BLTOUCH_CONTROL_PIN' in your board cfg file + +################################################################################ +# BLTouch Probe +################################################################################ + +[bltouch] +sensor_pin: ^BLTOUCH_SENSOR_PIN +control_pin: BLTOUCH_CONTROL_PIN +# stow_on_each_sample: False # faster but dangerous +x_offset: 0 # CAUTION! Set your own offset +y_offset: 0 # CAUTION! Set your own offset +z_offset: 0 # CAUTION! Set your own offset +speed: 12 +samples: 3 + +################################################################################ +# Homing Z +################################################################################ + +[stepper_z] +endstop_pin: probe:z_virtual_endstop +position_min: -5 + +[safe_z_home] +home_xy_position: 127.5,105 # SET NOZZLE XY = probe_xy - offset_xy +speed: 100 +z_hop: 10 +z_hop_speed: 12 +# move_to_previous: True # return back to previous X/Y after Z-home + +################################################################################ +# Bed leveling +################################################################################ + +[bed_mesh] +speed: 100 +horizontal_move_z: 10 +mesh_min: 0,0 # CAUTION! = probe_xy = nozzle_xy + offset_xy +mesh_max: 255,210 # CAUTION! = probe_xy = nozzle_xy + offset_xy +probe_count: 7,5 +mesh_pps: 3 +algorithm: bicubic +relative_reference_index: 18 # center point + +[screws_tilt_adjust] # = nozzle_xy = probe_xy - offset_xy +screw1: 25,30 +screw1_name: front left screw +screw2: 230,30 +screw2_name: front right screw +screw3: 230,180 +screw3_name: back right screw +screw4: 25,180 +screw4_name: back left screw +horizontal_move_z: 10 +speed: 100 +screw_thread: CW-M4 + +################################################################################ +# Macros +################################################################################ + +[gcode_macro G29] # Bed Levelling (Automatic) +gcode: + {% if printer.toolhead.homed_axes != "xyz" %} G28 {% endif %} # home if not homed + BED_MESH_CALIBRATE + G0 X0 Y0 F6000 + SAVE_AFTER_ALL + +[gcode_macro PROBE_CALIBRATE] # Calibrate Z-offset +rename_existing: BASE_PROBE_CALIBRATE +gcode: + {% if printer.toolhead.homed_axes != "xyz" %} G28 {% endif %} # home if not homed + BASE_PROBE_CALIBRATE + +# Save Mesh to Config ########################################################## + +[gcode_macro SAVE_AFTER_ALL] +variable_save: 0 +gcode: + SET_GCODE_VARIABLE MACRO=SAVE_AFTER_ALL VARIABLE=save VALUE=1 + +[gcode_macro SAVE_IF_SET] +gcode: + {% if printer["gcode_macro SAVE_AFTER_ALL"].save == 1 %} + G4 P2000 # dwell 2 seconds + {action_respond_info("Saving and restarting now")} + SAVE_CONFIG + {% endif %} + +################################################################################ diff --git a/Flying Bear Generic Configs/printer/fb-ghost5.cfg b/Flying Bear Generic Configs/printer/fb-ghost5.cfg new file mode 100644 index 0000000..1560704 --- /dev/null +++ b/Flying Bear Generic Configs/printer/fb-ghost5.cfg @@ -0,0 +1,139 @@ +################################################################################ +# Board: MKS Robin Nano v1.1 (Flying Bear Reborn 2.0) / MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3 +# Printer: Flying Bear Ghost 5 +# Config by ODUCCEU +################################################################################ +# WARNING! DO NOT EDIT THIS FILE! +# To override settings from this file, you can copy and paste the relevant +# sections into your printer.cfg and change it there. +################################################################################ + +# Documentation +# https://www.klipper3d.org/Config_Reference.html + +################################################################################ +# X, Y, Z +################################################################################ + +[stepper_x] +step_pin: X_STEP_PIN +dir_pin: X_DIR_PIN +enable_pin: !X_ENABLE_PIN +rotation_distance: 40 +microsteps: 16 +endstop_pin: !X_STOP_PIN +position_min: -1.2 # home offset, measure yours or disable for no offset +position_endstop: -1.2 # home offset, measure yours or set '0' for no offset +position_max: 255 # X-axis bed size +homing_speed: 100 +homing_retract_dist: 0 # disable for head retraction after homing + +[stepper_y] +step_pin: Y_STEP_PIN +dir_pin: !Y_DIR_PIN +enable_pin: !Y_ENABLE_PIN +rotation_distance: 40 +microsteps: 16 +endstop_pin: !Y_STOP_PIN +position_min: -4.3 # home offset, measure yours or disable for no offset +position_endstop: -4.3 # home offset, measure yours or set '0' for no offset +position_max: 210 # Y-axis bed size +homing_speed: 100 +homing_retract_dist: 0 # disable for head retraction after homing + +[stepper_z] # left stepper +step_pin: Z1_STEP_PIN +dir_pin: !Z1_DIR_PIN +enable_pin: !Z1_ENABLE_PIN +rotation_distance: 8 +microsteps: 16 +endstop_pin: !Z1_STOP_PIN +position_max: 200 # Z-axis print volume size +homing_speed: 20 +second_homing_speed: 5 + +################################################################################ +# E0, HB +################################################################################ + +[extruder] +step_pin: E0_STEP_PIN +dir_pin: !E0_DIR_PIN +enable_pin: !E0_ENABLE_PIN +rotation_distance: 7.600 +microsteps: 16 +nozzle_diameter: 0.400 +filament_diameter: 1.750 +max_extrude_only_distance: 100 # ~100 direct, ~600 bowden +heater_pin: E_HEATER_PIN +sensor_type: EPCOS 100K B57560G104F +sensor_pin: E_SENSOR_PIN +min_temp: 0 +max_temp: 285 + +[heater_bed] +heater_pin: BED_HEATER_PIN +sensor_type: EPCOS 100K B57560G104F +sensor_pin: BED_SENSOR_PIN +min_temp: 0 +max_temp: 130 + +################################################################################ +# Fans +################################################################################ + +[fan] +pin: PARTCOOLING_FAN_PIN + +[heater_fan heater_fan] +pin: HEATER_FAN_PIN + +################################################################################ +# Printer +################################################################################ + +[printer] +kinematics: cartesian +max_velocity: 150 +max_accel: 3000 +max_accel_to_decel: 1500 +max_z_velocity: 20 +max_z_accel: 100 + +################################################################################ +# Optional G-Code features +################################################################################ + +[virtual_sdcard] +path: ~/gcode_files + +[pause_resume] + +[display_status] + +[firmware_retraction] +retract_speed: 40 +unretract_speed: 40 + +[respond] + +################################################################################ +# Bed leveling +################################################################################ + +# Reference: distance from bed edge to screw center is 35mm on X axis and 32.5mm on Y. +# Bed size is 275x215mm and print area size is 255x210mm. + +[bed_screws] +screw1: 25,30 +screw1_name: front left screw +screw2: 230,30 +screw2_name: front right screw +screw3: 230,180 +screw3_name: back right screw +screw4: 25,180 +screw4_name: back left screw +horizontal_move_z: 10 +speed: 100 + +################################################################################ diff --git a/Flying Bear Generic Configs/printer/fb-reborn-bltouch.cfg b/Flying Bear Generic Configs/printer/fb-reborn-bltouch.cfg new file mode 100644 index 0000000..1167448 --- /dev/null +++ b/Flying Bear Generic Configs/printer/fb-reborn-bltouch.cfg @@ -0,0 +1,141 @@ +################################################################################ +# Board: MKS Robin Nano v1.1 (Flying Bear Reborn 2.0) / MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3 +# Printer: Flying Bear Reborn +# Config by ODUCCEU +################################################################################ +# WARNING! DO NOT EDIT THIS FILE! +# To override settings from this file, you can copy and paste the relevant +# sections into your printer.cfg and change it there. +################################################################################ + +# https://www.klipper3d.org/BLTouch.html +# Most BL-Touch devices require a pullup on the sensor pin (prefix the pin name with "^") + +# Offset calculator +# https://docs.google.com/spreadsheets/d/1RAdhZYmozszxVk1wzSGsmHUTGrgdN-qGp5gZ5-Ksxr8/edit?usp=sharing + +# disable 'position_endstop' in [stepper_z] section of printer.cfg + +################################################################################ +# Pin Definitions +################################################################################ + +# You have different choices on how to plug your probe on MKS Robin Nano: +# +# Sensor can be plugged into one of the list: +## Z_MIN_STOP PA11 +## Z_MAX_STOP PC4 +## MT_DET2 PE6 +## WiFi_IO0 P13 MKSRNv1.3 +## WiFi_IO0 PA8 MKSRNv1.1 +# +# Servo control can be plugged into one of the list: +## SERVO PA8 'BLTOUCH' slot on MKSRNv1.3 +## PB2 PB2 +# +# You can check default 'BLTOUCH_SENSOR_PIN' and 'BLTOUCH_CONTROL_PIN' in your board cfg file + +################################################################################ +# BLTouch Probe +################################################################################ + +[bltouch] +sensor_pin: ^BLTOUCH_SENSOR_PIN +control_pin: BLTOUCH_CONTROL_PIN +# stow_on_each_sample: False # faster but dangerous +x_offset: 0 # CAUTION! Set your own offset +y_offset: 0 # CAUTION! Set your own offset +z_offset: 0 # CAUTION! Set your own offset +speed: 12 +samples: 3 + +################################################################################ +# Homing Z +################################################################################ + +[stepper_z] +endstop_pin: probe:z_virtual_endstop +position_min: -5 + +[stepper_z1] +endstop_pin: probe:z_virtual_endstop + +[safe_z_home] +home_xy_position: 175,155 # SET NOZZLE XY = probe_xy - offset_xy +speed: 100 +z_hop: 10 +z_hop_speed: 12 +# move_to_previous: True # return back to previous X/Y after Z-home + +################################################################################ +# Bed leveling +################################################################################ + +[bed_mesh] +speed: 100 +horizontal_move_z: 10 +mesh_min: 0,0 # CAUTION! = probe_xy = nozzle_xy + offset_xy +mesh_max: 350,310 # CAUTION! = probe_xy = nozzle_xy + offset_xy +probe_count: 7,5 +mesh_pps: 3 +algorithm: bicubic +relative_reference_index: 18 # center point + +[z_tilt] +z_positions: # virtual XY position of: + -42,176 # stepper_z + 425,176 # stepper_z1 +points: + 0,176 # CAUTION! ? probe_xy = nozzle_xy + offset_xy + 350,176 # CAUTION! ? probe_xy = nozzle_xy + offset_xy +speed: 100 +horizontal_move_z: 10 +retries: 10 +retry_tolerance: 0.01 + +[screws_tilt_adjust] # = nozzle_xy = probe_xy - offset_xy +screw1: 45,42.5 +screw1_name: front left screw +screw2: 305,42.5 +screw2_name: front right screw +screw3: 305,267.5 +screw3_name: back right screw +screw4: 45,267.5 +screw4_name: back left screw +horizontal_move_z: 10 +speed: 100 +screw_thread: CW-M4 + +################################################################################ +# Macros +################################################################################ + +[gcode_macro G29] # Bed Levelling (Automatic) +gcode: + {% if printer.toolhead.homed_axes != "xyz" %} G28 {% endif %} # home if not homed + BED_MESH_CALIBRATE + G0 X0 Y0 F6000 + SAVE_AFTER_ALL + +[gcode_macro PROBE_CALIBRATE] # Calibrate Z-offset +rename_existing: BASE_PROBE_CALIBRATE +gcode: + {% if printer.toolhead.homed_axes != "xyz" %} G28 {% endif %} # home if not homed + BASE_PROBE_CALIBRATE + +# Save Mesh to Config ########################################################## + +[gcode_macro SAVE_AFTER_ALL] +variable_save: 0 +gcode: + SET_GCODE_VARIABLE MACRO=SAVE_AFTER_ALL VARIABLE=save VALUE=1 + +[gcode_macro SAVE_IF_SET] +gcode: + {% if printer["gcode_macro SAVE_AFTER_ALL"].save == 1 %} + G4 P2000 # dwell 2 seconds + {action_respond_info("Saving and restarting now")} + SAVE_CONFIG + {% endif %} + +################################################################################ diff --git a/Flying Bear Generic Configs/printer/fb-reborn.cfg b/Flying Bear Generic Configs/printer/fb-reborn.cfg new file mode 100644 index 0000000..2c002c3 --- /dev/null +++ b/Flying Bear Generic Configs/printer/fb-reborn.cfg @@ -0,0 +1,147 @@ +################################################################################ +# Board: MKS Robin Nano v1.1 (Flying Bear Reborn 2.0) / MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3 +# Printer: Flying Bear Reborn +# Config by ODUCCEU +################################################################################ +# WARNING! DO NOT EDIT THIS FILE! +# To override settings from this file, you can copy and paste the relevant +# sections into your printer.cfg and change it there. +################################################################################ + +# Documentation +# https://www.klipper3d.org/Config_Reference.html + +################################################################################ +# X, Y, Z +################################################################################ + +[stepper_x] +step_pin: X_STEP_PIN +dir_pin: X_DIR_PIN +enable_pin: !X_ENABLE_PIN +rotation_distance: 40 +microsteps: 16 +endstop_pin: !X_STOP_PIN +position_min: 0 +position_endstop: 0 +position_max: 350 # X-axis bed size +homing_speed: 100 +homing_retract_dist: 0 # disable for head retraction after homing + +[stepper_y] +step_pin: Y_STEP_PIN +dir_pin: !Y_DIR_PIN +enable_pin: !Y_ENABLE_PIN +rotation_distance: 40 +microsteps: 16 +endstop_pin: !Y_STOP_PIN +position_min: 0 +position_endstop: 0 +position_max: 310 # Y-axis bed size +homing_speed: 100 +homing_retract_dist: 0 # disable for head retraction after homing + +[stepper_z] # left stepper +step_pin: Z1_STEP_PIN +dir_pin: !Z1_DIR_PIN +enable_pin: !Z1_ENABLE_PIN +rotation_distance: 8 +microsteps: 16 +endstop_pin: !Z1_STOP_PIN +position_max: 350 # Z-axis print volume size +homing_speed: 20 +second_homing_speed: 5 + +[stepper_z1] # right stepper +step_pin: Z_STEP_PIN +dir_pin: !Z_DIR_PIN +enable_pin: !Z_ENABLE_PIN +rotation_distance: 8 +microsteps: 16 +endstop_pin: !Z_STOP_PIN + +################################################################################ +# E0, HB +################################################################################ + +[extruder] +step_pin: E0_STEP_PIN +dir_pin: !E0_DIR_PIN +enable_pin: !E0_ENABLE_PIN +rotation_distance: 7.600 +microsteps: 16 +nozzle_diameter: 0.400 +filament_diameter: 1.750 +max_extrude_only_distance: 100 +heater_pin: E_HEATER_PIN +sensor_type: EPCOS 100K B57560G104F +sensor_pin: E_SENSOR_PIN +min_temp: 0 +max_temp: 285 + +[heater_bed] +heater_pin: BED_HEATER_PIN +sensor_type: EPCOS 100K B57560G104F +sensor_pin: BED_SENSOR_PIN +min_temp: 0 +max_temp: 130 + +################################################################################ +# Fans +################################################################################ + +[fan] +pin: PARTCOOLING_FAN_PIN + +[heater_fan heater_fan] +pin: HEATER_FAN_PIN + +################################################################################ +# Printer +################################################################################ + +[printer] +kinematics: corexy +max_velocity: 150 +max_accel: 3000 +max_accel_to_decel: 1500 +max_z_velocity: 20 +max_z_accel: 100 + +################################################################################ +# Optional G-Code features +################################################################################ + +[virtual_sdcard] +path: ~/gcode_files + +[pause_resume] + +[display_status] + +[firmware_retraction] +retract_speed: 40 +unretract_speed: 40 + +[respond] + +################################################################################ +# Bed leveling +################################################################################ + +# Reference: distance from bed edge to screw center is 55mm on X axis and 50mm on Y. +# Bed size is 370x325mm and print area size is 355x310mm. + +[bed_screws] +screw1: 45,42.5 +screw1_name: front left screw +screw2: 305,42.5 +screw2_name: front right screw +screw3: 305,267.5 +screw3_name: back right screw +screw4: 45,267.5 +screw4_name: back left screw +horizontal_move_z: 10 +speed: 100 + +################################################################################ diff --git a/Flying Bear Generic Configs/printer/rpi_mcu.cfg b/Flying Bear Generic Configs/printer/rpi_mcu.cfg new file mode 100644 index 0000000..bad259d --- /dev/null +++ b/Flying Bear Generic Configs/printer/rpi_mcu.cfg @@ -0,0 +1,26 @@ +################################################################################ +# Board: MKS Robin Nano v1.1 (Flying Bear Reborn 2.0) / MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3 +# Printer: Flying Bear Ghost 4S / Ghost 5 / Reborn +# Config by ODUCCEU +################################################################################ +# WARNING! DO NOT EDIT THIS FILE! +# To override settings from this file, you can copy and paste the relevant +# sections into your printer.cfg and change it there. +################################################################################ + +# Documentation +# https://www.klipper3d.org/Config_Reference.html + +################################################################################ +# Raspberry Pi +################################################################################ + +[mcu rpi] +serial: /tmp/klipper_host_mcu + +[temperature_sensor rpi] +sensor_type: temperature_host +min_temp: 10 +max_temp: 100 + +################################################################################ diff --git a/Flying Bear Generic Configs/printer/tmc2209_uart_mks_rn.cfg b/Flying Bear Generic Configs/printer/tmc2209_uart_mks_rn.cfg new file mode 100644 index 0000000..6b3cd64 --- /dev/null +++ b/Flying Bear Generic Configs/printer/tmc2209_uart_mks_rn.cfg @@ -0,0 +1,74 @@ +################################################################################ +# Board: MKS Robin Nano v1.1 (Flying Bear Reborn 2.0) / MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3 +# Printer: Flying Bear Ghost 4S / Ghost 5 +# Config by ODUCCEU +################################################################################ +# Drivers: TMC2209 by BTT +################################################################################ + +# Based on this guide https://sergey1560.github.io/fb4s_howto/tmc_uart/ +# Works only if fifth stepper driver slot is free so no FB Reborn + +################################################################################ +# Pin Definitions +################################################################################ + +## TMC_TX_PIN PA6 +## TMC_UART_PIN PA1 + +################################################################################ +# TMC UART +################################################################################ + +[tmc2209 stepper_x] +uart_pin: TMC_UART_PIN +tx_pin: TMC_TX_PIN +run_current: 0.800 +hold_current: 0.400 +stealthchop_threshold: 999999 +uart_address: 0 + +[tmc2209 stepper_y] +uart_pin: TMC_UART_PIN +tx_pin: TMC_TX_PIN +run_current: 0.800 +hold_current: 0.400 +stealthchop_threshold: 999999 +uart_address: 1 + +[tmc2209 stepper_z] +uart_pin: TMC_UART_PIN +tx_pin: TMC_TX_PIN +run_current: 0.600 +hold_current: 0.300 +stealthchop_threshold: 999999 +uart_address: 2 + +[tmc2209 extruder] +uart_pin: TMC_UART_PIN +tx_pin: TMC_TX_PIN +run_current: 0.400 +hold_current: 0.200 +stealthchop_threshold: 999999 +uart_address: 3 + +################################################################################ +# Macros +################################################################################ + +[gcode_macro HIGH_SPEED] +gcode: + SET_TMC_CURRENT STEPPER=stepper_x CURRENT=1.000 HOLDCURRENT=0.750 + SET_TMC_CURRENT STEPPER=stepper_y CURRENT=1.000 HOLDCURRENT=0.750 + SET_TMC_CURRENT STEPPER=extruder CURRENT=0.600 HOLDCURRENT=0.300 + +[gcode_macro NORMAL_SPEED] +gcode: + {% set tmc_x = printer.configfile.settings["tmc2209 stepper_x"] %} + {% set tmc_y = printer.configfile.settings["tmc2209 stepper_y"] %} + {% set tmc_e = printer.configfile.settings["tmc2209 extruder"] %} + SET_TMC_CURRENT STEPPER=stepper_x CURRENT={tmc_x.run_current} HOLDCURRENT={tmc_x.hold_current} + SET_TMC_CURRENT STEPPER=stepper_y CURRENT={tmc_y.run_current} HOLDCURRENT={tmc_y.hold_current} + SET_TMC_CURRENT STEPPER=extruder CURRENT={tmc_e.run_current} HOLDCURRENT={tmc_e.hold_current} + +################################################################################ diff --git a/Flying Bear Generic Configs/printer/tmc2225.cfg b/Flying Bear Generic Configs/printer/tmc2225.cfg new file mode 100644 index 0000000..5ecf4e6 --- /dev/null +++ b/Flying Bear Generic Configs/printer/tmc2225.cfg @@ -0,0 +1,33 @@ +################################################################################ +# Board: MKS Robin Nano v1.1 (Flying Bear Reborn 2.0) / MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3 +# Printer: Flying Bear Ghost 5 / Reborn +# Config by ODUCCEU +################################################################################ +# WARNING! DO NOT EDIT THIS FILE! +# To override settings from this file, you can copy and paste the relevant +# sections into your printer.cfg and change it there. +################################################################################ + +# Documentation +# https://www.klipper3d.org/Config_Reference.html + +################################################################################ +# TMC2225 is set to '32' microsteps when both MS0 and MS1 are set to 'High' (default) +################################################################################ + +[stepper_x] +microsteps: 32 + +[stepper_y] +microsteps: 32 + +[stepper_z] +microsteps: 32 + +[stepper_z1] +microsteps: 32 + +[extruder] +microsteps: 32 + +################################################################################