MATLAB Answers

# Connecting DC motor to a revolute joint

28 views (last 30 days)
Vicente Casanova on 20 Mar 2021
Commented: Vicente Casanova on 24 Mar 2021
Hi
I'm trying to interface the DC motor block (Simscape Electrical) to a revolute joint (Simscape Multibody). The aim is to develop a simulation model for a Pendubot.
Following several examples I think (I hope) I've made the connection properly, including the Rev-Rot interface to feedback the joint velocity into the DC motor but I have a doubt. If I want to change the friction, where is the right place to do it?. I've noticed that I can change the damping coefficient in the revolute joint (which is what I usually do) but it can be changed in the mechanical parameters of the DC block. (Rotor inertia).
Find attached a zip file with the simulink model and the stp files. Don't mind the commented blocks, just trying to model the motor non-linearity.
Thanks for your help.
Best regards
##### 0 CommentsShowHide -1 older comments

Sign in to comment.

### Accepted Answer

Juan Sagarduy on 22 Mar 2021
Hi Vicente
It shall work in both cases, but it is more natural to do it on the Simscape side (DC actuator). This makes sense if u wanted to add friction later on.
Good luck Juan
##### 1 CommentShowHide None
Vicente Casanova on 24 Mar 2021
Thank you, Juan for you answer.
That's what I thought but there must be any difference. The parameter in the DC motor (rotor inertia) is mesured in Kg*m2 (momentum of inertia) and the one in the joint (damping coefficient) is measured in N*m/(deg/s) (viscous friction). I guess there must be some kind of equivalence. I mean, if the damping coefficient is e.g. 0.0001, which is the value of the rotor inertia to get the same results?.
Best regards

Sign in to comment.

R2019b

### Community Treasure Hunt

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

Start Hunting!

Translated by