klipper-config/printer.cfg

300 lines
6 KiB
INI

# This file contains common pin mappings for the BIGTREETECH Manta E3EZ
# 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 PB12/PB13)".
# This file also contains common pin mappings for the BIGTREETECH EBBCan
# Canbus board. To use this config, the firmware should be compiled for the
# STM32G0B1 with "8 MHz crystal" and "USB (on PA11/PA12)" or "CAN bus (on PB0/PB1)".
# The "EBB Can" micro-controller will be used to control the components on the nozzle.
# See docs/Config_Reference.md for a description of parameters.
#######################################
# Includes
########################################
# Core
[include mainsail.cfg]
[include macros.cfg]
# Toolhead
[include stealthburner_leds.cfg]
[include OrbiterSensor.cfg]
# Plugins
[include flexplate.cfg]
[include KAMP_Settings.cfg]
########################################
# Microcontrollers
########################################
[mcu]
canbus_uuid: f4ecb7c12108
[mcu EBBCan]
canbus_uuid: 8313b2b130fc
########################################
# Printer Configuration
########################################
[printer]
kinematics: cartesian
max_velocity: 450
max_accel: 10000
max_z_velocity: 5
max_z_accel: 100
[safe_z_home]
home_xy_position: 115,82.5
speed: 150
z_hop: 10
z_hop_speed: 10
[firmware_retraction]
retract_length: 0.5
retract_speed: 35
unretract_speed: 35
[save_variables]
filename: /home/biqu/printer_data/config/variables.stb
[virtual_sdcard]
path: /home/biqu/printer_data/gcodes
on_error_gcode: CANCEL_PRINT
########################################
# Mainsail Configuration
########################################
[gcode_macro _CLIENT_VARIABLE]
variable_speed_move : 50.0
variable_use_fw_retract : True
variable_idle_timeout : 3600
gcode:
########################################
# Printer Components
########################################
[fan]
pin: EBBCan: PA0
[heater_fan hotend_fan]
pin: EBBCan: PA1
heater: extruder
heater_temp: 50.0
[bltouch]
sensor_pin: ^EBBCan:PB8
control_pin: EBBCan:PB9
x_offset: 0
y_offset: 22.5
z_offset: 2.04
speed: 3
samples: 3
sample_retract_dist: 5.0
samples_result: median
samples_tolerance: 0.0125
samples_tolerance_retries: 3
[thermistor DREMC NTC100K B3950]
temperature1: 25.0
resistance1: 103180.0
temperature2: 150.0
resistance2: 1366.2
temperature3: 250.0
resistance3: 168.6
[heater_bed]
heater_pin: PB2 #HB
sensor_type: EPCOS 100K B57560G104F #Generic 3950
sensor_pin: PA3 #TB
control: pid
pid_Kp: 68.457
pid_Ki: 1.138
pid_Kd: 1029.416
min_temp: 0
max_temp: 130
[extruder]
step_pin: EBBCan: PD0
dir_pin: EBBCan: PD1
enable_pin: !EBBCan: PD2
microsteps: 16
full_steps_per_rotation: 200
rotation_distance: 4.729266
nozzle_diameter: 0.400
filament_diameter: 1.750
max_extrude_cross_section: 5
max_extrude_only_distance: 500
max_extrude_only_velocity: 120
pressure_advance: 0.025 #to be calibrated
pressure_advance_smooth_time: 0.03 #to be calibrated
heater_pin: EBBCan: PB13
sensor_type: DREMC NTC100K B3950
sensor_pin: EBBCan: PA3
control: pid
pid_Kp: 25.194
pid_Ki: 1.312
pid_Kd: 120.930
min_extrude_temp: 180
min_temp: 0
max_temp: 300
########################################
# Stepper Configuration
########################################
[stepper_x]
step_pin: PA14
dir_pin: !PA10
enable_pin: !PA13
microsteps: 16
rotation_distance: 40
endstop_pin: ^PC4
position_endstop: 0
position_min: 0
position_max: 245
homing_speed: 50
[stepper_y]
step_pin: PC8
dir_pin: !PA15
enable_pin: !PC14
microsteps: 16
rotation_distance: 40
endstop_pin: ^PB0
position_endstop: -20
position_min: -20
position_max: 210
homing_speed: 50
[stepper_z]
step_pin: PD2
dir_pin: !PD4
enable_pin: !PD3
microsteps: 16
rotation_distance: 8
endstop_pin: probe:z_virtual_endstop
position_min: 0
position_max: 260
[stepper_z1]
step_pin: PB7
dir_pin: !PB6
enable_pin: !PB4
microsteps: 16
rotation_distance: 8
########################################
# TMC2209 Configuration
########################################
[tmc2209 stepper_x]
uart_pin: PB8
run_current: 0.594
interpolate: True
[tmc2209 stepper_y]
uart_pin: PC9
run_current: 0.594
interpolate: True
[tmc2209 stepper_z]
uart_pin: PD0
run_current: 0.594
interpolate: True
[tmc2209 stepper_z1]
uart_pin: PB5
run_current: 0.594
interpolate: True
[tmc2209 extruder]
uart_pin: EBBCan: PA15
run_current: 0.650 # Max 0.850
driver_TBL: 0
driver_HEND: 6
driver_HSTRT: 7
driver_TOFF: 4
########################################
# Bed Leveling
########################################
[bed_screws]
screw1: 30, 30
screw2: 200, 30
screw3: 200, 200
screw4: 30, 200
[screws_tilt_adjust]
screw1: 30, 7.5
screw1_name: front left screw
screw2: 200, 7.5
screw2_name: front right screw
screw3: 200, 177.5
screw3_name: rear right screw
screw4: 30, 177.5
screw4_name: rear left screw
horizontal_move_z: 10
speed: 50
screw_thread: CW-M4 # Use CW for Clockwise and CCW for Counter Clockwise
[z_tilt]
speed: 200
z_positions:
-30,110
260,110
points:
20,110
210,110
retries: 20
retry_tolerance: 0.0075
[bed_mesh]
speed: 200
mesh_min: 10,10 # Need to handle head distance with cr-touch (bl_touch)
mesh_max: 220,200 # Max probe range
probe_count: 11,11
fade_start: 1
fade_end: 10
fade_target: 0
algorithm: bicubic
bicubic_tension: 0.5
########################################
# Resonance Compensation
########################################
[adxl345 hotend]
cs_pin: EBBCan: PB12
spi_software_sclk_pin: EBBCan: PB10
spi_software_mosi_pin: EBBCan: PB11
spi_software_miso_pin: EBBCan: PB2
[adxl345 bed]
cs_pin: PC15
spi_software_miso_pin: PC11
spi_software_mosi_pin: PC12
spi_software_sclk_pin: PC10
[resonance_tester]
accel_chip_x: adxl345 hotend
accel_chip_y: adxl345 bed
probe_points: 115,82.5,10
[shaketune]
result_folder: ~/printer_data/config/ShakeTune_results
number_of_results_to_keep: 3
keep_raw_csv: False
show_macros_in_webui: True
timeout: 300
[input_shaper]
shaper_freq_x: 59.6
shaper_freq_y: 56.4
shaper_type_x: ei
shaper_type_y: ei
damping_ratio_x: 0.040
damping_ratio_y: 0.039