How to run TMC2209 with UART mode (V2.0 2.5) - markniu/PandaPi GitHub Wiki
-
Wiring
-
Attaching the TMC2209 to raspberrypi UART
-
For Pandapi V2.0
-
For Pandapi V2.5
-
Jumpers setting for uart and address of TMC2209, and then plug in TMC2209
- For sensorless homing, you must plug in the DIAG pin which is connected to the limit endstop pin directly in PCB.
- If you use limit endstop instead of sensorless homing, the DIAG pin is not used,and not allowed to plug in,so you can bend it like the following or cut off the DIAG pin on the driver.
3.If you use TMC2209 v3.0 from Fysect. To make UART working you must mod your driver. Cut one wire and remove two jumpers. Then solder. Take a look at pictures
-
Configure TMC2209 for Marlin2.0.x
1.the address setting is in the Configuration_adv.h
/**
* Four TMC2209 drivers can use the same HW/SW serial port with hardware configured addresses.
* Set the address using jumpers on pins MS1 and MS2.
* Address | MS1 | MS2
* 0 | LOW | LOW
* 1 | HIGH | LOW
* 2 | LOW | HIGH
* 3 | HIGH | HIGH
*
* Set *_SERIAL_TX_PIN and *_SERIAL_RX_PIN to match for all drivers
* on the same serial port, either here or in your board's pins file.
*/
#define X_SLAVE_ADDRESS 0
#define Y_SLAVE_ADDRESS 1
#define Z_SLAVE_ADDRESS 2
#define E0_SLAVE_ADDRESS 3
#define E1_SLAVE_ADDRESS 3
#define E2_SLAVE_ADDRESS 3
- Edit the "Configuration.h", open the sensorless homing and X/Y driver type to TMC2209.
before:
#define X_DRIVER_TYPE A4988
#define Y_DRIVER_TYPE A4988
after:
#define X_DRIVER_TYPE TMC2209
#define Y_DRIVER_TYPE TMC2209
- make sure the baudrate to 115200
#define BAUDRATE 115200
- Open the sensorless homing in Configuration_adv.h
before:
//#define SENSORLESS_HOMING // StallGuard capable drivers only
after:
#define SENSORLESS_HOMING // StallGuard capable drivers only
click"Save this file" and "Verify", and then "Run"
you can also set the current or sensitive value of the sensorless homing on the screen.
FAQ:
Testing X connection... Error: All LOW
Recv: Testing Y connection... Error: All LOW
Recv: Testing Z connection... Error: All LOW
Recv: Testing E connection... Error: All LOW
The reason of this TMC Error message is that with write only access to TMC, and there is no RXD connection in the hardware. So that's normal.