# This file contains common pin mappings for RAMPS (v1.3 and later) # boards. RAMPS boards typically use a firmware compiled for the AVR # atmega2560 (though other AVR chips are also possible). # See the example.cfg file for a description of available parameters. [mcu] serial: /dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_95730333637351B0E0E1-if00 pin_map: arduino # The "zboard" micro-controller will be used to control the Z axis. [mcu zboard] serial: /dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_957303336373515032C1-if00 pin_map: arduino # The "auxboard" micro-controller will be used to control the heaters. [mcu auxboard] serial: /dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_55838323735351704112-if00 pin_map: arduino [bed_screws] screw1: 30,30 screw2: 270,30 screw3: 270,30 screw4: 270,270 [tmc2130 stepper_x] cs_pin: ar53 microsteps: 16 run_current: 0.7 hold_current: .1 driver_SGT: 3 diag1_pin: ^!ar3 #stealthchop_threshold: 100 [stepper_x] step_pin: ar54 dir_pin: !ar55 enable_pin: !ar38 step_distance: .005 endstop_pin: tmc2130_stepper_x:virtual_endstop position_min: -19 position_endstop: -19 position_max: 310 homing_speed: 50 homing_retract_dist: 0 [tmc2130 stepper_y] cs_pin: ar49 microsteps: 16 run_current: 0.7 hold_current: .1 driver_SGT: 3 diag1_pin: ^!ar2 #stealthchop_threshold: 100 [stepper_y] step_pin: ar60 dir_pin: !ar61 enable_pin: !ar56 step_distance: .005 endstop_pin: tmc2130_stepper_y:virtual_endstop position_endstop: -18 position_min: -18 position_max: 310 homing_speed: 50 homing_retract_dist: 0 [tmc2130 stepper_z] cs_pin: zboard:ar49 microsteps: 16 run_current: .7 hold_current: .4 stealthchop_threshold: 100 [stepper_z] step_pin: zboard:ar60 dir_pin: !zboard:ar61 enable_pin: !zboard:ar56 step_distance: .0025 endstop_pin: zboard:ar14 position_endstop: 2.4 position_max: 665 position_min: -1 [tmc2130 stepper_z1] cs_pin: zboard:ar53 microsteps: 16 run_current: .7 hold_current: .4 stealthchop_threshold: 100 [stepper_z1] step_pin: zboard:ar54 dir_pin: !zboard:ar55 enable_pin: !zboard:ar38 step_distance: .0025 endstop_pin: zboard:ar3 [probe] pin: !zboard:ar18 # Probe detection pin. This parameter must be provided. x_offset: 30.0 # The distance (in mm) between the probe and the nozzle along the # x-axis. The default is 0. y_offset: -3.5 # The distance (in mm) between the probe and the nozzle along the # y-axis. The default is 0. z_offset: 1.1 # The distance (in mm) between the bed and the nozzle when the probe # triggers. This parameter must be provided. [tmc2130 extruder] cs_pin: auxboard:ar53 microsteps: 16 run_current: .5 [thermistor my_NTC3950xx] temperature1: 25 resistance1: 100000 temperature2: 180 resistance2: 770 #resistance2: 582 temperature3: 250 resistance3: 185 #resistance3: 230 [thermistor my_NTC3950] temperature1: 25 resistance1: 100000 beta: 4500 [extruder] step_pin: auxboard:ar26 dir_pin: auxboard:ar28 enable_pin: !auxboard:ar24 step_distance: .00231588 nozzle_diameter: 0.400 filament_diameter: 1.750 heater_pin: auxboard:ar9 #sensor_type: NTC 100K beta 3950 #sensor_type: EPCOS 100K B57560G104F sensor_type: my_NTC3950 sensor_pin: auxboard:analog13 control: pid pid_Kp=27.783 pid_Ki=1.639 pid_Kd=117.774 min_temp: 0 max_temp: 260 pressure_advance: 0.2 #max_extrude_only_velocity: 120 #max_extrude_only_accel: 1500 [heater_bed] heater_pin: auxboard:ar8 sensor_type: EPCOS 100K B57560G104F #sensor_type: my_NTC3950 sensor_pin: auxboard:analog14 control: pid pid_Kp=65.655 pid_Ki=0.740 pid_Kd=1455.640 min_temp: 0 max_temp: 120 [fan] pin: auxboard:ar10 [heater_fan extruder_fan] heater_temp: 50.0 pin: zboard:ar8 max_power: 1.0 # The maximum power (expressed as a value from 0.0 to 1.0) that the # pin may be set to. The value 1.0 allows the pin to be set fully # enabled for extended periods, while a value of 0.5 would allow the # pin to be enabled for no more than half the time. This setting may # be used to limit the total power output (over extended periods) to # the fan. If this value is less than 1.0 then fan speed requests # will be scaled between zero and max_power (for example, if # max_power is .9 and a fan speed of 80% is requested then the fan # power will be set to 72%). The default is 1.0. #shutdown_speed: 0 # The desired fan speed (expressed as a value from 0.0 to 1.0) if # the micro-controller software enters an error state. The default # is 0. #cycle_time: 0.010 # The amount of time (in seconds) for each PWM power cycle to the # fan. It is recommended this be 10 milliseconds or greater when # using software based PWM. The default is 0.010 seconds. hardware_pwm: True # Enable this to use hardware PWM instead of software PWM. The # default is False. #kick_start_time: 0.100 # Time (in seconds) to run the fan at full speed when first enabling # it (helps get the fan spinning). The default is 0.100 seconds. # 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 xy_stepper_fan] pin: ar44 max_power: 1.0 #shutdown_speed: #cycle_time: hardware_pwm: True #kick_start_time: # See the "fan" section in example.cfg for a description of the # above parameters. sensor_type: NTC 100K beta 3950 sensor_pin: analog13 # See the "heater" section for details about the sensor_type and # sensor_pin parameters. min_temp: 0 max_temp: 120 target_temp: 50.0 # A temperature (in Celsius) that will be the target temperature. # The default is 40 degrees. max_speed: 0.4 # 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: 0.2 # 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. [temperature_fan z_stepper_fan] pin: zboard:ar44 max_power: 1.0 #shutdown_speed: #cycle_time: hardware_pwm: True #kick_start_time: # See the "fan" section in example.cfg for a description of the # above parameters. sensor_type: NTC 100K beta 3950 sensor_pin: zboard:analog15 # See the "heater" section for details about the sensor_type and # sensor_pin parameters. min_temp: 0 max_temp: 120 target_temp: 50.0 # A temperature (in Celsius) that will be the target temperature. # The default is 40 degrees. max_speed: 0.4 # 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: 0.2 # 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 [temperature_fan auxboard_stepper_fan] pin: auxboard:ar44 max_power: 1.0 #shutdown_speed: #cycle_time: hardware_pwm: True #kick_start_time: # See the "fan" section in example.cfg for a description of the # above parameters. sensor_type: NTC 100K beta 3950 sensor_pin: auxboard:analog15 # See the "heater" section for details about the sensor_type and # sensor_pin parameters. min_temp: 0 max_temp: 120 target_temp: 50.0 # A temperature (in Celsius) that will be the target temperature. # The default is 40 degrees. max_speed: 0.4 # 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: 0.2 # 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 [printer] kinematics: corexy max_velocity: 300 max_accel: 3000 max_z_velocity: 5 max_z_accel: 30 # Mesh Bed Leveling. One may define a [bed_mesh] config section # to enable move transformations that offset the z axis based # on a mesh generated from probed points. Note that bed_mesh # and bed_tilt are incompatible, both cannot be defined. When # using a probe to home the z-axis, it is recommended to define # a [homing_override] section in printer.cfg to home toward the # center of the print area. # # Visual Examples: # rectangular bed, probe_count = 3,3: # x---x---x (max_point) # | # x---x---x # | # (min_point) x---x---x # # round bed, round_probe_count = 5, bed_radius = r: # x (0,r) end # / # x---x---x # \ # (-r,0) x---x---x---x---x (r,0) # \ # x---x---x # / # x (0,-r) start # [bed_mesh] speed: 80 # 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: 1 # The number of times to probe each point. The probed z-values # will be averaged. The default is to probe 1 time. #samples_result: average # One can choose median or average between probes samples # The default is average. #sample_retract_dist: 2.0 # The distance (in mm) to retract between each sample if # sampling more than once. Default is 2mm. #bed_radius: # Defines the radius to probe for round beds. Note that the radius # is relative to the nozzle's origin, if using a probe be sure to # account for its offset. This parameter must be provided for round # beds and omitted for rectangular beds. min_point: 30,30 # Defines the minimum x,y position to probe when for rectangular # beds. Note that this refers to the nozzle position, take care that # you do not define a point that will move the probe off of the bed. # This parameter must be provided for rectangular beds. max_point: 250,250 # Defines the maximum x,y position to probe when for rectangular # beds. Follow the same precautions as listed in min_point. Also note # that this does not necessarily define the last point probed, only # the maximum coordinate. This parameter must be provided. probe_count: 5,5 # For rectangular beds, this is a comma separate pair of integer # values (X,Y) defining the number of points to probe along each axis. # A single value is also valid, in which case that value will be applied # to both axes. Default is 3,3. #round_probe_count: 5 # For round beds, this is integer value defines the maximum number of # points to probe along each axis. This value must be an odd number. # Default is 5. #fade_start: 1.0 # The gcode z position in which to start phasing out z-adjustment # when fade is enabled. Default is 1.0. #fade_end: 0.0 # The gcode z position in which phasing out completes. When set # to a value below fade_start, fade is disabled. It should be # noted that fade may add unwanted scaling along the z-axis of a # print. If a user wishes to enable fade, a value of 10.0 is # recommended. Default is 0.0, which disables fade. #fade_target: # The z position in which fade should converge. When this value is set # to a non-zero value it must be within the range of z-values in the mesh. # Users that wish to converge to the z homing position should set this to 0. # Default is the average z value of the mesh. #split_delta_z: .025 # The amount of Z difference (in mm) along a move that will # trigger a split. Default is .025. #move_check_distance: 5.0 # The distance (in mm) along a move to check for split_delta_z. # This is also the minimum length that a move can be split. Default # is 5.0. #mesh_pps: 2,2 # A comma separated pair of integers (X,Y) defining the number of # points per segment to interpolate in the mesh along each axis. A # "segment" can be defined as the space between each probed # point. The user may enter a single value which will be applied # to both axes. Default is 2,2. #algorithm: lagrange # The interpolation algorithm to use. May be either "lagrange" # or "bicubic". This option will not affect 3x3 grids, which # are forced to use lagrange sampling. Default is lagrange. #bicubic_tension: .2 # When using the bicubic algorithm the tension parameter above # may be applied to change the amount of slope interpolated. # Larger numbers will increase the amount of slope, which # results in more curvature in the mesh. Default is .2. #relative_reference_index: # A point index in the mesh to reference all z values to. Enabling # this parameter produces a mesh relative to the probed z position # at the provided index. # Run-time configurable output pins (one may define any number of # sections with an "output_pin" prefix). Pins configured here will be # setup as output pins and one may modify them at run-time using # "SET_PIN PIN=my_pin VALUE=.1" type extended g-code commands. [output_pin leds] pin: auxboard:ar42 # The pin to configure as an output. This parameter must be # provided. #pwm: true # Set if the output pin should be capable of pulse-width-modulation. # If this is true, the value fields should be between 0 and 1; if it # is false the value fields should be either 0 or 1. The default is # False. #static_value: # If this is set, then the pin is assigned to this value at startup # and the pin can not be changed during runtime. A static pin uses # slightly less ram in the micro-controller. The default is to use # runtime configuration of pins. #value: # The value to initially set the pin to during MCU configuration. # The default is 0 (for low voltage). #shutdown_value: # The value to set the pin to on an MCU shutdown event. The default # is 0 (for low voltage). #cycle_time: 0.100 # The amount of time (in seconds) per PWM cycle. It is recommended # this be 10 milliseconds or greater when using software based # PWM. The default is 0.100 seconds for pwm pins. #hardware_pwm: False # Enable this to use hardware PWM instead of software PWM. When # using hardware PWM the actual cycle time is constrained by the # implementation and may be significantly different than the # requested cycle_time. The default is False. #scale: # This parameter can be used to alter how the 'value' and # 'shutdown_value' parameters are interpreted for pwm pins. If # provided, then the 'value' parameter should be between 0.0 and # 'scale'. This may be useful when configuring a PWM pin that # controls a stepper voltage reference. The 'scale' can be set to # the equivalent stepper amperage if the PWM were fully enabled, and # then the 'value' parameter can be specified using the desired # amperage for the stepper. The default is to not scale the 'value' # parameter. [gcode_macro START] gcode: G28 ; home all axes BED_MESH_CALIBRATE G1 Z5 F300 ; lift G1 X10 Y5 F5000 ; move to prime G1 Z0.2 F300 ; get ready to prime G92 E0 ; reset extrusion distance G1 X80 E10 F600 ; prime nozzle G1 X80 F5000 ; quick wipe [gcode_macro STOP] gcode: M104 S0 ; turn off extruder M140 S0 ; turn off bed M107 S0 ; turn off fan ;Retract the filament G92 E1 G1 E-1 F300 G1 X0 Y300 F2000 ; prepare for part removal M84 ; disable motors BED_MESH_CLEAR