Welcome! Log In Create A New Profile

Advanced

TMC2130 on MKS GEN 1.4, high pitch noise only on y axis

Posted by Broxy 
TMC2130 on MKS GEN 1.4, high pitch noise only on y axis
August 30, 2018 04:12PM
Hey guys smiling smiley
I am currently building a 3D Printer with much inspiration from that: [www.thingiverse.com]
However after a lot of troubleshooting I got most off it working, expect the y-motor is making a highpitch noise when it stands still.
I am running 5 Watterott TMC2130 on a MKS GEN 1.4 with Hardware SPI.

M122 Output:

Recv: 		X	Y	Z	Z2	E0
Recv: Enabled		false	false	false	false	false
Recv: Set current	850	900	600	850	700
Recv: RMS current	826	887	581	826	673
Recv: MAX current	1165	1251	819	1165	949
Recv: Run current	26/31	28/31	18/31	26/31	21/31
Recv: Hold current	13/31	14/31	9/31	13/31	10/31
Recv: CS actual		13/31	14/31	9/31	13/31	10/31
Recv: PWM scale		132	98	101	163	53
Recv: vsense		1=.18	1=.18	1=.18	1=.18	1=.18
Recv: stealthChop	true	true	true	true	true
Recv: msteps		16	16	16	16	16
Recv: tstep		1048575	1048575	1048575	1048575	1048575
Recv: pwm
Recv: threshold		79	4294967295	658	658	263
Recv: [mm/s]		100.08	0.00	3.00	3.00	30.06
Recv: OT prewarn	false	false	false	false	false
Recv: OT prewarn has
Recv: been triggered	true	true	true	true	true
Recv: off time		5	5	5	5	5
Recv: blank time	24	24	24	24	24
Recv: hysteresis
Recv: -end		2	2	2	2	2
Recv: -start		3	3	3	3	3
Recv: Stallguard thrs	4	0	0	0	0
Recv: DRVSTATUS	X	Y	Z	Z2	E0
Recv: stallguard			X
Recv: sg_result		0	0	0	0	0
Recv: fsactive
Recv: stst		X	X	X	X	X
Recv: olb
Recv: ola
Recv: s2gb
Recv: s2ga
Recv: otpw
Recv: ot
Recv: Driver registers:	X = 0x80:0D:00:00
Recv: 	Y = 0x81:0E:00:00
Recv: 	Z = 0x80:09:00:00
Recv: 	Z2 = 0x80:0D:00:00
Recv: 	E0 = 0x80:0A:00:00


I´ve tried everything: switching motors, connections, stepper. So I guess no Hardware problem?

I think, I setup something up wrong in the MarlinFW. So I tried different configurations but cant get this damn motor quit. moody smiley

I have no idea what I could try anymore. I know there are some strange things in the M122 Output at Y, but I dont know what I have to tune to get it right.
Any Ideas?
Re: TMC2130 on MKS GEN 1.4, high pitch noise only on y axis
August 31, 2018 12:57AM
Recv: Driver registers:	X = 0x80:0D:00:00
Recv: 	Y = 0x81:0E:00:00
Recv: 	Z = 0x80:09:00:00
Recv: 	Z2 = 0x80:0D:00:00
Recv: 	E0 = 0x80:0A:00:00

The Y-driver seems to be controlled from another timer/register.
That's the only difference I could find, but don't know if it matters?
Re: TMC2130 on MKS GEN 1.4, high pitch noise only on y axis
August 31, 2018 04:18AM
Whats up with the numbers at treshhold and [mm/s]?
Well I dont know why it shouldn´t work with another register/timer?
Re: TMC2130 on MKS GEN 1.4, high pitch noise only on y axis
September 01, 2018 02:17AM
Right, I missed that.
It seems the Y-driver didn't communicate over SPI and hasn't received it's setup. This could be related to the different register, but I'm no expert.
Re: TMC2130 on MKS GEN 1.4, high pitch noise only on y axis
September 01, 2018 02:46AM
At first I had a connection problem where the y-rigster in the M122 output said
Recv: 	Y = 0xFF:FF:FF:FF
since I had no idea what I can try anymore I got me a new MKS GEN 1.4, i uploaded the FW connected everything and started the printer. I than moved the Y-Axsis and no noise. So I thought, great the old board was broken. Than I checked the M122 Output and it was similar to the one i posted two day ago. I noticed the wierd numbers but thought if it works that is fine with me. But after that I moved the Y-Axis a second time, again high pitch noise.

Well it is not a hardward problem right? Since the there is a connection? I am currently using the D64 pin as CS pin. All other CS pins are default. Could it be that I cannot use this pin?

//
// Steppers
//
#define X_STEP_PIN         54
#define X_DIR_PIN          55
#define X_ENABLE_PIN       38
#ifndef X_CS_PIN
  #define X_CS_PIN         53
#endif

#define Y_STEP_PIN         60
#define Y_DIR_PIN          61
#define Y_ENABLE_PIN       56
#ifndef Y_CS_PIN
  #define Y_CS_PIN         64
#endif

#define Z_STEP_PIN         46
#define Z_DIR_PIN          48
#define Z_ENABLE_PIN       62
#ifndef Z_CS_PIN
  #define Z_CS_PIN         40
#endif

#define E0_STEP_PIN        26
#define E0_DIR_PIN         28
#define E0_ENABLE_PIN      24
#ifndef E0_CS_PIN
  #define E0_CS_PIN        42
#endif

#define E1_STEP_PIN        36
#define E1_DIR_PIN         34
#define E1_ENABLE_PIN      30
#ifndef E1_CS_PIN
  #define E1_CS_PIN        44
#endif

I used the default y pin before, obviously same result.

So is there anyway to change the register by hand?
Re: TMC2130 on MKS GEN 1.4, high pitch noise only on y axis
September 02, 2018 03:04AM
Seems to me, the register got overwritten by a FW-routine. You have to find a different pin for Y_CS. Preferably ALL Y-pin assignments should be in the same register, but we don't know, since MKS is closed source... sad smiley
Re: TMC2130 on MKS GEN 1.4, high pitch noise only on y axis
December 01, 2018 03:12AM
So after a lot of swearing and googling every single parameter I found something interesting about the PWM Scale (Y Axis Overdriving and Blowing Driver)

One of those guys got in touch with Watterott and was told that the USB Cable (more the 5 Volts) which is connected to a raspberry Pi in my case, can cause some wierd stuff on the Y driver (high current... just read it yourself). So I thought what can I lose ordered a new MKS Gen1.4 and connected everything except the Raspberry.

And now everything works just fine and this damn y-motor is quiet. grinning smiley
Re: TMC2130 on MKS GEN 1.4, high pitch noise only on y axis
December 02, 2018 03:44AM
To bad you can't feed the MKS bords from the RasPi. AFAIR, it's 5V regulator is much beefier than the faintharded Arduino stuff.
Sorry, only registered users may post in this forum.

Click here to login