Help with printer.cfg

Basic Information:

Printer Model: Tevo Tornado
MCU / Printerboard: MKS Robin Nano V3
klippy.log
klippy.log (3.7 KB)

Describe your issue:

…Hi guys, first post.
If someone could take a look at my potential printer.cfg file and let me know if I’ve made any silly mistakes I’d greatly appreciate it. I mashed it together from the generic MKS example config on github and a config I’m running on an Ender 3 with an SKR E3 mini V3.

# This file contains common pin mappings for MKS Robin Nano V3
# boards. To use this config, the firmware should be compiled for the
# stm32f407. When running "make menuconfig", select the 48KiB
# bootloader, and enable "USB for communication".

# The "make flash" command does not work on the MKS Robin. Instead,
# after running "make", copy the generated "out/klipper.bin" file to a
# file named "Robin_nano_v3.bin" on an SD card and then restart the
# MKS Robin with that SD card.

# See docs/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PE3
dir_pin: !PE2
enable_pin: !PE4
microsteps: 16
rotation_distance: 40
endstop_pin: PA15
position_endstop: 0
position_max: 300
homing_speed: 50

[tmc2209 stepper_x]
uart_pin: PD5
run_current: 0.800
hold_current: 0.500
stealthchop_threshold: 999999

[stepper_y]
step_pin: PE0
dir_pin: !PB9
enable_pin: !PE1
microsteps: 16
rotation_distance: 40
endstop_pin: !PD2
position_endstop: 0
position_max: 300
homing_speed: 50

[tmc2209 stepper_y]
uart_pin: PD7
run_current: 0.800
hold_current: 0.500
stealthchop_threshold: 999999

[stepper_z]
step_pin: PB5
dir_pin: PB4
enable_pin: !PB8
microsteps: 16
rotation_distance: 8
endstop_pin: !PC8
position_endstop: 0.5
position_max: 200

[tmc2209 stepper_z]
uart_pin: PD4Untitled Document
run_current: 0.800
hold_current: 0.500
stealthchop_threshold: 999999

[extruder]
step_pin: PD6
dir_pin: !PD3
enable_pin: !PB3
microsteps: 16
rotation_distance: 33.500
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PE5
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

[tmc2209 stepper_EO]
uart_pin: PD9
run_current: 0.800
hold_current: 0.500
stealthchop_threshold: 999999

#[extruder1]
#step_pin: PD15
#dir_pin: !PA1
#enable_pin: !PA3
#heater_pin: PB0
#sensor_pin: PA2
#...

[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: PC14   # fan1
#pin: PB1 # fan2

[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f407xx_000000000000000000000000-if00

[printer]
kinematics: cartesian
max_velocity: 250
max_accel: 4500
max_z_velocity: 25
max_z_accel: 100

########################################
# EXP1 / EXP2 (display) pins
########################################

[board_pins]
aliases:
    # EXP1 header
    EXP1_1=PC5,  EXP1_3=PD13, EXP1_5=PE14, EXP1_7=PD11, EXP1_9=<GND>,
    EXP1_2=PE13, EXP1_4=PC6,  EXP1_6=PE15, EXP1_8=PD10, EXP1_10=<5V>,
    # EXP2 header
    EXP2_1=PA6, EXP2_3=PE8, EXP2_5=PE11, EXP2_7=PE12,  EXP2_9=<GND>,
    EXP2_2=PA5, EXP2_4=PE10, EXP2_6=PA7, EXP2_8=<RST>, EXP2_10=<3.3v>
    # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp1"

# See the MKS Lcd Config path file for definitions of common LCD displays.

So there’s a few things I’m not sure about. I’m using 4 TMC 2209 stepper drivers BTW.
1 Do I need to include a UART address for each driver if I run them all in UART mode?
2 Do I need to specify a hold current?
3 Do I need to specify a TX pin for the drivers?
4 Does the stealthchop_threshold: 999999 put the drivers into spreadcycle mode?
5 Are the current settings a good starting point for the printer (Tevo Tornado)?

Sorry for all the newbie questions, I’ve only ever done one klipper setup before on an Ender 3 and that was a copy and paste config that only needed a few minor tweaks.

I had it setup about 5 years ago with TMC 2208 drivers in UART mode but I could never find the sweet spot for motor current settings. It either ran the drivers too hot and they skipped steps or they would skip steps from lack of motor torque at lower current settings., mostly on the Y axis because of the ungainly big heavy bed it has to sling around.

  1. You need the UART address only if you have up to 4 TMC chips at the same UART pin (see footnote)
  2. No, you don’t need to
  3. No, one pin for UART is enough
  4. Yes
  5. 800 mA is a good start.

Footnote:
The UART address is set with the jumpers that manually set the microsteps. If you have a UART pin for each TMC chip, you have to set the UART address with the jumper to 0 (zero).

1 Like

Awesome EddyM3D, thanks for the reply. I really appreciate it.
It’s all ready to go & I’m a lot more confident I.m on the right track now.

1 Like

Setting stealthchop_threshold: 999999 places the driver in stealthchop mode. If you want spreadcycle mode you should remove that option from the config (or explicitly set it to zero). Configuration reference - Klipper documentation

-Kevin

3 Likes

Thanks Kevin.
I thought I could hear it switching modes with it set like that, maybe it was just a higher step rate I was hearing during non print moves & I was having myself on.
Cheers

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.