Ramps 1.4 Klipper Setup
Das Ramps 1.4 Mainboard wird in Verbindung mit einem Arduino Mega verwendet und war das erste richtig gute Mainboard für den 3D Druck. Es wurde fast jeder 3D Drucker damals mit dem Board ausgestattet und bis heute ist es noch ein gutes Tool um zu sehen wie genau die Elektronik von einem 3D Drucker aufgebaut ist.
Pin Name Aliases
Da Arduino nicht die richtigen Pin namen nutzt, ist es ohne einem Alias Table schwer herauszufinden, welcher Pin nun wirklich welcher ist. Dank des unten angeführten Liste ist es nun möglich ganz einfach alle Pins zu evaluieren und denn entsprechend in Klipper einzufügen.
# Arduino aliases for atmega2560/1280 (Arduino mega) boards
[board_pins arduino-mega]
aliases:
ar0=PE0, ar1=PE1, ar2=PE4, ar3=PE5, ar4=PG5,
ar5=PE3, ar6=PH3, ar7=PH4, ar8=PH5, ar9=PH6,
ar10=PB4, ar11=PB5, ar12=PB6, ar13=PB7, ar14=PJ1,
ar15=PJ0, ar16=PH1, ar17=PH0, ar18=PD3, ar19=PD2,
ar20=PD1, ar21=PD0, ar22=PA0, ar23=PA1, ar24=PA2,
ar25=PA3, ar26=PA4, ar27=PA5, ar28=PA6, ar29=PA7,
ar30=PC7, ar31=PC6, ar32=PC5, ar33=PC4, ar34=PC3,
ar35=PC2, ar36=PC1, ar37=PC0, ar38=PD7, ar39=PG2,
ar40=PG1, ar41=PG0, ar42=PL7, ar43=PL6, ar44=PL5,
ar45=PL4, ar46=PL3, ar47=PL2, ar48=PL1, ar49=PL0,
ar50=PB3, ar51=PB2, ar52=PB1, ar53=PB0, ar54=PF0,
ar55=PF1, ar56=PF2, ar57=PF3, ar58=PF4, ar59=PF5,
ar60=PF6, ar61=PF7, ar62=PK0, ar63=PK1, ar64=PK2,
ar65=PK3, ar66=PK4, ar67=PK5, ar68=PK6, ar69=PK7,
analog0=PF0, analog1=PF1, analog2=PF2, analog3=PF3, analog4=PF4,
analog5=PF5, analog6=PF6, analog7=PF7, analog8=PK0, analog9=PK1,
analog10=PK2, analog11=PK3, analog12=PK4, analog13=PK5, analog14=PK6,
analog15=PK7,
# Marlin adds these additional aliases
ml70=PG4, ml71=PG3, ml72=PJ2, ml73=PJ3, ml74=PJ7,
ml75=PJ4, ml76=PJ5, ml77=PJ6, ml78=PE2, ml79=PE6,
ml80=PE7, ml81=PD4, ml82=PD5, ml83=PD6, ml84=PH2,
ml85=PH7
yxcxyc
[include mainsail.cfg]
[include Macros/*.cfg] #includes all .cfg Files in Folder Macros
#[include macro_commands.cfg]
[include KAMP_Settings.cfg][temperature_sensor raspberry_pi]
sensor_type: temperature_host
max_temp: 100
#[bed_screws]
#screw1: 200, 160
#screw2: 25, 5
#screw3: 25, 220[screws_tilt_adjust]
#[bed_screws]#back-left, back-right, back-middle, front-left, front-right, front-middle, left-middle, right-middle
screw1: 49, 37
# The (X, Y) coordinate of the first bed leveling screw. This is a
# position to command the nozzle to so that the probe is directly
# above the bed screw (or as close as possible while still being
# above the bed). This is the base screw used in calculations. This
# parameter must be provided.
screw1_name: front-left
# An arbitrary name for the given screw. This name is displayed when
# the helper script runs. The default is to use a name based upon
# the screw XY location.
screw2:49, 230
screw2_name: back-left
screw3:226, 122
screw3_name: right-middle
#...
# Additional bed leveling screws. At least two screws must be
# defined.
#speed: 50
# The speed (in mm/s) of non-probing moves during the calibration.
# The default is 50.
#horizontal_move_z: 5
# The height (in mm) that the head should be commanded to move to
# just prior to starting a probe operation. The default is 5.
#screw_thread: CW-M3
# The type of screw used for bed leveling, M3, M4, or M5, and the
# rotation direction of the knob that is used to level the bed.
# Accepted values: CW-M3, CCW-M3, CW-M4, CCW-M4, CW-M5, CCW-M5.
# Default value is CW-M3 which most printers use. A clockwise
# rotation of the knob decreases the gap between the nozzle and the
# bed. Conversely, a counter-clockwise rotation increases the gap.#[servo bltouch]
#pin: ar11
#maximum_servo_angle: 180
#minimum_pulse_width: 0.0006
#maximum_pulse_width: 0.0024# Define a probe using the BLTouch
[bltouch]
sensor_pin: ^PD3
control_pin: PB5
pin_move_time: 1.0
pin_up_touch_mode_reports_triggered: False
stow_on_each_sample: False
probe_with_touch_mode: True
#z_offset: 2.727
x_offset: -32.3
y_offset: -21.8
samples: 2
sample_retract_dist: 5.0
samples_tolerance: 0.15
samples_tolerance_retries: 4
speed: 2.0
lift_speed: 5.0#activate_gcode:
# SET_SERVO SERVO=bltouch ANGLE=10
# G4 P200
#deactivate_gcode:
# SET_SERVO SERVO=bltouch ANGLE=90
# G4 P100
[bed_mesh]
speed: 120
horizontal_move_z: 10
mesh_min: 20, 20
mesh_max: 205, 200
probe_count:10 #Count of contactpoints
adaptive_margin: 5
algorithm: bicubic
fade_start: 1
fade_end: 10
fade_target: 0[homing_override]
axes: z
gcode:
G1 Z10 ; Move up 10mm
G28 X Y
G1 X60 Y50 F6000 ; Change the X and Y coordinates to the center of your print bed
G28 Z
set_position_z: 0.0#set_position_z: 5
#gcode:
# G90
# G1 Z10 F1000
# G28 X0 Y0
# G1 X50 Y50 F1000
# SET_SERVO SERVO=bltouch ANGLE=10
# G28 Z0
# SET_SERVO SERVO=bltouch ANGLE=160
# G1 Z20
# G1 X0 Y0 F1000
[bed_mesh default]
#version = 1
#points =
# 0.052500, -0.120176, -0.309668
# 0.081211, 0.043477, -0.083262
# -0.056191, -0.127148, -0.196055
#x_count = 3
#y_count = 3
#mesh_x_pps = 2
#mesh_y_pps = 2
#algo = bicubic
#tension = 0.2
#min_x = 20.0
#max_x = 205.0
#min_y = 19.99
#max_y = 200.0[stepper_x]
step_pin: PF0
dir_pin: !PF1
enable_pin: !PD7
microsteps: 256
#rotation_distance: 633 # 20 Teeth
rotation_distance: 506.4 #16 Teeth
endstop_pin: ^PE5
#endstop_pin: ^PE4
position_endstop: 0
position_max: 242
#position_max: 237
homing_speed: 90[stepper_y]
step_pin: PF6
dir_pin: !PF7
enable_pin: !PF2
microsteps: 256
#rotation_distance: 633 # 20 Teeth
rotation_distance: 506.4 #16 Teeth
endstop_pin: ^PJ1
#endstop_pin: ^PJ0
position_endstop: 0
position_max: 238
homing_speed: 90[stepper_z]
step_pin: PL3
dir_pin: !PL1
enable_pin: !PK0
microsteps: 128
rotation_distance: 31.5
endstop_pin: probe:z_virtual_endstop
#endstop_pin: ^PD3 last
#endstop_pin: ^PD2
#position_endstop = 0.385
position_max: 200
position_min: -10[extruder] #high flow
step_pin: PA4
dir_pin: PA6
enable_pin: !PA2
microsteps: 128
rotation_distance: 28 #200 * 932steps / 128
nozzle_diameter: 0.800
filament_diameter: 1.750
heater_pin: PB4
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PK5
#control: watermark
#control : pid
#pid_kp : 32.055
#pid_ki : 1.827
#pid_kd : 140.642min_temp: 0
max_temp: 300
min_extrude_temp: 170
pressure_advance : 0.15max_extrude_cross_section: 5
[filament_switch_sensor switch_sensor]
switch_pin: ^PD2
pause_on_runout: True
runout_gcode:
PAUSE # [pause_resume] is required in printer.cfg
M117 Filament switch runout
insert_gcode:
M117 Filament switch inserted[filament_motion_sensor encoder_sensor]
switch_pin: ^PJ0
detection_length: 7.5 #2.88
extruder: extruder
pause_on_runout: True
runout_gcode:
PAUSE # [pause_resume] is required in printer.cfg
M117 Filament encoder runout
insert_gcode:
M117 Filament encoder inserted#[extruder1] #direct drive
#step_pin: PA4
#dir_pin: PA6
#enable_pin: !PA2
#microsteps: 128
#rotation_distance: 28 #200 * 932steps / 128#nozzle_diameter: 0.600
#filament_diameter: 1.750
#heater_pin: PB4
#sensor_type: EPCOS 100K B57560G104F
#sensor_pin: PK5
#control: pid
#pid_kp = 17.390
#pid_ki = 0.634
#pid_kd = 119.337
#max_delta: 2.0
#min_temp: 0
#max_temp: 290
#min_extrude_temp: 190
#pressure_advance = 0.2#[extruder2] #bowden Bondtech
#step_pin: PA4
#dir_pin: !PA6
#enable_pin: !PA2
#microsteps: 128
#rotation_distance: 33.500
#rotation_distance: 50 #original
#rotation_distance: 60#nozzle_diameter: 0.400
#filament_diameter: 1.750
#heater_pin: PB4
#sensor_type: EPCOS 100K B57560G104F
#sensor_pin: PK5
#control: pid
#pid_Kp: 22.2
#pid_Ki: 1.08
#pid_Kd: 114
#min_temp: 0
#max_temp: 280
#pressure_advance = 1
#[extruder1]
#step_pin: PC1
#dir_pin: PC3
#enable_pin: !PC7
#heater_pin: PH6
#sensor_pin: PK7
#...#[heater_bed]
#heater_pin: PH5
#sensor_type: EPCOS 100K B57560G104F
#sensor_pin: PK6
#min_temp: 0
#max_temp: 135
#control : pid
#pid_kp : 71.189
#pid_ki : 1.443
#pid_kd : 878.300
#control: watermark[heater_bed]
heater_pin: PH5
min_temp: 0
max_temp: 135sensor_type:MAX31865
# One of "MAX6675", "MAX31855", "MAX31856", or "MAX31865".
sensor_pin:PL0
# The chip select line for the sensor chip. This parameter must be
# provided.
#spi_speed: 4000000
# The SPI speed (in hz) to use when communicating with the chip.
# The default is 4000000.
#spi_bus:
#spi_software_sclk_pin:
#spi_software_mosi_pin:
#spi_software_miso_pin:
# See the "common SPI settings" section for a description of the
# above parameters.
#tc_type: K
#tc_use_50Hz_filter: False
#tc_averaging_count: 1
# The above parameters control the sensor parameters of MAX31856
# chips. The defaults for each parameter are next to the parameter
# name in the above list.
rtd_nominal_r: 100
rtd_reference_r: 430
rtd_num_of_wires: 2
#rtd_use_50Hz_filter: False
# The above parameters control the sensor parameters of MAX31865
# chips. The defaults for each parameter are next to the parameter
# name in the above list.#heater_fan nozzle_cooling_fan
[fan]
pin: PH6[heater_fan hotend_fan]
pin: PG1
heater: extruder
max_power: 1.0
hardware_pwm: false
heater_temp: 80.0
fan_speed: 0.18
#heater_temp: 230.0
#fan_speed: 0.8[mcu]
#serial: /dev/ttyACM0
serial: /dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_75834353930351B0E052-if00[mcu rpi]
serial: /tmp/klipper_host_mcu[adxl345]
cs_pin: rpi:None[resonance_tester]
accel_chip: adxl345
probe_points:
120, 120, 20 # an example[input_shaper]
#shaper_freq_x: 57.8
#shaper_type_x: mzv
#shaper_freq_y: 37.8
#shaper_type_y: mzv[printer]
kinematics: cartesian
max_velocity: 600
square_corner_velocity: 25.0
max_accel: 5000 #3900
max_z_velocity: 25
max_z_accel: 150#[homing_override]
#gcode: G28
#axes: xzy#[endstop_phase stepper_y]
#endstop_accuracy:0.8
#trigger_phase: 20/256
[neopixel led_1]
pin: PH3 #Arduino Pin D6
chain_count: 8
color_order: GRB
initial_RED: 0.01
initial_GREEN: 0.01
initial_BLUE: 0.01[temperature_sensor bme]
sensor_type: BME280
i2c_address:118
# Default is 118 (0x76). The BMP180 and some BME280 sensors have an address of 119
# (0x77).
i2c_mcu: rpi
#i2c_bus:
i2c_software_scl_pin:gpio3
i2c_software_sda_pin:gpio2
#i2c_speed:
# See the "common I2C settings" section for a description of the
# above parameters.#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 18.032
#*# pid_ki = 0.853
#*# pid_kd = 95.345
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 73.337
#*# pid_ki = 1.831
#*# pid_kd = 734.289
#*#
#*# [input_shaper]
#*# shaper_type_x = ei
#*# shaper_freq_x = 55.6
#*# shaper_type_y = mzv
#*# shaper_freq_y = 40.8
#*#
#*# [bltouch]
#*# z_offset = 1.915
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.499570, 0.518027, 0.521719, 0.492803, 0.450967, 0.436816, 0.356221, 0.343916, 0.328535, 0.161807
#*# 0.594316, 0.594316, 0.568477, 0.573398, 0.523564, 0.513721, 0.507568, 0.478037, 0.395596, 0.284238
#*# 0.625078, 0.671221, 0.636152, 0.651533, 0.607852, 0.583857, 0.531563, 0.519873, 0.454043, 0.366680
#*# 0.655840, 0.674912, 0.682295, 0.641074, 0.615850, 0.593701, 0.555557, 0.542021, 0.488496, 0.446045
#*# 0.646611, 0.690293, 0.689678, 0.660762, 0.657070, 0.614004, 0.596777, 0.571553, 0.522334, 0.457734
#*# 0.615234, 0.640459, 0.647227, 0.641074, 0.599238, 0.591855, 0.591240, 0.534023, 0.484805, 0.458350
#*# 0.621387, 0.641074, 0.657686, 0.614619, 0.797344, 0.596777, 0.575859, 0.532793, 0.492187, 0.418359
#*# 0.577705, 0.614619, 0.604775, 0.581396, 0.755508, 0.637998, 0.535254, 0.489111, 0.436201, 0.407285
#*# 0.524795, 0.574014, 0.567246, 0.540791, 0.534023, 0.495264, 0.460811, 0.444814, 0.399287, 0.334072
#*# 0.479268, 0.506953, 0.500801, 0.489727, 0.465117, 0.411592, 0.380215, 0.374062, 0.316846, 0.260244
#*# tension = 0.2
#*# min_x = 20.0
#*# algo = bicubic
#*# y_count = 10
#*# mesh_y_pps = 2
#*# min_y = 20.0
#*# x_count = 10
#*# max_y = 200.0
#*# mesh_x_pps = 2
#*# max_x = 204.95