Open fenixil opened 3 years ago
RMS current is Root Mean Square. It is the average current used in the moment.
Max current is RMS x 1.41
Also be sure your sense resistor value is correct as that will affect the current
Just a side question: is there any way to read the motor current from the TMC5160? Since it can limit the current allowed to the motor I guess there must be a measurement of it somewhere. Is this information somehow accessible?
You can only read back the current that you set, you can’t monitor it in real time. I use my power supply to monitor current when testing things out.
Is there a reason you need to keep track of the current?
Remember that the current you set is the RMS current. It’s just an average and can max out at 1.41 times the RMS current that you set. The current is constantly changing depending on the load, speed, and acceleration.
On Apr 5, 2022, at 10:43 PM, Antonio-Citati @.***> wrote:
Just a side question: is there any way to read the motor current from the TMC5160? Since it can limit the current allowed to the motor I guess there must be a measurement of it somewhere. Is this information somehow accessible?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.
Thank you for the reply, I know it is an RMS and that current always changes. I run with 2 TMC5160 the 2 motors of a totally automatic telescope on a gondola attached to a weather balloon at around 35km altitude and need to monitor power consumption closely as a way to optimize battery usage, and to address any issue which could lead to spikes in motor power consumption. Will just design circuit with additional 2 more current sensors. We have quite a few already and just wondered if these could be substituted by a current measurement function on the chip.
That project sounds incredible. Do you have more info on it so I can learn more?
On Apr 6, 2022, at 8:41 PM, Antonio-Citati @.***> wrote:
Thank you for the reply, I know it is an RMS and that current always changes. I run with 2 TMC5160 the 2 motors of a totally automatic telescope on a gondola attached to a weather balloon at around 35km altitude and need to monitor power consumption closely as a way to optimize battery usage, and to address any issue which could lead to spikes in motor power consumption. Will just design circuit with additional 2 more current sensors. We have quite a few already and just wondered if these could be substituted by a current measurement function on the chip.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.
Just a side question: is there any way to read the motor current from the TMC5160? Since it can limit the current allowed to the motor I guess there must be a measurement of it somewhere. Is this information somehow accessible?
CS_ACTUAL
.
I use Bigtreetech TMC5160 v1.2 driver in the full SPI mode (SPI_MODE - high, SD_MODE - low). I set RMS current to 750mA however when there is a load on the stepper motor, driver sucks more current from the power supply and it is turned off with overcurrent protection. I noticed that the current can spike up to 2A when the motor stall. I see the same behavior for both StealthChop and SpreadCycle modes.
Why current exceeds configured RMS? Is there a way to limit the current so that my power supply is not turned off? How can I calculate max current which can be consumed by the motor?
Code for back and forth rotation of the steppers, just apply the load on the motor and monitor the current: