From cb414ae9142b951714a206c0c4fc4366c945eae2 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 26 Mar 2020 11:40:21 -0400 Subject: [PATCH] config: Add example generic-mks-robin-nano.cfg config Reported by @thucar. Signed-off-by: Kevin O'Connor --- config/generic-mks-robin-nano.cfg | 92 +++++++++++++++++++++++++++++++ test/klippy/printers.test | 1 + 2 files changed, 93 insertions(+) create mode 100644 config/generic-mks-robin-nano.cfg diff --git a/config/generic-mks-robin-nano.cfg b/config/generic-mks-robin-nano.cfg new file mode 100644 index 00000000..0db45693 --- /dev/null +++ b/config/generic-mks-robin-nano.cfg @@ -0,0 +1,92 @@ +# 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 the example.cfg file for a description of available parameters. + +[stepper_x] +step_pin: PE3 +dir_pin: !PE2 +enable_pin: !PE4 +step_distance: .01 +endstop_pin: !PA15 +position_endstop: 0 +position_max: 200 +homing_speed: 50 + +[stepper_y] +step_pin: PE0 +dir_pin: !PB9 +enable_pin: !PE1 +step_distance: .01 +endstop_pin: !PA12 +position_endstop: 230 +position_max: 230 +homing_speed: 50 + +[stepper_z] +step_pin: PB5 +dir_pin: PB4 +enable_pin: !PB8 +step_distance: .0025 +endstop_pin: !PA11 +position_endstop: 0.5 +position_max: 200 + +[extruder] +step_pin: PD6 +dir_pin: !PD3 +enable_pin: !PB3 +step_distance: .0021 +nozzle_diameter: 0.400 +filament_diameter: 1.750 +heater_pin: PC3 +sensor_type: ATC Semitec 104GT-2 +sensor_pin: PC1 +control: pid +pid_Kp: 14.669 +pid_Ki: 0.572 +pid_Kd: 94.068 +min_temp: 0 +max_temp: 250 + +#[extruder1] +#step_pin: PA6 +#dir_pin: !PA1 +#enable_pin: !PA3 +#heater_pin: PB0 +#sensor_pin: PC2 +#... + +[heater_bed] +heater_pin: PA0 +sensor_type: EPCOS 100K B57560G104F +sensor_pin: PC0 +control: pid +pid_Kp: 325.10 +pid_Ki: 63.35 +pid_Kd: 417.10 +min_temp: 0 +max_temp: 130 + +[fan] +pin: PB1 + +[mcu] +serial: /dev/ttyUSB0 +restart_method: command + +[printer] +kinematics: corexy +max_velocity: 250 +max_accel: 4500 +max_z_velocity: 25 +max_z_accel: 100 diff --git a/test/klippy/printers.test b/test/klippy/printers.test index d38bea06..698ae30f 100644 --- a/test/klippy/printers.test +++ b/test/klippy/printers.test @@ -113,6 +113,7 @@ CONFIG ../../config/generic-bigtreetech-skr-e3-dip.cfg DICTIONARY stm32f103-serial.dict CONFIG ../../config/generic-fysetc-cheetah-v1.1.cfg CONFIG ../../config/generic-fysetc-cheetah-v1.2.cfg +CONFIG ../../config/generic-mks-robin-nano.cfg # Printers using the stm32f407 DICTIONARY stm32f407.dict