Welcome! Log In Create A New Profile

Advanced

wrong sensorless homing with TMC2130 driver on Anet A8

Posted by bretonesf 
wrong sensorless homing with TMC2130 driver on Anet A8
March 20, 2020 05:58PM
Hi everyone,

Due to a failure of the motherboard of my Anet A8, I decided to upgrade it by installing the following kit :

- Arduino 2560 R3
- RAMPS 1.6 PLUS
- TMC2130 drivers on X,Y,Z and E
- Installed the new marlin 2.0.5 with Arduino 1.9.0 beta (because 1.8.12 is always making compiling errors). Please note that the issue I'm about to decribe was the same with marlin 1.1.8, 1.1.9 and bugfix 1.1.x

So far :
- the LCD and SD reader are not connected to the RAMPS, SD support is disabled in Marlin.
- Thanks to RAMPS 1.6plus, no more MOSI, MISO, SCK wires
- mechanical endswitches are removed, X and Y min enstop pins of RAMPS 1.6plus are wired wired diag1 pn on their respective driver and I programmed Marlin for sensorless homing for both X and Y axis (Z axis with BLtouch ok). Y axis is ok.
- the X/Y/Z_chain_pos are at -1

- SPI is not defined
//#define TMC_USE_SW_SPI
//#define TMC_SW_MOSI -1
//#define TMC_SW_MISO -1
//#define TMC_SW_SCK -1

//#define SOFTWARE_DRIVER_ENABLE

#define STEALTHCHOP_XY

#define SENSORLESS_HOMING // StallGuard capable drivers only

#if EITHER(SENSORLESS_HOMING, SENSORLESS_PROBING)
// TMC2209: 0...255. TMC2130: -64...63
#define X_STALL_SENSITIVITY 20
#define X2_STALL_SENSITIVITY X_STALL_SENSITIVITY
#define Y_STALL_SENSITIVITY 4
//#define Z_STALL_SENSITIVITY 8
//#define SPI_ENDSTOPS // TMC2130 only
#define IMPROVE_HOMING_RELIABILITY
#endif

- CS pins are rerouted in the pins_RAMPS.h file:
#define X_CS_PIN 63
#define Y_CS_PIN 40
#define Z_CS_PIN 42
#define E0_CS_PIN 65

Here's the issue : with X in a certain position, can move it positive (right) and negative (left). If I try to X-home, the motor barely moves and starts to whistle. After that, I can move it right as much as I want, and move back als, but I can go more to the left than the "stuck homing position". I hope it's clear enough, my english is not perfect.

Does anyone have any idea of the problem?

Many thanks in advance

Edited 1 time(s). Last edit at 03/20/2020 05:59PM by bretonesf.
Sorry, only registered users may post in this forum.

Click here to login