How to sense the torque with the revolute joint?

5 views (last 30 days)
Hello there,
based on the following simscape multibody example, I would like to measure the torque at the joint (see attached file). Is there a way to sense the values automatically? When setting "automatically computed" in "Actuation" there is an error message appearing.
How can i sense the torque instead?
Thanks in advance :)
  4 Comments
Nayla
Nayla on 8 Jun 2023
By sensing the velocity instead and then multiply it by the damping coefficient I can also get the Torque. Is this also a correct way to determine the torque?
Nathan Hardenberg
Nathan Hardenberg on 11 Jun 2023
The name of the Block ist "Constant". In the Constant I use the deg2rad()-function to indicate that the input of the joint is in radians.
Regarding your other comment: What you describe does not calculate the torque. One example to prove my point is when your damping coefficient is 0. Your toque then should not be 0. I'm not into this topic at the moment that's why I can not tell/know how to calculate it.

Sign in to comment.

Answers (1)

Nathan Hardenberg
Nathan Hardenberg on 12 Jun 2023
I tought about it a bit more: The torque is just dependent on the deviation to the natual position. The damper creates a torque in the opposite direction which slows down the movement, but the current toqure on the joint is just depentant on spring stiffness. Since the movement is not the problem here (it gets simulated with the multibody) the spring-torque T can easily be calculated:
with
  • K : spring constant
  • : diffence to equilibrium
Obvioulsly the values in the Revolute-Joint and the values in the calculation have to be the same

Products


Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!