Update 'laser-cnc/lasercnc.cfg'

This commit is contained in:
Siwat Sirichai 2022-01-07 09:19:27 +07:00
parent 0cade39c69
commit c9f4858c1d
1 changed files with 47 additions and 34 deletions

View File

@ -1,75 +1,79 @@
# This file contains common pin mappings for the BIGTREETECH SKR mini
# E3 v2.0. To use this config, the firmware should be compiled for the
# STM32F103 with a "28KiB bootloader" and USB communication. Also,
# select "Enable extra low-level configuration options" and configure
# "GPIO pins to set at micro-controller startup" to "!PA14".
# The "make flash" command does not work on the SKR mini E3. Instead,
# after running "make", copy the generated "out/klipper.bin" file to a
# file named "firmware.bin" on an SD card and then restart the SKR
# mini E3 with that SD card.
# See docs/Config_Reference.md for a description of parameters.
[stepper_x] [stepper_x]
step_pin: gpio11 step_pin: PB13
dir_pin: !gpio10 dir_pin: !PB12
enable_pin: !gpio12 enable_pin: !PB14
microsteps: 16 microsteps: 16
rotation_distance: 40 rotation_distance: 40
endstop_pin: ^gpio4 endstop_pin: ^PC0
position_endstop: 0 position_endstop: 0
position_max: 235 position_max: 235
homing_speed: 50 homing_speed: 50
[tmc2209 stepper_x] [tmc2209 stepper_x]
uart_pin: gpio9 uart_pin: PC11
tx_pin: gpio8 tx_pin: PC10
uart_address: 0 uart_address: 0
run_current: 0.8 run_current: 0.8
stealthchop_threshold: 0 stealthchop_threshold: 999999
[stepper_y] [stepper_y]
step_pin: gpio6 step_pin: PB10
dir_pin: !gpio5 dir_pin: !PB2
enable_pin: !gpio7 enable_pin: !PB11
microsteps: 16 microsteps: 16
rotation_distance: 40 rotation_distance: 40
endstop_pin: ^gpio3 endstop_pin: ^PC1
position_endstop: 0 position_endstop: 0
position_max: 235 position_max: 235
homing_speed: 50 homing_speed: 50
[tmc2209 stepper_y] [tmc2209 stepper_y]
uart_pin: gpio9 uart_pin: PC11
tx_pin: gpio8 tx_pin: PC10
uart_address: 2 uart_address: 2
run_current: 0.8 run_current: 0.8
stealthchop_threshold: 0 stealthchop_threshold: 999999
#No Z Axis
[homing_override]
SET_KINEMATIC_POSITION: Z=0
G28 X Y
# Z Axis is not used
[stepper_z] [stepper_z]
step_pin: gpio19 step_pin: PB0
dir_pin: gpio28 dir_pin: PC5
enable_pin: !gpio2 enable_pin: !PB1
microsteps: 16 microsteps: 16
rotation_distance: 8 rotation_distance: 8
endstop_pin: ^gpio25 endstop_pin: ^PC2
position_endstop: 0.0 position_endstop: 0
position_max: 0 position_max: 1
[tmc2209 stepper_z] [tmc2209 stepper_z]
uart_pin: gpio9 uart_pin: PC11
tx_pin: gpio8 tx_pin: PC10
uart_address: 1 uart_address: 1
run_current: 0.580 run_current: 0.580
stealthchop_threshold: 999999 stealthchop_threshold: 999999
[fan]
pin: gpio17
[output_pin laser] [output_pin laser]
pin: gpio18 pin: PC7
pwm: True pwm: True
hardware_pwm: True hardware_pwm: True
cycle_time: 0.001 cycle_time: 0.001
shutdown_value: 0 shutdown_value: 0
maximum_mcu_duration: 5 maximum_mcu_duration: 5
[fan controller_fan] [fan]
pin: gpio20 pin: PC6
[mcu] [mcu]
serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00 serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
@ -81,6 +85,15 @@ max_accel: 3000
max_z_velocity: 5 max_z_velocity: 5
max_z_accel: 100 max_z_accel: 100
[static_digital_output usb_pullup_enable]
pins: !PA14
[board_pins]
aliases:
# EXP1 header
EXP1_1=PB5, EXP1_3=PA9, EXP1_5=PA10, EXP1_7=PB8, EXP1_9=<GND>,
EXP1_2=PA15, EXP1_4=<RST>, EXP1_6=PB9, EXP1_8=PB15, EXP1_10=<5V>
[gcode_macro M3] [gcode_macro M3]
gcode: gcode:
{% set S = params.S|default(0.0)|float %} {% set S = params.S|default(0.0)|float %}