Skip to content

Commit

Permalink
New backup from 11/27/2024 - 02:56:36 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
mks committed Nov 27, 2024
0 parents commit f0b10a8
Show file tree
Hide file tree
Showing 59 changed files with 3,358 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.env
secrets.conf
*.swp
*.tmp
printer-[0-9]*_[0-9]*.cfg
*.bak
*.bkp
*.csv
*.zip
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Klipper-Backup 💾
Klipper backup script for manual or automated GitHub backups

This backup is provided by [Klipper-Backup](https://github.com/Staubgeborener/klipper-backup).
121 changes: 121 additions & 0 deletions printer_data/config/AFC/AFC.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
[AFC]
VarFile: /home/mks/printer_data/config/AFC/AFC.var # Path to the variables file for AFC configuration.

#--=================================================================================-
#------- Speed ----------------------------------------------------------------------
#--=================================================================================-
long_moves_speed: 150 # mm/s. Default value is 150mm/s.
long_moves_accel: 250 # mm/s². Default value is 250mm/s².
short_moves_speed: 50 # mm/s. Default value is 50mm/s.
short_moves_accel: 300 # mm/s². Default value is 300mm/s².
short_move_dis: 10 # Move distance for failsafe moves. Default is 10mm.

#--=================================================================================-
#------- Pause/Resume ---------------------------------------------------------------
#--=================================================================================-
z_hop: 0 # Height to move up before and after a tool change completes
resume_speed: 350 # Speed mm/s of resume move. Set to 0 to use gcode speed
resume_z_speed: 100 # Speed mm/s of resume move in Z. Set to 0 to use gcode speed


#--=================================================================================-
#------- Spoolman -------------------------------------------------------------------
#--=================================================================================-
# spoolman_ip: http://spoolman.local # Spoolman IP address.
# spoolman_port: 7912 # Spoolman port.


#--=================================================================================-
#------- LED Settings ---------------------------------------------------------------
#--=================================================================================-
led_name: AFC_Indicator # LED name from the [AFC_led] section in AFC_Hardware.cfg.
led_fault: 1,0,0,0 # Fault color (R,G,B,W) 0 = off, 1 = full brightness.
led_ready: 0,0.8,0,0 # Ready color (R,G,B,W) 0 = off, 1 = full brightness.
led_not_ready: 1,0,0,0 # Not ready color (R,G,B,W) 0 = off, 1 = full brightness.
led_loading: 1,1,1,0 # Loading color (R,G,B,W) 0 = off, 1 = full brightness.
led_tool_loaded: 0,0,1,0 # Loaded color (R,G,B,W) 0 = off, 1 = full brightness.
led_buffer_advancing: 0,0,1,0 # Buffer advancing color (R,G,B,W) 0 = off, 1 = full brightness.
led_buffer_trailing: 0,1,0,0 # Buffer trailing color (R,G,B,W) 0 = off, 1 = full brightness.
led_buffer_disable: 0,0,0,0.25 # Buffer disable color (R,G,B,W) 0 = off, 1 = full brightness.

#--=================================================================================-
#------- Macro Config ---------------------------------------------------------------
#--=================================================================================-
# Macro order of operation
# - Load | - Unload
# - Load Filament | - Cut
# - Poop | - Park
# - Wipe | or
# - Kick | - Park
# - Wipe | - Tip Form
# - Print |

# TOOL Cutting Settings
tool_cut: False # Enable Cut macro.
tool_cut_cmd: AFC_CUT # Cut macro name.

# Park Settings
park: False # Enable Park.
park_cmd: AFC_PARK # Park macro name.

# Poop Settings
poop: False # Enable Poop.
poop_cmd: AFC_POOP # Poop macro name.

# Kick Settings
kick: False # Enable Kick.
kick_cmd: AFC_KICK # Kick macro name.

# Wipe Settings
wipe: False # Enable Wipe.
wipe_cmd: AFC_BRUSH # Wipe macro name.

# Form Tip Settings
form_tip: True # Enable Tip Form.
form_tip_cmd: AFC # AFC is default routine. Name to custom macro if you prefer


#--=================================================================================-
#------- Start-up -------------------------------------------------------------------
#--=================================================================================-
[AFC_prep]
enable: True # Enable the AFC Prep routine.

[delayed_gcode welcome]
initial_duration: 0.5
gcode:
PREP


[AFC_form_tip]
#--=================================================================================-
#------- Tip Forming ---------------------------------------------------------------
#--=================================================================================-
# This is the initial press of the filament into the tip before any cooling moves.
ramming_volume: 2 # Volume of filament to press into the nozzle during tip formation in mm³.

# Set this if you would like a temperature reduction during the tip formation.
# If using skinny_dip, this change will happen before.
toolchange_temp: 0

# This step is split into two different movements. First, a fast move to separate the filament
# from the hot zone. Next, a slower movement over the remaining distance of the cooling tube.
unloading_speed_start: 40 # Speed in mm/s (fast pull).
unloading_speed: 20 # Speed in mm/s (cooling tube move).

# This stage moves the filament back and forth in the cooling tube section of the hotend.
# It helps keep the tip shape uniform with the filament path to prevent clogs.
cooling_tube_position: 38 # Start of the cooling tube in mm.
cooling_tube_length: 10 # Length of the move in mm.
initial_cooling_speed: 10 # Initial movement speed to start solidifying the tip in mm/s.
final_cooling_speed: 50 # Fast movement speed in mm/s.
cooling_moves: 4 # Number of back and forth moves in the cooling tube.

# This is a final move to burn off any hairs possibly on the end of stringy materials like PLA.
# If you use this, it should be the last thing you tune after achieving a solid tip shape.
use_skinnydip: False # Enable skinny dip moves (for burning off filament hairs).
skinnydip_distance: 30 # Distance to reinsert the filament, starting at the end of the cooling tube in mm.
dip_insertion_speed: 30 # Insertion speed for burning off filament hairs in mm/s.
dip_extraction_speed: 70 # Extraction speed (set to around 2x the insertion speed) in mm/s.
melt_zone_pause: 0 # Pause time in the melt zone in seconds.
cooling_zone_pause: 0 # Pause time in the cooling zone after the dip in seconds.
5 changes: 5 additions & 0 deletions printer_data/config/AFC/AFC.var.tool
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extruder": {
"lane_loaded": ""
}
}
44 changes: 44 additions & 0 deletions printer_data/config/AFC/AFC.var.unit
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"Turtle_1": {
"leg1": {
"spool_id": "",
"material": "",
"color": "#000000",
"weight": 0,
"command": null,
"index": 1,
"tool_loaded": false,
"hub_loaded": false
},
"leg2": {
"spool_id": "",
"material": "",
"color": "#000000",
"weight": 0,
"command": null,
"index": 2,
"tool_loaded": false,
"hub_loaded": true
},
"leg3": {
"spool_id": "",
"material": "",
"color": "#000000",
"weight": 0,
"command": null,
"index": 3,
"tool_loaded": false,
"hub_loaded": false
},
"leg4": {
"spool_id": "",
"material": "",
"color": "#000000",
"weight": 0,
"command": null,
"index": 4,
"tool_loaded": false,
"hub_loaded": false
}
}
}
185 changes: 185 additions & 0 deletions printer_data/config/AFC/AFC_Hardware.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
[mcu AFC]
#canbus_uuid: change_me_to_canbus_id
serial: /dev/serial/by-id/usb-Klipper_stm32h723xx_3D002E001151333038363231-if00

[include mcu/AFC_Lite.cfg]

[force_move]
enable_force_move: True

[temperature_sensor AFC]
sensor_type: temperature_mcu
sensor_mcu: AFC

[AFC_stepper leg1]
unit: Turtle_1:1
extruder: extruder
step_pin: AFC:M1_STEP
dir_pin: !AFC:M1_DIR
enable_pin: !AFC:M1_EN
microsteps: 16
rotation_distance: 4.65
dist_hub: 140
park_dist: 10
led_index: AFC_Indicator:1
afc_motor_rwd: AFC:MOT1_RWD
afc_motor_fwd: AFC:MOT1_FWD
afc_motor_enb: AFC:MOT1_EN
afc_motor_fwd_pulse: 64
afc_motor_fwd_gear_ratio: 2:1
afc_motor_fwd_drive_diam: 48
rwd_speed_multiplier: 0.5
fwd_speed_multiplier: 0.5
pwm: True
prep: ^!AFC:TRG1
load: ^AFC:EXT1

[tmc2209 AFC_stepper leg1]
uart_pin: AFC:M1_UART
uart_address: 0
run_current: 0.8
sense_resistor: 0.110

[AFC_stepper leg2]
unit: Turtle_1:2
extruder: extruder
step_pin: AFC:M2_STEP
dir_pin: !AFC:M2_DIR
enable_pin: !AFC:M2_EN
microsteps: 16
rotation_distance: 4.65
dist_hub: 80
park_dist: 10
led_index: AFC_Indicator:2
afc_motor_rwd: AFC:MOT2_RWD
afc_motor_fwd: AFC:MOT2_FWD
afc_motor_enb: AFC:MOT2_EN
afc_motor_fwd_pulse: 64
afc_motor_fwd_gear_ratio: 2:1
afc_motor_fwd_drive_diam: 48
rwd_speed_multiplier: 0.5
fwd_speed_multiplier: 0.5
pwm: True
prep: ^!AFC:TRG2
load: ^AFC:EXT2

