mirror of
https://github.com/oducceu/klipper_configs.git
synced 2025-12-23 08:03:36 +05:00
Initial release of Flying Bear Generic Configs
This commit is contained in:
126
Flying Bear Generic Configs/printer/fb-ghost4s-bltouch.cfg
Normal file
126
Flying Bear Generic Configs/printer/fb-ghost4s-bltouch.cfg
Normal file
@@ -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 %}
|
||||
|
||||
################################################################################
|
||||
Reference in New Issue
Block a user