From 5bcf9f02cf5c307eb4a323dcf4c21b1ac9d22d67 Mon Sep 17 00:00:00 2001 From: Montbel <48642127+Montbel@users.noreply.github.com> Date: Tue, 19 Mar 2019 08:24:03 +0100 Subject: [PATCH] config: Added Anycubic 4Max printer config file Signed-off-by: Christian Toulon christian@bouncy-studio.com Signed-off-by: Kevin O'Connor --- config/printer-anycubic-4max-2018.cfg | 127 ++++++++++++++++++++++++++ test/klippy/printers.test | 3 +- 2 files changed, 129 insertions(+), 1 deletion(-) create mode 100644 config/printer-anycubic-4max-2018.cfg diff --git a/config/printer-anycubic-4max-2018.cfg b/config/printer-anycubic-4max-2018.cfg new file mode 100644 index 00000000..96f25aed --- /dev/null +++ b/config/printer-anycubic-4max-2018.cfg @@ -0,0 +1,127 @@ +# Klipper firmware config file for Anycubic 4Max. To use this config, +# the firmware should be compiled for the AVR atmega2560. + +# See the example.cfg file for a description of available parameters. + +[stepper_x] +step_pin: ar54 +dir_pin: ar55 +enable_pin: !ar38 +step_distance: .0125 +endstop_pin: ^!ar3 +position_min: -2 +position_endstop: -2 +position_max: 205 +homing_speed: 60.0 + +[stepper_y] +step_pin: ar60 +dir_pin: ar61 +enable_pin: !ar56 +step_distance: .0125 +endstop_pin: ^!ar14 +position_endstop: 0 +position_max: 215 +homing_speed: 60.0 + +[stepper_z] +step_pin: ar46 +dir_pin: ar48 +enable_pin: !ar62 +step_distance: .0025 +endstop_pin: ^!ar18 +position_endstop: 0.5 +position_max: 305 +homing_speed: 8.0 + +[extruder] +step_pin: ar26 +dir_pin: ar28 +enable_pin: !ar24 +step_distance: 0.010354 +nozzle_diameter: 0.400 +filament_diameter: 1.750 +max_extrude_only_distance: 2000 +heater_pin: ar10 +sensor_type: ATC Semitec 104GT-2 +sensor_pin: analog13 +control: pid +pid_kp: 27.725 +pid_ki: 1.224 +pid_kd: 156.991 +min_temp: 0 +max_temp: 300 + +[heater_bed] +heater_pin: ar8 +sensor_type: EPCOS 100K B57560G104F +sensor_pin: analog14 +control: pid +pid_kp: 73.735 +pid_ki: 1.437 +pid_kd: 945.653 +min_temp: 0 +max_temp: 110 + +[fan] +pin: ar9 +kick_start_time: 1.0 + +[mcu] +serial: /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0 +pin_map: arduino + +[printer] +kinematics: cartesian +max_velocity: 1200 +max_accel: 1500 +max_z_velocity: 40 +max_z_accel: 60 + +[heater_fan extruder_fan] +pin: ar44 + +[heater_fan stepstick_fan] +pin: ar7 +kick_start_time: 1.0 + +[display] +lcd_type: st7920 +cs_pin: ar16 +sclk_pin: ar23 +sid_pin: ar17 +encoder_pins: ^ar31, ^ar33 +click_pin: ^!ar35 +kill_pin: ^!ar41 + +[filament_switch_sensor e0_sensor] +switch_pin: ar19 + +[gcode_macro START_PRINT] +gcode: + M117 Starting... + G90 ; absolute positioning + M107 ; start with the fan off + G28 ; Home + G0 X5 Y5 F4500 ; Go to front + G0 Z0.3 ; Drop to bed + G92 E0 ; zero the extruded length + G1 Y40 E15 F500 ; Extrude 15mm of filament in a 4cm line + G92 E0 ; zero the extruded length + G1 Y80 F4000 ; Quickly wipe away from the filament line + G1 Z1 ; Raise and begin printing. + M117 Printing... + +[gcode_macro END_PRINT] +gcode: + M117 End printing. + G91 ; relative positioning + G1 E-1 F300 ;retract the filament a bit before lifting the nozzle to release some of the pressure + G1 Z+5 E-2 F1000 ;move Z up a bit and extract a bit more + G90 ; absolute positioning + G1 X0 F2000 ; move X to min endstops so the head is out of the way + G1 Y200 F2000 ; Move Y to the back + m104 S0 ; turn hotend heating off + M140 S0 ; turn bed heating off + M107 ; turn fan off + M84 ; steppers off diff --git a/test/klippy/printers.test b/test/klippy/printers.test index a387a9ba..e29e3581 100644 --- a/test/klippy/printers.test +++ b/test/klippy/printers.test @@ -18,6 +18,7 @@ CONFIG ../../config/generic-rambo.cfg CONFIG ../../config/generic-ramps.cfg CONFIG ../../config/generic-rumba.cfg CONFIG ../../config/printer-adimlab-2018.cfg +CONFIG ../../config/printer-anycubic-4max-2018.cfg CONFIG ../../config/printer-anycubic-i3-mega-2017.cfg CONFIG ../../config/printer-anycubic-kossel-2016.cfg CONFIG ../../config/printer-anycubic-kossel-plus-2017.cfg @@ -63,10 +64,10 @@ CONFIG ../../config/generic-duet2.cfg # Printers using the lpc176x DICTIONARY lpc176x.dict +CONFIG ../../config/generic-azteeg-x5-mini-v3.cfg CONFIG ../../config/generic-bigtreetech-skr-v1.1.cfg CONFIG ../../config/generic-re-arm.cfg CONFIG ../../config/generic-smoothieboard.cfg -CONFIG ../../config/generic-azteeg-x5-mini-v3.cfg # Printers using the PRU DICTIONARY pru.dict host=linuxprocess.dict