refactor
This commit is contained in:
parent
dcac9d16b9
commit
568fff23c1
|
@ -1,83 +0,0 @@
|
|||
# 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.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.60
|
||||
pid_Ki: 1.369
|
||||
pid_Kd: 116.510
|
||||
min_extrude_temp: 180
|
||||
min_temp: 0
|
||||
max_temp: 300
|
||||
|
||||
[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: 2.005
|
||||
speed: 20
|
||||
samples: 3
|
||||
sample_retract_dist: 5.0
|
||||
samples_result: median
|
||||
samples_tolerance: 0.0125
|
||||
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
|
201
printer.cfg
201
printer.cfg
|
@ -3,16 +3,118 @@
|
|||
# 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 btt-ebb36.cfg]
|
||||
[include macros.cfg]
|
||||
# Toolhead
|
||||
[include stealthburner_leds.cfg]
|
||||
[include OrbiterSensor.cfg]
|
||||
# Plugins
|
||||
[include KAMP_Settings.cfg]
|
||||
[include macros.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
|
||||
|
||||
[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.005
|
||||
speed: 20
|
||||
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
|
||||
|
||||
########################################
|
||||
# Stepper Configuration
|
||||
########################################
|
||||
|
||||
[stepper_x]
|
||||
step_pin: PA14
|
||||
|
@ -55,26 +157,33 @@ 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
|
||||
[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: 68.457
|
||||
pid_Ki: 1.138
|
||||
pid_Kd: 1029.416
|
||||
pid_Kp: 25.60
|
||||
pid_Ki: 1.369
|
||||
pid_Kd: 116.510
|
||||
min_extrude_temp: 180
|
||||
min_temp: 0
|
||||
max_temp: 130
|
||||
|
||||
[printer]
|
||||
kinematics: cartesian
|
||||
max_velocity: 450
|
||||
max_accel: 10000
|
||||
max_z_velocity: 5
|
||||
max_z_accel: 100
|
||||
max_temp: 300
|
||||
|
||||
########################################
|
||||
# TMC2209 configuration
|
||||
# TMC2209 Configuration
|
||||
########################################
|
||||
|
||||
[tmc2209 stepper_x]
|
||||
|
@ -97,21 +206,17 @@ uart_pin: PB5
|
|||
run_current: 0.580
|
||||
interpolate: True
|
||||
|
||||
[firmware_retraction]
|
||||
retract_length: 0.5
|
||||
retract_speed: 35
|
||||
unretract_speed: 35
|
||||
[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
|
||||
|
||||
[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 Leveling
|
||||
########################################
|
||||
|
||||
[bed_screws]
|
||||
screw1: 30, 30
|
||||
|
@ -154,6 +259,27 @@ 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
|
||||
|
@ -168,14 +294,3 @@ shaper_type_x: ei
|
|||
shaper_type_y: ei
|
||||
damping_ratio_x: 0.040
|
||||
damping_ratio_y: 0.039
|
||||
|
||||
[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:
|
||||
|
|
Loading…
Reference in a new issue