Compare commits
2 Commits
80ec5a75b6
...
8ad9fb0e46
Author | SHA1 | Date | |
---|---|---|---|
8ad9fb0e46 | |||
46da506ac7 |
214
club_configs/taz.cfg
Normal file
214
club_configs/taz.cfg
Normal file
@ -0,0 +1,214 @@
|
|||||||
|
# This file contains common pin mappings for the BIGTREETECH SKR mini
|
||||||
|
# E3 v3.0. To use this config, the firmware should be compiled for the
|
||||||
|
# STM32G0B1 with a "8KiB bootloader" and USB communication.
|
||||||
|
|
||||||
|
# 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.
|
||||||
|
[gcode_macro CALIBRATE_NOZZLE_OFFSET]
|
||||||
|
description: Move to center of bed and calibrate nozzle offset
|
||||||
|
gcode:
|
||||||
|
G90
|
||||||
|
G0 X100 Y155 F1500
|
||||||
|
PROBE_CALIBRATE
|
||||||
|
|
||||||
|
[gcode_macro LEVEL_BED]
|
||||||
|
description: "Level the bed manually."
|
||||||
|
gcode:
|
||||||
|
BED_SCREWS_ADJUST
|
||||||
|
|
||||||
|
[gcode_macro CHECK_DEVIATION]
|
||||||
|
description: "Check the deviation of the bed from the last loaded mesh."
|
||||||
|
gcode:
|
||||||
|
SCREWS_TILT_CALCULATE MAX_DEVIATION=0.05
|
||||||
|
|
||||||
|
[gcode_macro LIZ_IS_A_BAKA]
|
||||||
|
description: "Liz is a baka, so here's her start G-Code >.<"
|
||||||
|
gcode:
|
||||||
|
BED_MESH_CALIBRATE
|
||||||
|
BED_MESH_PROFILE SAVE=default
|
||||||
|
|
||||||
|
[gcode_macro _START_GCODE]
|
||||||
|
description: "The gcode that should be called from your slicer at the beginning of a print."
|
||||||
|
gcode:
|
||||||
|
# Ender 3 Custom Start G-code
|
||||||
|
G90
|
||||||
|
G1 X2 Y30 Z30 F1500
|
||||||
|
G1 Z0.28 F240
|
||||||
|
G92 E0
|
||||||
|
G1 Y220 E10 F1500 ; prime the nozzle
|
||||||
|
G1 X2.3 F5000
|
||||||
|
G92 E0
|
||||||
|
G1 Y30 E10 F1200 ; prime the nozzle
|
||||||
|
G92 E0
|
||||||
|
G1 Z5 F1500 ; don't scratch the build plate
|
||||||
|
|
||||||
|
[gcode_macro _END_GCODE]
|
||||||
|
description: "The gcode that should be called from your slicer at the end of a print."
|
||||||
|
gcode:
|
||||||
|
G91 # Relative positioning
|
||||||
|
G1 E-2 F2700 # Retract a bit
|
||||||
|
G1 E-2 Z0.2 F2400 # Retract and raise Z
|
||||||
|
G1 X5 Y5 F3000 # Wipe out
|
||||||
|
G1 Z10 # Raise Z more
|
||||||
|
G90 # Absolute positioning
|
||||||
|
|
||||||
|
G1 X0 Y220 # Present print
|
||||||
|
M106 S0 # Turn-off fan
|
||||||
|
M104 S0 # Turn-off hotend
|
||||||
|
M140 S0 # Turn-off bed
|
||||||
|
|
||||||
|
M84 X Y E # Disable all steppers but Z
|
||||||
|
|
||||||
|
|
||||||
|
[stepper_x]
|
||||||
|
step_pin: PB13
|
||||||
|
dir_pin: !PB12
|
||||||
|
enable_pin: !PB14
|
||||||
|
microsteps: 16
|
||||||
|
rotation_distance: 40
|
||||||
|
endstop_pin: ^PC0
|
||||||
|
position_endstop: 0
|
||||||
|
position_max: 235
|
||||||
|
homing_speed: 50
|
||||||
|
|
||||||
|
[tmc2209 stepper_x]
|
||||||
|
uart_pin: PC11
|
||||||
|
tx_pin: PC10
|
||||||
|
uart_address: 0
|
||||||
|
run_current: 0.580
|
||||||
|
stealthchop_threshold: 999999
|
||||||
|
|
||||||
|
[stepper_y]
|
||||||
|
step_pin: PB10
|
||||||
|
dir_pin: !PB2
|
||||||
|
enable_pin: !PB11
|
||||||
|
microsteps: 16
|
||||||
|
rotation_distance: 40
|
||||||
|
endstop_pin: ^PC1
|
||||||
|
position_endstop: 0
|
||||||
|
position_max: 235
|
||||||
|
homing_speed: 50
|
||||||
|
|
||||||
|
[tmc2209 stepper_y]
|
||||||
|
uart_pin: PC11
|
||||||
|
tx_pin: PC10
|
||||||
|
uart_address: 2
|
||||||
|
run_current: 0.580
|
||||||
|
stealthchop_threshold: 999999
|
||||||
|
|
||||||
|
[stepper_z]
|
||||||
|
step_pin: PB0
|
||||||
|
dir_pin: PC5
|
||||||
|
enable_pin: !PB1
|
||||||
|
microsteps: 16
|
||||||
|
rotation_distance: 8
|
||||||
|
endstop_pin: ^PC2
|
||||||
|
position_endstop: 0.0
|
||||||
|
position_max: 250
|
||||||
|
|
||||||
|
[tmc2209 stepper_z]
|
||||||
|
uart_pin: PC11
|
||||||
|
tx_pin: PC10
|
||||||
|
uart_address: 1
|
||||||
|
run_current: 0.580
|
||||||
|
stealthchop_threshold: 999999
|
||||||
|
|
||||||
|
[bltouch]
|
||||||
|
sensor_pin: PC14
|
||||||
|
control_pin: PA1
|
||||||
|
x_offset: -44
|
||||||
|
y_offset: 8
|
||||||
|
probe_with_touch_mode: True
|
||||||
|
# pin_up_touch_mode_reports_triggered = False
|
||||||
|
# z_offset: 3.0
|
||||||
|
|
||||||
|
[bed_mesh]
|
||||||
|
speed: 120
|
||||||
|
horizontal_move_z: 7
|
||||||
|
mesh_min: 30, 40
|
||||||
|
mesh_max: 250, 230
|
||||||
|
probe_count: 5
|
||||||
|
mesh_pps: 3
|
||||||
|
algorithm: bicubic
|
||||||
|
|
||||||
|
[safe_z_home]
|
||||||
|
home_xy_position: 140, 140
|
||||||
|
speed: 50
|
||||||
|
z_hop: 10
|
||||||
|
z_hop_speed: 5
|
||||||
|
|
||||||
|
[extruder]
|
||||||
|
step_pin: PB3
|
||||||
|
dir_pin: !PB4
|
||||||
|
enable_pin: !PD1
|
||||||
|
microsteps: 16
|
||||||
|
rotation_distance: 7.9797
|
||||||
|
nozzle_diameter: 0.400
|
||||||
|
filament_diameter: 1.750
|
||||||
|
heater_pin: PC8
|
||||||
|
# sensor_type: EPCOS 100K B57560G104F # Stock board config
|
||||||
|
sensor_type: NTC 100K MGB18-104F39050L32
|
||||||
|
sensor_pin: PA0
|
||||||
|
control: pid
|
||||||
|
pid_Kp: 21.527
|
||||||
|
pid_Ki: 1.063
|
||||||
|
pid_Kd: 108.982
|
||||||
|
min_temp: 0
|
||||||
|
max_temp: 300
|
||||||
|
|
||||||
|
[tmc2209 extruder]
|
||||||
|
uart_pin: PC11
|
||||||
|
tx_pin: PC10
|
||||||
|
uart_address: 3
|
||||||
|
run_current: 0.650
|
||||||
|
stealthchop_threshold: 999999
|
||||||
|
|
||||||
|
[heater_bed]
|
||||||
|
heater_pin: PC9
|
||||||
|
# sensor_type: ATC Semitec 104GT-2 # Stock board config
|
||||||
|
sensor_type: EPCOS 100K B57560G104F
|
||||||
|
sensor_pin: PC4
|
||||||
|
control: pid
|
||||||
|
pid_Kp: 54.027
|
||||||
|
pid_Ki: 0.770
|
||||||
|
pid_Kd: 948.182
|
||||||
|
min_temp: 0
|
||||||
|
max_temp: 130
|
||||||
|
|
||||||
|
[heater_fan heatbreak_cooling_fan]
|
||||||
|
pin: PC6
|
||||||
|
fan_speed: 1.0
|
||||||
|
heater: extruder
|
||||||
|
heater_temp: 50.0
|
||||||
|
|
||||||
|
[fan cooling]
|
||||||
|
pin: PC7 # Part cooling
|
||||||
|
|
||||||
|
# [heater_fan controller_fan]
|
||||||
|
# pin: PB15
|
||||||
|
|
||||||
|
# [fan]
|
||||||
|
# pin: PC6
|
||||||
|
|
||||||
|
[mcu]
|
||||||
|
serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
|
||||||
|
|
||||||
|
[printer]
|
||||||
|
kinematics: cartesian
|
||||||
|
max_velocity: 300
|
||||||
|
max_accel: 3000
|
||||||
|
max_z_velocity: 5
|
||||||
|
max_z_accel: 100
|
||||||
|
|
||||||
|
[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=PD6, EXP1_10=<5V>
|
||||||
|
|
||||||
|
# See the sample-lcd.cfg file for definitions of common LCD displays.
|
||||||
|
[include mainsail.cfg]
|
35
setup.sh
35
setup.sh
@ -11,6 +11,7 @@ ARG_SKIP_APT=0
|
|||||||
ARG_NAME=0
|
ARG_NAME=0
|
||||||
ARG_CONFIG=0
|
ARG_CONFIG=0
|
||||||
ARG_PORT=0
|
ARG_PORT=0
|
||||||
|
ARG_FIRM=0
|
||||||
while [[ "$#" -gt 0 ]]; do
|
while [[ "$#" -gt 0 ]]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
-h|--help) ARG_HELP=1 ;;
|
-h|--help) ARG_HELP=1 ;;
|
||||||
@ -18,6 +19,7 @@ while [[ "$#" -gt 0 ]]; do
|
|||||||
-n|--name) ARG_NAME="$2" ; shift ;;
|
-n|--name) ARG_NAME="$2" ; shift ;;
|
||||||
-c|--config) ARG_CONFIG="$2" ; shift ;;
|
-c|--config) ARG_CONFIG="$2" ; shift ;;
|
||||||
-p|--port) ARG_PORT="$2" ; shift ;;
|
-p|--port) ARG_PORT="$2" ; shift ;;
|
||||||
|
-f|--skip-firmware) ARG_FIRM=1 ;;
|
||||||
*) echo "Unknown Parameter"; exit 3 ;;
|
*) echo "Unknown Parameter"; exit 3 ;;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
@ -41,12 +43,13 @@ cd $ROOT_DIR
|
|||||||
source ./ColorEchoForShell/dist/ColorEcho.bash
|
source ./ColorEchoForShell/dist/ColorEcho.bash
|
||||||
|
|
||||||
if [[ "$ARG_HELP" == 1 ]]; then
|
if [[ "$ARG_HELP" == 1 ]]; then
|
||||||
echo.Cyan "HacDC Printewr Setup Script Usage"
|
echo.Cyan "HacDC Printer Setup Script Usage"
|
||||||
echo.Yellow "./setup.sh [options]"
|
echo.Yellow "./setup.sh [options]"
|
||||||
echo ""
|
echo ""
|
||||||
echo.BoldPurple "Option Description"
|
echo.BoldPurple "Option Description"
|
||||||
echo.Rainbow "-h/--help Display this help msg"
|
echo.Rainbow "-h/--help Display this help msg"
|
||||||
echo.Rainbow "-a/--skip-apt Skip installing apt packages"
|
echo.Rainbow "-a/--skip-apt Skip installing apt packages"
|
||||||
|
echo.Rainbow "-f/--skip-firmware Skip firmware build/install"
|
||||||
echo.Rainbow "-n/--name Specify printer name (skips popup)"
|
echo.Rainbow "-n/--name Specify printer name (skips popup)"
|
||||||
echo.Rainbow "-c/--config Specify printer config (skips popup)"
|
echo.Rainbow "-c/--config Specify printer config (skips popup)"
|
||||||
echo.Rainbow "-p/--port Specify printer port (skips popup)"
|
echo.Rainbow "-p/--port Specify printer port (skips popup)"
|
||||||
@ -102,7 +105,10 @@ cp -r $ROOT_DIR/dirs $ROOT_DIR/$PRINTER_NAME
|
|||||||
|
|
||||||
# Select Klipper Config
|
# Select Klipper Config
|
||||||
cd $ROOT_DIR/$PRINTER_NAME/klipper
|
cd $ROOT_DIR/$PRINTER_NAME/klipper
|
||||||
make menuconfig
|
if [[ "$ARG_FIRM" == 0]]; then
|
||||||
|
make menuconfig
|
||||||
|
fi
|
||||||
|
|
||||||
CONFIG_FILE=""
|
CONFIG_FILE=""
|
||||||
if [[ "$ARG_CONFIG" == 0 ]]; then
|
if [[ "$ARG_CONFIG" == 0 ]]; then
|
||||||
CONFIG_FILES=(`ls config`)
|
CONFIG_FILES=(`ls config`)
|
||||||
@ -159,17 +165,20 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Build Klipper
|
# Build Klipper
|
||||||
echo.Cyan "Compile Klipper Firmware"
|
if [[ "$ARG_FIRM" == 0 ]]; then
|
||||||
cp $CONFIG_FILE $ROOT_DIR/$PRINTER_NAME/klipper/printer.cfg
|
echo.Cyan "Compile Klipper Firmware"
|
||||||
sed -i -e "s/^serial: .\+$/LINEHERE/g" "$ROOT_DIR/$PRINTER_NAME/klipper/printer.cfg"
|
cp $CONFIG_FILE $ROOT_DIR/$PRINTER_NAME/klipper/printer.cfg
|
||||||
cat $ROOT_DIR/$PRINTER_NAME/klipper/printer.cfg | replace "LINEHERE" "serial: $DEVICE" > $ROOT_DIR/$PRINTER_NAME/klipper/tmp.cfg
|
sed -i -e "s/^serial: .\+$/LINEHERE/g" "$ROOT_DIR/$PRINTER_NAME/klipper/printer.cfg"
|
||||||
rm $ROOT_DIR/$PRINTER_NAME/klipper/printer.cfg
|
cat $ROOT_DIR/$PRINTER_NAME/klipper/printer.cfg | replace "LINEHERE" "serial: $DEVICE" > $ROOT_DIR/$PRINTER_NAME/klipper/tmp.cfg
|
||||||
mv $ROOT_DIR/$PRINTER_NAME/klipper/tmp.cfg $ROOT_DIR/$PRINTER_NAME/klipper/printer.cfg
|
rm $ROOT_DIR/$PRINTER_NAME/klipper/printer.cfg
|
||||||
make -j$(nproc)
|
mv $ROOT_DIR/$PRINTER_NAME/klipper/tmp.cfg $ROOT_DIR/$PRINTER_NAME/klipper/printer.cfg
|
||||||
|
make -j$(nproc)
|
||||||
# Flash Firmware
|
# Flash Firmware
|
||||||
echo.Cyan "Flash Device"
|
echo.Cyan "Flash Device"
|
||||||
make flash FLASH_DEVICE=$DEVICE
|
make flash FLASH_DEVICE=$DEVICE
|
||||||
|
else
|
||||||
|
echo.ICyan "Skipping firmware build"
|
||||||
|
fi
|
||||||
|
|
||||||
# Copy over printer config file
|
# Copy over printer config file
|
||||||
echo.Cyan "Setup printer.cfg"
|
echo.Cyan "Setup printer.cfg"
|
||||||
|
Loading…
Reference in New Issue
Block a user