ABSTRACT
A microcontroller-Based Versatile Stepper Motor System/Trainer has been designed and implemented in this project. The developed prototype was built with readily available components including the AT89C51 Microcontroller which runs the control software and provides a flexible interface to the stepper motor drive. The control system is capable of driving the stepper motor clockwise or counterclockwise in full steps or in half steps according to the need of the stepper motor driven application. The angular displacement for the stepper motor shaft is 50 per full-step and 2.50 per half-step but this varies according to the design of each stepper motor. This prototype can be used to demonstrate the features of a stepper motor that recommends it for use in incremental motion control where precision and positioning accuracy are of paramount importance. Examples of such applications include its use in conveyor belts in pharmaceutical industries, bottling companies, printers, and many others. If used as a trainer kit in our tertiary institutions, there is no doubt that it will enhance the know-how of the students and by extension improve their capacity to help automate our local industries
TABLE OF CONTENTS
Title Page i
Certification Page ii
Approval Page iii
Dedication Page iv
Acknowledgement Page v
Abstract vi
Table of Contents vii
List of Figures xii
List of Tables xiii
CHAPTER ONE: INTRODUCTION
1.1 Background of the study ……………………………………1
1.2 objective of the project ……………………………………..2
1.3 justification of the project ………………………………….2
1.4 scope of project ………………………………………………….3
1.5 Block diagram overview of the project………………4
1.6 Project Report Organization……………………………….4
viii
CHAPTER TWO : LITERATURE REVIEW
2.1 Review of Related Past Work….…………………………6
2.2 Electronic Motors…………..…………………………………..7
2.2.1 DC motors………………………………………………………..8
2.2.2 AC Motors…………………………………………………………11
2.2.3 Stepping Motor………………………………………………..14
2.3 Application of stepper motors…………………………….15
2.3.1 Four Phase Stepper Motor Circuit ………………….17
2.3.2 Servo vs Stepper………………………………………………24
2.4 Motor Process Technology………………………………….26
CHAPTER THREE : METHODOLOGY AND ANALYSIS
3.1. Methodology………………………………………………….……28
3.1.1 Structured Analysis……….…………………………….……28
3.1.2 Top down approach……………………………………….….30
3.1.3 Bottom up approach…………………………………….……32
3.1.4 choice design approach…………………………………..33
3.2 Information Gathering……………………………………..34
3.3. data analysis……………………………………………………..35
ix
3.4. limitation of existing systems………………………….37
3.5. overview of the envisaged system………………….38
CHAPTER FOUR : SYSTEM DESIGN
4.1. System Specification………………………………………..40
4.2. Hardware Subsystem………………………………….……44
4.2.1. Input Interface………..………………………………..….47
4.2.2 Control system……………..………………………………..48
4.2.3. Output Interface ……………..………………………..….50
4.3 Software Subsystem………………………………….……….55
4.3.1 Control Algorithm……………………………………….…….76
CHAPTER FIVE : SYSTEM IMPLEMENTATION
5.1. Hardware Implementation……….………………………….59
5.1.1. Input Interface ……………………………………..…………59
5.1.2. The Control System………………………..………………..60
5.1.3. The Output Interface Implementation……………..60
5.2. The Software Implementation……………………………..61
x
5.3. System Testing…………………………………………….….…..61
5.3.1. The Test Plan………………………………………………………61
5.3.2. Hardware Subsystem Testing…….……… ……….….62
5.3.3. Software Subsystem Testing……………………..…….64
5.4. System Integration…………………………………………..…..64
5.5. Performance Evaluation……………………………….……….65
5.6. Packaging of The System……………………………….….….65
5.7. Bill of Components……………………………………….………..66
5.8. Unit Cost of Commercialized…………………………….…..67
5.9. User Guide………………………………………………………….…..67
CHAPTER SIX : SUMMARY AND CONCLUSION
6.1 Summary of Achievements…………………………………..….68
6.2. Problems Encountered and Solution………………….…. 68
6.3. Suggestions for further Improvements………………… 69
6.4. Recommendations………………………………………….…….. 70
6.5. Contribution to Knowledge………………………………………71
6.6. Conclusion……………………………………………………………… 71
xi
REFFERENCES…………………………………………………………………..72
APPENDICES
APPENDIX A SYSTEM COMPONENTS LIST………….……….75
APPENDIX B COMPONENT COST ANALYSIS TABLE ……76
APPENDIX C CIRCUIT DIAGRAM ……………….…………………77
APPENDIX D CIRCUIT COMPONENT LAYOUT……………….78
APPENDIX E CIRCUIT WIRING SCHEDULE…………………..79
APPENDIX F SYSTEM FLOW CHART……………………………….84
APPENDIX G SYSTEM SOURCE CODE……………………………..85
APPENDIX H SYSTEM USER’S GUIDE……………………………..89
APPENDIX I EXPERIMENTS……………………………………………….90
CHAPTER ONE
INTRODUCTION
1.1 Background of the Study
Microcontroller based stepper motor control is an electronic
device which transfers control to an attached object and drives
it towards a particular direction in stipulated steps as specified
by the microcontroller, depending on control input signals from
the controller, the stepper motor can be caused to exhibit
various effects through specified mode of operation. It is
applied in electromechanical devices were precise or specific
angular movement is being addressed.
The project aim is to witness the application of stepper motor
on devices attached to it, there by experimenting the
movement with the help yielded by this motor. With the aid of
control input buttons, specific directive signals are being set up
to activate the stepper motor which now transfer control to
objects/device attached.
The experiments portrayed by this project are achieved using
the control software found in the microcontroller.
2
1.2 Objective of the Project
The Objectives of this project are as follows, To design and implement a stepper motor controller
by programming the microcontroller with sequence
of actions to carry out as at when due To design and implement a stepper motor drive or
power circuit To design and develop stepper motor base
experiments to serve as laboratory work for students
of tertiary institution To interface the stepper motor controller to the
stepper motor drive using opto isolators to protect
digital circuits from power circuits To test the system by performing all the designed
experiments with it.
1.3 Justification of Project
The conventional motor (AC/DC) spin continuously, with the AC
motor having two parts which are the outside stationary stator
and an insider rotor while the stepper motor moves one step at
a time, if we command a stepper motor to move some specific
number of steps, it rotates incrementally that many number of
steps and stops. Because of this basic nature of a stepper
motor, it is widely used in low cost open loop position control
system. Open loop control means no feedback information on
3
about the position is needed. This eliminates the need for
expensive sensing and feedback devices such as optical
encoders. In this project, the position is known simply by
keeping track of the number of input step pulses. This fact
simply entail that the aim of this project was actualized.
1.4 Scope of the Project
This project covers the theoretical and analytic concept behind
motors, its origin and advancements made in the technology.
The design of an electronic circuit that will help achieve the
desired objective will be shown in details.
Also discussed are the various components that will be
implemented in the circuit, the pin layout, the wiring
schematics and the complete schematics and packaging of the
project.
Moreover, the desired objectives were compared with the
actual outcome based on a set of test data, to determine how
satisfactory the project is, cost analysis shall also be taken into
consideration by looking at how much it takes to develop one
system. From this cost evaluation, one can then simulate cost
of mass producing the system. The problem encountered
during the development of the project and the steps taken to
overcome them shall be listed.
4
1.5 Block Diagram Overview of the Project
Figure 1.1 represented the sequence followed in developing the
project.
Fig 1.1 Block Diagram of the Project
1.6 Project Report Organisation
This project report is organized into chapters and sections.
There are six chapters in all. Chapter one introduces the
project topics, and talks about the background, desired
objectives and justification of the project amongst other things.
Introduction
Design Implementation, testing and integration
Summary and conclusion
Literature review
System design
System analysis
5
An overview of the previous works done in the use of
conventional motors and a full details about the use of stepper
motor with respect to various experiments are the subject of
chapter two. Chapter three gives an in-depth analysis of the
system and gives details on all the components used in
designing and building this project.
Chapter four covers the design specification,
hardware/software tradeoffs, the various interface including
output interface, input interface, control interface and power
supply.
Chapter five is all about the implementation of the design
generated in chapter four. It includes detailed pin layouts of
components and wiring schematics as well as the control
software implementation system packaging, testing and
integration, performance evaluation and cost analysis are also
treated in this chapter.
Finally, chapter six covers problem encountered during design
and implementation, the steps taken to overcome them,
summary of the project, and also suggestions for improvement
on the project.
IF YOU CAN'T FIND YOUR TOPIC, CLICK HERE TO HIRE A WRITER»