makerbase-mks / MKS-Robin-Nano-V1.X

MKS Robin Nano is a powerful 32-bit 3D printer control board with STM32F103VET6. Support Marlin2.0. Support MKS Robin TFT24/28/32/35/43 touch Screens. The motherboard integrates 5 AXIS interface, hot bed, 2 heating heads, 3 NTC100K, 1 MAX31855.The motherboard integrates After shutdown. Support MKS Robin WIFI for cloud printing and supports firmware update by SD card…
https://www.aliexpress.com/item/33013776323.html?spm=2114.12010612.8148356.5.320565f4m9CS1x
197 stars 75 forks source link

how to use UART mode with TMC2225 #78

Closed system3rd closed 3 years ago

system3rd commented 3 years ago

Hello

I have Robin nano V1.2 with TMC2225 and I don't know how to use UART mode.

as MKS youtube instruction, https://youtu.be/7ShcFKXrVHo?t=34 it should be soldered and wired to wifi socket.

but regarding to tmc2225 datasheet, https://wiki.fysetc.com/TMC2225/ tmc2225 don't need to soldering.

please let me know how to use uart with tmc2225.

Thanks~!

mks-viva commented 3 years ago

Hi! It is easy. You only need settings like follow:

  1. Acording to MKS youtube setting X Y Z E wiring
  2. Firmware setting and add pin define:

    • Setting drive type is: TMC2208()
    • Add pin define
      
      #if HAS_TMC_UART
      /**
    • TMC2208/TMC2209 stepper drivers
    • Hardware serial communication ports.
    • If undefined software serial is used according to the pins below */ //#define X_HARDWARE_SERIAL Serial //#define X2_HARDWARE_SERIAL Serial1 //#define Y_HARDWARE_SERIAL Serial1 //#define Y2_HARDWARE_SERIAL Serial1 //#define Z_HARDWARE_SERIAL Serial1 //#define Z2_HARDWARE_SERIAL Serial1 //#define E0_HARDWARE_SERIAL Serial1 //#define E1_HARDWARE_SERIAL Serial1 //#define E2_HARDWARE_SERIAL Serial1 //#define E3_HARDWARE_SERIAL Serial1 //#define E4_HARDWARE_SERIAL Serial1

    // // Software serial //

    define X_SERIAL_TX_PIN PA10

    define X_SERIAL_RX_PIN PA10

    define Y_SERIAL_TX_PIN PA9

    define Y_SERIAL_RX_PIN PA9

    define Z_SERIAL_TX_PIN PC7

    define Z_SERIAL_RX_PIN PC7

    define E0_SERIAL_TX_PIN PC13

    define E0_SERIAL_RX_PIN PC13

    // Reduce baud rate to improve software serial reliability

    define TMC_BAUD_RATE 19200

    endif // TMC2208 || TMC2209

system3rd commented 3 years ago

Hi! It is easy. You only need settings like follow:

  1. Acording to MKS youtube setting X Y Z E wiring
  2. Firmware setting and add pin define:
  • Setting drive type is: TMC2208()
  • Add pin define
#if HAS_TMC_UART
/**
 * TMC2208/TMC2209 stepper drivers
 *
 * Hardware serial communication ports.
 * If undefined software serial is used according to the pins below
 */
//#define X_HARDWARE_SERIAL  Serial
//#define X2_HARDWARE_SERIAL Serial1
//#define Y_HARDWARE_SERIAL  Serial1
//#define Y2_HARDWARE_SERIAL Serial1
//#define Z_HARDWARE_SERIAL  Serial1
//#define Z2_HARDWARE_SERIAL Serial1
//#define E0_HARDWARE_SERIAL Serial1
//#define E1_HARDWARE_SERIAL Serial1
//#define E2_HARDWARE_SERIAL Serial1
//#define E3_HARDWARE_SERIAL Serial1
//#define E4_HARDWARE_SERIAL Serial1

//
// Software serial
//

#define X_SERIAL_TX_PIN                   PA10
#define X_SERIAL_RX_PIN                   PA10

#define Y_SERIAL_TX_PIN                   PA9
#define Y_SERIAL_RX_PIN                   PA9

#define Z_SERIAL_TX_PIN                   PC7
#define Z_SERIAL_RX_PIN                   PC7

#define E0_SERIAL_TX_PIN                  PC13
#define E0_SERIAL_RX_PIN                  PC13

// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE                    19200
#endif // TMC2208 || TMC2209

Thanks for your reply!! but tmc 2225 datasheet has different board layout with tmc2208. (R8 and UART -> TX and RX) do I have to soldering TX and RX on tmc2225? and wiring to wifi socket as mks youtube?

mks-viva commented 3 years ago

You can connect to RX and test it. Tx need not connect. image

system3rd commented 3 years ago

You can connect to RX and test it. Tx need not connect. image

OK. soldering RX and wiring to wifi socket!! I will try this weekend. Thanks!!

mks-viva commented 3 years ago

It is will working?

mks-viva commented 3 years ago

Has this issues be resolved, if there is no response, I will temporarily close it.

adamo000 commented 1 year ago

@mks-viva, how about Robin Nano 1.3-s? Is it possible on this version? The mainboard has 4x soldered TMC2225 with 1x pluggable driver.

Serox13 commented 1 year ago

@mks-viva, how about Robin Nano 1.3-s? Is it possible on this version? The mainboard has 4x soldered TMC2225 with 1x pluggable driver.

you just use the TMC 2208 uart configs in klipper and it should work. TMC2225 and 2208 get used on big tree tech boards and they just use TMC2208 uart configs