Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##################################################
- # Nitram delta aka anycubic kossel mini linear #
- # Spec. #
- # 16 tooth pulleys #
- # piezo probe #
- # stepper cooling fan #
- # led strips on heater01 #
- # tmc2130 over spi on all axes #
- # 24v on VM (not that it matter for FW) #
- # Titan extruder @ 8 microsteps #
- # Rpi 3 #
- # chamber heater is not implemented #
- # filament run out is not implemented #
- # E3d PT100 amplifier on aux board is #
- # dead but it worked like a charm #
- # Arduino NANO as auxboard #
- # Ther was a little short so the mosfet #
- # for the hotend fan died, so it's now #
- # moved to heater1 #
- # Leds are on aux board #
- ##################################################
- ############################
- # as seen from above #
- # [C(z)] #
- # #
- # y^ #
- # | #
- # (z)-->x #
- # #
- # #
- # [A(x)] [B(y)] #
- # #
- ############################
- # mcu ATmega2560
- # mcu auxboard NANO ATmega328P-MU
- # syntax to burn FW to Nano board
- # avrdude -carduino -patmega328p -P/dev/ttyUSB0 -b57600 -D -Uflash:w:out/klipper.elf.hex:i
- #_____________________TRIGORILLA/NANO BOARD____________________________________#
- #Main MCU TRIGORILLA
- [mcu]
- # serial may need to be changed depending on initial setup
- #The general way to find a more stable USB serial port is to run ls -l /dev/serial/by-id/ from an ssh terminal
- serial: /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0
- #otherwise try the USB like ttyUSB0
- #serial: /dev/ttyUSB0
- pin_map: arduino
- #restart_method: command
- # The "auxboard" micro-controller will be used to ADC temp sensor . NANO
- [mcu auxboard]
- serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
- pin_map: arduino
- #_____________________STEPPER A________________________________________#
- # The stepper_a section describes the stepper controlling the front
- # left tower (at 210 degrees). This section also controls the homing
- # parameters (homing_speed, homing_retract_dist) for all towers.
- [stepper_a]
- step_pin: ar54
- dir_pin: ar55
- enable_pin: !ar38
- step_distance: .010000
- endstop_pin: ^ar2
- homing_speed: 30
- #position_endstop: 275.0000
- #angle: 210.00000
- # Distance (in mm) between the nozzle and the bed when the nozzle is
- # in the center of the build area and the endstop triggers. This
- # parameter must be provided for stepper_a; for stepper_b and
- # stepper_c this parameter defaults to the value specified for
- # stepper_a.
- #arm_length: 218.0000
- # Length (in mm) of the diagonal rod that connects this tower to the
- # print head. This parameter must be provided for stepper_a; for
- # stepper_b and stepper_c this parameter defaults to the value
- # specified for stepper_a.
- [tmc2130 stepper_a]
- cs_pin: ar4
- microsteps:16
- interpolate: True
- run_current:0.800
- hold_current:0.500
- sense_resistor: 0.110
- stealthchop_threshold: 0
- driver_IHOLDDELAY: 8
- driver_TPOWERDOWN: 0
- driver_BLANK_TIME_SELECT: 1
- driver_TOFF: 3
- driver_HEND: 7
- driver_HSTRT: 0
- driver_PWM_AUTOSCALE: True
- driver_PWM_FREQ: 1
- driver_PWM_GRAD: 4
- driver_PWM_AMPL: 128
- driver_SGT: 0
- #diag1_pin:
- #_____________________STEPPER B________________________________________#
- # The stepper_b section describes the stepper controlling the front
- # right tower (at 330 degrees).
- [stepper_b]
- step_pin: ar60
- dir_pin: ar61
- enable_pin: !ar56
- step_distance: .01000000
- endstop_pin: ^ar15
- #position_endstop: 275.00000
- #angle: 330.000000
- #arm_length: 218.0000
- [tmc2130 stepper_b]
- cs_pin: ar5
- microsteps:16
- interpolate: True
- run_current:0.800
- hold_current:0.500
- sense_resistor: 0.110
- stealthchop_threshold: 0
- driver_IHOLDDELAY: 8
- driver_TPOWERDOWN: 0
- driver_BLANK_TIME_SELECT: 1
- driver_TOFF: 3
- driver_HEND: 7
- driver_HSTRT: 0
- driver_PWM_AUTOSCALE: True
- driver_PWM_FREQ: 1
- driver_PWM_GRAD: 4
- driver_PWM_AMPL: 128
- driver_SGT: 0
- #diag1_pin:
- #_____________________STEPPER C________________________________________#
- # The stepper_c section describes the stepper controlling the rear
- # tower (at 90 degrees).
- [stepper_c]
- step_pin: ar46
- dir_pin: ar48
- enable_pin: !ar62
- step_distance: .010000
- endstop_pin: ^ar19
- #position_endstop: 275.000000
- #angle: 90.000000
- #arm_length: 218.0000
- [tmc2130 stepper_c]
- cs_pin: ar6
- microsteps:16
- interpolate: True
- run_current:0.800
- hold_current:0.500
- sense_resistor: 0.110
- stealthchop_threshold: 0
- driver_IHOLDDELAY: 8
- driver_TPOWERDOWN: 0
- driver_BLANK_TIME_SELECT: 1
- driver_TOFF: 3
- driver_HEND: 7
- driver_HSTRT: 0
- driver_PWM_AUTOSCALE: True
- driver_PWM_FREQ: 1
- driver_PWM_GRAD: 4
- driver_PWM_AMPL: 128
- driver_SGT: 0
- #diag1_pin:
- #_____________________EXTRUDER ________________________________________#
- [extruder]
- step_pin: ar26
- dir_pin: !ar28
- enable_pin: !ar24
- #step_distance: 0.00436718291 # Titan @ 8 microsteps
- #step_distance: 0.00248483595 # Titanextruder @ 16 microstep_old
- step_distance: 0.002183591 # Titanextruder @ 16 microstep
- #step_distance: 0.001091796 #titan @ 32 microstep
- #step_distance: 0.010392849720 #anycubic kossel
- nozzle_diameter: 0.400
- filament_diameter: 1.750
- heater_pin: ar10
- sensor_type: NTC 100K beta 3950 # China high temp
- #sensor_type: ATC Semitec 104GT-2 #e3d original
- sensor_pin: analog13
- #sensor_type: PT100 INA826
- #sensor_pin: auxboard:analog4
- max_power: 1.0
- #adc_voltage: 5.0
- # The ADC comparison voltage. This parameter is only valid when the
- # sensor is an AD595 or "PT100 INA826". The default is 5 volts.
- smooth_time: 1.5
- # A time value (in seconds) over which temperature measurements will
- # be smoothed to reduce the impact of measurement noise. The default
- # is 2 seconds.
- control: pid
- #pid_Kp: 23.972
- #pid_Ki: 1.046
- #pid_Kd: 137.372
- #Tune your own pid
- min_temp: 10
- max_temp: 340
- max_extrude_only_accel: 10000
- max_extrude_only_distance: 650.0
- pressure_advance: 0.25
- pressure_advance_lookahead_time: 0.010000
- # do not use pressure advance until you read about it and tune for it
- # this is for 100mm/s or higher printer settings.
- [tmc2130 extruder]
- cs_pin: ar11
- microsteps:16
- interpolate: True
- run_current:0.850
- hold_current:0.500
- sense_resistor: 0.110
- stealthchop_threshold: 25
- driver_IHOLDDELAY: 8
- driver_TPOWERDOWN: 0
- driver_BLANK_TIME_SELECT: 1
- driver_TOFF: 4
- driver_HEND: 7
- driver_HSTRT: 0
- driver_PWM_AUTOSCALE: True
- driver_PWM_FREQ: 1
- driver_PWM_GRAD: 4
- driver_PWM_AMPL: 128
- driver_SGT: 0
- #diag1_pin:
- #_____________________HEATER_______________________________________#
- [heater_bed]
- heater_pin: ar8
- #sensor_type: EPCOS 100K B57560G104F
- sensor_type: ATC Semitec 104GT-2
- #sensor type can be different for your printer
- sensor_pin: analog14
- control: pid
- # to add pid setting replace watermark term with PID and input settings below
- # check extruder setup for example
- pid_Kp: 70.242
- pid_Ki: 1.620
- pid_Kd: 761.247
- min_temp: 10
- max_temp: 130
- # This is used as a overtemperature "safety" funktion so that the
- # heater element for the case heater don't get to hot,
- # if temp goes higher than 130 deg turn of power for the heater
- # Temperature-triggered cooling fans (one may define any number of
- # sections with a "temperature_fan" prefix). A "temperature fan" is a
- # fan that will be enabled whenever its associated sensor is above a
- # set temperature. By default, a temperature_fan has a shutdown_speed
- # equal to max_power.
- #[temperature_fan overtemp_case_heater]
- #pin: !auxboard: ar
- #max_power:1
- #shutdown_speed:1
- #cycle_time:
- #hardware_pwm:
- #kick_start_time:
- # See the "fan" section in example.cfg for a description of the
- # above parameters.
- #sensor_type: EPCOS 100K B57560G104F
- #sensor_pin: analog
- # See the "heater" section for details about the sensor_type and
- # sensor_pin parameters.
- #min_temp: 0
- #max_temp: 200
- # The maximum range of valid temperatures (in Celsius) that the
- # sensor must remain within. This controls a safety feature
- # implemented in the micro-controller code - should the measured
- # temperature ever fall outside this range then the micro-controller
- # will go into a shutdown state. Set this range just wide enough so
- # that reasonable temperatures do not result in an error. These
- # parameters must be provided.
- #target_temp: 130.0
- # A temperature (in Celsius) that will be the target temperature.
- # The default is 40 degrees.
- #max_speed: 1.0
- # The fan speed (expressed as a value from 0.0 to 1.0) that the fan
- # will be set to when the sensor temperature exceeds the set value.
- # The default is 1.0.
- #min_speed: 1.0
- # The minimum fan speed (expressed as a value from 0.0 to 1.0) that
- # the fan will be set to when the sensor temperature is the set
- # value. The default is 0.3.
- #control: watermark
- # Control algorithm (either watermark or pid). This parameter must
- # be provided.
- #max_delta: 2.0
- # The heater_generic section is used to describe a custom/generic heater.
- # These behave the same as typical heaters (extruders, heated beds) and
- # can be configured as similarly.
- # However, a gcode_id must be supplied which is used for temperature reporting.
- # See notes on the SET_HEATER_TEMPERATURE command for setting the temperature.
- #[heater_generic my_case_heater]
- #gcode_id: C
- # A mandatory parameter that is required for reporting the temperature
- # through the M105 command.
- #heater_pin:!auxboard: ar
- #max_power:1
- #sensor_type:
- #sensor_pin: analog
- #pullup_resistor:
- #adc_voltage:
- #smooth_time:
- #control: watermark
- #pid_Kp:
- #pid_Ki:
- #pid_Kd:
- #pid_integral_max:
- #pwm_cycle_time:
- #min_extrude_temp:0
- #min_temp:0
- #max_temp:100
- # See the example.cfg for the definition of the above parameters.
- #_____________________FANS ______________________________________________#
- [heater_fan extruder_fan]
- pin: ar45
- heater: extruder
- heater_temp: 50.0
- fan_speed: 1.0
- shutdown_speed:1.0
- # Print cooling fan (omit section if fan not present).
- [fan]
- pin: ar9
- #kick_start_time: 0.200
- # Controller cooling fan. A "controller fan" is a fan that will be
- # enabled whenever its associated heater or any configured stepper
- # driver is active. The fan will stop, whenever an idle_timeout is
- # reached to ensure no overheating will occur after deactivating a
- # watched component.
- shutdown_speed:1.0
- [controller_fan]
- pin: ar7
- #max_power:
- shutdown_speed:1.0
- #cycle_time:
- #hardware_pwm:
- kick_start_time:0.200
- # See the "fan" section in example.cfg for a description of the
- # above parameters.
- idle_timeout:60
- # The ammount of time (in seconds) after a stepper driver or heater
- # was active and the fan should be kept running. The default
- # is 30 seconds.
- #idle_speed:0.5
- # The fan speed (expressed as a value from 0.0 to 1.0) that the fan
- # will be set to when a heater or stepper driver was active and before
- # the idle_timeout is reached. This must be greater or equal
- # max_power. The default is max_power
- heater: extruder, heater_bed
- # Name of the config section defining the heater that this fan is
- # associated with. If a comma separated list of heater names is
- # provided here, then the fan will be enabled when any of the given
- # heaters are enabled. The default is "extruder".
- #_____________________PRINTER_____________________________________________#
- [printer]
- kinematics: delta
- # This option must be "delta" for linear delta printers.
- max_velocity: 600
- # Maximum velocity (in mm/s) of the toolhead relative to the
- # print. This parameter must be specified default was 300.
- max_accel: 6000
- # Maximum acceleration (in mm/s^2) of the toolhead relative to the
- # print. This parameter must be specified default was 3000.
- max_z_velocity: 150
- # For delta printers this limits the maximum velocity (in mm/s) of
- # moves with z axis movement. This setting can be used to reduce the
- # maximum speed of up/down moves (which require a higher step rate than
- # other moves on a delta printer). The default is to use max_velocity for
- # max_z_velocity.
- square_corner_velocity: 14.0
- # The maximum velocity (in mm/s) that the toolhead may travel a 90
- # degree corner at. A non-zero value can reduce changes in extruder
- # flow rates by enabling instantaneous velocity changes of the
- # toolhead during cornering. This value configures the internal
- # centripetal velocity cornering algorithm; corners with angles
- # larger than 90 degrees will have a higher cornering velocity while
- # corners with angles less than 90 degrees will have a lower
- # cornering velocity. If this is set to zero then the toolhead will
- # decelerate to zero at each corner. The default is 5mm/s.
- minimum_z_position:-5.0
- # The minimum Z position that the user may command the head to move
- # to. The default is 0.
- #delta_radius: 98.40000
- # Radius (in mm) of the horizontal circle formed by the three linear
- # axis towers. This parameter may also be calculated as
- # delta_radius = smooth_rod_offset - effector_offset - carriage_offset
- # This parameter must be provided.
- #_____________________PROBE AND FANCY ALIGNMENT BITS_______________________#
- [probe]
- pin: ^!ar18
- # Probe detection pin. This parameter must be provided.
- x_offset: 0.0
- # The distance (in mm) between the probe and the nozzle along the
- # x-axis. The default is 0.
- y_offset: 0.0
- # The distance (in mm) between the probe and the nozzle along the
- # y-axis. The default is 0.speed: 10.0
- z_offset: -0.200
- # The Z height (in mm) of the head when the probe triggers.
- speed:30
- activate_gcode:
- SET_PIN PIN=led VALUE=0
- G4 P500
- #turn of led and wait ½ sec
- # A list of G-Code commands (one per line; subsequent lines
- # indented) to execute prior to each probe attempt. This may be
- # useful if the probe needs to be activated in some way. Do not
- # issue any commands here that move the toolhead (eg, G1). The
- # default is to not run any special G-Code commands on activation.
- deactivate_gcode:
- SET_PIN PIN=led VALUE=1
- #turn led back on
- # A list of G-Code commands (one per line; subsequent lines
- # indented) to execute after each probe attempt completes. Do not
- # issue any commands here that move the toolhead. The default is to
- # not run any special G-Code commands on deactivation.
- [delta_calibrate]
- # The delta_calibrate section enables a DELTA_CALIBRATE extended
- # g-code command that can calibrate the tower endstop positions and
- # angles.
- radius: 75
- # Radius (in mm) of the area that may be probed. This is typically
- # the size of the printer bed. This parameter must be provided.
- 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.
- samples: 3
- sample_retract_dist: 5
- #_____________________MACROS______________________________________#
- [gcode_macro THE_START]
- gcode:
- SET_PIN PIN=led VALUE=1
- G28
- M140 S{B}
- M104 S150
- G90
- M117 HERE WE GO..
- G28
- M190 S{B}
- M109 S150
- set_delta_height
- M117 READY..
- G1 X-74 Y-43 Z50 F1000
- M117 SET..
- M104 S{H}
- M109 S{H}
- M117 GO.....
- G92 E0
- G1 X-44 Y-75 Z0.6 E3 F3000
- M117 SQUIRTING...
- G1 X0 Y-90 E10 F500
- G1 X44 Y-75 Z0.45 E12 F500
- G92 E0
- G1 E-0.4 F500
- G1 X87 Y-17 Z1 F8000
- G1 Z5
- M117 DOODELING...
- [gcode_macro THE_END]
- gcode:
- M117 TADA!!!...
- M107
- M220 S100
- G1 E-4 F500
- M104 S0
- M140 S0
- G91
- G1 Z10 F8000
- G90
- G1 X0 Y0 F8000
- G28
- UNLOAD
- M84
- M117 All done. BYE...
- SET_PIN PIN=led VALUE=0
- [gcode_macro set_delta_height]
- gcode:
- M117 SET_DELTA_HEIGHT
- G90
- G0 F4000 X0 Y0 Z10
- PROBE
- G0 F2000 Z3
- PROBE
- G92 Z-0.20
- G0 F4000 Z10
- [gcode_macro micro_up]
- gcode:
- SET_GCODE_OFFSET Z_ADJUST=0.05
- [gcode_macro micro_down]
- gcode:
- SET_GCODE_OFFSET Z_ADJUST=-0.05
- [gcode_macro endstop_phase]
- gcode:
- G90
- G28
- ENDSTOP_PHASE_CALIBRATE
- G1 Z200 F2000
- G28
- G1 Z180 Y70 F2000
- G28
- G1 Z220 X70 F2000
- G28
- G1 Z210 Y-55 F2000
- G28
- G1 Z150 X-45 F2000
- G28
- G1 Z200 X-20 Y-45 F2000
- G28
- ENDSTOP_PHASE_CALIBRATE STEPPER=stepper_a
- ENDSTOP_PHASE_CALIBRATE STEPPER=stepper_b
- ENDSTOP_PHASE_CALIBRATE STEPPER=stepper_c
- SAVE_CONFIG
- [gcode_macro tmc_dump]
- gcode:
- DUMP_TMC STEPPER=stepper_a
- DUMP_TMC STEPPER=stepper_b
- DUMP_TMC STEPPER=stepper_c
- DUMP_TMC STEPPER=extruder
- [gcode_macro G27]
- gcode:
- PARK_MACRO
- [gcode_macro PARK_MACRO]
- default_parameter_X: 0
- default_parameter_Y: -85
- default_parameter_Z: 30
- gcode:
- M117 PARKING..
- G91
- G1 E-3.14 F1500
- G1 Z{Z}
- G90
- G1 X{X} Y{Y} F3000
- [gcode_macro UNLOAD]
- gcode:
- G91
- G1 E5.0 F1200
- G1 E3.0 F1600
- G1 E-13.14 F7000
- G1 E-540 F3000
- G90
- [gcode_macro M600]
- gcode:
- PAUSE_MACRO
- UNLOAD
- [gcode_macro PAUSE_MACRO]
- gcode:
- PAUSE
- PARK_MACRO
- [gcode_macro PURGE]
- gcode:
- M117 PURGING..
- G91
- G1 E45.0 F250
- G90
- [gcode_macro LOAD_FILAMENT]
- gcode:
- M117 LOADING...
- G91
- G1 E25.0 F1000
- G1 E435 F2500
- G4 P900
- G1 E45.0 F250
- G90
- [gcode_macro RESUME_MACRO]
- gcode:
- M117 RESUMING...
- RESUME
- #_____________________BITS AND BOBS______________________________________#
- # filament run out sensor
- # pin ar14
- # Manual steppers (one may define any number of sections with a
- # "manual_stepper" prefix). These are steppers that are controlled by
- # the MANUAL_STEPPER g-code command. For example: "MANUAL_STEPPER
- # STEPPER=my_stepper MOVE=10 SPEED=5". See the docs/G-Codes.md file
- # for a description of the MANUAL_STEPPER command. The steppers are
- # not connected to the normal printer kinematics.
- #[manual_stepper camera_stepper]
- #E1 stepper
- #step_pin: ar36
- #dir_pin: ar34
- #enable_pin: !ar30
- #step_distance: 0.00021875
- # See the "[stepper_x]" section in example.cfg for a description of
- # these parameters.
- #endstop_pin: ^ar3
- # X-min
- #position_endstop: 0
- #position_max: 400
- # Endstop switch detection pin. If specified, then one may perform
- # "homing moves" by adding a STOP_ON_ENDSTOP parameter to
- # MANUAL_STEPPER movement commands.
- # Pause/Resume functionality with support of position capture and restore
- [pause_resume]
- recover_velocity: 200
- # When capture/restore is enabled, the speed at which to return to
- # the captured position (in mm/s). Default is 50.0 mm/s.
- # paste "unknownCommandsNeedAck: true" in ~/.octoprint/config.yaml
- ######################################
- # #
- # serial: #
- # additionalPorts: #
- # - /tmp/printer #
- # baudrate: 250000 #
- # disconnectOnErrors: false #
- # logPositionOnCancel: true #
- # port: /tmp/printer #
- # unknownCommandsNeedAck: true #
- # #
- ######################################
- # Reprap "2004" display
- [display]
- lcd_type: hd44780
- rs_pin: ar16
- e_pin: ar17
- d4_pin: ar23
- d5_pin: ar25
- d6_pin: ar27
- d7_pin: ar29
- encoder_pins: ^ar31, ^ar33
- click_pin: ^!ar35
- kill_pin: ^!ar41
- [output_pin led]
- pin = !auxboard: ar10 #ar45
- #Use The CASElight pin with "SET_PIN PIN=led VALUE=x(1=ON, 0=OFF)"
- [output_pin redled]
- pin =!auxboard:ar7
- #Use The redled pin with "SET_PIN PIN=redled VALUE=x(1=ON, 0=OFF)"
- # A virtual sdcard may be useful if the host machine is not fast
- # enough to run OctoPrint well. It allows the Klipper host software to
- # directly print gcode files stored in a directory on the host using
- # standard sdcard G-Code commands (eg, M24).
- [virtual_sdcard]
- path: ~/.octoprint/uploads/
- # The path of the local directory on the host machine to look for
- # g-code files. This is a read-only directory (sdcard file writes
- # are not supported). One may point this to OctoPrint's upload
- # directory (generally ~/.octoprint/uploads/ ). This parameter must
- # be provided.
- # Stepper phase adjusted endstops. To use this feature, define a
- # config section with an "endstop_phase" prefix followed by the name
- # of the corresponding stepper config section. This feature can
- # improve the accuracy of endstop switches. Add a bare
- # "[endstop_phase]" declaration to
- # enable the ENDSTOP_PHASE_CALIBRATE command.
- [endstop_phase]
- # This specifies the number of phases of the given stepper motor
- # driver (which is the number of micro-steps multiplied by four).
- # This setting is automatically determined if one uses TMC2130,
- # TMC2208, TMC2224 or TMC2660 drivers with run-time configuration.
- # Otherwise, this parameter must be provided.
- #_____________________SLIC3R PE SETTINGS______________________________________#
- ####START CODE SLIC3R PE
- # THE_START B=[first_layer_bed_temperature] H=[first_layer_temperature]
- # M140 S[first_layer_bed_temperature] ; set bed temperature
- # M104 S[first_layer_temperature] ; set temperature
- ###BEFORE LAYER CHANGE
- # M117 LAYER # [layer_num] @ [layer_z]mm
- # ;nu byter jag till lager [layer_z]
- # ;{if layer_num == 7}M104 S215{endif};SET A NEW HOTEND TEMP AT A SPECIFIC LAYER remove ;
- ###AFTER LAYER CHANGE
- # ;nu har jag bytt till lager [layer_z]
- # ;{if layer_z == 7.8}M600{endif}; CHANGE FILAMENT AT A SPECIFIC LAYER remove ;
- # M117 LAYER #[layer_num] @ [layer_z]mm
- ##END CODE SLIC3R PE
- # THE_END
- # Delta max build height 275.62mm (radius tapered above 251.93mm)
- # Delta max build radius 99.58mm (moves slowed past 108.94mm and 117.23mm)
- # Extruder max_extrude_ratio=0.266081
- #*# <---------------------- SAVE_CONFIG ---------------------->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement