Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This file contains common pin mappings for MKS Robin Nano (v1.2.004)
- # boards. To use this config, the firmware should be compiled for the
- # STM32F103. When running "make menuconfig", enable "extra low-level
- # configuration setup", select the 28KiB bootloader, disable "USB for
- # communication", and select USART3 for the "Serial Port".
- # Note that the "make flash" command does not work with MKS Robin
- # boards. After running "make", run the following command:
- # ./scripts/update_mks_robin.py out/klipper.bin out/Robin_nano.bin
- # Copy the file out/Robin_nano.bin to an SD card and then restart the
- # printer with that SD card.
- # See docs/Config_Reference.md for a description of parameters.
- [stepper_x]
- step_pin: PE3
- dir_pin: PE2
- enable_pin: !PE4
- step_distance: .0125
- endstop_pin: PA15
- position_endstop: 300
- position_max: 300
- homing_speed: 50
- [stepper_y]
- step_pin: PE0
- dir_pin: PB9
- enable_pin: !PE1
- step_distance: .0125
- endstop_pin: PA12
- position_endstop: 300
- position_max: 300
- homing_speed: 50
- [stepper_z]
- step_pin: PB5
- dir_pin: PB4
- enable_pin: !PB8
- step_distance: .0025
- endstop_pin:probe:z_virtual_endstop
- position_min:-3.5
- position_max: 354
- [stepper_z1]
- step_pin: PA6
- dir_pin: PA1
- enable_pin: !PA3
- step_distance: 0.0025
- #endstop_pin: PA11
- [extruder]
- max_extrude_cross_section: 50.0
- step_pin: PD6
- max_extrude_only_distance: 250
- dir_pin: !PD3
- enable_pin: !PB3
- step_distance: .0024602
- nozzle_diameter: 0.400
- filament_diameter: 1.750
- heater_pin: PC3
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PC1
- control: pid
- pid_Kp=22.546
- pid_Ki=1.022
- pid_Kd=124.285
- #pressure_advance: 0.096
- min_temp: 0
- max_temp: 300
- [heater_bed]
- heater_pin: PA0
- sensor_type: ATC Semitec 104GT-2
- sensor_pin: PC0
- control: pid
- pid_Kp=70.173
- pid_Ki=1.172
- pid_Kd=1049.965
- min_temp: 0
- max_temp: 130
- [fan]
- pin: PB1
- [mcu]
- serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
- restart_method: command
- [printer]
- kinematics: corexy
- max_velocity: 200
- max_accel: 5000
- max_z_velocity: 20
- max_z_accel: 100
- square_corner_velocity: 5
- max_accel_to_decel: 2500
- [virtual_sdcard]
- path: /home/pi/sdcard
- ########################################
- # TMC2208 configuration
- ########################################
- # For TMC2208 UART
- # 1) Remove all of the jumpers below the stepper drivers
- # 2) Place jumpers on the red pin headers labeled XUART (XUART, YUART etc.)
- [bed_screws]
- screw1: 30,30
- screw2: 270,30
- screw3: 270,270
- screw4: 30,270
- [output_pin power]
- pin:PB2
- value: 1.0
- shutdown_value: 0.0
- [gcode_arcs]
- resolution: 0.05
- #[tmc2208 stepper_z]
- #microsteps: 16
- #run_current: 0.650
- #hold_current: 0.450
- #stealthchop_threshold: 30
- #[tmc2208 extruder]
- #microsteps: 16
- #run_current: 0.800
- #hold_current: 0.500
- #stealthchop_threshold: 5
- #[tmc2208 extruder1]
- #uart_pin: P1.1
- #microsteps: 16
- #run_current: 0.800
- #hold_current: 0.500
- #stealthchop_threshold: 5
- ########################################
- # TMC2130 configuration
- ########################################
- # For TMC SPI
- # 1) Place jumpers on all the red pin headers under the stepper drivers
- # 2) Remove jumpers from the red pin headers labeled XUART (XUART, YUART etc.)
- #[tmc2130 stepper_x]
- #cs_pin: P1.17
- #spi_software_miso_pin: P0.5
- #spi_software_mosi_pin: P4.28
- #spi_software_sclk_pin: P0.4
- ##diag1_pin: P1.29
- #microsteps: 16
- #run_current: 0.800
- #hold_current: 0.500
- #stealthchop_threshold: 250
- #[tmc2130 stepper_y]
- #cs_pin: P1.15
- #spi_software_miso_pin: P0.5
- #spi_software_mosi_pin: P4.28
- #spi_software_sclk_pin: P0.4
- ##diag1_pin: P1.27
- #microsteps: 16
- #run_current: 0.800
- #hold_current: 0.500
- #stealthchop_threshold: 250
- #[tmc2130 stepper_z]
- #cs_pin: P1.10
- #spi_software_miso_pin: P0.5
- #spi_software_mosi_pin: P4.28
- #spi_software_sclk_pin: P0.4
- ##diag1_pin: P1.25
- #microsteps: 16
- #run_current: 0.650
- #hold_current: 0.450
- #stealthchop_threshold: 30
- #[tmc2130 extruder]
- #cs_pin: P1.8
- #spi_software_miso_pin: P0.5
- #spi_software_mosi_pin: P4.28
- #spi_software_sclk_pin: P0.4
- ##diag1_pin: P1.28
- #microsteps: 16
- #run_current: 0.800
- #hold_current: 0.500
- #stealthchop_threshold: 5
- #[tmc2130 extruder1]
- #cs_pin: P1.1
- #spi_software_miso_pin: P0.5
- #spi_software_mosi_pin: P4.28
- #spi_software_sclk_pin: P0.4
- ##diag1_pin: P1.26
- #microsteps: 16
- #run_current: 0.800
- #hold_current: 0.500
- #stealthchop_threshold: 5
- [gcode_macro G29]
- gcode:
- BED_MESH_CALIBRATE
- [bltouch]
- sensor_pin: PA11
- control_pin: PA8
- x_offset: 0
- y_offset: -20
- z_offset: 0.700
- pin_move_time: 0.4
- probe_with_touch_mode: True
- [safe_z_home]
- home_xy_position: 150,150
- speed: 50
- z_hop: 10
- z_hop_speed: 5
- [bed_mesh]
- speed: 100
- mesh_min: 43,20
- mesh_max: 280,250
- probe_count: 5,5
- mesh_pps: 2,2
- algorithm: bicubic
- bicubic_tension: 0.2
- move_check_distance: 3.0
- split_delta_z: .010
- fade_start: 1.0
- fade_end: 5.0
- [static_digital_output reset_display]
- pins: !PC6, !PD13
- [z_tilt]
- z_positions:
- 270,175
- 30,175
- points:
- 30,175
- 270,175
- speed: 100
- horizontal_move_z: 6
- retries: 5
- retry_tolerance: 0.01
- [include mainsail.cfg]
- [gcode_macro PAUSE]
- rename_existing: BASE_PAUSE
- default_parameter_X: 265 #edit to your park position
- default_parameter_Y: 50 #edit to your park position
- default_parameter_Z: 10 #edit to your park position
- default_parameter_E: 2 #edit to your retract length
- gcode:
- SAVE_GCODE_STATE NAME=PAUSE_state
- BASE_PAUSE
- G91
- G1 E-{E} F2100
- G1 Z{Z}
- G90
- G1 X{X} Y{Y} F6000
- [gcode_macro RESUME]
- rename_existing: BASE_RESUME
- default_parameter_E: 2 #edit to your retract length
- gcode:
- G91
- G1 E{E} F2100
- G90
- RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
- BASE_RESUME
- [gcode_macro CANCEL_PRINT]
- rename_existing: BASE_CANCEL_PRINT
- gcode:
- TURN_OFF_HEATERS
- CLEAR_PAUSE
- SDCARD_RESET_FILE
- BASE_CANCEL_PRINT
- [gcode_macro BED_MESH_CALIBRATE]
- rename_existing: BASE_BED_MESH_CALIBRATE
- gcode:
- #before the original gcode
- BED_MESH_CLEAR
- QUAD_GANTRY_LEVEL
- G1 X125 Y125 Z5 F6000
- #the original gcode
- BASE_BED_MESH_CALIBRATE
- #after the original gcod
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [bltouch]
- #*# z_offset = 0.700
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement