Microcontroller Based Speed and Current PDF
Microcontroller Based Speed and Current PDF
Prof.Dr. Saad Saad Eskander Dr.Hamdy Mohammed Nour Eng. Amr Mahmoud Mohammed
Electrical Power & Machines Dept. Senior. Researcher of Agric.Eng. B.Sc. Electrical engineer
Faculty of Engineering Res. Institute. (AEnRI). ARC. Mansoura University, 2006
Mansoura University
Abstract: This paper is written with the objective of illustrating how the speed of a permanent magnet direct current
(PMDC) motor can be controlled by using microcontroller. As a result of the great progress in microprocessor from its
flexibility and higher speed to close and open the power electronic switches. This great progress leads to decrease of
using the analogue circuits. It further explains the methodology used in obtaining the sensorless speed and current
feedback, software implementation of the PID controller. Having obtained a 1kW DC motor (considered to be a suitable
prototype for a typical industrial application) was to implement a complete automatic and manual speed control system
for a PMDC motor. A laboratory model of DC motor drive was successfully implemented using MCU PIC16F876A and
tested. Simulation and experimental results have been presented to verify the stability and tracking performance of the
proposed drive.
Keywords: Microcontroller unit (MCU), Pulse Width Modulation (PWM), Speed and current feedback
circuitry, MATLAB/SIMULINK .
I. INTRODUCTION
Everyone recognizes the vital role played by cutting, and huge control sites like Boilers are some
DC motor drive control in the development of of very good examples of the controls [2].
industrial systems. The dc machine was the first
practical device to convert electrical power into II. AIM AND OBJECTIVES OF THE RESEARCH
mechanical power, and vice versa. Inherently
straightforward operating characteristics, flexible The aim of our research was to implement a
performance, torque, flux controlled independently complete automatic speed control system for a
and efficiency encouraged the use of dc motor PMDC motor. Having obtained a 1kW DC motor
drives in many types of industrial drive application (considered to be a suitable prototype for a typical
[1]. industrial application) from the Solar Cell Lab, the
research was carried out with the following
In the world of controls, the use of objectives :
Microcontrollers is ever increasing. Industrial
process control is one of the very important areas 1. Controlling the Speed of Permanent Magnet
where we can use the Microcontrollers extensively. Direct Current Motor According to the
The flexibility offered by the system to implement Environmental Temperature Changing( Automatic
various control techniques and also the flexibility Reference Speed "additional setpoint" ).
offered by the system in terms of changing the
control techniques is also great. Microcontroller 2. Implementation of Sensorless Speed and Current
controllers are suitable for linear and non-linear Feedback circuitry.
system. Many industrial processes like speed
control, temperature control, lighting control, metal
3. Software Implementation of the closed loop is Constructed from iron and Cu-Ni metals, the
controller using MCU. (Including PID controller) temperature range of this thermocouple is -180oC to
+750 oC , the sensitivity of type J thermocouple is
4. Implementation of the Chopper Drive. 54 µV/oC Type J thermocouple is generally
recommended for new designs [4]. The
5. Implementation of a PWM Signal Generator [3]. experimental results of the output voltage of
thermocouple against the environmental
III. DESCRIPTION OF DC MOTOR DRIVE temperature are shown in table (1).
CONTROL SYSTEM
TABLE 1 EXPERIMENTAL RESULTS OF THERMOCOUPLE OUTPUT
VOLTAGE AGAINST TEMPERATURE.
Fig.1 illustrates the overall schematic diagram
of proposed DC motor drive control system.
Fig.8 illustrates the power circuit which DC-DC converter using the power MOSFET
contains The AC grid, bridge rectifier, parallel which is used for controlling the load according to
circuit contains resistor R (discharging resistor) and the programming strategy into the PIC
capacitor C, Microcontroller and RC snubber circuit used to
protect the power switch.
The capacitor is chosen on the basis of the The resistor is chosen such that the capacitor is
desired voltage at the instant the transistor current discharged before the next time the transistor turns
reaches to zero. The capacitor voltage in Fig.9(d) is off. A time interval of three to five times constant is
expressed as: necessary for the capacitor discharge. Assuming
five times constant for complete discharge, the on
tI t I t2 time for the transistor is;
1 ∫ L dt = L for 0 < t < t x
C 0 t 2Ct
f f
1 t I t
to n
I
VC (t) = ∫ I dt + V (t ) = L t - t + L f R < (1 2 )
tf
C L C f C
( )
f 2C
for t < t < t x
f
(7)
5C
V for The capacitor discharges through the resistor and
t > tx
S
the transistor when the transistor turns on. The
If the switch current reaches zero before the energy stored in the capacitor is;
capacitor fully charges, the capacitor voltage is
determined from the first part of Eq.7. Letting W = 1 C V s 2 (1 3 )
Vc (tf) = Vf , 2
Ia : Armature current
Ea : Back EMF
Fig. 10 Transistor, snubber, and total turn-off losses as a function of snubber The speed control of the dc motor is achieved by
capacitance. the following equation ;
Vt - Ia R a
ωm = (1 7 )
KΦ
Vt = Ra.ia + La (dia/dt) + Ea (15) Fig. 13 Electronic circuit of sensorless speed and current measurement.
The circuit also offer the availability to measure C. Simulation and Experimental Results
the armature current (Ia) by using a series resistor
with the armature resistance. This method is very 1) DC Motor with its Control System:
low cost and verify a good performance in different
applications. The LCD display is used to read the The DC-DC converter controlled DC motor can
duty cycles and RPM of the motor resulting from be represented in MATLAB/SIMULINK as shown
the control action. in Fig.15.
A circuit was design to set a pin in the Many cases have been studied to get the best
microcontroller port to high state, in case of an over response of the controllers. They can be discussed as
current in the motor. Program detects the state of follow;
this pin regularly. If an over current occurs,
program, having picked up this signal, uses it to The PI speed and current controllers gains are
either reduce the armature voltage or stop the motor Kps=700, Kis=20 and Kpc=20, Kic=1000
[12]. respectively. The results for this case are shown in
Fig.17.
represent the PWM output of PIC Microcontroller
after the interface circuit, motor no load input
voltage, motor input voltage when it loaded at the
specified temperature and the output result of PI
speed controllers at (Kps=50, Kis=5 and Kps=50,
Kis=0) respectively.
3) Experimental Results:
REFERENCES
[5] Walt Jung, " Op Amp Applications [9] Finney, Williams And Green, "RCD Snubber
Handbook " Elsevier’s Science & Technology Revisited", IEEE Transactions On Industry
Rights Department in Oxford, UK, 2005. Applications, Vol. 32, No. 1, January 1996, Pp.
155-160.
[6] Dogan Ibrahim, "PIC Basic Projects 30
Projects Using PIC Basic And PIC Basic Pro ", [10] Cyril W. Lander, " Power Electronics.",
Elsevier’s Science & Technology Rights Third Edition, McGraw-Hill Book Co.,(Uk)
Department in Oxford, UK, 2006. Limited,1993.
[7] S. Bernet, “Recent Developments in High [11] Saffet Ayasun, Gu¨ Ltekin Karbeyaz , "DC
Power Converters for Industry and Traction Motor Speed Control Methods Using
Applications, IEEE Transactions on Power MATLAB/Simulink " Department of Electrical and
Electronics, Vol.15, no. 6, pp. 1102-1117, Electronics Engineering, Nigde University, Nigde
November 2000. 51100, Turkey, March 2007.
[8] Muhammad H. Rashid, "Advances in Power [12] Qiwen Yang, Yuncan Xue, and Jiao Huang ,
Electronics and Applications in Renewable Energy" “Simultaneous PID Self-tuning and Control" IEEE
Fellow IET (UK) , Fellow IEEE, University Of Taipei, Taiwan, September 2-4,2004.