Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This file contains pin mappings for the stock 2021 Creality Ender 3
- # S1 & S1 Pro. To use this config, check the STM32 Chip on the
- # Mainboard, during "make menuconfig" select accordingly either the
- # STM32F103 with "28KiB bootloader" or the STM32F401 with
- # "64KiB bootloader" and serial (on USART1 PA10/PA9) for both.
- # For a direct serial connection, in "make menuconfig" select
- # "Enable extra low-level configuration options" and Serial
- # (on USART2 PA3/PA2), which is on the 10 pin IDC cable used
- # for the LCD module as follows: 3: Tx, 4: Rx, 9: GND, 10: VCC
- # Flash this firmware by copying "out/klipper.bin" to a SD card and
- # turning on the printer with the card inserted. The filename
- # must be changed to "firmware.bin"
- # With STM32F401, you might need to put "firmware.bin" in a
- # folder on the SD card called "STM32F4_UPDATE" in order to flash.
- # See docs/Config_Reference.md for a description of parameters.
- [stepper_x]
- step_pin: PC2
- dir_pin: PB9
- enable_pin: !PC3
- microsteps: 16
- rotation_distance: 40
- endstop_pin: !PA5
- position_endstop: -10
- position_max: 235
- position_min: -10
- homing_speed: 50
- [stepper_y]
- step_pin: PB8
- dir_pin: PB7
- enable_pin: !PC3
- microsteps: 16
- rotation_distance: 40
- endstop_pin: !PA6
- position_endstop: -8
- position_max: 225
- position_min: -13
- homing_speed: 50
- [stepper_z]
- step_pin: PB6
- dir_pin: !PB5
- enable_pin: !PC3
- microsteps: 16
- rotation_distance: 8
- endstop_pin: probe:z_virtual_endstop
- position_max: 270
- position_min: -4
- [extruder]
- step_pin: PB4
- dir_pin: PB3
- enable_pin: !PC3
- microsteps: 16
- gear_ratio: 42:12
- rotation_distance: 26.4908
- nozzle_diameter: 0.400
- filament_diameter: 1.750
- heater_pin: PA1
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PC5
- #control: pid
- #pid_Kp: 23.561
- #pid_Ki: 1.208
- #pid_Kd: 114.859
- min_temp: 0
- max_temp: 260 # Set to 300 for S1 Pro
- max_extrude_only_distance: 101
- max_extrude_cross_section: 5
- [heater_bed]
- heater_pin: PA7
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PC4
- control: pid
- pid_Kp: 71.867
- pid_Ki: 1.536
- pid_Kd: 840.843
- min_temp: 0
- max_temp: 100 # Set to 110 for S1 Pro
- [heater_fan hotend_fan]
- pin: PC0
- [fan]
- pin: PA0
- [mcu]
- serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
- restart_method: command
- [printer]
- kinematics: cartesian
- max_velocity: 300
- max_accel: 2000
- max_z_velocity: 5
- max_z_accel: 100
- [bltouch]
- sensor_pin: ^PC14
- control_pin: PC13
- x_offset: -31.8
- y_offset: -40.5
- #z_offset: 0
- probe_with_touch_mode: true
- stow_on_each_sample: false
- [bed_mesh]
- speed: 120
- mesh_min: 10, 10
- mesh_max: 200, 170
- probe_count: 8,8
- algorithm: bicubic
- [safe_z_home]
- home_xy_position: 147, 154
- speed: 75
- z_hop: 10
- z_hop_speed: 5
- [filament_switch_sensor e0_sensor]
- switch_pin: !PC15
- pause_on_runout: true
- runout_gcode: PAUSE
- [pause_resume]
- recover_velocity: 25
- [bed_screws]
- screw1: 20, 29
- screw2: 195, 29
- screw3: 195, 198
- screw4: 20, 198
- [exclude_object]
- [gcode_macro M486]
- gcode:
- # Parameters known to M486 are as follows:
- # [C<flag>] Cancel the current object
- # [P<index>] Cancel the object with the given index
- # [S<index>] Set the index of the current object.
- # If the object with the given index has been canceled, this will cause
- # the firmware to skip to the next object. The value -1 is used to
- # indicate something that isn’t an object and shouldn’t be skipped.
- # [T<count>] Reset the state and set the number of objects
- # [U<index>] Un-cancel the object with the given index. This command will be
- # ignored if the object has already been skipped
- {% if 'exclude_object' not in printer %}
- {action_raise_error("[exclude_object] is not enabled")}
- {% endif %}
- {% if 'T' in params %}
- EXCLUDE_OBJECT RESET=1
- {% for i in range(params.T | int) %}
- EXCLUDE_OBJECT_DEFINE NAME={i}
- {% endfor %}
- {% endif %}
- {% if 'C' in params %}
- EXCLUDE_OBJECT CURRENT=1
- {% endif %}
- {% if 'P' in params %}
- EXCLUDE_OBJECT NAME={params.P}
- {% endif %}
- {% if 'S' in params %}
- {% if params.S == '-1' %}
- {% if printer.exclude_object.current_object %}
- EXCLUDE_OBJECT_END NAME={printer.exclude_object.current_object}
- {% endif %}
- {% else %}
- EXCLUDE_OBJECT_START NAME={params.S}
- {% endif %}
- {% endif %}
- {% if 'U' in params %}
- EXCLUDE_OBJECT RESET=1 NAME={params.U}
- {% endif %}
- [gcode_macro M600]
- gcode:
- {% set X = params.X|default(50)|float %}
- {% set Y = params.Y|default(0)|float %}
- {% set Z = params.Z|default(25)|float %}
- SAVE_GCODE_STATE NAME=M600_state
- PAUSE
- G91
- G1 E-.8 F2700
- G1 Z{Z}
- G90
- G1 X{X} Y{Y} F3000
- G91
- G1 E-50 F1000
- RESTORE_GCODE_STATE NAME=M600_state
- [skew_correction]
- [include mainsail.cfg]
- [include moonraker_obico_macros.cfg]
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [bed_mesh default]
- #*# version = 1
- #*# points =
- #*# -0.055000, -0.047500, -0.017500, -0.005000, -0.005000, 0.055000, 0.035000, 0.017500
- #*# -0.097500, -0.090000, -0.070000, -0.055000, -0.055000, -0.012500, -0.062500, -0.067500
- #*# -0.055000, -0.047500, -0.020000, -0.005000, -0.015000, 0.040000, -0.017500, -0.035000
- #*# -0.087500, -0.075000, -0.042500, -0.045000, -0.055000, 0.005000, -0.010000, -0.050000
- #*# -0.072500, -0.065000, -0.030000, -0.035000, -0.045000, 0.027500, -0.007500, -0.027500
- #*# -0.090000, -0.085000, -0.060000, -0.075000, -0.075000, -0.015000, -0.032500, -0.045000
- #*# -0.085000, -0.072500, -0.065000, -0.082500, -0.105000, -0.025000, -0.060000, -0.065000
- #*# -0.065000, -0.080000, -0.060000, -0.062500, -0.070000, -0.022500, -0.062500, -0.055000
- #*# x_count = 8
- #*# y_count = 8
- #*# mesh_x_pps = 2
- #*# mesh_y_pps = 2
- #*# algo = bicubic
- #*# tension = 0.2
- #*# min_x = 9.999999999999996
- #*# max_x = 199.97
- #*# min_y = 10.0
- #*# max_y = 169.95
- #*#
- #*# [bltouch]
- #*# z_offset = 3.400
- #*#
- #*# [extruder]
- #*# control = pid
- #*# pid_kp = 21.600
- #*# pid_ki = 0.923
- #*# pid_kd = 126.361
- #*#
- #*# [skew_correction CaliFlower]
- #*# xy_skew = -0.0019008621144161368
- #*# xz_skew = 0.0
- #*# yz_skew = 0.0
Advertisement
Add Comment
Please, Sign In to add comment