Zero G Mercury One.1 Klipper Config
Mercury One.1 with a BTT Manta M8P
[include shell_command.cfg][include mainsail.cfg]
# host MCU service is preinstalled and ready to use with:[mcu CB1]serial: /tmp/klipper_host_mcu
# This file contains common pin mappings for the BIGTREETECH Manta M8P# To use this config, the firmware should be compiled for the# STM32G0B1 with a "8KiB bootloader" "8 MHz crystal"# and "USB (on PA11/PA12)" or "CAN bus (on PD12/PD13)".
# https://github.com/Klipper3d/klipper/blob/master/config/generic-bigtreetech-manta-m8p-v1.1.cfg
# See docs/Config_Reference.md for a description of parameters.
[mcu]#@serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_3C001B000B504B4633373520-if00canbus_uuid=5b426f4e5253
[mcu HermitCrab]#serial: /dev/serial/by-id/usb-Klipper_stm32f072xb_28002C000757434331363920-if00canbus_uuid=00ee6e545867
[printer]kinematics: corexymax_velocity: 300max_accel: 4000 #Max 4000max_z_velocity: 15 #Max 15 for 12V TMC Drivers, can increase for 24Vmax_z_accel: 350square_corner_velocity: 5.0
[stepper_x] # B M1step_pin: PE2dir_pin: !PB4enable_pin: !PC11rotation_distance: 40microsteps: 16full_steps_per_rotation: 200 #set to 200 for 1.8 degree stepperendstop_pin: ^PF3position_endstop: 357position_max: 377homing_speed: 50homing_retract_dist: 10
[tmc5160 stepper_x]cs_pin: PC10#spi_bus: spi1interpolate: Falserun_current: .7#diag1_pin: ^!PF3sense_resistor: 0.110#driver_SGTHRS: 125driver_SGT: 0stealthchop_threshold: 0spi_software_sclk_pin: PA5spi_software_mosi_pin: PA7spi_software_miso_pin: PA6
[stepper_y] # A M2step_pin: PF12dir_pin: !PF11enable_pin: !PB3rotation_distance: 40microsteps: 16full_steps_per_rotation: 200 #set to 200 for 1.8 degree stepperendstop_pin: ^PF4position_endstop: 365position_max: 370homing_speed: 50homing_retract_dist: 10
[tmc5160 stepper_y]cs_pin: PF13#spi_bus: spi1interpolate: Falserun_current: .7#hold_current: 1.0#diag1_pin: ^!PF4sense_resistor: 0.110#driver_SGTHRS: 125driver_SGT: 2stealthchop_threshold: 0spi_software_sclk_pin: PA5spi_software_mosi_pin: PA7spi_software_miso_pin: PA6
[stepper_z] # M3 Leftstep_pin: PD7dir_pin: !PD6enable_pin: !PF10microsteps: 16rotation_distance: 2full_steps_per_rotation: 200 #set to 200 for 1.8 degree stepperendstop_pin: probe:z_virtual_endstopposition_max: 350position_min: -50homing_speed: 8.0second_homing_speed: 3
[tmc2209 stepper_z]uart_pin: PF9##diag_pin: PF5run_current: 0.7sense_resistor: 0.110stealthchop_threshold: 0
[stepper_z1] # M4 Centerstep_pin: PD3dir_pin: !PD2enable_pin: !PD5microsteps: 16rotation_distance: 2full_steps_per_rotation: 200 #set to 200 for 1.8 degree stepper
[tmc2209 stepper_z1]uart_pin: PD4##diag_pin: PC0run_current: 0.7sense_resistor: 0.110interpolate: Falsestealthchop_threshold: 0
[stepper_z2] # M6 Rightstep_pin: PA10dir_pin: !PA14enable_pin: !PA15microsteps: 16rotation_distance: 2full_steps_per_rotation: 200 #set to 200 for 1.8 degree stepper
[tmc2209 stepper_z2]uart_pin: PF8run_current: 0.7sense_resistor: 0.110interpolate: Falsestealthchop_threshold: 0
[extruder]step_pin: HermitCrab: PA6dir_pin: !HermitCrab: PA7enable_pin: !HermitCrab: PA5microsteps: 16rotation_distance: 24.235gear_ratio: 7:1nozzle_diameter: 0.400filament_diameter: 1.750heater_pin: HermitCrab: PA2sensor_type: EPCOS 100K B57560G104Fsensor_pin: HermitCrab: PA1#control: pid#pid_Kp: 21.527#pid_Ki: 1.063#pid_Kd: 108.982min_temp: 0max_temp: 250max_extrude_cross_section: 4pressure_advance: 0.05
[tmc2209 extruder]uart_pin: HermitCrab: PB0run_current: 0.650sense_resistor: 0.110interpolate: falsestealthchop_threshold: 0
[fan]pin: HermitCrab: PA4
[heater_fan hotend_fan]pin: HermitCrab: PA3heater: extruderheater_temp: 50.0
###################################################################### Bed Heater#####################################################################
[heater_bed]## SSR Pin - BED_OUTheater_pin: PB5sensor_type: ATC Semitec 104GT-2sensor_pin: PA0## Adjust Max Power so your heater doesn't warp your bedmax_power: 0.7min_temp: 0max_temp: 120#control: pid#pid_kp: 58.437#pid_ki: 2.347#pid_kd: 363.769
[board_pins]aliases: # EXP1 header EXP1_1=PE9, EXP1_2=PE10, EXP1_3=PE11, EXP1_4=PE12, EXP1_5=PE13, EXP1_6=PE14, # Slot in the socket on this side EXP1_7=PE15, EXP1_8=PB10, EXP1_9=<GND>, EXP1_10=<5V>,
# EXP2 header EXP2_1=PB14, EXP2_2=PB13, EXP2_3=PF7, EXP2_4=PB12, EXP2_5=PE7, EXP2_6=PB11, # Slot in the socket on this side EXP2_7=PE8, EXP2_8=<RST>, EXP2_9=<GND>, EXP2_10=<NC>
# See the sample-lcd.cfg file for definitions of common LCD displays.
###################################################################### Probe#####################################################################
[safe_z_home]home_xy_position: 188,185speed: 150z_hop: 10 # Move up 10mmz_hop_speed: 5
[bltouch]sensor_pin: ^HermitCrab:PB2control_pin: HermitCrab:PB1x_offset: -31.8y_offset: -40.5#z_offset: 4 # Uncomment if starting fresh; Distance should be enough to keep the z-offset positive.speed: 5.0pin_move_time: 0.7lift_speed: 8pin_up_touch_mode_reports_triggered: Trueprobe_with_touch_mode: Truesamples: 2samples_result: mediansample_retract_dist: 6.0samples_tolerance: 0.05samples_tolerance_retries: 3
[bed_mesh]speed: 300mesh_min: 30,30mesh_max: 345,329probe_count: 5,5mesh_pps: 2,2algorithm: bicubicbicubic_tension: 0.2move_check_distance: 3.0split_delta_z: .010fade_start: 1.0fade_end: 10.0
[screws_tilt_adjust]screw1: 360,13.5screw1_name: front_leftscrew2: 360,363screw2_name: front_rightscrew3: 185,10screw3_name: back_middle# Additional bed leveling screws. At least two screws must be# defined.speed: 50horizontal_move_z: 5screw_thread: CW-M3
[bed_screws]screw1: 360,13.5screw2: 360,363screw3: 185,10
[z_tilt]z_positions: 10,13.5 185,350 355,13.5
points: 0,55 155,365 325,55
speed: 200horizontal_move_z: 15retries: 10retry_tolerance: 0.03 #0.0075
###################################################################### PInput Shaping#####################################################################
[adxl345]cs_pin: HermitCrab: PB12spi_bus: spi2axes_map: y,z,-x
[resonance_tester]accel_chip: adxl345probe_points: 188,185, 20 # middle of bed as an example
[input_shaper]shaper_freq_x: 43.0shaper_type_x: 2hump_eishaper_freq_y: 52.6shaper_type_y: 2hump_ei
###################################################################### Macros#####################################################################
# All customizations are documented in globals.cfg. Just copy a variable from# there into the section below, and change the value to meet your needs.
[gcode_macro _km_options]# These are examples of some likely customizations:# Any sheets in the below list will be available with a configurable offset.#variable_bed_surfaces: ['smooth_1','texture_1']# Length (in mm) of filament to load (bowden tubes will be longer).variable_load_length: 50.0# Hide the Octoprint LCD menu since I don't use it.#variable_menu_show_octoprint: False# Customize the filament menus (up to 10 entries).#variable_menu_temperature: [# {'name' : 'PLA', 'extruder' : 200.0, 'bed' : 60.0},# {'name' : 'PETG', 'extruder' : 230.0, 'bed' : 85.0},# {'name' : 'ABS', 'extruder' : 245.0, 'bed' : 110.0, 'chamber' : 60}]# Length of filament (in millimeters) to purge at print start.variable_start_purge_length: 30 # This value works for most setups.gcode: # This line is required by Klipper.# Any code you put here will run at klipper startup, after the initialization# for these macros. For example, you could uncomment the following line to# automatically adjust your bed surface offsets to account for any changes made# to your Z endstop or probe offset.# ADJUST_SURFACE_OFFSETSvariable_park_x: 10.0# Y position to park toolhead (set "max" or "min" to infer from stepper config).variable_park_y: 350.0
# This line includes all the standard macros.[include klipper-macros/*.cfg]# Uncomment to include features that require specific hardware support.# LCD menu support for features like bed surface selection and pause next layer.#[include klipper-macros/optional/lcd_menus.cfg]# Optimized bed leveling[include klipper-macros/optional/bed_mesh.cfg]
# The sections below here are required for the macros to work. If your config# already has some of these sections you should merge the duplicates into one# (or if they are identical just remove one of them).[idle_timeout]gcode: _KM_IDLE_TIMEOUT # This line must be in your idle_timeout section.
[pause_resume]
[respond]
[save_variables]filename: ~/printer_data/config/variables.cfg # UPDATE THIS FOR YOUR PATH!!!
[virtual_sdcard]path: ~/printer_data/gcodes # UPDATE THIS FOR YOUR PATH!!!on_error_gcode: CANCEL_PRINT
[display_status]
[exclude_object]
[gcode_macro update_git]gcode: RUN_SHELL_COMMAND CMD=update_git_script
[gcode_shell_command update_git_script]command: bash -c "bash $HOME/klipper-backup/script.sh"timeout: 90.0verbose: True