Open Okscientist opened 8 months ago
I have the same problem on my arduino uno. I do not know if it's caused by the motor characteristics. I'll try to change another stepper and see if the behavior would come out in a different manner.
I can confirm different motor causes different SG_RESULT
the strange thing I noticed is that it seemed the actual current remains the same all the time. My understanding is that the actual current (driver.cs2rms(driver.cs_actual())) should varies at different load but that's not for my case. No idea what I've done wrong
Hello all,
Although I got some StallGuard values output, the results are hard to interpret. I have the TMC2209 connected to an Arduino Mega via UART. I have written a script where the motor accelerates when a button is pressed.
As soon as the motor is up to speed, the StallGuard values are displayed in the Serial Monitor and Serial Plotter. However, the StallGuard values rise and fall rapidly and periodically. By averaging the StallGuard readings, I get some useful values (that decrease when torque is applied to the motor shaft), but it is really hard to tell how StallGuard is behaving. For each speed, current setting, etc., the StallGuard values are very different.
Furthermore, very high loads on the motor shaft are required to see the slightest change in the StallGuard value.
Would anyone be able to give me some advice? Do I oversee something? I have tried so many things already, but nothing seems to make it smoother or better...
A screenshot of the StallGuard values (in green) and the average of the last 20 StallGuard values (in yellow) in the Serial monitor.
My Arduino script: