# This file contains common pin mappings for the Two Trees Sapphire # Plus printer from 2021 (revision 3 with dual Z axis & Single endstop). # To use this config, the firmware should be compiled for the STM32F103. # When running "make menuconfig" you have to: # - enable "extra low-level configuration setup", # - select the 28KiB bootloader, # - disable "USB for communication" # - select USART3 for the "Serial Port" # - set "GPIO pins to set at micro-controller startup" to "!PC6,!PD13" # Note that the "make flash" command does not work with the Sapphire # Pro. After running "make", run the following command: # ./scripts/update_mks_robin.py out/klipper.bin out/Robin_nano35.bin # Copy the file out/Robin_nano35.bin to an SD card and then restart the # printer with that SD card. # See docs/Config_Reference.md for a description of parameters. [stepper_x] step_pin: PE3 dir_pin: !PE2 enable_pin: !PE4 microsteps: 32 rotation_distance: 40 endstop_pin: !PA15 position_endstop: 0 position_max: 305 homing_speed: 50 [stepper_y] step_pin: PE0 dir_pin: !PB9 enable_pin: !PE1 microsteps: 32 rotation_distance: 40 endstop_pin: !PA12 position_endstop: 300 position_max: 305 homing_speed: 50 [stepper_z] step_pin: PB5 dir_pin: !PB4 enable_pin: !PB8 microsteps: 32 rotation_distance: 8 endstop_pin: !PA11 position_endstop: 0 position_max: 345 [stepper_z1] step_pin: PA6 dir_pin: !PA1 enable_pin: !PA3 microsteps: 32 rotation_distance: 8 #endstop_pin: !PA11 [extruder] step_pin: PD6 dir_pin: !PD3 enable_pin: !PB3 microsteps: 32 rotation_distance: 23.55 gear_ratio: 50:17 nozzle_diameter: 0.400 filament_diameter: 1.750 heater_pin: PC3 sensor_type: EPCOS 100K B57560G104F # Stock sensor_pin: PC1 min_temp: 0 max_temp: 250 control: pid pid_Kp: 17.48 pid_Ki: 1.32 pid_Kd: 57.81 max_extrude_cross_section: 50.0 [heater_bed] heater_pin: PA0 sensor_type: EPCOS 100K B57560G104F # Stock sensor_pin: PC0 min_temp: 0 max_temp: 130 control: pid pid_Kp: 325.10 pid_Ki: 63.35 pid_Kd: 417.10 [fan] pin: PB1 [mcu] serial: /dev/ttyUSB0 restart_method: command [printer] kinematics: corexy max_velocity: 250 max_accel: 4500 max_z_velocity: 25 max_z_accel: 100 [display_status] [static_digital_output reset_display] pins: !PC6, !PD13 [virtual_sdcard] path: ~/gcode_files [pause_resume] [gcode_macro PAUSE] rename_existing: BASE_PAUSE default_parameter_X: 0 #edit to your park position default_parameter_Y: 0 #edit to your park position default_parameter_Z: 10 #edit to your park position default_parameter_E: 3 #edit to your retract length gcode: SAVE_GCODE_STATE NAME=PAUSE_state BASE_PAUSE G91 G1 E-{E} F2100 G1 Z{Z} G90 G1 X{X} Y{Y} F6000 [gcode_macro RESUME] rename_existing: BASE_RESUME default_parameter_E: 3 #edit to your retract length gcode: G91 G1 E{E} F2100 G90 RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1 BASE_RESUME [gcode_macro CANCEL_PRINT] rename_existing: BASE_CANCEL_PRINT gcode: TURN_OFF_HEATERS CLEAR_PAUSE SDCARD_RESET_FILE BASE_CANCEL_PRINT