tommag / TMC5160_Arduino

Arduino library for Trinamic TMC5160 stepper motor driver
MIT License
66 stars 24 forks source link

UART with TMC5160-BOB or alternatives #27

Closed kroko closed 1 year ago

kroko commented 1 year ago

Apologies upfront as this is not an issue, but general clarification question about hardware.

Before ordering some TMC5160-BOB's for eval (from the comments in this repo it seems that it is quite popular, author @tommag mentions it also as something used for testing) I was wondering if that board even can be used with UART mode? If not, will search for other ready to go eval board.

I've looked at UART example, that routes SWP, SWN, SWSEL(?!) pins. It seems to me that while DIAG0_SWN is routed DIAG1_SWP pin is not on TMC5160-BOB board to any header. Has anybody used TMC5160-BOB with this library in UART mode (if so - patch wire direct to DIAG1_SWP IC pin)?

_crop from TMC5160BOB layout Screenshot 2023-07-18 at 13 44 18

TMC5160 datasheet Screenshot 2023-07-18 at 13 54 55

Again, pardon for library unrelated question. Thank you!

kroko commented 1 year ago

after diving more into datasheet it is clear, that it is practically impossible, as SPI_MODE pin that is directly tied to VCC_IO would have to be cut too. too much hacking. 😄