From e697fc11af515e40bd097c4ba226da166c8a4521 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 30 Dec 2018 14:38:28 -0500 Subject: [PATCH] config: Add an example config for the Duet2 Maestro Signed-off-by: Kevin O'Connor --- config/generic-duet2-maestro.cfg | 128 +++++++++++++++++++++++++++++++ test/klippy/printers.test | 4 + 2 files changed, 132 insertions(+) create mode 100644 config/generic-duet2-maestro.cfg diff --git a/config/generic-duet2-maestro.cfg b/config/generic-duet2-maestro.cfg new file mode 100644 index 00000000..1e214621 --- /dev/null +++ b/config/generic-duet2-maestro.cfg @@ -0,0 +1,128 @@ +# This file contains common pin mappings for the Duet2 Maestro. To use +# this config, the firmware should be compiled for the sam4s8c. + +# See the example.cfg file for a description of available parameters. + +[stepper_x] +step_pin: PC20 +dir_pin: PC18 +enable_pin: !PA1 +step_distance: .0125 +endstop_pin: ^PA24 +position_endstop: 0 +position_max: 200 +homing_speed: 50 + +[tmc2208 stepper_x] +uart_pin: PA9 +tx_pin: PA10 +select_pins: !PC14, !PC16, !PC17 +microsteps: 16 +run_current: 0.800 +stealthchop_threshold: 250 + +[stepper_y] +step_pin: PC2 +dir_pin: PA8 +enable_pin: !PA1 +step_distance: .0125 +endstop_pin: ^PB6 +position_endstop: 0 +position_max: 200 +homing_speed: 50 + +[tmc2208 stepper_y] +uart_pin: PA9 +tx_pin: PA10 +select_pins: PC14, !PC16, !PC17 +microsteps: 16 +run_current: 0.800 +stealthchop_threshold: 250 + +[stepper_z] +step_pin: PC28 +dir_pin: PB4 +enable_pin: !PA1 +step_distance: .0025 +endstop_pin: ^PC10 +position_endstop: 0.5 +position_max: 200 + +[tmc2208 stepper_z] +uart_pin: PA9 +tx_pin: PA10 +select_pins: !PC14, PC16, !PC17 +microsteps: 16 +run_current: 0.800 +stealthchop_threshold: 30 + +[extruder] +step_pin: PC4 +dir_pin: PB7 +enable_pin: !PA1 +step_distance: .002 +nozzle_diameter: 0.400 +filament_diameter: 1.750 +heater_pin: PC1 +sensor_type: EPCOS 100K B57560G104F +sensor_pin: PB0 +control: pid +pid_Kp: 22.2 +pid_Ki: 1.08 +pid_Kd: 114 +min_temp: 0 +max_temp: 250 + +[tmc2208 extruder] +uart_pin: PA9 +tx_pin: PA10 +select_pins: PC14, PC16, !PC17 +microsteps: 16 +run_current: 0.800 +stealthchop_threshold: 5 + +#[extruder1] +#step_pin: PC5 +#dir_pin: PC6 +#enable_pin: !PA1 +#heater_pin: PA16 +#sensor_pin: PC30 +#... +#select_pins: !PC14, !PC16, PC17 + +# External steppers +# e2: step_pin=PC31 dir_pin=PA18 enable_pin=PC27 select_pins=PC14,!PC16,PC17 +# e3: step_pin=PC21 dir_pin=PC24 enable_pin=PC25 select_pins=!PC14,PC16,PC17 +# e0_stop: endstop_pin=PA25 +# e1_stop: endstop_pin=PC7 +# c_temp: sensor_pin=PB1 + +[heater_bed] +heater_pin: PC0 +sensor_type: EPCOS 100K B57560G104F +sensor_pin: PA20 +control: watermark +min_temp: 0 +max_temp: 130 + +[fan] +pin: PC23 # FAN0 + +#[heater_fan nozzle_cooling_fan] +#pin: PC22 # FAN1 + +#[heater_fan board_cooling_fan] +#pin: PC29 # FAN2 + +[mcu] +serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00 + +[printer] +kinematics: cartesian +max_velocity: 300 +max_accel: 3000 +max_z_velocity: 5 +max_z_accel: 100 + +[static_digital_output led] +pins: !PC26 diff --git a/test/klippy/printers.test b/test/klippy/printers.test index d3b3ca44..1e699aa1 100644 --- a/test/klippy/printers.test +++ b/test/klippy/printers.test @@ -60,6 +60,10 @@ CONFIG ../../config/generic-printrboard.cfg DICTIONARY sam3x8e.dict CONFIG ../../config/generic-radds.cfg +# Printers using the sam4s8c +DICTIONARY sam4s8c.dict +CONFIG ../../config/generic-duet2-maestro.cfg + # Printers using the sam4e8e DICTIONARY sam4e8e.dict CONFIG ../../config/generic-duet2.cfg