SlideShare a Scribd company logo
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
__________________________________________________________________________________________
Volume: 02 Issue: 11 | Nov-2013, Available @ http://www.ijret.org 686
BI DIRECTIONAL SPEED CONTROL OF DC MOTOR AND STEPPER
MOTOR THROUGH MAT LAB USING PIC MICRO CONTROLLER
Ozwin Dominic Dsouza1
, Manjunathababu. P2
, Babu Naik3
1
BMS Institute of Technology, Bangalore, India
ozwindsouza@gmail.com, manjubabup@gmail.com
Abstract
In any industry speed control of an electric drive system is very critical and crucial. Every designer aims at achieving a control
methodology having high degree of precision. But industry needs are ever evolving in nature. Hence it is very much essential that
along with conventional speed control mechanisms we must also have simple interactive graphical based control strategies. Several
algorithms/methodologies have been developed over the years to achieve speed control of motors. In this context by encompassing the
usability of Mat Lab, work has been done to control the speed of stepper motor and DC motor using microcontroller. Microcontroller
is programmed to achieve bi directional speed control. The main objective of this work is to develop the graphical user interface of
motor control through mat Lab guide and the interface of the same with hardware via serial communication. PIC is used as the
controller.
Keywords— DC, PIC, µC, AC, GUI, IC
---------------------------------------------------------------------***----------------------------------------------------------------------
1. INTRODUCTION
DC motors are widely used in adjustable speed drives and
position control applications. In DC motor speeds below its
base speed is controlled by armature voltage control method [1]
[2]. Speeds above base speed are achieved by encompassing
field flux control method. Speed controls of DC motors are
much cheaper and simpler as compared to AC motors. This is
mainly because in DC motor speed control only two control
parameters are sufficient (voltage or flux). On the contrary an
AC motor speed control requires three control parameters.
A stepper motor is a marvel in simplicity [1]. It is basically an
electromechanical device which converts electrical pulses into
discrete mechanical movements. Unlike DC motors it has no
brushes and contacts and is a synchronous motor with the
magnetic field electronically switched to rotate the armature
magnet. The essential function of a stepper motor is to translate
switching excitation changes into precisely defined increments
of rotor position. A stepper motor can divide a full rotation into
a large number of steps, for example 200 steps. The motor thus
can be made to rotate through a precise angle. The sequence of
applied pulses is directly related to the direction of motor
rotation. There are different types of stepper motors; namely (i)
permanent magnet (ii) variable reluctance (iii) Hybrid motors.
The basic block diagram of stepper motor is shown in figure 1
below.
Fig 1 Block diagram of stepper motor
Speed control of DC motor and stepper motor through Mat Lab
using PIC microcontroller (µC) [3] is an initiative taken to
emphasize the use of two types of motors( stepper and DC
motor) together. PIC µC used here enables the user to code in
such a way that the DC and stepper motors rotate in forward
and reverse direction at any given point of time as and when
specified by the user through keys. At the same time user has
an option of manual intervention in direction of rotation, as PIC
µC is designed to operate in both auto and manual mode.
It is a proven fact that proven over the years that MAT Lab is a
powerful design/simulation tool. It gives greater flexibility to a
designer to analyze the circuit/product before the actual
implementation. Signals required to run in auto mode are
generated through Mat Lab using Graphical user interface
(GUI) [4]. GUI facilitates the simple coding technique through
which signals could be sent. This work describes the GUI codes
for sending signals to hardware through parallel port under the
supervision of µC. This type of speed control approach is
highly useful in applications where precise speed control is
required for example in computer numeral control (CNC).
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
__________________________________________________________________________________________
Volume: 02 Issue: 11 | Nov-2013, Available @ http://www.ijret.org 687
2. HARDWARE DESCRIPTION
Detailed block diagram of the project is as shown in figure 2
below. It mainly consists of the following parts.
A. DC Motor
A dc motor works based on the principle of electromagnetic
induction Here a DC motor having 9-12V, 2000 RPM rating is
used. DC motor is connected to PIC µC via a dual H-Bridge
motor driver integrated circuit. Motor drivers acts as current
amplifiers. They take low-current control signal and provide
high current signals. The higher current signals eventually drive
the motor in the designed program sequence.
Fig 2 Block diagram of the project
B. Stepper Motor:
A stepper motor having specification 12V, 1.8 Degrees is used
here. It is connected to PIC µC via stepper motor driver IC.
This IC basically takes the control signals from µC and in turn
takes controlling actions on stepper motor.
C. Buffer IC:
Buffer IC is also called as line driver IC. Buffer IC passes the
signal from one circuit to the other without any changes in
signals. The operating voltage rages from 2V to 6V.
D. H-Bridge Motor Control Circuit:
A very popular/simpler way of achieving speed control of a DC
motor is by using a single transistor based control. But the main
disadvantage of this control strategy is that, only uni-directional
speed control is possible. But in many applications it is
necessary to operate the motor in both directions; clockwise or
anticlockwise. A very good way of achieving this is to connect
the motor to a Transistor H-Bridge circuit. With this
arrangement Bi-directional DC motor operation becomes
possible.
2.1 Basic Bi-directional H-bridge Circuit:
Figure 3 shows the basic H-bridge circuit. It is named so
because the basic configuration of the four switches, transistors
resembles the letter H with the motor positioned in the center.
The transistor or MOSFET H-bridge is probably the most
commonly used Bi-directional DC motor control circuit. Which
uses complementary transistor pairs, both NPN and PNP in
each branch along with motor. The transistor operates in pairs
to control the motor.
From figure 3, control input A, operates the motor in one
direction; Forward rotation and input B operates the motor in
Reverse direction; Reverse rotation. Switching the transistors
ON or OFF in their diagonal pairs results in bi-directional
control of the motor. Then transistor TR1 is ON and transistor
TR2 is OFF, point A is connected to the supply voltage (+Vcc)
and if transistor TR3 is OFF
Fig 3 H-Bridge circuit
H-Bridge circuit and transistor TR2 is OFF, point A is
connected to the supply voltage (+Vcc) and if transistor TR3 is
OFF and transistor TR4 is ON, point B is connected to ground
(GND) terminal. Then the motor will rotate in one direction
corresponding to motor terminal A being positive and terminal
B being negative. If the switching states are reversed, then the
motor will operate in the reverse direction. The H-bridge truth
table for the motor operation is shown in Table 1.
It is important to note that Input A and Input B must not be kept
at High Logic. If not then the power supply terminals gets short
circuited and the fuse blows. IC L293D is used in this work as
motor driver IC. This IC is a dual H-bridge motor driver, so
with one IC, user can interface two DC motors which can be
controlled both in forward and reverse direction. For protecting
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
__________________________________________________________________________________________
Volume: 02 Issue: 11 | Nov-2013, Available @ http://www.ijret.org 688
the circuit from back emf output diodes are included within the
IC. This has made it a best choice for DC motor driver. Pin
configuration is shown in figure 4.
Table 1 H-Bridge truth table
Input A (TR1
and TR4)
Input B (TR2
and TR3)
Motor Function
0 0 Motor
Stops(OFF)
1 0 Motor rotes
forward
0 1 Motor rotates
reverse
1 1 Not Allowed
2.2 Stepper Motor Driver IC:
This IC is used to drive the current from the µC to the stepper
motor. Driver IC used here is ULN2803. It consists of eight
Darlington transistors with common emitters and integral
suppression diodes for inductive loads. Input to this circuit is
given from the PORT of the
Fig 4 Pin configuration
µC. Output of this IC is given to stator of stepper motor.
2.3 PIC microcontroller (µC):
PIC16F887 is used in this work. This µC encompasses RISC
architecture. Operating frequency is 0-20MHz. PIC µC
performs the job of a controller. This µC totally controls the
entire process. It is coded in such a fashion that both manual
and automatic speed control is possible.
3. SOFTWARE DESCRIPTION
Software part of this project consists of two parts (1) Coding of
µC (2) Creating GUI for speed control. Unique approach of this
project is that the GUI creation and the controlling through it.
Mat Lab supports wide range of applications, including signal
and image processing, communications, control design, test and
measurement etc.
GUI is a pictorial interface to a program. A good GUI can make
programs easier to use by providing them with a descriptive
appearance and with insightful controls like pushbuttons, list
boxes, sliders, menus so on and so forth. The GUI should
behave in an understandable and knowable manner, so that a
user knows what to anticipate when performs an action
example, like mouse click occurs on a pushbutton. The GUI
should initiate the action described on the label of the button.
Figure 5 shows the developed GUI for motor control.
Fig 5 GUI of Motor Control
Fig 6 Actual implementation of Motor Control
After laying out the GUI component and setting the property,
the GUI will look like as shown in figure 5. Finally ode is
written to implement the behavior associated with each call
beck function. This kind of programming is often called event-
driven programming. Actual view of the project is given in
figure 6.
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
__________________________________________________________________________________________
Volume: 02 Issue: 11 | Nov-2013, Available @ http://www.ijret.org 689
CONCLUSIONS
In this work a computer program has been developed for
programming and driving stepper and DC motors via the
parallel port of a PC; a GUI performing all defined motions
individually are also improved. In addition, the GUI allows
programmers to define the user defined functions. So, the
programmers can make stepper motors and DC motors to rotate
in all manners. The developed programs are tested with a
stepper motor of 1.80 step angle in forward and reverse with
speed variation modes. Also the developed program is tested
with a DC motor for forward and reverse motion control. Very
satisfactory results are obtained from experimental setup. The
program can be used in applications containing steeper and DC
motors performing complex motions. From the obtained results
it is concluded that speed control of DC motor and Stepper
motor can be used in robotic systems, DC drive systems, paper
printing mills, CNC machines.
FUTURE WORK
As a future expansion, work is under progress, so as to control
the motors using sensor less technique using faster µC or DSP.
Work is also under progress in the control software loop.
Design of Fuzzy control, neural network control, Adaptive
control algorithms are currently under progress.
ACKNOWLEDGMENT
The authors would like to thank Dr. S.C. Sharma, Chief Mentor
BMSIT and BMSSA for providing constant thrust/ inspiration
to achieve more. The authors also thank Prof. S.
Venkateswaran Principal BMSIT for his constant support. The
efforts of final year Electrical students while realizing this work
is also acknowledged.
REFERENCES
[1] A. E. Fitzgerald, Charles Kingsley Jr, Stephen Umans
“Electric Machinery” McGraw-Hill Higher Education, Sixth
Edition
[2] Bimal K Bose, “Power Electronics And Motor Drives:
Advances and Trends”. Academic Press, 2006 edition
[3] J. Petrovciv, S. Strmcnik,“A microcomputer based speed
controller for lift drives” IEEE Trans. Ind.Appl.,24(3), vol.34,
pp.487-498,1998.
[4] Mat Lab, Creating Graphical User Interfaces, Version 7,
The Mathworks Inc. Naticks/Ma, 2006.
BIOGRAPHIES
Ozwin Dominic Dsouza has received his masters from
National Institute of Engineering, Mysore, India. Currently
working as Assistant professor in the department of Electrical
and Electronics Engg at BMSIT Bangalore. His research
interests are in the field of electric drives and systems and
control systems, converter topologies and electrical machines.
Manjunatha Babu P obtained his B.E and M.E from
Visvesvaraya Technological University, Bangalore University.
Presently working as Assistant Professor in the Dept of
Electrical and Electronics Engineering at BMS Institute of
Technology, Bangalore, India. His interests are in the area of
power and Energy systems. Power System Operation and
Control, Power Transmission and Distributions System Studies,
FACTS Controllers.
Babu Naik Gugulothu, has received his masters from the
Indian Institute of Science (IISc) Bangalore, India. Currently
working as Assistant professor in the department of Electrical
and Electronics Engg at BMSIT Bangalore. His research
interests are in the field of Industrial drives and applications,
power systems, SMPS circuits, converter topologies and
electrical machines.

More Related Content

What's hot (20)

PDF
[IJET-V1I4P11] Authors :Wai Mar Myint, Theingi
IJET - International Journal of Engineering and Techniques
 
PDF
IRJET - IoT based Speed Control of DC Motor using PWM Technique
IRJET Journal
 
PDF
AN INSIDE LOOK IN THE ELECTRICAL STRUCTURE OF THE BATTERY MANAGEMENT SYSTEM T...
International Journal of Technical Research & Application
 
PPTX
Industrial project
Nishant Goyal
 
PDF
Dc motor speed control with feedback monitor based on c# application
eSAT Publishing House
 
PDF
Dc motor speed control with feedback monitor based on c# application
eSAT Journals
 
PDF
Speed Control of Induction Motor Using PLC and SCADA System
IJERA Editor
 
PPTX
FPGA Based Speed Control of BLDC Motor
Rajesh Pindoriya
 
PDF
Reviews of Cascade Control of Dc Motor with Advance Controller
ijsrd.com
 
PPTX
Mechatronics unit 2 and 3
loganathan99
 
PDF
International Journal of Computational Engineering Research(IJCER)
ijceronline
 
PDF
Joystick Controlled Wheelchair
IRJET Journal
 
PDF
International Journal of Computational Engineering Research(IJCER)
ijceronline
 
PDF
Gx3412721276
IJERA Editor
 
PDF
Comparative study of hybrid and cascaded h bridge
eSAT Publishing House
 
PPTX
Introduction to Mechatronics
Veerakumar S
 
PDF
IRJET - Vehicle Commencement Process using Fingerprint with Speed Locking Sys...
IRJET Journal
 
PPTX
ME 6702 Mechatronic unit V
NAVEEN UTHANDI
 
PDF
IRJET- AC Motor Fault Analyser by Characteristic Analysis
IRJET Journal
 
PDF
E044081720
IJERA Editor
 
[IJET-V1I4P11] Authors :Wai Mar Myint, Theingi
IJET - International Journal of Engineering and Techniques
 
IRJET - IoT based Speed Control of DC Motor using PWM Technique
IRJET Journal
 
AN INSIDE LOOK IN THE ELECTRICAL STRUCTURE OF THE BATTERY MANAGEMENT SYSTEM T...
International Journal of Technical Research & Application
 
Industrial project
Nishant Goyal
 
Dc motor speed control with feedback monitor based on c# application
eSAT Publishing House
 
Dc motor speed control with feedback monitor based on c# application
eSAT Journals
 
Speed Control of Induction Motor Using PLC and SCADA System
IJERA Editor
 
FPGA Based Speed Control of BLDC Motor
Rajesh Pindoriya
 
Reviews of Cascade Control of Dc Motor with Advance Controller
ijsrd.com
 
Mechatronics unit 2 and 3
loganathan99
 
International Journal of Computational Engineering Research(IJCER)
ijceronline
 
Joystick Controlled Wheelchair
IRJET Journal
 
International Journal of Computational Engineering Research(IJCER)
ijceronline
 
Gx3412721276
IJERA Editor
 
Comparative study of hybrid and cascaded h bridge
eSAT Publishing House
 
Introduction to Mechatronics
Veerakumar S
 
