add essential configurations

This commit is contained in:
♥ Minnie ♥ 2024-09-14 02:00:37 +00:00
commit c9b4a94fb6
4 changed files with 386 additions and 0 deletions

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
*
!.gitignore
!printer.cfg
!btt-ebb36.cfg
!macros.cfg

83
btt-ebb36.cfg Normal file
View file

@ -0,0 +1,83 @@
# This file 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.
[mcu EBBCan]
canbus_uuid: 8313b2b130fc
[thermistor DREMC NTC100K B3950]
temperature1: 25.0
resistance1: 103180.0
temperature2: 150.0
resistance2: 1366.2
temperature3: 250.0
resistance3: 168.6
[extruder]
step_pin: EBBCan: PD0
dir_pin: EBBCan: PD1
enable_pin: !EBBCan: PD2
microsteps: 16
full_steps_per_rotation: 200
rotation_distance: 4.682442
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.045
pressure_advance_smooth_time: 0.03
heater_pin: EBBCan: PB13
sensor_type: DREMC NTC100K B3950
sensor_pin: EBBCan: PA3
control: pid
pid_Kp: 27.153
pid_Ki: 1.661
pid_Kd: 110.989
min_extrude_temp: 180
min_temp: 0
max_temp: 250
[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
[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: 1.825
speed: 20
samples: 3
sample_retract_dist: 5.0
samples_result: median
samples_tolerance: 0.01
samples_tolerance_retries: 3
[safe_z_home]
home_xy_position: 115,82.5
speed: 150
z_hop: 10
z_hop_speed: 10
[adxl345 hotend]
cs_pin: EBBCan: PB12
spi_software_sclk_pin: EBBCan: PB10
spi_software_mosi_pin: EBBCan: PB11
spi_software_miso_pin: EBBCan: PB2

118
macros.cfg Normal file
View file

@ -0,0 +1,118 @@
# This file provides Klipper G-Code macros.
# See docs/Config_Reference.md for a description of parameters.
######################################################################
# Start Print and End Print
######################################################################
# Replace the slicer's custom start and end g-code scripts with
# START_PRINT and END_PRINT. See docs/Slicers.md for more information on using these macros.
[gcode_macro START_PRINT]
gcode:
# This part fetches data from your slicer. Such as bed temp, extruder temp and size of your printer.
{% set target_bed = params.BED|int %}
{% set target_extruder = params.EXTRUDER|int %}
{% set x_wait = printer.toolhead.axis_maximum.x|float / 2 %}
{% set y_wait = printer.toolhead.axis_maximum.y|float / 2 %}
# Homes the printer, sets absolute positioning, update the Stealthburner leds and clear old bed mesh.
STATUS_HOMING # Sets SB-leds to homing-mode
G28 # Full home (XYZ)
G90 # Absolute position
BED_MESH_CLEAR # Clears old saved bed mesh (if any)
# Heat up the bed with 5 minute soak.
RESPOND TYPE=echo_no_space MSG="Bed: {target_bed}c" # Displays info
STATUS_HEATING # Sets SB-leds to heating-mode
G1 X{x_wait} Y{y_wait} Z15 F9000 # Goes to center of the bed
M190 S{target_bed} # Sets the target temp for the bed
RESPOND TYPE=echo_no_space MSG="Soak for 5min" # Displays info
G4 P300000 # Waits 5 min for the bedtemp to stabilize
# Heating nozzle to 150 degrees. This helps with getting a correct Z-home
RESPOND TYPE=echo_no_space MSG="Hotend: 150c" # Displays info
M109 S150 # Heats the nozzle to 150c
# Adjust for gantry tilt.
RESPOND TYPE=echo_no_space MSG="Z-tilt adjust" # Displays info
STATUS_LEVELING # Sets SB-leds to leveling-mode
Z_TILT_ADJUST # Levels the x gantry via z_tilt_adjust
G28 Z # Homes Z again after z_tilt_adjust
# Take a mesh of the bed.
RESPOND TYPE=echo_no_space MSG="Bed mesh" # Displays info
STATUS_MESHING # Sets SB-leds to bed mesh-mode
BED_MESH_CALIBRATE # Starts bed mesh
# Parks the printhead, update the SB-leds and heat the nozzle.
RESPOND TYPE=echo_no_space MSG="Hotend: {target_extruder}c" # Displays info
STATUS_HEATING # Sets SB-leds to heating-mode
SMART_PARK # Move the printhead near the print area
M109 S{target_extruder} # Heats the nozzle to printing temp
# Gets ready to print by doing a purge line and updating the SB-leds
RESPOND TYPE=echo_no_space MSG="Printer goes brr" # Displays info
STATUS_PRINTING # Sets SB-leds to printing-mode
LINE_PURGE # Purge line
G90 # Absolute position
[gcode_macro END_PRINT]
gcode:
# Fetch maximum position for axis
{% set x_max = printer.toolhead.axis_maximum.x %}
{% set y_max = printer.toolhead.axis_maximum.y %}
# Turn off bed, extruder, and fan
M140 S0
M104 S0
M106 S0
# Move nozzle away from print while retracting
G91
G1 X-2 Y-2 E-3 F300
# Raise nozzle by 10mm
G1 Z10 F3000
G90
# Present print
G1 X{x_max} Y{y_max}
# Disable steppers
M84
######################################################################
# Filament Change
######################################################################
# M600: Filament Change. This macro will pause the printer, move the
# tool to the change position, and retract the filament 50mm. Adjust
# the retraction settings for your own extruder. After filament has
# been changed, the print can be resumed from its previous position
# with the "RESUME" gcode.
[pause_resume]
[gcode_macro M600]
gcode:
{% set X = params.X|default(50)|float %}
{% set Y = params.Y|default(0)|float %}
{% set Z = params.Z|default(10)|float %}
SAVE_GCODE_STATE NAME=M600_state
PAUSE
G91
G1 E-.8 F2700
G1 Z{Z}
G90
G1 X{X} Y{Y} F3000
FILAMENT_UNLOAD # Use orbiter sensor unload macro
RESTORE_GCODE_STATE NAME=M600_state
# Enable the "M118" and "RESPOND" extended commands.
[respond]
# Enable object exclusion
[exclude_object]

180
printer.cfg Normal file
View file

@ -0,0 +1,180 @@
# 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)".
# See docs/Config_Reference.md for a description of parameters.
[include mainsail.cfg]
[include btt-ebb36.cfg]
[include stealthburner_leds.cfg]
[include OrbiterSensor.cfg]
[include KAMP_Settings.cfg]
[include macros.cfg]
[mcu]
canbus_uuid: f4ecb7c12108
[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: -3
position_max: 200
[stepper_z1]
step_pin: PB7
dir_pin: !PB6
enable_pin: !PB4
microsteps: 16
rotation_distance: 8
[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
[printer]
kinematics: cartesian
max_velocity: 180
max_accel: 5000
max_z_velocity: 5
max_z_accel: 100
########################################
# TMC2209 configuration
########################################
[tmc2209 stepper_x]
uart_pin: PB8
run_current: 0.580
#stealthchop_threshold: 999999
[tmc2209 stepper_y]
uart_pin: PC9
run_current: 0.580
#stealthchop_threshold: 999999
[tmc2209 stepper_z]
uart_pin: PD0
run_current: 0.580
#stealthchop_threshold: 999999
[tmc2209 stepper_z1]
uart_pin: PB5
run_current: 0.580
#stealthchop_threshold: 999999
[firmware_retraction]
retract_length: 0.5
retract_speed: 35
unretract_speed: 35
[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
[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]
z_positions:
-30,110
260,110
points:
10,110
220,110
retries: 20
retry_tolerance: 0.005
[bed_mesh]
speed: 50
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
[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: 116.0
shaper_freq_y: 52.2
shaper_type_x: mzv
shaper_type_y: ei
damping_ratio_x: 0.022
damping_ratio_y: 0.035
[virtual_sdcard]
path: /home/biqu/printer_data/gcodes
on_error_gcode: CANCEL_PRINT
# Mainsail macro variables
[gcode_macro _CLIENT_VARIABLE]
variable_speed_move : 50.0
variable_use_fw_retract : True
variable_idle_timeout : 3600
gcode: