printer: add ebb36 with sensorless homing

This commit is contained in:
Konstantin Koslowski 2023-03-10 21:19:16 +01:00
parent 556b32e0f6
commit 3b6ad1b9f8
6 changed files with 183 additions and 105 deletions

View file

@ -58,6 +58,7 @@ path: /home/pi/printer_data/gcodes
# includes
#####################################################################
[include ebb36.cfg]
[include macros/_init.cfg]
[include neopixel.cfg]
[include fans.cfg]
@ -77,14 +78,16 @@ step_pin: PF13
dir_pin: !PF12
enable_pin: !PF14
rotation_distance: 40
homing_speed: 20
microsteps: 32
full_steps_per_rotation: 400 # 200: 1.8 deg stepper, 400: 0.9 deg stepper
endstop_pin: PG6
# endstop_pin: PG6 # octopus
endstop_pin: tmc5160_stepper_x:virtual_endstop
position_min: 0
position_endstop: 300
position_max: 300
homing_speed: 30 # speed: mm/sec, feedrate: mm/min
homing_retract_dist: 5
# homing_retract_dist: 5
homing_retract_dist: 0
homing_positive_dir: true
[tmc5160 stepper_x]
@ -96,6 +99,8 @@ interpolate: False
run_current: 1.0
sense_resistor: 0.110
stealthchop_threshold: 0
diag0_pin: ^!PG6
driver_SGT: 1 # -64 most sensitive, 63 least sensitive
## Y Stepper on MOTOR1 (A Motor)
[stepper_y]
@ -103,14 +108,16 @@ step_pin: PG0
dir_pin: !PG1
enable_pin: !PF15
rotation_distance: 40
homing_speed: 20
microsteps: 32
full_steps_per_rotation: 400 # 200: 1.8 deg stepper, 400: 0.9 deg stepper
endstop_pin: PG9
# endstop_pin: PG9 # octopus
endstop_pin: tmc5160_stepper_y:virtual_endstop
position_min: 0
position_endstop: 302.5
position_max: 306
homing_speed: 30 # Max 100
homing_retract_dist: 5
position_endstop: 303
position_max: 303
# homing_retract_dist: 5
homing_retract_dist: 0
homing_positive_dir: true
[tmc5160 stepper_y]
@ -122,6 +129,8 @@ interpolate: False
run_current: 1.0
sense_resistor: 0.110
stealthchop_threshold: 0
diag0_pin: ^!PG9
driver_SGT: 1 # -64 most sensitive, 63 least sensitive
#####################################################################
@ -200,64 +209,6 @@ sense_resistor: 0.110
stealthchop_threshold: 0
#####################################################################
# Extruder
#####################################################################
# E0 on MOTOR6
[extruder]
step_pin: PE2
dir_pin: !PE3
enable_pin: !PD4
## Update value below when you perform extruder calibration
## If you ask for 100mm of filament, but in reality it is 98mm:
## rotation_distance = <previous_rotation_distance> * <actual_extrude_distance> / 100
## 22.6789511 is a good starting point
rotation_distance: 22.6789511 #Bondtech 5mm Drive Gears
## Update Gear Ratio depending on your Extruder Type
## - 50:17 for Afterburner/Clockwork
## - 50:10 for Stealthburner/Clockwork2
## - 80:20 for M4, M3.1
gear_ratio: 50:10 # SB BMG
microsteps: 32
full_steps_per_rotation: 200 # 1.8 deg stepper: 200, 0.9 deg stepper: 400
nozzle_diameter: 0.400
filament_diameter: 1.75
heater_pin: PA2
sensor_type: ATC Semitec 104NT-4-R025H42G
sensor_pin: PF4
min_temp: 10
max_temp: 280 # specified to 300
max_power: 1.0
min_extrude_temp: 170
#control = pid
#pid_kp = 26.213
#pid_ki = 1.304
#pid_kd = 131.721
## Try to keep pressure_advance below 1.0
# pressure_advance: 0.05
## Default is 0.040, leave stock
pressure_advance_smooth_time: 0.040
# Maximum length (in mm of raw filament) that a retraction or
# extrude-only move may have, default: 50
max_extrude_only_distance: 200
# Maximum area (in mm^2) of an extrusion cross section (eg,
# extrusion width multiplied by layer height). This setting prevents
# excessive amounts of extrusion during relatively small XY moves.
# If a move requests an extrusion rate that would exceed this value
# it will cause an error to be returned. The default is: 4.0 *
# nozzle_diameter^2
max_extrude_cross_section: 50.0 # default 4 * 0.4 = 0.64
## E0 on MOTOR6
[tmc2209 extruder]
uart_pin: PE1
interpolate: false
run_current: 0.5
sense_resistor: 0.110
stealthchop_threshold: 0
#####################################################################
# Bed Heater
#####################################################################
@ -309,9 +260,9 @@ max_temp: 100
[idle_timeout]
timeout: 1800
[safe_z_home]
home_xy_position: 150, 150
z_hop: 10
# [safe_z_home]
# home_xy_position: 150, 150
# z_hop: 5
#####################################################################
@ -320,7 +271,8 @@ z_hop: 10
[probe]
## Voron-Tap
pin: ^PG11
# pin: ^PG11
pin: EBBCan: PB9
x_offset: 0
y_offset: 0
#z_offset: 0