Skip to content

Instantly share code, notes, and snippets.

@t-nissie
Last active June 22, 2024 04:30
Show Gist options
  • Save t-nissie/e6a189e9b8cb748558cb03ef114d8dab to your computer and use it in GitHub Desktop.
Save t-nissie/e6a189e9b8cb748558cb03ef114d8dab to your computer and use it in GitHub Desktop.
printer.cfg for ET4000 V2
# printer.cfg for ET-4000 V2
##
[include mainsail.cfg]
[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
restart_method: command
[printer]
kinematics: corexy
max_velocity: 80
max_accel: 2000
max_z_velocity: 15
max_z_accel: 100
[virtual_sdcard]
path: /home/pi/printer_data/gcodes
[stepper_x]
step_pin: PD7
dir_pin: !PC5
enable_pin: !PD6
microsteps: 16
rotation_distance: 40.0
endstop_pin: ^!PC2
position_min: 0
position_endstop: 0
position_max: 157
homing_speed: 30
[stepper_y]
step_pin: PC6
dir_pin: !PC7
enable_pin: !PD6
microsteps: 16
rotation_distance: 40.0
endstop_pin: ^!PC3
position_min: -16
position_endstop: -16
position_max: 167
homing_speed: 30
[safe_z_home]
home_xy_position: 78.0,96.0
speed: 10
z_hop: 15
z_hop_speed: 5
[stepper_z]
step_pin: PB3
dir_pin: !PB2
enable_pin: !PA5
microsteps: 16
rotation_distance: 8.0
endstop_pin: probe:z_virtual_endstop
position_min: -1 # The Z carriage may need to travel below the Z=0
# homing point if the bed has a significant tilt.
position_max: 170
homing_speed: 5
[probe]
pin: ^!PC4
[bed_mesh]
speed: 120
horizontal_move_z: 5
mesh_min: 0, 0
mesh_max: 157, 167
probe_count: 5, 5
[extruder]
step_pin: PB1
dir_pin: !PB0
enable_pin: !PD6
microsteps: 16
gear_ratio: 240:100
rotation_distance: 23.132
full_steps_per_rotation: 2048
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PD5
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA7
control: pid
pid_Kp: 20.375
pid_Ki: 0.844
pid_Kd: 123.016
min_temp: 0
max_temp: 250
[heater_bed]
heater_pin: PD4
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA6
control: pid
pid_Kp: 70.721
pid_Ki: 1.981
pid_Kd: 631.118
min_temp: 0
max_temp: 130
[fan]
pin: PB4
[pause_resume]
[gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL_PRINT
gcode:
TURN_OFF_HEATERS
CLEAR_PAUSE
SDCARD_RESET_FILE
BASE_CANCEL_PRINT
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [probe]
#*# z_offset = 0.675
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# -0.257500, -0.212500, -0.232500, -0.230000, -0.155000
#*# -0.315000, -0.285000, -0.245000, -0.240000, -0.172500
#*# -0.325000, -0.320000, -0.282500, -0.307500, -0.237500
#*# -0.310000, -0.325000, -0.300000, -0.307500, -0.267500
#*# -0.285000, -0.320000, -0.307500, -0.350000, -0.287500
#*# x_count = 5
#*# y_count = 5
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = lagrange
#*# tension = 0.2
#*# min_x = 0.0
#*# max_x = 157.0
#*# min_y = 0.0
#*# max_y = 167.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment