# Mathematic Modelling of a DC Motor + Simulink Model

# Background

Most of the driving force on robotics comes from an electric DC-motor (in this case permanent magnet). In order to use the DC-motor in the simulations, mathematical modelling has to be done, in order to yield the relations between the current, voltage and rotational speed. Here I will show how to setup model of a DC motor, parameter estimation of several constants of the DC-motor is also done.

# Mathematiclal Modelling

Fig. DC Motor Model

## Electrical Characteristics

By using *Kirchoff’s voltage law* in the DC-motor model according to fig. *DC motor Model* following equation is derived,

Where, , , and is the input-voltage, voltage over the armature resistance, voltage drop over the armature inductance and voltage induced by the coil respectively. The equations for the voltage parts in the DC-motor are,

Substituting first equation with , and yields following differential equation,

(Differential Voltage equation)

## Mechanical Characteristics

By torque balance (energy balance) in the system the mechanical equations can be stated.

(3.7)

Where is the electromagnetic torque. , is torque generated from the rotational acceleration of the rotor. , is the torque due to the friction and angular velocity in the motor. is the torque of the mechanical load (external load). Equations for the first three parts are,

**(3.8)**

**(3.9)**

**(3.10)**

Substituting equation (3.7) with (3.8), (3.9) and (3.10) yields following differential

equation,

## Identifying parameters

By using the data sheet of the motor Maibuschi RS550VC, note that unknown parameter can be estimated. Note that the external load is zero during the estimation of the parameters

### Torque-constant (Kt)

Usage of the stated equation the torque-constant and the back-wmf-constant .

From equation ( ), the torque-constant can be derived. Using both the data of the stall- , max-efficiency torque and current. The mean-value of this two gives a valid approximation of the torque-constant.

Rewriting the equation first with and . Where is the stall torque form the data-sheet and $i_{stall}$ is the stall-current from the data-sheet, and then with and , which is the max-efficiency, -torque and -current respectively. This yields,

and then with max-efficiency, -current and -torque.

Table of the parameters that is used, (taken from the data-sheet) of **Maibuschi RS550VC**

With the stated equations and given parameters the \textit{torque-constant} is calculated to be,

### Back EMF-constant (Ke)

Using equation the *Back-emf-constant* can be calculated,

In order to use the must be identified. In the data sheet, the non-load -speed and -current and the nominal voltage is used.

The internal resistance is measured to be, .

The calculated *back-wmf constant* is,

Calculated and measured parameters. Note that the friction is yield by iteration in the simulation model (gray-box analysis), due to the fact that the maximum angular velocity at non-load is in the data-sheet.

# Creating a Simulink Model

Now that the mathematical model is made , and the differential equations are stated it is time to start building the Simulink Model so that verification can be done.

From the differential equations it is mor or less straight forward to build the model. The image below shows the model that I have built.

Running a simulation with non load of the DC motor.