IRJET - Vehicle Commencement Process using Fingerprint with Speed Locking Sys...
IRJET Journal
 
ME 6702 Mechatronic unit V
NAVEEN UTHANDI
 
IRJET- AC Motor Fault Analyser by Characteristic Analysis
IRJET Journal
 
E044081720
IJERA Editor
 

Viewers also liked (20)

DOCX
Power plant parameters monitoring & controlling using x beezig bee
Pvrtechnologies Nellore
 
PPTX
Power station monitoring and cyber security
Thames Global Consultants
 
PDF
Zigbee based parameter monitoring and controlling system for induction machine
Naqeeb Ullah Kakar
 
PDF
Nokia_Sub-station_Automation_White_Paper_EN
Juan Boggiano
 
PPT
Voltage & frequency monitoring through lcd
HariKishore Karanapu
 
PPTX
Presentation on electrical and automation system of cgl plant (CRM-2) JSW KR.
neeraj mishra
 
PDF
Power Plant Performance Monitoring and Trend Analysis
Md. Moynul Islam
 
PPTX
Substation monitoring1
buckky
 
PDF
Using Kittiwake Oil Test Center in Oil Analysis Laboratory
Md. Moynul Islam
 
DOCX
BHELreport
Vinay R
 
PDF
Automation- Metering, Sub Station & Industrial Automation
EPC Solutions LLP
 
PDF
Rapportpfanidbelkacem 140305043828-phpapp01
bessem ellili
 
PPTX
Power system automation
Guider Lee
 
DOC
SCADA PROJECTS ABSTRACT-Scada for power station substation monitoring and aut...
ASHOKKUMAR RAMAR
 
PPT
Stepper motor
sethuvalmiki
 
PPTX
Stepper motor
Speaking Technology
 
PPT
slide on stepper motor
Samikshya Kar
 
PPT
Steper Motor Control Through Wireless
Pawan Bahuguna
 
PPT
AUTOMATIC IRRIGATION SYSTEM USING ARDUINO UNO
Rizki Verdian
 
DOCX
automatic plant irrigation using aurdino and gsm technology
thamil arasan
 
Power plant parameters monitoring & controlling using x beezig bee
Pvrtechnologies Nellore
 
Power station monitoring and cyber security
Thames Global Consultants
 
Zigbee based parameter monitoring and controlling system for induction machine
Naqeeb Ullah Kakar
 
Nokia_Sub-station_Automation_White_Paper_EN
Juan Boggiano
 
Voltage & frequency monitoring through lcd
HariKishore Karanapu
 
Presentation on electrical and automation system of cgl plant (CRM-2) JSW KR.
neeraj mishra
 
Power Plant Performance Monitoring and Trend Analysis
Md. Moynul Islam
 
Substation monitoring1
buckky
 
Using Kittiwake Oil Test Center in Oil Analysis Laboratory
Md. Moynul Islam
 
BHELreport
Vinay R
 
Automation- Metering, Sub Station & Industrial Automation
EPC Solutions LLP
 
Rapportpfanidbelkacem 140305043828-phpapp01
bessem ellili
 
Power system automation
Guider Lee
 
SCADA PROJECTS ABSTRACT-Scada for power station substation monitoring and aut...
ASHOKKUMAR RAMAR
 
Stepper motor
sethuvalmiki
 
Stepper motor
Speaking Technology
 
slide on stepper motor
Samikshya Kar
 
Steper Motor Control Through Wireless
Pawan Bahuguna
 
AUTOMATIC IRRIGATION SYSTEM USING ARDUINO UNO
Rizki Verdian
 
automatic plant irrigation using aurdino and gsm technology
thamil arasan
 
Ad

Similar to Bi directional speed control of dc motor and stepper motor through mat lab using pic micro controller (20)

PDF
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
Journal For Research
 
PDF
Study and implementation of dc drive using pic16 f877a microcontroller
eSAT Publishing House
 
PDF
Bi directional speed control of dc motor and stepper
eSAT Publishing House
 
PPTX
DC motor control using multiple switches
Asutosh Acharya
 
