Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This file contains pin mappings for the stock 2020 Creality Ender 3
- # V2. To use this config, during "make menuconfig" select the
- # STM32F103 with a "28KiB bootloader" and serial (on USART1 PA10/PA9)
- # communication.
- # If you prefer a direct serial connection, in "make menuconfig"
- # select "Enable extra low-level configuration options" and select
- # serial (on USART3 PB11/PB10), which is broken out 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 firmware
- # filename must end in ".bin" and must not match the last filename
- # that was flashed.
- # See docs/Config_Reference.md for a description of parameters.
- [include mainsail.cfg]
- [stepper_x]
- step_pin: PC2
- dir_pin: PB9
- enable_pin: !PC3
- microsteps: 16
- rotation_distance: 40
- endstop_pin: ^PA5
- position_endstop: 0
- position_max: 248
- homing_speed: 50
- [stepper_y]
- step_pin: PB8
- dir_pin: PB7
- enable_pin: !PC3
- microsteps: 16
- rotation_distance: 40
- endstop_pin: ^PA6
- position_endstop: 0
- position_max: 235
- 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_endstop: 0.0
- position_max: 250
- position_min: -6.0
- [extruder]
- max_extrude_only_distance: 100.0
- step_pin: PB4
- dir_pin: PB3
- enable_pin: !PC3
- microsteps: 16
- rotation_distance: 34.406
- nozzle_diameter: 0.400
- filament_diameter: 1.750
- heater_pin: PA1
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PC5
- control: pid
- # tuned for stock hardware with 200 degree Celsius target
- pid_Kp: 21.527
- pid_Ki: 1.063
- pid_Kd: 108.982
- min_temp: 0
- max_temp: 250
- [heater_bed]
- heater_pin: PA2
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PC4
- control: pid
- # tuned for stock hardware with 50 degree Celsius target
- pid_Kp: 54.027
- pid_Ki: 0.770
- pid_Kd: 948.182
- min_temp: 0
- max_temp: 130
- [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: 3000
- max_z_velocity: 5
- max_z_accel: 100
- ######################################################################
- # 128x64 Full Graphic Creality CR10 / ENDER 3 stockdisplay
- ######################################################################
- # This section is used for a Creality "12864" display with a single
- # ribbon cable between the display's EXP3 plug and the
- # micro-controller board's EXP1 connector.
- [display]
- lcd_type: st7920
- cs_pin: EXP1_7
- sclk_pin: EXP1_6
- sid_pin: EXP1_8
- encoder_pins: ^EXP1_5, ^EXP1_3
- click_pin: ^!EXP1_2
- [output_pin beeper]
- pin: EXP1_1
- [board_pins]
- aliases:
- EXP1_1=PC6,EXP1_3=PB10,EXP1_5=PB14,EXP1_7=PB12,EXP1_9=<GND>,
- EXP1_2=PB2,EXP1_4=PB11,EXP1_6=PB13,EXP1_8=PB15,EXP1_10=<5V>,
- PROBE_IN=PB0,PROBE_OUT=PB1,FIL_RUNOUT=PC6
- [display_status]
- [BLtouch]
- sensor_pin: ^PB1
- control_pin: PB0
- x_offset: -51
- y_offset: -14
- samples: 2
- speed: 2
- #z_offset: 0.0
- [bed_mesh]
- speed: 80
- horizontal_move_z: 5
- mesh_min: 10, 10
- mesh_max: 100, 100
- probe_count: 5,5
- mesh_pps: 2,2
- fade_start: 1
- fade_end: 10
- fade_target: 0
- [safe_z_home]
- home_xy_position:110,110
- speed: 75
- z_hop: 10
- z_hop_speed:5
- # Ender 3 Custom Start G-code
- [gcode_macro START_PRINT]
- gcode:
- #{% set BED_TEMP = params.BED_TEMP|default(60)|float %}
- #{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(205)|float %}
- # Start bed heating
- #M140 S{BED_TEMP}
- #M109 S{EXTRUDER_TEMP}
- G92 E0 # Reset Extruder
- G28 # Home all axes
- BED_MESH_PROFILE LOAD=default
- G1 Z2.0 F3000 # Move Z Axis up little to prevent scratching of Heat Bed
- G1 X0.1 Y20 Z0.3 F5000.0 # Move to start position
- G1 X0.1 Y200.0 Z0.3 F1500.0 E15 # Draw the first line
- G1 X0.4 Y200.0 Z0.3 F5000.0 # Move to side a little
- G1 X0.4 Y20 Z0.3 F1500.0 E30 # Draw the second line
- G92 E0 # Reset Extruder
- G1 Z2.0 F3000 # Move Z Axis up little to prevent scratching of Heat Bed
- G1 X5 Y20 Z0.3 F5000.0 # Move over to prevent blob squish
- [gcode_macro END_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 Y230 ;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
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [bltouch]
- #*# z_offset = -0.400
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement