Created
November 20, 2023 16:33
-
-
Save mapero/7e866440cb18a0a871add9ebf9bea17c to your computer and use it in GitHub Desktop.
klipper configuration for lowrider CNC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[include menu/*.cfg] | |
[include macros/*.cfg] | |
[mcu] | |
serial: /dev/serial/by-id/usb-Klipper_stm32f407xx_190032001950324239333220-if00 | |
restart_method: command | |
[printer] | |
kinematics: cartesian_abc | |
axis: XYZ | |
max_velocity: 50 | |
max_accel: 180 | |
max_accel_to_decel: 125 | |
max_z_velocity: 15 | |
max_z_accel: 50 | |
[gcode_arcs] | |
resolution: 1 | |
[probe_G38] | |
recovery_time: 0.0 | |
pin: ^!PG8 | |
z_offset: 0 | |
# rotation_distance = 200 <full_steps_per_rotation> * <microsteps> / 100 <steps_per_mm> | |
[stepper_x] | |
step_pin: PE9 | |
dir_pin: PF1 | |
enable_pin: !PF2 | |
microsteps: 16 | |
rotation_distance: 32 | |
endstop_pin: ^PB10 | |
position_endstop: 0 | |
position_min: -1 | |
position_max: 665 | |
homing_speed: 50 | |
homing_retract_dist: 10.0 | |
[tmc2209 stepper_x] | |
uart_pin: PC13 | |
run_current: 1.1 | |
[stepper_y] | |
step_pin: PE11 | |
dir_pin: !PE8 | |
enable_pin: !PD7 | |
microsteps: 16 | |
rotation_distance: 32 | |
endstop_pin: ^PE12 | |
position_endstop: 0 | |
position_max: 1650 | |
position_min: -1 | |
homing_speed: 50 | |
homing_retract_dist: 10.0 | |
[tmc2209 stepper_y] | |
uart_pin: PE3 | |
run_current: 1.1 | |
[stepper_y1] # EO On the board is used for y1 (aka y2 on v1e) | |
step_pin: PE14 | |
dir_pin: !PA0 | |
enable_pin: !PC3 | |
microsteps: 16 | |
rotation_distance: 32 | |
endstop_pin: ^PE10 # uses E1 pinout | |
[tmc2209 stepper_y1] | |
uart_pin: PD4 | |
run_current: 1.1 | |
[stepper_z] | |
step_pin: PE13 | |
dir_pin: PC2 | |
enable_pin: !PC0 | |
microsteps: 16 | |
rotation_distance: 8 | |
endstop_pin: ^PG5 # uses E2 pinout | |
position_endstop: 200 | |
position_min: -200 | |
position_max: 205 | |
homing_positive_dir: true | |
homing_retract_dist: 10.0 | |
[tmc2209 stepper_z] | |
uart_pin: PE1 | |
run_current: 1.1 | |
[stepper_z1] # z1 is using E1 on the main board (aka z2 motor on v1e) | |
step_pin: PD15 | |
dir_pin: !PE7 | |
enable_pin: !PA3 | |
microsteps: 16 | |
rotation_distance: 8 | |
endstop_pin: ^PE15 # uses E0 pinout | |
[output_pin TOOL] | |
pin: PC8 # use your fan's pin number | |
pwm: false | |
shutdown_value: 0 | |
maximum_mcu_duration: 5 | |
[tmc2209 stepper_z1] | |
uart_pin: PD1 | |
run_current: 1.1 | |
# [temperature_sensor mcu_temp] | |
# sensor_type: temperature_mcu | |
# min_temp: 0 | |
# max_temp: 100 | |
[idle_timeout] | |
gcode: M5 | |
timeout: 120 | |
[homing_override] | |
set_position_z: 15 | |
axes: xy | |
gcode: | |
G90 | |
G28 Z0 | |
G28 X0 | |
G28 Y0 | |
[pause_resume] | |
recover_velocity: 50 | |
[skew_correction] | |
[display_status] | |
[display] | |
lcd_type: emulated_st7920 | |
spi_software_miso_pin: EXP2_1 | |
spi_software_mosi_pin: EXP1_3 | |
spi_software_sclk_pin: EXP1_5 | |
en_pin: EXP1_4 | |
encoder_pins: ^EXP2_3, ^EXP2_5 | |
click_pin: ^!EXP1_2 | |
[output_pin beeper] | |
pin: PG4 | |
[board_pins] | |
aliases: | |
# EXP1 header | |
EXP1_1=PG4, EXP1_3=PD11, EXP1_5=PG2, EXP1_7=PG6, EXP1_9=<GND>, | |
EXP1_2=PA8, EXP1_4=PD10, EXP1_6=PG3, EXP1_8=PG7, EXP1_10=<5V>, | |
# EXP2 header | |
EXP2_1=PB14, EXP2_3=PG10, EXP2_5=PF11, EXP2_7=PF12, EXP2_9=<GND>, | |
EXP2_2=PB13, EXP2_4=PB12, EXP2_6=PB15, EXP2_8=<RST>, EXP2_10=PF13 | |
# Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "spi2" | |
[virtual_sdcard] | |
path: /var/snap/rexroth-solutions/common/solutions/DefaultSolution/configurations/appdata/klipper/gcodes | |
[multi_pin controller_fan_pins] | |
pins: PE6, PE5 | |
[temperature_fan mcu_temp] | |
pin: multi_pin:controller_fan_pins | |
sensor_type: temperature_mcu | |
min_temp: 0 | |
max_temp: 100 | |
target_temp: 35 | |
control: pid | |
max_speed: 1 | |
min_speed: 0.1 | |
pid_Kp: 2.0 ;40 | |
pid_Ki: 5.0 ;0.2 | |
pid_Kd: 0.5 ;0.1 | |
#max_power: 1.0 | |
#shutdown_speed: | |
#cycle_time: | |
#hardware_pwm: | |
#kick_start_time: | |
#off_below: | |
#tachometer_pin: | |
#tachometer_ppr: | |
#tachometer_poll_interval: | |
#enable_pin: | |
# See the "fan" section for a description of the above parameters. | |
#fan_speed: 1.0 | |
# The fan speed (expressed as a value from 0.0 to 1.0) that the fan | |
# will be set to when a heater or stepper driver is active. | |
# The default is 1.0 | |
#idle_timeout: | |
# The amount of time (in seconds) after a stepper driver or heater | |
# was active and the fan should be kept running. The default | |
# is 30 seconds. | |
#idle_speed: | |
# The fan speed (expressed as a value from 0.0 to 1.0) that the fan | |
# will be set to when a heater or stepper driver was active and | |
# before the idle_timeout is reached. The default is fan_speed. | |
#heater: | |
# Name of the config section defining the heater/stepper that this fan | |
# is associated with. If a comma separated list of heater/stepper names | |
# is provided here, then the fan will be enabled when any of the given | |
# heaters/steppers are enabled. The default heater is "extruder", the | |
# default stepper is all of them. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment