Digital Speed Control of DC Motor For Industrial Automation Using Pulse Width Modulation Technique
Digital Speed Control of DC Motor For Industrial Automation Using Pulse Width Modulation Technique
Digital Speed Control of DC Motor For Industrial Automation Using Pulse Width Modulation Technique
net/publication/315822742
CITATION READS
1 1,165
4 authors, including:
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Prof. Aderemi A. Atayero on 07 July 2017.
motor was connected to the Optoisolator-MOSFET Figure 2: Block Diagram of Power Supply Unit
circuitry. Optoisolators accepted the input signals from the
Three different power supplies were used to supply
microcontroller and provide instructions to the integrated
appropriate operating voltage to the microcontroller unit and
circuit that controls the MOSFETs. The Microcontroller is
two DC motors respectively. A series connection of two
connected and programmed to work with a Liquid Crystal center-tap step down transformers of 15 V output voltage
Display (LCD) unit and a keypad. each fives a total power rating of 30 V, 5 A. The 30 V
The remainder of this work is organized as follows: output of the transformer was fed into the bridge rectifier
Section II gives the materials and explains the methods circuit. The diodes employed in the rectifier circuit have a
employed; Section III presents the system implementation forward bias of 0.7V each. A 12 V zener diode and 7805
and testing procedures; Section IV discussed and voltage regulator IC control the DC output of the filter
summarized the results obtained. circuit. The output voltage of the regulator circuit is 5 V that
is required for the operation of the microcontroller unit [13].
II. MATERIALS AND METHODS
B. The Microcontroller Unit
Correct design specification is required for efficient
A microcontroller is made up of a powerful processing
system performance. The design parameters considered unit integrated with memory, and various input and output
include input voltage, output voltage, maximum current, interfaces, all on a single chip. The use of a microcontroller
frequency of operation, voltage control steps, and direction reduced the size of the Printed Circuit Board (PCB) and the
of rotation. The DC motor controller operates at 6 V/12 V cost of design.
with a maximum current capacity of 5 A. The system The programmable microcontroller used in this work is
operates at a frequency of 50 Hz. The input AC voltage is AT8952. The choice of this microcontroller is due its small
within the range of 150–270 V. A digital display is required size and cheap price. It has a 4 KB of in-system
to show the exact value of the input and the output voltages. programmable flash memory, 1000 write/erase cycles, 128 x
Also, the current speed and direction of rotation should be 8-bit internal Read Only Memory (RAM), two 16-bit
displayed. Switches control the desired voltages (6 V/12 V/ timer/counters, and six interrupt sources. It is also equipped
24 V), the speed range from 1 to 100 in steps of 1 and 5. The with full duplex UART serial channel, low-power idle and
direction can be either clockwise or anticlockwise. power-down modes, watchdog timer, and dual data pointer
The complete system consists of six (6) different units. [10]. In addition, AT8952 has a high speed of program
This include the power supply unit, the microcontroller unit, execution and high processing capability. The interface and
optoisolator unit, the LCD display unit, the MOSFET the memory was adequate for the task at hand since it has to
chopper unit, and the DC motor. This block diagram in learn only 35 single word instructions. The above-
Figure 1 shows the interconnections of the various units. mentioned requirements facilitate the choice of the AT8952
chip.
All the instructions for control functions are programmed
into the microcontroller. The 5 V DC output of the power
supply is connected to pin 40 of the microcontroller. The
microcontroller uses a pull down resistor connected to port
0, and a crystal oscillator of 11.0592 MHz in conjunction
with a couple of capacitors of 27 µF. The resistor and the
crystal oscillator were connected to pins 18 and 19 of the
microcontroller for stable oscillation as shown in Figure 3.
C. The LCD Display Unit
The unit is responsible for the digital display of output
information. The LCD was properly interfaced to the
microcontroller as sown in Figure 4. The data pins of the
Figure 1: Block Diagram of the System LCD were connected to port 2 of the microcontroller.
D. The Keypad Unit
A. The Power Supply Unit The keypad allows the user to input required instruction to
The power supply is made up of the transformer, the the microcontroller as predetermined. There are eight keys
rectifier circuit, the filter circuit, and the regulator circuit. on the keypad for different operations as shown in Figure 5.
The circuit arrangement is shown in Figure 2. Two The keypad switches were connected to port 1 of the
transformers are used to step down the AC voltage of 230 V microcontroller. The possible operations include the
to 15 V. The diodes converts the input AC current into DC. switching function, speed control function, the changing of
This is known as rectification. The rectified output is a the output voltage, and the changing of direction of rotation
rippled DC which requires filtering. The ripples are filtered of the DC motor.
using a capacitor arrangement. A positive voltage regulator
is used to control the output DC voltage.
15
A
GND
1
3
B. The Optoisolator Unit
VO
180R LCD
+5V
2
VCC
R/W
5
The optoisolator was used to transmit signals or data
K 16
RS
D7
D6
D4
D5
D3
D2
D1
D0
E
14 13 12 11 10 9 8 7 4 6
R25 1k
achieved an excellent isolation [12]. In this work, they were
28 27 26 25 24 23 22 21 10 11
C14
27pF used in the transfer of on-off control signals for switching
560R 560R
P2.7
P2.6
P2.5
P2.4
P2.3
P2.2
P2.1
P2.0
P3.0
P3.1
560R
560R
560R a
560R
39
38
P0.0
P0.1
XTAL1
18
purposes and for circuit isolation. The second pins of all the
b X2
c
37
P0.2 atmel8952 16MHz
optoisolators were interconnected while the first pins were
10µF
C5
9 19
reser XTAL2
P1.5
P1.4
P1.3
P1.2
P1.1
P1.0
P0.6
P0.5
P0.4
P0.3
P1.7
P1.6
VDD
VDD
VSS
10k C12 27pF
20 31 40 33 34 35 36 8 7 6 5 4 3 2 1
anticlk
0n/off
volts
clk
-5
+5
+1
-1
560R
560R
microcontroller. The microcontroller processes the
g
information and display the appropriate output on the LCD
560R
560R
display unit.
f
560R
C. The MOSFET Chopper Unit
560R
560R
voltage [9]. The MOSFETs acted as switches as shown in
d Figure 6. They are employed to switch on and off the power
Power supply
supply to the load for a certain time interval. This was
12V Transformer
achieved by varying the firing angle. By so doing, the speed
AC
240V
1N4007
+5V
of the DC motor was controlled.
1,000µF
1,000µF
7805
D. Software
1N4007
Keil µVision3 software, Express PCB, and Express SCH
Figure 3: The Microcontroller Unit were used for the programming, the layout design, and the
schematic design respectively. µVision3 is an Integrated
Development Environment (IDE) for code writing,
compilations, and debugging [14]. It comprised of a project
manager, a make facility, tool configuration, an editor, and a
debugger. Express PCB V5.6.0 and Express SCH V5.6.0
were used in this work. The codes were written in assembly
language. This language was preferred to a high-level
programming language because of speed, control, and
preference. The programs run faster since there is no need
for compilation of source codes. The programmer interacts
with the embedded system hardware directly.
vcc1
1k
Vcc(6-24v)
100uf
12v
bc548
Figure 4: Interfacing LCD with the Microcontroller
a irf150
bc558 10k
10k
bc548
b
irf150
bc558 10k
10k
gnd(6-24v)
vcc2
1k
Vcc(6-24v)
100uf
12v
bc548
c
irf150
bc558 10k
10k
Figure 5: The Keypad Unit
gnd2 1k Vcc Motor b
unregulated
(6-24v)
A. The DC Motor
100uf
12v
bc548
varying the armature voltage, the speed of the motor is Figure 6: The Chopper Circuit
varied.
III. SYSTEM IMPLEMENTATION AND TESTING design were done using Express PCB software as shown in
The complete circuit was initially arranged on a bread Figure 9. Hard copies were printed and pasted on copper
board and stage by stage testing was performed before it clads. Heat generated by electric iron was used to transfer
was finally implemented on a PCB board. Thereafter, the the circuit diagram pattern to the copper clad surface. The
various components that made up the circuit of each unit of uncovered portions of the copper clad were etched in Iron
the system were soldered in tandem to meet desired Chloride. The appropriate components were carefully placed
workability. in drilled holes for onward soldering. The electrical
Three voltage levels were achieved using the DC motor components were soldered to form a complete circuit as
controller. They are 6 V, 12 V, and 24 V with a maximum designed shown in Figure 8.
current capacity of 5 A. The 12 V and 5 V outputs were
supplied to the switching circuit and the control circuit
respectively. In addition to the traditional power supply
circuit, a circuit called Switched Mode Power Supply
(SMPS) was used for efficient, secured voltage supply to the
microcontroller, eliminating possible fluctuations. This was
used to supply voltage to the various stages of the circuit
during the breadboard test. During the soldering phase, the
power supply was still used to test various stages before
they were finally soldered.
The main component in the control circuit is the
microcontroller, AT8952. The microcontroller was
programmed before physical implementation on the PCB
board. The ASM compiler used for debugging was the Figure 8: Complete System Circuitry
mikrolingual complier.
IV. CONCLUSION
This work achieved a design and implementation of a DC
motor speed control for operating voltages of 6 V, 12 V, and
24 V with a maximum current capacity of 5 A. The control
mechanism enables efficient speed regulation with more
reliable functionalities even at large currents. The analog
circuit was replaced with an Atmel AT89S52
microcontroller circuit. Similar to the traditional approach,
the field voltage was kept constant while the armature
voltage was varied. The switching action was done by four-
quadrant choppers which utilized Metal–Oxide
Semiconductor Field-Effect Transistors (MOSFETs). The
operating characteristics of the motor can be altered using
the keypad. The DC motor operates in four operation
modes: forward generating; forward motoring; reverse
generating; and reversed motoring. The control information
is displayed via the LCD unit.
However, the application of four-quadrant chopper
control is limited to DC motors whereas AC motors have
extensive applications in industrial automation. Therefore,
future work should be done to achieve digital speed control
of AC motors.
REFERENCES
[1] Thomas E. Kissell, “Industrial Electronics”, 2nd Edition Prentice
Hall , 2000.
[2] Irvin M. Gottlieb, “Electric Motor and Control Techniques”, Jameco,
2nd Edition, Chapter 2, pp. 32-54.
[3] B.L. Theraja and A. K.Theraja, “A Textbook of Electrical
Technology”, S. Chand, 22nd Edition, 2005, Vol. 2, Chapters 29-30,
pp. 996-1078.
[4] P.S. Bimbra, “ Power Electronics”, Delhi, Khanna Publishers, 2007.
[5] Motor Drives. Available online: http://www.ee.ttu.edu/motordrives
[6] New Haven Display, “NHD-0216K1Z-NSW-BBW-LLCM (Liquid
Crystal Display Module) Datasheet”, 2008. Available at
www.newhavendisplay.com/specs/NHD-0216K1Z-NSW-BBW-L.pdf
[7] Stephen W. Fardo et al, “Electrical Power Systems Technology”,
CRC Press, 3rd Edition, 2008, Chapter 14, pp. 349-399.
[8] John Bird, “Electrical and Electronic Principles and Technology”,
Newnes, 2nd Edition, 2003, Chapter 22, pp.. 328-350.
[9] A. Morbid, S.B. Dewan, “Selection of commutation circuits for four
quadrant choppers”, In Proc. International Journal of Electronics’03,
1988, pp. 507-520.
[10] M. A. Mazidi, J. G. Mazidi and R.D. McKinlay, “The 8051
Microcontroller and Embedded Systems- using Assembly and C”.
Delhi: Pearson Prentice Hall, 2009.
[11] M.D. Singh and K.B. Kanchandani, “Power Electronics”, Tata
McGraw Hill, 2008.
[12] Texas Instruments, “MCT2, MCT2E Optoisolators SOES023
datasheet”, Mar 1983 [Revised Oct 1995]