Daniels Lab Wiki

It is worth noting that.

Benutzer-Werkzeuge

Webseiten-Werkzeuge


projekte:3d-printing:anycubic-mega-s:klipper

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
projekte:3d-printing:anycubic-mega-s:klipper [2021/12/05 01:52] – [Calibrate PID settings] danielprojekte:3d-printing:anycubic-mega-s:klipper [2023/06/22 15:53] (aktuell) daniel
Zeile 2: Zeile 2:
  
 ===== Klipper Config Check ===== ===== Klipper Config Check =====
 +
 +[[https://docs.fluidd.xyz/configuration/initial_setup]]
  
 [[https://www.klipper3d.org/Config_checks.html]] [[https://www.klipper3d.org/Config_checks.html]]
Zeile 27: Zeile 29:
  
 <code python printer.cfg [enable_line_numbers="true"]> <code python printer.cfg [enable_line_numbers="true"]>
 +
 # This file contains pin mappings for the Anycubic i3 Mega with # This file contains pin mappings for the Anycubic i3 Mega with
 # Ultrabase from 2017. (This config may work on an Anycubic i3 Mega v1 # Ultrabase from 2017. (This config may work on an Anycubic i3 Mega v1
Zeile 37: Zeile 40:
 [stepper_x] [stepper_x]
 step_pin: PF0 step_pin: PF0
-dir_pin: !PF1+dir_pin: PF1
 enable_pin: !PD7 enable_pin: !PD7
 microsteps: 16 microsteps: 16
Zeile 49: Zeile 52:
 [stepper_y] [stepper_y]
 step_pin: PF6 step_pin: PF6
-dir_pin: PF7+dir_pin: !PF7
 enable_pin: !PF2 enable_pin: !PF2
 microsteps: 16 microsteps: 16
Zeile 60: Zeile 63:
 [stepper_z] [stepper_z]
 step_pin: PL3 step_pin: PL3
-dir_pin: PL1+dir_pin: !PL1
 enable_pin: !PK0 enable_pin: !PK0
 microsteps: 16 microsteps: 16
Zeile 71: Zeile 74:
 [stepper_z1] [stepper_z1]
 step_pin: PC1 step_pin: PC1
-dir_pin: PC3+dir_pin: !PC3
 enable_pin: !PC7 enable_pin: !PC7
 microsteps: 16 microsteps: 16
Zeile 79: Zeile 82:
 [extruder] [extruder]
 step_pin: PA4 step_pin: PA4
-dir_pin: PA6+dir_pin: !PA6
 enable_pin: !PA2 enable_pin: !PA2
 microsteps: 16 microsteps: 16
-#rotation_distance: 34.557 +rotation_distance: 34.557
-rotation_distance: 7.808+
 nozzle_diameter: 0.400 nozzle_diameter: 0.400
 filament_diameter: 1.750 filament_diameter: 1.750
Zeile 89: Zeile 91:
 sensor_type: ATC Semitec 104GT-2 sensor_type: ATC Semitec 104GT-2
 sensor_pin: PK5 sensor_pin: PK5
-control: pid +#control: pid 
-pid_Kp: 15.717 +#pid_Kp: 15.717 
-pid_Ki: 0.569 +#pid_Ki: 0.569 
-pid_Kd: 108.451+#pid_Kd: 108.451
 min_temp: 0 min_temp: 0
 max_temp: 245 max_temp: 245
Zeile 103: Zeile 105:
 sensor_type: EPCOS 100K B57560G104F sensor_type: EPCOS 100K B57560G104F
 sensor_pin: PK6 sensor_pin: PK6
-control: pid +#control: pid 
-pid_Kp: 74.883 +#pid_Kp: 74.883 
-pid_Ki: 1.809 +#pid_Ki: 1.809 
-pid_Kd: 775.038+#pid_Kd: 775.038
 min_temp: 0 min_temp: 0
 max_temp: 110 max_temp: 110
Zeile 114: Zeile 116:
  
 [mcu] [mcu]
-serial: /dev/ttyUSB0+serial: /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0
  
 [printer] [printer]
Zeile 125: Zeile 127:
 [heater_fan stepstick_fan] [heater_fan stepstick_fan]
 pin: PH4 pin: PH4
 +
 +# additional manual config
 +# see https://docs.fluidd.xyz/configuration/initial_setup
  
 [virtual_sdcard] [virtual_sdcard]
-path: ~/gcode_files+path:/home/pi/printer_data/gcodes
  
 [display_status] [display_status]
  
 [pause_resume] [pause_resume]
 +
 +[gcode_macro PAUSE]
 +description: Pause the actual running print
 +rename_existing: PAUSE_BASE
 +# change this if you need more or less extrusion
 +variable_extrude: 1.0
 +gcode:
 +  ##### read E from pause macro #####
 +  {% set E = printer["gcode_macro PAUSE"].extrude|float %}
 +  ##### set park positon for x and y #####
 +  # default is your max posion from your printer.cfg
 +  {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
 +  {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
 +  ##### calculate save lift position #####
 +  {% set max_z = printer.toolhead.axis_maximum.z|float %}
 +  {% set act_z = printer.toolhead.position.z|float %}
 +  {% if act_z < (max_z - 2.0) %}
 +      {% set z_safe = 2.0 %}
 +  {% else %}
 +      {% set z_safe = max_z - act_z %}
 +  {% endif %}
 +  ##### end of definitions #####
 +  PAUSE_BASE
 +  G91
 +  {% if printer.extruder.can_extrude|lower == 'true' %}
 +    G1 E-{E} F2100
 +  {% else %}
 +    {action_respond_info("Extruder not hot enough")}
 +  {% endif %}
 +  {% if "xyz" in printer.toolhead.homed_axes %}
 +    G1 Z{z_safe} F900
 +    G90
 +    G1 X{x_park} Y{y_park} F6000
 +  {% else %}
 +    {action_respond_info("Printer not homed")}
 +  {% endif %} 
 +
 +[gcode_macro RESUME]
 +description: Resume the actual running print
 +rename_existing: RESUME_BASE
 +gcode:
 +  ##### read E from pause macro #####
 +  {% set E = printer["gcode_macro PAUSE"].extrude|float %}
 +  #### get VELOCITY parameter if specified ####
 +  {% if 'VELOCITY' in params|upper %}
 +    {% set get_params = ('VELOCITY=' + params.VELOCITY)  %}
 +  {%else %}
 +    {% set get_params = "" %}
 +  {% endif %}
 +  ##### end of definitions #####
 +  {% if printer.extruder.can_extrude|lower == 'true' %}
 +    G91
 +    G1 E{E} F2100
 +  {% else %}
 +    {action_respond_info("Extruder not hot enough")}
 +  {% endif %}  
 +  RESUME_BASE {get_params}
  
 [gcode_macro CANCEL_PRINT] [gcode_macro CANCEL_PRINT]
Zeile 149: Zeile 211:
   G92 E0                        ; zero the extruded length again   G92 E0                        ; zero the extruded length again
   M117 Printing...   M117 Printing...
 + 
 [gcode_macro END_PRINT] [gcode_macro END_PRINT]
 gcode: gcode:
Zeile 166: Zeile 228:
   _TIMELAPSE_NEW_FRAME   _TIMELAPSE_NEW_FRAME
   M300                          ; Beep   M300                          ; Beep
 +
 +#*# <---------------------- SAVE_CONFIG ---------------------->
 +#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
 +#*#
 +#*# [extruder]
 +#*# control = pid
 +#*# pid_kp = 20.315
 +#*# pid_ki = 0.748
 +#*# pid_kd = 137.890
 +#*#
 +#*# [heater_bed]
 +#*# control = pid
 +#*# pid_kp = 73.517
 +#*# pid_ki = 1.696
 +#*# pid_kd = 796.738
  
 </code> </code>
  
  
projekte/3d-printing/anycubic-mega-s/klipper.1638665544.txt.gz · Zuletzt geändert: 2021/12/05 01:52 von daniel

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki