SimScape DC Motor Speed Circuit Issue

2 views (last 30 days)
Samson Banzi
Samson Banzi on 9 Mar 2022
Answered: Sayan on 27 Sep 2023
Hi all,
I've created a standard DC control circuit in SimScape that isn't running properly. Whenever I change the PWM running into the MOSFET, the motor speed doesn't change from to full power. I've attached the file below as well as transient readings for the Motor current, MOSFET Vds and and PWM as all are giving weird outputs. Does anyone know what could be causing these issues?

Answers (1)

Sayan
Sayan on 27 Sep 2023
Hello Samson,
I understand from your issue that the motor speed is not changing in your model when you change the PWM pulses provided to the MOSFET, and you are not getting the desired waveforms in your model outputs.
Please know that it is because of the MOSFET continuously turning on and off due to which is an expected behaviour for the current to be discontinuous as has been found in your model output.
In this case, the possible ways you can control the speed of the motor in your model are as follows:
  • The duty ratio of the PWM can be varied by changing the "Comparator" block input in the non-inverting terminal through "Controlled Voltage Source".
  • The constant block input (2.5 in your case) is varied to change the reference value which in turn changes the turn on time of MOSFET to vary the motor speed.The readings of speed with the variation of reference that have been found are shown below.
Reference value : 2.5 - Speed : 250
Reference value : 2.1 - Speed : 232
  • The spikes in the output of PWM output from "Comparator" can be reduced by reducing the value of its "Output resistance" parameter.
For more information on the "Comparator" block, please refer the following MathWorks Documentation link: https://www.mathworks.com/help/releases/R2021b/physmod/sps/ref/comparator.html
Hope this helps you in resolving the issue.

Categories

Find more on Simscape Electrical in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!