PDF
Analysis and control of four quadrant operation of three phase brushless dc (...
eSAT Publishing House
 
PDF
235420144 analysis-and-control-of-four-quadrant-operation-of-three-phase-brus...
Ankit Agrawal
 
PPT
Design and Construction of DC Motor Speed Controller Using Android.ppt
EEESrproject
 
PDF
Robotic Catching Arm using Microcontroller
IRJET Journal
 
PDF
IRJET- Direct Torque Control of Induction Motor
IRJET Journal
 
PDF
Matlab simulation on chopper based speed control of dc motor: A Review
IRJET Journal
 
PDF
DTC Scheme for a Four-Switch Inverter-Fed PMBLDC Motor Emulating the Six-Swit...
IJRST Journal
 
PDF
Stepper Motor Drive For Position Control in Robotic Applications
ijiert bestjournal
 
PDF
IRJET- Speed Control of BLDC Motor using PID Tuned Fuzzy Controller
IRJET Journal
 
PDF
IRJET - Flyback Converter based BLDC Motor Drives for Power Device Applications
IRJET Journal
 
PDF
Speed Control of Brushless Dc Motor Using Fuzzy Logic Controller
iosrjce
 
PDF
J010616573
IOSR Journals
 
DOCX
Report no.6..(bipolar motor n DC motor)
Ronza Sameer
 
PDF
QUICK DYNAMIC TORQUE CONTROL IN DTC-HYSTERESIS-BASED INDUCTION MOTOR BY USING...
ijiert bestjournal
 
PDF
E1103024045
IOSR Journals
 
PDF
Simulation DC Motor Speed Control System by using PID Controller
ijtsrd
 
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
Journal For Research
 
Study and implementation of dc drive using pic16 f877a microcontroller
eSAT Publishing House
 
Bi directional speed control of dc motor and stepper
eSAT Publishing House
 
DC motor control using multiple switches
Asutosh Acharya
 
Analysis and control of four quadrant operation of three phase brushless dc (...
eSAT Publishing House
 
235420144 analysis-and-control-of-four-quadrant-operation-of-three-phase-brus...
Ankit Agrawal
 
Design and Construction of DC Motor Speed Controller Using Android.ppt
EEESrproject
 
Robotic Catching Arm using Microcontroller
IRJET Journal
 
IRJET- Direct Torque Control of Induction Motor
IRJET Journal
 
Matlab simulation on chopper based speed control of dc motor: A Review
IRJET Journal
 
DTC Scheme for a Four-Switch Inverter-Fed PMBLDC Motor Emulating the Six-Swit...
IJRST Journal
 
Stepper Motor Drive For Position Control in Robotic Applications
ijiert bestjournal
 
IRJET- Speed Control of BLDC Motor using PID Tuned Fuzzy Controller
IRJET Journal
 
IRJET - Flyback Converter based BLDC Motor Drives for Power Device Applications
IRJET Journal
 
Speed Control of Brushless Dc Motor Using Fuzzy Logic Controller
iosrjce
 
J010616573
IOSR Journals
 
Report no.6..(bipolar motor n DC motor)
Ronza Sameer
 
QUICK DYNAMIC TORQUE CONTROL IN DTC-HYSTERESIS-BASED INDUCTION MOTOR BY USING...
ijiert bestjournal
 
E1103024045
IOSR Journals
 
Simulation DC Motor Speed Control System by using PID Controller
ijtsrd
 
Ad

More from eSAT Journals (20)

PDF
Mechanical properties of hybrid fiber reinforced concrete for pavements
eSAT Journals
 
PDF
Material management in construction – a case study
eSAT Journals
 
PDF
Managing drought short term strategies in semi arid regions a case study
eSAT Journals
 
PDF
Life cycle cost analysis of overlay for an urban road in bangalore
eSAT Journals
 
PDF
Laboratory studies of dense bituminous mixes ii with reclaimed asphalt materials
eSAT Journals
 
PDF
Laboratory investigation of expansive soil stabilized with natural inorganic ...
eSAT Journals
 
PDF
Influence of reinforcement on the behavior of hollow concrete block masonry p...
eSAT Journals
 
PDF
Influence of compaction energy on soil stabilized with chemical stabilizer
eSAT Journals
 
PDF
Geographical information system (gis) for water resources management
eSAT Journals
 
PDF
Forest type mapping of bidar forest division, karnataka using geoinformatics ...
eSAT Journals
 
PDF
Factors influencing compressive strength of geopolymer concrete
eSAT Journals
 
PDF
Experimental investigation on circular hollow steel columns in filled with li...
eSAT Journals
 
PDF
Experimental behavior of circular hsscfrc filled steel tubular columns under ...
eSAT Journals
 
PDF
Evaluation of punching shear in flat slabs
eSAT Journals
 
PDF
Evaluation of performance of intake tower dam for recent earthquake in india
eSAT Journals
 
PDF
Evaluation of operational efficiency of urban road network using travel time ...
eSAT Journals
 
PDF
Estimation of surface runoff in nallur amanikere watershed using scs cn method
eSAT Journals
 
PDF
Estimation of morphometric parameters and runoff using rs & gis techniques
eSAT Journals
 
PDF
Effect of variation of plastic hinge length on the results of non linear anal...
eSAT Journals
 
PDF
Effect of use of recycled materials on indirect tensile strength of asphalt c...
eSAT Journals
 
Mechanical properties of hybrid fiber reinforced concrete for pavements
eSAT Journals
 
Material management in construction – a case study
eSAT Journals
 
Managing drought short term strategies in semi arid regions a case study
eSAT Journals
 
Life cycle cost analysis of overlay for an urban road in bangalore
eSAT Journals
 
Laboratory studies of dense bituminous mixes ii with reclaimed asphalt materials
eSAT Journals
 
Laboratory investigation of expansive soil stabilized with natural inorganic ...
eSAT Journals
 
Influence of reinforcement on the behavior of hollow concrete block masonry p...
eSAT Journals
 
Influence of compaction energy on soil stabilized with chemical stabilizer
eSAT Journals
 
Geographical information system (gis) for water resources management
eSAT Journals
 
Forest type mapping of bidar forest division, karnataka using geoinformatics ...
eSAT Journals
 
Factors influencing compressive strength of geopolymer concrete
eSAT Journals
 
Experimental investigation on circular hollow steel columns in filled with li...
eSAT Journals
 
Experimental behavior of circular hsscfrc filled steel tubular columns under ...
eSAT Journals
 
Evaluation of punching shear in flat slabs
eSAT Journals
 
Evaluation of performance of intake tower dam for recent earthquake in india
eSAT Journals
 
Evaluation of operational efficiency of urban road network using travel time ...
eSAT Journals
 
Estimation of surface runoff in nallur amanikere watershed using scs cn method
eSAT Journals
 
Estimation of morphometric parameters and runoff using rs & gis techniques
eSAT Journals
 
Effect of variation of plastic hinge length on the results of non linear anal...
eSAT Journals
 
Effect of use of recycled materials on indirect tensile strength of asphalt c...
eSAT Journals
 

Recently uploaded (20)

PDF
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
PDF
SG1-ALM-MS-EL-30-0008 (00) MS - Isolators and disconnecting switches.pdf
djiceramil
 
PPTX
Basics of Auto Computer Aided Drafting .pptx
Krunal Thanki
 
PDF
Air -Powered Car PPT by ER. SHRESTH SUDHIR KOKNE.pdf
SHRESTHKOKNE
 
PPTX
ENSA_Module_7.pptx_wide_area_network_concepts
RanaMukherjee24
 
PPTX
Ground improvement techniques-DEWATERING
DivakarSai4
 
DOCX
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
PDF
Zero carbon Building Design Guidelines V4
BassemOsman1
 
PDF
勉強会資料_An Image is Worth More Than 16x16 Patches
NABLAS株式会社
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
2025 Laurence Sigler - Advancing Decision Support. Content Management Ecommer...
Francisco Javier Mora Serrano
 
PDF
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
PDF
CAD-CAM U-1 Combined Notes_57761226_2025_04_22_14_40.pdf
shailendrapratap2002
 
PPTX
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
PDF
Machine Learning All topics Covers In This Single Slides
AmritTiwari19
 
PPTX
Precedence and Associativity in C prog. language
Mahendra Dheer
 
PPTX
Inventory management chapter in automation and robotics.
atisht0104
 
PDF
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
PDF
4 Tier Teamcenter Installation part1.pdf
VnyKumar1
 
PPTX
Introduction to Fluid and Thermal Engineering
Avesahemad Husainy
 
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
SG1-ALM-MS-EL-30-0008 (00) MS - Isolators and disconnecting switches.pdf
djiceramil
 
Basics of Auto Computer Aided Drafting .pptx
Krunal Thanki
 
Air -Powered Car PPT by ER. SHRESTH SUDHIR KOKNE.pdf
SHRESTHKOKNE
 
ENSA_Module_7.pptx_wide_area_network_concepts
RanaMukherjee24
 
Ground improvement techniques-DEWATERING
DivakarSai4
 
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
Zero carbon Building Design Guidelines V4
BassemOsman1
 
勉強会資料_An Image is Worth More Than 16x16 Patches
NABLAS株式会社
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
2025 Laurence Sigler - Advancing Decision Support. Content Management Ecommer...
Francisco Javier Mora Serrano
 
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
CAD-CAM U-1 Combined Notes_57761226_2025_04_22_14_40.pdf
shailendrapratap2002
 
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
Machine Learning All topics Covers In This Single Slides
AmritTiwari19
 
Precedence and Associativity in C prog. language
Mahendra Dheer
 
Inventory management chapter in automation and robotics.
atisht0104
 
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
4 Tier Teamcenter Installation part1.pdf
VnyKumar1
 
Introduction to Fluid and Thermal Engineering
Avesahemad Husainy
 

Bi directional speed control of dc motor and stepper motor through mat lab using pic micro controller

  • 1. IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308 __________________________________________________________________________________________ Volume: 02 Issue: 11 | Nov-2013, Available @ http://www.ijret.org 686 BI DIRECTIONAL SPEED CONTROL OF DC MOTOR AND STEPPER MOTOR THROUGH MAT LAB USING PIC MICRO CONTROLLER Ozwin Dominic Dsouza1 , Manjunathababu. P2 , Babu Naik3 1 BMS Institute of Technology, Bangalore, India [email protected], [email protected] Abstract In any industry speed control of an electric drive system is very critical and crucial. Every designer aims at achieving a control methodology having high degree of precision. But industry needs are ever evolving in nature. Hence it is very much essential that along with conventional speed control mechanisms we must also have simple interactive graphical based control strategies. Several algorithms/methodologies have been developed over the years to achieve speed control of motors. In this context by encompassing the usability of Mat Lab, work has been done to control the speed of stepper motor and DC motor using microcontroller. Microcontroller is programmed to achieve bi directional speed control. The main objective of this work is to develop the graphical user interface of motor control through mat Lab guide and the interface of the same with hardware via serial communication. PIC is used as the controller. Keywords— DC, PIC, µC, AC, GUI, IC ---------------------------------------------------------------------***---------------------------------------------------------------------- 1. INTRODUCTION DC motors are widely used in adjustable speed drives and position control applications. In DC motor speeds below its base speed is controlled by armature voltage control method [1] [2]. Speeds above base speed are achieved by encompassing field flux control method. Speed controls of DC motors are much cheaper and simpler as compared to AC motors. This is mainly because in DC motor speed control only two control parameters are sufficient (voltage or flux). On the contrary an AC motor speed control requires three control parameters. A stepper motor is a marvel in simplicity [1]. It is basically an electromechanical device which converts electrical pulses into discrete mechanical movements. Unlike DC motors it has no brushes and contacts and is a synchronous motor with the magnetic field electronically switched to rotate the armature magnet. The essential function of a stepper motor is to translate switching excitation changes into precisely defined increments of rotor position. A stepper motor can divide a full rotation into a large number of steps, for example 200 steps. The motor thus can be made to rotate through a precise angle. The sequence of applied pulses is directly related to the direction of motor rotation. There are different types of stepper motors; namely (i) permanent magnet (ii) variable reluctance (iii) Hybrid motors. The basic block diagram of stepper motor is shown in figure 1 below. Fig 1 Block diagram of stepper motor Speed control of DC motor and stepper motor through Mat Lab using PIC microcontroller (µC) [3] is an initiative taken to emphasize the use of two types of motors( stepper and DC motor) together. PIC µC used here enables the user to code in such a way that the DC and stepper motors rotate in forward and reverse direction at any given point of time as and when specified by the user through keys. At the same time user has an option of manual intervention in direction of rotation, as PIC µC is designed to operate in both auto and manual mode. It is a proven fact that proven over the years that MAT Lab is a powerful design/simulation tool. It gives greater flexibility to a designer to analyze the circuit/product before the actual implementation. Signals required to run in auto mode are generated through Mat Lab using Graphical user interface (GUI) [4]. GUI facilitates the simple coding technique through which signals could be sent. This work describes the GUI codes for sending signals to hardware through parallel port under the supervision of µC. This type of speed control approach is highly useful in applications where precise speed control is required for example in computer numeral control (CNC).
  • 2. IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308 __________________________________________________________________________________________ Volume: 02 Issue: 11 | Nov-2013, Available @ http://www.ijret.org 687 2. HARDWARE DESCRIPTION Detailed block diagram of the project is as shown in figure 2 below. It mainly consists of the following parts. A. DC Motor A dc motor works based on the principle of electromagnetic induction Here a DC motor having 9-12V, 2000 RPM rating is used. DC motor is connected to PIC µC via a dual H-Bridge motor driver integrated circuit. Motor drivers acts as current amplifiers. They take low-current control signal and provide high current signals. The higher current signals eventually drive the motor in the designed program sequence. Fig 2 Block diagram of the project B. Stepper Motor: A stepper motor having specification 12V, 1.8 Degrees is used here. It is connected to PIC µC via stepper motor driver IC. This IC basically takes the control signals from µC and in turn takes controlling actions on stepper motor. C. Buffer IC: Buffer IC is also called as line driver IC. Buffer IC passes the signal from one circuit to the other without any changes in signals. The operating voltage rages from 2V to 6V. D. H-Bridge Motor Control Circuit: A very popular/simpler way of achieving speed control of a DC motor is by using a single transistor based control. But the main disadvantage of this control strategy is that, only uni-directional speed control is possible. But in many applications it is necessary to operate the motor in both directions; clockwise or anticlockwise. A very good way of achieving this is to connect the motor to a Transistor H-Bridge circuit. With this arrangement Bi-directional DC motor operation becomes possible. 2.1 Basic Bi-directional H-bridge Circuit: Figure 3 shows the basic H-bridge circuit. It is named so because the basic configuration of the four switches, transistors resembles the letter H with the motor positioned in the center. The transistor or MOSFET H-bridge is probably the most commonly used Bi-directional DC motor control circuit. Which uses complementary transistor pairs, both NPN and PNP in each branch along with motor. The transistor operates in pairs to control the motor. From figure 3, control input A, operates the motor in one direction; Forward rotation and input B operates the motor in Reverse direction; Reverse rotation. Switching the transistors ON or OFF in their diagonal pairs results in bi-directional control of the motor. Then transistor TR1 is ON and transistor TR2 is OFF, point A is connected to the supply voltage (+Vcc) and if transistor TR3 is OFF Fig 3 H-Bridge circuit H-Bridge circuit and transistor TR2 is OFF, point A is connected to the supply voltage (+Vcc) and if transistor TR3 is OFF and transistor TR4 is ON, point B is connected to ground (GND) terminal. Then the motor will rotate in one direction corresponding to motor terminal A being positive and terminal B being negative. If the switching states are reversed, then the motor will operate in the reverse direction. The H-bridge truth table for the motor operation is shown in Table 1. It is important to note that Input A and Input B must not be kept at High Logic. If not then the power supply terminals gets short circuited and the fuse blows. IC L293D is used in this work as motor driver IC. This IC is a dual H-bridge motor driver, so with one IC, user can interface two DC motors which can be controlled both in forward and reverse direction. For protecting
  • 3. IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308 __________________________________________________________________________________________ Volume: 02 Issue: 11 | Nov-2013, Available @ http://www.ijret.org 688 the circuit from back emf output diodes are included within the IC. This has made it a best choice for DC motor driver. Pin configuration is shown in figure 4. Table 1 H-Bridge truth table Input A (TR1 and TR4) Input B (TR2 and TR3) Motor Function 0 0 Motor Stops(OFF) 1 0 Motor rotes forward 0 1 Motor rotates reverse 1 1 Not Allowed 2.2 Stepper Motor Driver IC: This IC is used to drive the current from the µC to the stepper motor. Driver IC used here is ULN2803. It consists of eight Darlington transistors with common emitters and integral suppression diodes for inductive loads. Input to this circuit is given from the PORT of the Fig 4 Pin configuration µC. Output of this IC is given to stator of stepper motor. 2.3 PIC microcontroller (µC): PIC16F887 is used in this work. This µC encompasses RISC architecture. Operating frequency is 0-20MHz. PIC µC performs the job of a controller. This µC totally controls the entire process. It is coded in such a fashion that both manual and automatic speed control is possible. 3. SOFTWARE DESCRIPTION Software part of this project consists of two parts (1) Coding of µC (2) Creating GUI for speed control. Unique approach of this project is that the GUI creation and the controlling through it. Mat Lab supports wide range of applications, including signal and image processing, communications, control design, test and measurement etc. GUI is a pictorial interface to a program. A good GUI can make programs easier to use by providing them with a descriptive appearance and with insightful controls like pushbuttons, list boxes, sliders, menus so on and so forth. The GUI should behave in an understandable and knowable manner, so that a user knows what to anticipate when performs an action example, like mouse click occurs on a pushbutton. The GUI should initiate the action described on the label of the button. Figure 5 shows the developed GUI for motor control. Fig 5 GUI of Motor Control Fig 6 Actual implementation of Motor Control After laying out the GUI component and setting the property, the GUI will look like as shown in figure 5. Finally ode is written to implement the behavior associated with each call beck function. This kind of programming is often called event- driven programming. Actual view of the project is given in figure 6.
  • 4. IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308 __________________________________________________________________________________________ Volume: 02 Issue: 11 | Nov-2013, Available @ http://www.ijret.org 689 CONCLUSIONS In this work a computer program has been developed for programming and driving stepper and DC motors via the parallel port of a PC; a GUI performing all defined motions individually are also improved. In addition, the GUI allows programmers to define the user defined functions. So, the programmers can make stepper motors and DC motors to rotate in all manners. The developed programs are tested with a stepper motor of 1.80 step angle in forward and reverse with speed variation modes. Also the developed program is tested with a DC motor for forward and reverse motion control. Very satisfactory results are obtained from experimental setup. The program can be used in applications containing steeper and DC motors performing complex motions. From the obtained results it is concluded that speed control of DC motor and Stepper motor can be used in robotic systems, DC drive systems, paper printing mills, CNC machines. FUTURE WORK As a future expansion, work is under progress, so as to control the motors using sensor less technique using faster µC or DSP. Work is also under progress in the control software loop. Design of Fuzzy control, neural network control, Adaptive control algorithms are currently under progress. ACKNOWLEDGMENT The authors would like to thank Dr. S.C. Sharma, Chief Mentor BMSIT and BMSSA for providing constant thrust/ inspiration to achieve more. The authors also thank Prof. S. Venkateswaran Principal BMSIT for his constant support. The efforts of final year Electrical students while realizing this work is also acknowledged. REFERENCES [1] A. E. Fitzgerald, Charles Kingsley Jr, Stephen Umans “Electric Machinery” McGraw-Hill Higher Education, Sixth Edition [2] Bimal K Bose, “Power Electronics And Motor Drives: Advances and Trends”. Academic Press, 2006 edition [3] J. Petrovciv, S. Strmcnik,“A microcomputer based speed controller for lift drives” IEEE Trans. Ind.Appl.,24(3), vol.34, pp.487-498,1998. [4] Mat Lab, Creating Graphical User Interfaces, Version 7, The Mathworks Inc. Naticks/Ma, 2006. BIOGRAPHIES Ozwin Dominic Dsouza has received his masters from National Institute of Engineering, Mysore, India. Currently working as Assistant professor in the department of Electrical and Electronics Engg at BMSIT Bangalore. His research interests are in the field of electric drives and systems and control systems, converter topologies and electrical machines. Manjunatha Babu P obtained his B.E and M.E from Visvesvaraya Technological University, Bangalore University. Presently working as Assistant Professor in the Dept of Electrical and Electronics Engineering at BMS Institute of Technology, Bangalore, India. His interests are in the area of power and Energy systems. Power System Operation and Control, Power Transmission and Distributions System Studies, FACTS Controllers. Babu Naik Gugulothu, has received his masters from the Indian Institute of Science (IISc) Bangalore, India. Currently working as Assistant professor in the department of Electrical and Electronics Engg at BMSIT Bangalore. His research interests are in the field of Industrial drives and applications, power systems, SMPS circuits, converter topologies and electrical machines.