PWM Controlled Fan Load using DC motor
Aim - Objective: To model a fan type load in Simulink and to control its speed by using the PWM method.
Solution :-
PWM Controlled Fan load using Dc motor
Solution :-
This is the good example of electromechanical system
By controlling the electrical parameter of motor result in change of speed of Fan. Fan connected on shaft of DC motor.
A DC motor consist basically of two parts, the stationary body of the motor called the “Stator” and the inner part which rotates producing the movement called the “Rotor”. For D.C. machines the rotor is commonly termed the “Armature”.
Generally, in small light duty DC motors the stator consists of a pair of fixed permanent magnets producing a uniform and stationary magnetic flux inside the motor giving these types of motors their name of “permanent-magnet direct-current” (PMDC) motors.
The motors armature consists of individual electrical coils connected together in a circular configuration around its metallic body producing a North-Pole then a South-Pole then a North-Pole etc, type of field system configuration.
The current flowing within these rotor coils producing the necessary electromagnetic field. The circular magnetic field produced by the armatures windings produces both north and south poles around the armature which are repelled or attracted by the stator’s permanent magnets producing a rotational movement around the motors central axis as shown.
2-Pole Permanent Magnet Motor
As the armature rotates electrical current is passed from the motors terminals to the next set of armature windings via carbon brushes located around the commutator producing another magnetic field and each time the armature rotates a new set of armature windings are energised forcing the armature to rotate more and more and so on.
So the rotational speed of a DC motor depends upon the interaction between two magnetic fields, one set up by the stator’s stationary permanent magnets and the other by the armatures rotating electromagnets and by controlling this interaction we can control the speed of rotation.
The magnetic field produced by the stator’s permanent magnets is fixed and therefore can not be changed but if we change the strength of the armatures electromagnetic field by controlling the current flowing through the windings more or less magnetic flux will be produced resulting in a stronger or weaker interaction and therefore a faster or slower speed.
Then the rotational speed of a DC motor (N) is proportional to the back emf (Vb) of the motor divided by the magnetic flux (which for a permanent magnet is a constant) times an electromechanical constant depending upon the nature of the armatures windings (Ke) giving us the equation of: N ∝ V/KeΦ.
PWM Method
As its name suggests, pulse width modulation speed control works by driving the motor with a series of “ON-OFF” pulses and varying the duty cycle, the fraction of time that the output voltage is “ON” compared to when it is “OFF”, of the pulses while keeping the frequency constant.
The power applied to the motor can be controlled by varying the width of these applied pulses and thereby varying the average DC voltage applied to the motors terminals. By changing or modulating the timing of these pulses the speed of the motor can be controlled, ie, the longer the pulse is “ON”, the faster the motor will rotate and likewise, the shorter the pulse is “ON” the slower the motor will rotate.
In other words, the wider the pulse width, the more average voltage applied to the motor terminals, the stronger the magnetic flux inside the armature windings and the faster the motor will rotate and this is shown below.
Pulse Width Modulated Waveform
The use of pulse width modulation to control a small motor has the advantage in that the power loss in the switching transistor is small because the transistor is either fully “ON” or fully “OFF”. As a result the switching transistor has a much reduced power dissipation giving it a linear type of control which results in better speed stability.
Also, the amplitude of the motor voltage remains constant so the motor is always at full strength. The result is that the motor can be rotated much more slowly without it stalling.
This Shows the work for the design of the fan speed control system using Pulse Width Modulation by establishing a connection between an H bridge circuit and a Dc motor. A fan type load equation has been used to analyze the output results instead of a physical model of a fan in Simulink. The speed of the fan is varied according to the input voltage using PWM technique.
By changing or modulating the timing of these pulses the speed of the motor can be controlled. A stepwise change in the speed variation is given and the full load speed is observed. In this model, all input ports of the H-Bridge block except the PWM port are connected to ground. As a result, the H-Bridge block behaves as follows:
- When the motor is on, the H-Bridge block connects the motor terminals to the power supply.
- When the motor is off, the H-Bridge block acts as a freewheeling diode to maintain the motor current.
Model Diagram in Simulink
Model Explanation:
Torque exerted by fan represented by TL
Load torque i.e. TL proportional to square of speed i.e. wm^2
TL = C . wm^2
By varying the electrical parameter of motor i.e. voltage and current we are controlling load torque or load speed.
For fan load we don’t have any block to represent a fan so we are representing by a subsystem

to the left side there is w and it is multiplying by product block then it is become w^2
Then gain block is used that is the constant of proportionality 8.8e-8 Unit of this gain block is N*m/(rad^2/s^2
Output of this subsystem is fed to the Aerodynamic block. Actual name of this block is
Ideal torque source block. This ideal torque source block is going to apply torque on the shaft of DC motor.

For getting the speed we used Motion sensor.Value of the motion sensor w is given to the subsystem w and the value of the torque is given to the aerodynamic block and therefore completing the loop.
Controlled voltage source is connected to the controlled PWM voltage and H-bridge is connected through PWM voltage.
Pulse generator block used as input to the controlled voltage source.

The Controlled PWM Voltage block represents a pulse-width modulated (PWM) voltage source. You can model electrical or physical signal input ports by setting the Modeling option parameter to either:
- Electrical input ports— The block calculates the duty cycle based on the reference voltage across its ref+ and ref- This option is the default.
- PS input— Specify the duty cycle value directly by using an input physical signal port.
- The H-Bridge block represents an H-bridge motor driver. The block has the following two Simulation mode options-
PWM — The H-Bridge block output is a controlled voltage that depends on the input signal at the PWM port. If the input signal has a value greater than the Enable threshold voltage parameter value, the H-Bridge block output is on and has a value equal to the value of the Output voltage amplitude parameter. If it has a value less than the Enable threshold voltage parameter value, the block maintains the load circuit using one of the following three Freewheeling mode options.
H-bridge used to change the direction of motor. Basically, it is used to turn the motor is in clockwise direction or anti-clockwise direction.
we can use a H-Bridge motor driver for the DC motor which helps in reversing the polarity of the motor to run it in the reverse direction. So whenever the brakes are applied the command is given to the H-bridge and it reverses the polarity of the motor thereby making it works as the generator and the energy produced is given to the batteries.
So by the help of H-bridge we can implement the Regenerative brakinng in system.
PWM signals are provided to the H-bridge, and output of H-bridge is given to the Dc motor through the current sensor and voltage sensor.
The DC motor is driving the fan load , we are taking the speed output from the Dc motor through the motion sensor. And pass it to the subsystem.
Parameter needs to update.
In PWM voltage block set PWM frequency as 4000 Hz

H-Bridge parameters

Dc motor configuration

Output Result of XY Graph

Output result of scope
