A simulation of a control loop for a DC motor.
Two control strategies have been implemented through the use of a PI regulator:
- Linear voltage control
- 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.