[tmc2209 AFC_stepper leg2]
uart_pin: AFC:M2_UART
uart_address: 0
run_current: 0.8
sense_resistor: 0.110

[AFC_stepper leg3]
unit: Turtle_1:3
extruder: extruder
step_pin: AFC:M3_STEP
dir_pin: !AFC:M3_DIR
enable_pin: !AFC:M3_EN
microsteps: 16
rotation_distance: 4.65
dist_hub: 80
park_dist: 10
led_index: AFC_Indicator:3
afc_motor_rwd: AFC:MOT3_RWD
afc_motor_fwd: AFC:MOT3_FWD
afc_motor_enb: AFC:MOT3_EN
afc_motor_fwd_pulse: 64
afc_motor_fwd_gear_ratio: 2:1
afc_motor_fwd_drive_diam: 48
rwd_speed_multiplier: 0.5
fwd_speed_multiplier: 0.5
pwm: True
prep: ^!AFC:TRG3
load: ^AFC:EXT3

[tmc2209 AFC_stepper leg3]
uart_pin: AFC:M3_UART
uart_address: 0
run_current: 0.8
sense_resistor: 0.110

[AFC_stepper leg4]
unit: Turtle_1:4
extruder: extruder
step_pin: AFC:M4_STEP
dir_pin: !AFC:M4_DIR
enable_pin: !AFC:M4_EN
microsteps: 16
rotation_distance: 4.65
dist_hub: 140
park_dist: 10
led_index: AFC_Indicator:4
afc_motor_rwd: AFC:MOT4_RWD
afc_motor_fwd: AFC:MOT4_FWD
afc_motor_enb: AFC:MOT4_EN
afc_motor_fwd_pulse: 64
afc_motor_fwd_gear_ratio: 2:1
afc_motor_fwd_drive_diam: 48
rwd_speed_multiplier: 0.5
fwd_speed_multiplier: 0.5
pwm: True
prep: ^!AFC:TRG4
load: ^AFC:EXT4

[tmc2209 AFC_stepper leg4]
uart_pin: AFC:M4_UART
uart_address: 0
run_current: 0.8
sense_resistor: 0.110

[AFC_extruder extruder]
pin_tool_start:th:gpio28
#pin_tool_end:
tool_stn: 80 # Distance from the toolhead sensor to the tip of the nozzle in mm.
tool_stn_unload: 90 # Unload distance for the toolhead in mm.
tool_sensor_after_extruder: 0 # Distance in mm.
tool_unload_speed: 25 # Unload speed in mm/s. Default is 25mm/s.
tool_load_speed: 25 # Load speed in mm/s. Default is 25mm/s.
buffer: TN

[AFC_hub Turtle_1]
Type: Box_Turtle
afc_bowden_length: 1300 # Length of the Bowden tube from the hub to the toolhead sensor in mm.
move_dis: 50 # Distance to move the filament within the hub in mm.
cut: False # Hub has Cutter
#--=================================================================================--
#------- Hub Cut ---------------------------------------------------------------------
#--=================================================================================--
cut_cmd: AFC # CMD to use
cut_dist: 200 # How much filament to cut off (in mm).
cut_clear: 120 # How far the filament should retract back from the hub (in mm).
cut_servo_name: cut # Servos name in configuration to use
cut_min_length: 300.0
cut_servo_pass_angle: 10 # Servo angle to align the Bowden tube with the hole for loading the toolhead.
cut_servo_clip_angle: 180 # Servo angle for cutting the filament.
cut_servo_prep_angle: 80 # Servo angle to prepare the filament for cutting (aligning the exit hole).
switch_pin: ^AFC:HUB

[AFC_led AFC_Indicator]
pin: AFC:RGB1
chain_count: 4
color_order: GRBW
initial_RED: 0.0
initial_GREEN: 0.0
initial_BLUE: 0.0
initial_WHITE: 0.0

#[neopixel Corners]
#pin: AFC:RGB2
#chain_count: 6

#[neopixel Extra1]
#pin: AFC:RGB3
#chain_count: 4
#color_order: RGBW

#[neopixel Extra2]
#pin: AFC:RGB4
#chain_count: 4

[AFC_buffer TN]
advance_pin:^AFC:PE13 # set advance pin
trailing_pin:^AFC:PE12 # set trailing pin
multiplier_high: 1.05 # default 1.05, factor to feed more filament
multiplier_low: 0.95 # default 0.95, factor to feed less filament
velocity: 100
Loading

0 comments on commit f0b10a8

Please sign in to comment.