Skip to content

SHT36 T1 Configuration Example

This is an example tool configuration file for T1 (Tool 1) using an SHT36 toolhead board, compatible with klipper-toolchanger-easy.

Example Only

This is an example only. Copy the configuration below to stealthchanger/tools/T1.cfg and customize with your values. DO NOT use this file directly.

Pin names may vary between SHT36 board revisions. Verify pin assignments against your board's documentation or schematic.

T1+ use numbered extruders (extruder1, extruder2, etc.). Only T0 uses extruder without a number.

# Example tool configuration file for T1 (Tool 1) - SHT36 Board
# This example is compatible with klipper-toolchanger-easy
# Copy this to stealthchanger/tools/T1.cfg and customize with your values
# DO NOT use this file directly - it's an example only
#
# NOTE: T1+ use numbered extruders (extruder1, extruder2, etc.)
#       Only T0 uses "extruder" without a number

# MCU Configuration (CAN bus example - adjust for your setup)
[mcu SHT36T1]
canbus_uuid: xxxxxxxxxxx  # Replace with your CAN bus UUID

# Extruder Configuration
# NOTE: T1 uses "extruder1" (with number), T2 uses "extruder2", etc.
[extruder1]
step_pin: SHT36T1:PB12
dir_pin: !SHT36T1:PB13
enable_pin: !SHT36T1:PB14
microsteps: 16
full_steps_per_rotation: 200
rotation_distance: 22.67895  # Calibrate this value for your extruder
gear_ratio: 50:10  # Adjust for your extruder (BMG is 50:17, Galileo is 7.5:1)
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: SHT36T1:PA8
sensor_type: MAX31865  # Adjust for your thermistor type
spi_bus: spi1
rtd_nominal_r: 100
rtd_reference_r: 430
rtd_num_of_wires: 2
sensor_pin: SHT36T1:PA0
max_power: 1.0
min_temp: -235
max_temp: 500
min_extrude_temp: 150
pressure_advance: 0.04  # Calibrate this value
pressure_advance_smooth_time: 0.040
control: pid
pid_kp: 26.213  # Run PID_CALIBRATE to get correct values
pid_ki: 1.304
pid_kd: 131.721
max_extrude_only_distance: 1400.0
max_extrude_only_velocity: 75.0
max_extrude_only_accel: 1500

# TMC Driver Configuration
[tmc2209 extruder1]
uart_pin: SHT36T1:PA9
interpolate: False
run_current: 0.6
sense_resistor: 0.110
stealthchop_threshold: 0

# Part Cooling Fan
# NOTE: klipper-toolchanger-easy uses fan_generic, not multi_fan
[fan_generic T1_partfan]
pin: SHT36T1:PA1
max_power: 1.0
kick_start_time: 0.5
off_below: 0.0

# Hotend Fan
[heater_fan T1_hotend_fan]
pin: SHT36T1:PA2
heater: extruder1  # T1 uses extruder1
heater_temp: 50.0
kick_start_time: 0.5

# Tool Selection Macro (optional - klipper-toolchanger-easy handles this)
[gcode_macro T1]
variable_color: ""
gcode:
    SELECT_TOOL T=1

# Tool Configuration
[tool T1]
tool_number: 1
extruder: extruder1  # T1+ use numbered extruders
fan: T1_partfan  # klipper-toolchanger-easy format (not multi_fan)
gcode_x_offset: 0  # Calibrate these offsets to match T0 position
gcode_y_offset: 0
gcode_z_offset: 0
t_command_restore_axis: z  # Restore Z axis after tool change

# Docking path - klipper-toolchanger-easy uses separate dropoff/pickup paths
params_dropoff_path: [
    {'y':9.5, 'z':4}, 
    {'y':9.5, 'z':2}, 
    {'y':5.5, 'z':0}, 
    {'z':0, 'y':0, 'f':0.5}, 
    {'z':-10, 'y':0}, 
    {'z':-10, 'y':16}
]

params_pickup_path: [
    {'z':-10, 'y':16}, 
    {'z':-10, 'y':0}, 
    {'z':0, 'y':0, 'f':0.5, 'verify':1}, 
    {'y':5.5, 'z':0}, 
    {'y':9.5, 'z':2}, 
    {'y':9.5, 'z':4}
]

# Dock park positions (calibrate these for your specific dock)
params_park_x: 28.0
params_park_y: -71.0
params_park_z: 381.0

# Input Shaper (calibrate per tool)
params_input_shaper_type_x: 'mzv'
params_input_shaper_freq_x: 60.1
params_input_shaper_damping_ratio_x: 0.01
params_input_shaper_type_y: 'mzv'
params_input_shaper_freq_y: 72.3
params_input_shaper_damping_ratio_y: 0.01

# Tool Probe (OctoTap) Configuration
[tool_probe T1]
pin: ^SHT36T1:PB0  # OctoTap sensor pin
tool: 1
x_offset: 0  # Nozzle is the probe, so X/Y offsets are 0
y_offset: 0
z_offset: 0  # Calibrate this value (will be negative)
speed: 5.0
samples: 3
samples_result: median
sample_retract_dist: 2.0
samples_tolerance: 0.02
samples_tolerance_retries: 3
activate_gcode:
    _TAP_PROBE_ACTIVATE HEATER=extruder1

# ADXL345 Accelerometer (optional, for input shaper)
[adxl345 T1]
cs_pin: SHT36T1:PB1
spi_software_sclk_pin: SHT36T1:PB10
spi_software_mosi_pin: SHT36T1:PB11
spi_software_miso_pin: SHT36T1:PB2
axes_map: x,z,y