Skip to content

Instantly share code, notes, and snippets.

@daprice
Last active December 2, 2019 07:09
Show Gist options
  • Save daprice/9d79ac900030492e3fd85c905ea728bf to your computer and use it in GitHub Desktop.
Save daprice/9d79ac900030492e3fd85c905ea728bf to your computer and use it in GitHub Desktop.
RostockMax v2 Klipper configuration
# This file constains the pin mappings for the SeeMeCNC Rostock Max
# (version 2) delta printer from 2015. To use this config, the
# firmware should be compiled for the AVR atmega2560.
# See the example.cfg file for a description of available parameters.
[stepper_a]
step_pin: PC0
dir_pin: !PL1
enable_pin: !PA7
step_distance: .0125
endstop_pin: ^PA2
homing_speed: 120
# This delta stuff and delta_radius is from https://github.com/seemecnc/Firmware/blob/master/Repetier%20Firmware/Repetier/Configuration.h
#position_endstop: 350
#arm_length: 291.06
[stepper_b]
step_pin: PC1
dir_pin: PL0
enable_pin: !PA6
step_distance: .0125
endstop_pin: ^PA1
[stepper_c]
step_pin: PC2
dir_pin: !PL2
enable_pin: !PA5
step_distance: .0125
endstop_pin: ^PC7
[extruder]
step_pin: PC3
dir_pin: !PL6
enable_pin: !PA4
step_distance: .010823
nozzle_diameter: 0.6
filament_diameter: 1.750
heater_pin: PH6
sensor_type: ATC Semitec 104GT-2
sensor_pin: PF0
#control: pid
#pid_Kp: 31.36
#pid_Ki: 2.18
#pid_Kd: 112.90
min_temp: 5
max_temp: 300
pressure_advance: 0.60
# The amount of raw filament to push into the extruder during
# extruder acceleration. An equal amount of filament is retracted
# during deceleration. It is measured in millimeters per
# millimeter/second. The default is 0, which disables pressure
# advance.
pressure_advance_lookahead_time: 0.010
# A time (in seconds) to "look ahead" at future extrusion moves when
# calculating pressure advance. This is used to reduce the
# application of pressure advance during cornering moves that would
# otherwise cause retraction followed immediately by pressure
# buildup. This setting only applies if pressure_advance is
# non-zero. The default is 0.010 (10 milliseconds).
[verify_heater extruder]
hysteresis: 20
[heater_bed]
heater_pin: PE5
sensor_type: ATC Semitec 104GT-2
sensor_pin: PF2
#control: pid
#pid_Kp: 87.86
#pid_Ki: 3.01
#pid_Kd: 641.82
min_temp: 10
max_temp: 120
[fan]
pin: PH5
max_power: 0.8
[heater_fan nozzle_cooling_fan]
pin: PH4
heater: extruder
heater_temp: 35
[mcu]
serial: /dev/ttyACM0
[printer]
kinematics: delta
max_velocity: 500
max_accel: 6000
max_z_velocity: 150
#delta_radius: 145.0
# allow moving past normal stop for delta calibration
#minimum_z_position=-5
[ad5206 stepper_digipot]
enable_pin: PD7
scale: 2.08
channel_1: 1.06
channel_2: 1.0
channel_4: 1.1
channel_5: 1.1
channel_6: 1.1
[static_digital_output stepper_config]
pins:
PG1, PG0,
PK7, PG2,
PK6, PK5,
PK3, PK4,
PK1, PK2
[static_digital_output yellow_led]
pins: !PB7
[delta_calibrate]
radius: 80
# "RepRapDiscount 2004 Smart Controller" type displays
[display]
lcd_type: hd44780
rs_pin: PG4
e_pin: PG3
d4_pin: PJ2
d5_pin: PJ3
d6_pin: PJ7
d7_pin: PJ4
menu_timeout: 60
encoder_pins: ^!PJ6, ^!PJ5
click_pin: ^!PE2
kill_pin: ^!PE7
# M300 : Play tone, Beeper support, as commonly found on usual LCD displays
# i.e. RepRapDiscount 2004 Smart Controller, RepRapDiscount 12864 Full Graphic
# This defines a custom I/O pin and a custom GCODE macro
# Usage: M300 [P<ms>] [S<Hz>] P is the tone duration, S the tone frequency.
# as it is based on a PWM duty cycle, the frequency won't be pitch perfect.
#
[output_pin BEEPER_pin]
pin: PE6
# Beeper pin. This parameter must be provided.
# ar37 is the default RAMPS/MKS pin.
pwm: True
# A piezo beeper needs a PWM signal, a DC buzzer doesn't.
value: 0
# Silent at power on, set to 1 if active low.
shutdown_value: 0
# Disable at emergency shutdown (no PWM would be available anyway).
cycle_time: 0.001
# PWM frequency : 0.001 = 1ms will give a base tone of 1kHz
scale: 1000
# PWM parameter will be in the range of (0-1000 Hz).
# Although not pitch perfect.
[gcode_macro M300]
default_parameter_S=1000
# Allows for a default 1kHz tone if S is omitted
default_parameter_P=100
# Allows for a default 10ms duration is P is omitted
gcode: SET_PIN PIN=BEEPER_pin VALUE={S}
G4 P{P}
SET_PIN PIN=BEEPER_pin VALUE=0
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 36.944
#*# pid_ki = 1.610
#*# pid_kd = 211.966
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 48.367
#*# pid_ki = 0.322
#*# pid_kd = 1815.581
#*#
#*# [printer]
#*# delta_radius = 144.230364
#*#
#*# [stepper_a]
#*# angle = 209.737290
#*# arm_length = 291.060000
#*# position_endstop = 371.340370
#*#
#*# [stepper_b]
#*# angle = 329.489171
#*# arm_length = 291.060000
#*# position_endstop = 372.080064
#*#
#*# [stepper_c]
#*# angle = 90.000000
#*# arm_length = 291.060000
#*# position_endstop = 371.704294
#*#
#*# [delta_calibrate]
#*# height0 = 0.0
#*# height0_pos = 29736.000,29736.000,29736.000
#*# height1 = 0.0
#*# height1_pos = 32613.000,32613.000,27316.000
#*# height2 = 0.0
#*# height2_pos = 28911.000,34399.000,28911.000
#*# height3 = 0.0
#*# height3_pos = 27457.000,32166.000,32166.000
#*# height4 = 0.0
#*# height4_pos = 28967.000,28967.000,33091.000
#*# height5 = 0.0
#*# height5_pos = 31811.000,27677.000,31811.000
#*# height6 = 0.0
#*# height6_pos = 33756.000,28966.000,28966.000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment