Motor Electrical

The Motor Electrical part implements the electrical differential equation explained above. It consists of an arbitrary voltage supply acting as the power supply for the DC motor being controlled by a PWM signal. There is also an arbitrary voltage supply used to transform the current from the mechanical part into voltage, representing the EMF of the motor.

In Motor Electrical two parameters determine the behavior of the motor, R (denoted Motor_DCR1) and L (denoted Motor_L1). They can be calculated using the following formula:

R=Vinistall

L=Rτe

Where Vin is the input voltage to the DC motor, istall is the stall current and τe is the time constant of the electrical system.

Figure 1. Motor Electrical