DC motor
Armature resistance and inductance coupled to a rotational shaft.
- electrical
- rotational
- Gradara equations
- 3 ports
- 3 parameters
motorLibraryElectricalDescription
A permanent-magnet DC motor: armature resistance and inductance in series with a back-EMF proportional to shaft speed. The same constant k gives torque per ampere.
Example
Motor speed control
Also in this example:StepPI controllerVoltage driveInertia & loadSpeed sensorGround
Ports
Conserving terminals 3
-
+
pPositive armature terminal. Current into p is the armature current i.
-
−
nNegative armature terminal.
-
shaft
flangeRotor shaft. The motor applies torque k · i to what is connected; w is its speed.
Parameters
-
Resistance
R1.2 Ω≥ 0.001
Armature resistance, in ohms.
-
Inductance
L0.02 H≥ 0.00001
Armature inductance, in henries.
-
Motor constant
k0.15 N·m/A≥ 0.0001
Motor constant: torque per ampere in N·m/A, equal to back-EMF per rad/s in V·s/rad.
Equations
v = p.v − n.v, i = p.i, p.i + n.i = 0 w = d(flange.phi)/dt L · di/dt = v − R · i − k · w, i(0) = 0 torque on the load = k · i (flange.tau = −k · i)
Implementation
L*der(i) = v - R*i - k*w; tau = k*i;
Assumptions and limitations
- No rotor inertia, friction, brush drop, or saturation. Connect an inertia to the shaft; without one the shaft has no mass.
- The armature starts with zero current.
Used in
These larger examples use it too. Open them from Examples in the app.
- Motor speed control
- EV drivetrain
- Servo position control
See also
Select a block in Gradara and press F1 to open its page offline.