Klipper MakerGear M2 (Rev H) Klipper

Article Placeholder

Code:
[mcu]
serial: /dev/ttyACM0
restart_method: arduino

#Settings matched closest to original firmware. Increase as desired.
[printer]
kinematics: cartesian
max_velocity: 200
max_accel: 1000
max_z_velocity: 30
max_z_accel: 25

[stepper_x]
step_pin: PC0
dir_pin: PL1
enable_pin: !PA7
microsteps: 16
rotation_distance: 40
endstop_pin: ^PB6
position_min: -4
position_endstop: -4
position_max: 220
homing_speed: 50

[stepper_y]
step_pin: PC1
dir_pin: !PL0
enable_pin: !PA6
microsteps: 16
rotation_distance: 40
endstop_pin: ^PB5
position_min: -2.5
position_endstop: -2.5
position_max: 255
homing_speed: 50

[stepper_z]
step_pin: PC2
dir_pin: !PL2
enable_pin: !PA5
microsteps: 16
rotation_distance: 3.175 #1.8" Leadscrew Revisions
endstop_pin: ^PC7
position_min: -2
#position_endstop: 210
position_max: 212 #Z Max Homing Revisions, Max must exceed endstop to tune z offset without probe.
homing_speed: 15
homing_retract_dist: 5.0

[extruder]
step_pin: PC3
dir_pin: PL6
enable_pin: !PA4
microsteps: 16
gear_ratio: 57:11 #5.18 which matches original spec. Current parts list 5.16:1?
rotation_distance: 35.53836 #Tuned based on 5.18:1 gear ratio setting on Rev H, recheck.
nozzle_diameter: 0.350
filament_diameter: 1.750
heater_pin: PH6
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PF0
control: pid
pid_kp: 23.573
pid_ki: 1.191
pid_kd: 116.688
min_temp: 0
max_temp: 300 # V4 Hotend 290 Max + Overshoot Room
max_extrude_only_distance: 150.0
min_extrude_temp: 170

[heater_bed]
heater_pin: PE5
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PF2
control: pid
min_temp: 0
max_temp: 120
pid_kp: 56.050
pid_ki: 0.430
pid_kd: 1826.532

#4 Point Beds, set to match my Marlin example. Tweak as desired.
[bed_screws]
screw1: 30, 30
screw2: 170, 30
screw3: 170, 220
screw4: 30, 220

[fan]
pin: PH5

[heater_fan extruder]
pin: PH3

[ad5206 stepper_digipot]
enable_pin: PD7
# Scale the config so that the channel value can be specified in amps.
scale: 2.08  #Rambo 1.3
# Channel 1 is E0, 2 is E1, 3 is unused, 4 is Z, 5 is X, 6 is Y
channel_1: 0.5
channel_2: 0.75
channel_4: 0.75
channel_5: 0.75
channel_6: 0.75

# Enable 16 micro-steps on steppers X, Y, Z, E0, E1
[static_digital_output stepper_config]
pins:
    PG1, PG0,
    PK7, PG2,
    PK6, PK5,
    PK3, PK4,
    PK1, PK2

[static_digital_output yellow_led]
pins: !PB7

# Common EXP1 / EXP2 (display) pins
[board_pins]
aliases:
    # Common EXP1/EXP2 headers found on RAMBo v1.4
    EXP1_1=PE6, EXP1_3=PG3, EXP1_5=PJ2, EXP1_7=PJ7, EXP1_9=<GND>,
    EXP1_2=PE2, EXP1_4=PG4, EXP1_6=PJ3, EXP1_8=PJ4, EXP1_10=<5V>,
    # EXP2 header
    EXP2_1=PB3, EXP2_3=PJ5, EXP2_5=PJ6, EXP2_7=PD4, EXP2_9=<GND>,
    EXP2_2=PB1, EXP2_4=PB0, EXP2_6=PB2, EXP2_8=PE7, EXP2_10=PH2
    # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "spi"

[display]
lcd_type: st7920
cs_pin: PG4
sclk_pin: PJ2
sid_pin: PG3
encoder_pins: ^PJ5, ^PJ6
click_pin: ^!PE2
#kill_pin: ^!PE7

[output_pin beeper]
pin: PE6

[include mainsail.cfg]

#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [stepper_z]
#*# position_endstop = 211.250
 
Last edited: