/DC-motor-control-simulation

Modeling and simulation of an armature-controlled DC motor

Primary LanguageMATLAB

DC-motor-control-simulation

Modeling and simulation of an armature-controlled DC motor

A simulation of a control loop for a DC motor.

Two control strategies have been implemented through the use of a PI regulator:

  1. Linear voltage control
  2. PWM control

The files in this repository are the following:

  • DC_motor.slx which is the Simulink model of the DC motor
  • PWM.slx which is a simulink model for a PWM block (input=analogue voltage from 0 to 1 V, output=PWM signal to static switch)
  • State space system: motor parameter, state space system and step response
  • DC-motor-analogue-control.slx: Simulink model of a linear voltage control through a PI regulator
  • DC-motor-pwm-control.slx: Simulink model of a PWM control through a PI regulator

The regulator was tuned with some overshoot using the tuning utility in Matlab.

Control loop

PWM control Linear voltage control

DC motor model implementation

dc-motor

Speed [rad/s] over time [s]

speed-control-example