Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This file contains common pin mappings for Sovol Sv01 printer. To
- # use this config, the firmware should be compiled for the AVR
- # atmega2560.
- # See docs/Config_Reference.md for a description of parameters.
- [virtual_sdcard]
- path: ~/printer_data/gcodes
- on_error_gcode:
- CANCEL_PRINT
- [pause_resume]
- [gcode_macro CANCEL_PRINT]
- description: Cancel the actual running print
- rename_existing: CANCEL_PRINT_BASE
- gcode:
- TURN_OFF_HEATERS
- CANCEL_PRINT_BASE
- [stepper_x]
- step_pin: PF0
- dir_pin: PF1
- enable_pin: !PD7
- microsteps: 16
- rotation_distance: 40
- endstop_pin: ^PE5
- position_endstop: 0
- position_max: 300
- homing_speed: 50
- [stepper_y]
- step_pin: PF6
- dir_pin: PF7
- enable_pin: !PF2
- microsteps: 16
- rotation_distance: 40
- endstop_pin: ^PJ1
- position_endstop: 0
- position_max: 255
- homing_speed: 50
- [stepper_z]
- step_pin: rpi:gpio23
- dir_pin: rpi:gpio25
- enable_pin: !rpi:gpio18
- microsteps: 16
- rotation_distance: 8
- endstop_pin: probe:z_virtual_endstop
- #position_endstop: 0
- position_max: 310
- Position_min:0 # -5 #(USED FOR INITIAL SETUPONLY FOR PROBE OFFSET)
- [stepper_z1]
- step_pin: rpi:gpio27
- dir_pin: rpi:gpio22
- enable_pin: !rpi:gpio17
- microsteps: 16
- rotation_distance: 8
- [safe_z_home]
- home_xy_position: 178,123 #Bedsize: 300 x 255 x 310 (need to also include bltouch offset)
- speed: 50
- z_hop: 10 #move up 10mm
- z_hop_speed: 5
- [extruder]
- step_pin: PA4
- dir_pin: !PA6
- enable_pin: !PA2
- microsteps: 16
- rotation_distance: 7.680 #7.797676
- nozzle_diameter: 0.400
- filament_diameter: 1.750
- heater_pin: PB4
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PK5
- control = pid
- pid_kp = 25.741
- pid_ki = 1.532
- pid_kd = 108.113
- min_temp: 0
- max_temp: 265
- pressure_advance =.04
- max_extrude_only_distance: 105.0
- [heater_bed]
- heater_pin: PH5
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PK6
- control: pid
- pid_Kp: 72.698
- pid_Ki: 2.244
- pid_Kd: 588.853
- min_temp: 0
- max_temp: 110
- #[filament_switch_sensor my_sensor]
- #switch_pin: PE4
- #pause_on_runout: True
- [fan]
- pin: PH6
- [mcu]
- serial: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AB0K5FSK-if00-port0
- [printer]
- kinematics: cartesian
- #Bedsize: 300 x 255 x 310
- max_velocity: 300
- max_accel: 3000
- max_z_velocity: 5
- max_z_accel: 100
- [display]
- lcd_type: st7920
- cs_pin: PH1
- sclk_pin: PA1
- sid_pin: PH0
- encoder_pins: ^PC4, ^PC6
- click_pin: ^!PC2
- [z_tilt]
- z_positions:
- -35, 127.5
- 335, 127.5
- points:
- 65, 124
- 240, 124
- speed: 100
- horizontal_move_z: 10
- retries: 5
- retry_tolerance: 0.02
- #[bed_screws]
- #screw1: 38,35
- #screw2: 242,35
- #screw3: 242,214
- #screw4: 38,214
- [screws_tilt_adjust]
- screw1: 69,43
- screw1_name: front left screw
- screw2: 276,43
- screw2_name: front right screw
- screw3: 276,217
- screw3_name: rear right screw
- screw4: 69,217
- screw4_name: rear left screw
- horizontal_move_z: 10.
- speed: 50.
- screw_thread: CW-M4
- [bltouch]
- sensor_pin: ^rpi:gpio24
- control_pin: rpi:gpio5
- x_offset: -35
- y_offset: -1
- z_offset: 1.572 # 1.486 #1.475 #1.426 #1.294 #1.374 #1.174
- speed: 3.0 # Slower, steady probing speed (mm/s)
- lift_speed: 7.0 # Faster lift speed between probes
- samples: 3 # Probes 3 times per point
- samples_result: median # Uses the median of the 3 readings to throw out outliers
- samples_tolerance: 0.01 # Re-probes if samples vary by more than 0.01mm
- samples_tolerance_retries: 3 # Allows up to 3 retries if a sample is out of tolerance
- #pin_up_touch_mode_reports_triggered: False
- #stow_on_each_sample: False
- #probe_with_touch_mode: True # <--- Forces BLTouch to keep pin state active during probe
- #pin_up_touch_mode_reports_triggered: False
- #https://www.klipper3d.org/BLTouch.html
- [bed_mesh]
- speed: 120
- horizontal_move_z: 5
- mesh_min: 32,35
- mesh_max: 240,212
- probe_count: 3,3
- mesh_pps: 2,3
- algorithm: bicubic
- bicubic_tension: 0.2
- fade_start: 1
- fade_end: 10
- fade_target: 0
- [bed_mesh default]
- version = 1
- points =
- 0.105594, 0.002437, -0.160015
- 0.072291, 0.003249, -0.123463
- -0.064981, -0.057670, -0.168950
- x_count = 3
- y_count = 3
- mesh_x_pps = 2
- mesh_y_pps = 3
- algo = bicubic
- tension = 0.2
- min_x = 32.0
- max_x = 240.0
- min_y = 35.0
- max_y = 212.0
- [skew_correction]
- #SET_SKEW XY=141.51, 141.57, 100.1 XZ=143.40, 142.92, 100 YZ=143.34, 142.94, 100
- [skew_correction my_skew_profile]
- xy_skew = -0.000423908476775625
- xz_skew = 0.0033538790509834502
- yz_skew = 0.0027952689512573984
- # 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
- #*# <------------------MACROS---------------------->
- [gcode_macro START_PRINT]
- gcode:
- {% set BED_TEMP = params.BED_TEMP|default(60)|float %}
- {% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(190)|float %}
- # Heat bed for probing
- M190 S{BED_TEMP}
- # Use absolute coordinates
- G90
- # Home the printer
- G28
- #Reset BLtouchstate
- BLTOUCH_DEBUG COMMAND=reset
- # If you are using Z-Tilt:
- Z_TILT_ADJUST
- # If you are generating a new bed mesh:
- BED_MESH_CALIBRATE
- # If you are loading an existing mesh:
- #BED_MESH_PROFILE LOAD=default
- # Move the nozzle near the bed
- G1 Z5 F3000
- # Set and wait for nozzle to reach printing temperature
- M109 S{EXTRUDER_TEMP}
- #PRIME_LINE
- SKEW_PROFILE LOAD=my_skew_profile
- # Start printing!
- [gcode_macro PRIME_LINE]
- gcode:
- G92 E0 ; Reset Extruder
- G1 Z2.0 F3000 ; Move Z Axis up
- G1 X10.1 Y20 Z0.2 F5000.0 ; Move to start position
- G1 X10.1 Y150.0 Z0.28 F1500.0 E15 ; Draw the first line
- G1 X10.4 Y150.0 Z0.28 F5000.0 ; Move to side a little
- G1 X10.4 Y20 Z0.28 F1500.0 E30 ; Draw the second line
- #G1 E-.2 F300 ; retract a little bit
- #G1 E.2 F300; reprime
- G92 E0 ; Reset Extruder
- G1 Z2.0 F3000 ; Move Z Axis up
- [gcode_macro END_PRINT]
- gcode:
- # Move nozzle away from print while retracting
- SET_SKEW CLEAR=1
- G91
- G1 X-2 Y-2 E-6 F300
- # Raise nozzle by 10mm
- G1 Z10 F3000
- G90
- G1 X{printer.toolhead.axis_minimum.x + 5} Y{printer.toolhead.axis_maximum.y - 5} ; Present print
- # Turn off bed, extruder, and fan
- M140 S0
- M104 S0
- M106 S0
- # Disable steppers
- M84
- [gcode_macro LOAD_FILAMENT]
- gcode:
- {% set speed = params.SPEED|default(300) %}
- {% set max_velocity = printer.configfile.settings['extruder'].max_extrude_only_velocity %}
- SAVE_GCODE_STATE NAME=load_state
- M83
- G91
- G92 E0
- G1 E50 F{max_velocity} # fast-load
- G1 E25 F{speed} # purge
- G92 E0
- M82
- RESTORE_GCODE_STATE NAME=load_state
- [gcode_macro UNLOAD_FILAMENT]
- gcode:
- {% set speed = params.SPEED|default(300) %}
- {% set max_velocity = printer.configfile.settings['extruder'].max_extrude_only_velocity %}
- SAVE_GCODE_STATE NAME=unload_state
- G91
- G92 E0
- G1 E50 F{speed} # purge
- G1 E-100 F{max_velocity} # fast-unload
- RESTORE_GCODE_STATE NAME=unload_state
- [mcu rpi]
- serial: /tmp/klipper_host_mcu
- [adxl345]
- cs_pin: rpi:None
- [resonance_tester]
- accel_chip: adxl345
- probe_points:
- 100, 100, 20 # an example
- [input_shaper]
- shaper_freq_x: 59.2
- shaper_type_x: mzv
- shaper_freq_y: 35.4
- shaper_type_y: mzv
- [printer]
- max_accel: 3700 # should not exceed the estimated max_accel for X and Y axes
Advertisement
Add Comment
Please, Sign In to add comment