5.1 Modeling Using MPLAB® Mindi™

The classical way of modeling a DC motor is as two differential equations, one for the mechanical and one for the electrical dynamics as shown in below:

J θ ¨ + b θ ˙ = K i

L i ˙ + R i = V K θ ˙

MPLAB Mindi is only capable of simulating circuit elements, therefore the mechanical equation is transformed into an equivalent circuit representation. This is achieved by saying that R l o s = b / K 2 , L I = J / K 2 and i e m f = θ ˙ K . This gives the differential equation:

L I i e m f ˙ + R l o s i e m f = i

L i ˙ + R i = V i e m f

The model of the DC motor consists of three parts; Motor_Electrical, Motor_Mechanical and Motor_Load.