Welcome! Log In Create A New Profile

Advanced

Arduino Due + RAMPS-FD + TMC2660 SPI communication problem

Posted by andymoon73 
Arduino Due + RAMPS-FD + TMC2660 SPI communication problem
June 28, 2019 02:18AM
Hi! I used Arduino Due + RAMPS-FD-V1 + TMC2130 Driver boards for all X, Y, Z and E0 with SPI communication mode and I used Marlin bugfix-2.0.x version FW code.
I used software SPI mode (TMC_USE_SW_SPI) and it worked well and I had been using it for a long time.

Recently, I downloaded the latest bugfix-2.0.x FW code again and tested my printer and it also worked well with same Arduino Due + RAMPS-FD-V1 + TMC2130 Driver boards.

But when I changed TMC2130 to TMC2660 (TMC2660-BOB board with some jumper cables) Driver boards for X, Y, Z and E0, it seemed Arduino Due could not communicate with TMC2660 Driver boards at all.
I used exactly same Arduino PINs for SPI communication but it seemed there was SPI communication problem.
There was "TMC CONNECTION ERROR" message on my LCD screen and when I read TMC_DEBUG using M122, all X, Y, Z and E values are 00.

X 0x00:00:00:00
Y 0x00:00:00:00
Z 0x00:00:00:00
E 0x00:00:00:00

Can I use Arduino Due with TMC2660 Driver boards?
Do I need to add any special codes or do something to use Arduino Due with TMC2660 Driver boards?
I tested the latest bugfix-2.0.x and TMCstepper Driver library.
Please let me know how can I use TMC2660 Driver boards with Arduino Due?
Thank you.
Re: Arduino Due + RAMPS-FD + TMC2660 SPI communication problem
June 28, 2019 02:35AM
Did you change your confugration.h setting driver type to TMC2660 ?
Re: Arduino Due + RAMPS-FD + TMC2660 SPI communication problem
June 28, 2019 03:44AM
Thank you for your comments.
Yes, I changed it in confugration.h like below but it did not work.

#define X_DRIVER_TYPE TMC2660
#define Y_DRIVER_TYPE TMC2660
#define Z_DRIVER_TYPE TMC2660
#define E0_DRIVER_TYPE TMC2660

TMC2130 worked well when used below define.

#define X_DRIVER_TYPE TMC2130
#define Y_DRIVER_TYPE TMC2130
#define Z_DRIVER_TYPE TMC2130
#define E0_DRIVER_TYPE TMC2130

I had tested many days but I did not know why Arduino Due could not communicate with TMC2660 Driver boards.
Re: Arduino Due + RAMPS-FD + TMC2660 SPI communication problem
June 28, 2019 05:17AM
Marlin2 uses an external stepper library TMCStepper

What version of TMCStepper are you using?
Re: Arduino Due + RAMPS-FD + TMC2660 SPI communication problem
June 28, 2019 07:05AM
I used the latest TMCStepper v0.4.5.
TMC2130 works but TMC2660 does not work with TMCStepper v0.4.5.

Before I also used TMC2130Stepper library when I only used TMC2130 and it also worked well with TMC2130.
I already removed TMC2130Stepper library from my libraries and I only use TMCStepper library now.

Edited 1 time(s). Last edit at 06/28/2019 07:08AM by andymoon73.
Sorry, only registered users may post in this forum.

Click here to login