Hello all - I was reading the forum for several months, but this is my first post here. :)
I have just upgraded Ender 3 with SKR1.3 32-bit board with TMC2130 motor drivers (SPI mode) and I use original microswitches for xMin, yMin, zMin.
However I started thinking if I could use StallGuard feature of TMC2130 for following use cases:
* additional safety measure to not hit the min/max boundaries after "disabling steppers" and the axis were moved.I know that I should do the XY homing after that, but it happened several times that I just wanted to move the print-head to the side and then I hit zMax during Zhop when homing, etc.
* for safety detection if some objects were not hit during printing (eg. some tool fell on the printer, hand, etc.)
* use it for xMax/yMax/zMax detection (as Ender 3 do not have micro-switches there and only SW detection based on print area dimensions can be performed)
Does any of the above use cases actually make sense?
Where should I start? With just the StallGuard and then add microsteps?
As I understand the TMC2130 endstop output comes through "DIAG1" pin as HIGH state. How do I use it for both min and max endstop?
How to wire the micro-switches then? By default they work by shorting GND to sensor pin (providing LOW state). Can I wire them in a way that they would short 5V to GND pin? Would it be safe for TMC2130 DIAG1 pin? Or should I use some resistors?
Is there any software option based on the SPI (as the StallGuard state is available in the M122 output)?
Maybe the easiest setup would be to use current microswitches for min detection and StallGuard through DIAG1 pins for max detection?
I have just upgraded Ender 3 with SKR1.3 32-bit board with TMC2130 motor drivers (SPI mode) and I use original microswitches for xMin, yMin, zMin.
However I started thinking if I could use StallGuard feature of TMC2130 for following use cases:
* additional safety measure to not hit the min/max boundaries after "disabling steppers" and the axis were moved.I know that I should do the XY homing after that, but it happened several times that I just wanted to move the print-head to the side and then I hit zMax during Zhop when homing, etc.
* for safety detection if some objects were not hit during printing (eg. some tool fell on the printer, hand, etc.)
* use it for xMax/yMax/zMax detection (as Ender 3 do not have micro-switches there and only SW detection based on print area dimensions can be performed)
Does any of the above use cases actually make sense?
Where should I start? With just the StallGuard and then add microsteps?
As I understand the TMC2130 endstop output comes through "DIAG1" pin as HIGH state. How do I use it for both min and max endstop?
How to wire the micro-switches then? By default they work by shorting GND to sensor pin (providing LOW state). Can I wire them in a way that they would short 5V to GND pin? Would it be safe for TMC2130 DIAG1 pin? Or should I use some resistors?
Is there any software option based on the SPI (as the StallGuard state is available in the M122 output)?
Maybe the easiest setup would be to use current microswitches for min detection and StallGuard through DIAG1 pins for max detection?