0
0
Simulinkdata~10 mins

DC motor modeling in Simulink - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define the armature resistance in the DC motor model.

Simulink
R_a = [1]; % Armature resistance in ohms
Drag options to blanks, or click blank then click option'
A2.0
B0.5
C10
D5
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a very high resistance value which is unrealistic.
2fill in blank
medium

Complete the code to calculate the back EMF constant K_b in the DC motor model.

Simulink
K_b = [1]; % Back EMF constant in V/(rad/s)
Drag options to blanks, or click blank then click option'
A0.1
B0.01
C1.0
D10
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a value too large which would not match typical motor specs.
3fill in blank
hard

Fix the error in the code to correctly compute the motor torque T using torque constant K_t and armature current I_a.

Simulink
T = [1] * I_a; % Torque in Nm
Drag options to blanks, or click blank then click option'
AK_t
BI_a
CR_a
DK_b
Attempts:
3 left
💡 Hint
Common Mistakes
Using current I_a alone or resistance instead of torque constant.
4fill in blank
hard

Fill both blanks to create a transfer function for the motor speed with input voltage V and output angular velocity omega.

Simulink
motor_tf = tf([[1]], [[2] 1]);
Drag options to blanks, or click blank then click option'
AK_t
BJ
CR_a
DL_a
Attempts:
3 left
💡 Hint
Common Mistakes
Using resistance or inductance in numerator incorrectly.
5fill in blank
hard

Fill all three blanks to define the state-space matrices A, B, and C for the DC motor model.

Simulink
A = [[-[1]/[2], -[3]/[2]], [[3]/[2], 0]];
Drag options to blanks, or click blank then click option'
AR_a
BJ
CK_b
DK_t
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing torque constant K_t with back EMF constant K_b.