TABLE OF CONTENTS
Title page – – – – – – – – – – – i
Approval page – – – – – – – – – -ii
Dedication – – – – – – – – – – -iii
Acknowledgement – – – – – – – -iv
Abstract – – – – – – – – – – – -v
Table of contents – – – – – – – – -vi
List of figures – – – – – – – – – – -x
List of tables – – – – – – – – – – -xii
CHAPTER ONE
1.0 INTRODUCTION – – – – – – – – -1
1.1 BACKGROUND OF THE PROJECT – – – – -1
1.2 AIMS AND OBJECTIVE OF THE PROJECT – – – -2
1.3 SCOPE OF THE PROJECT – – – – – – -2
1.4 DEFINITION OF TERMS – – – – – – – 4
1.5 PROJECT REPORT ORGANIZATION – – – – -4
vii
CHAPTER TWO
2.0 LITERATURE REVIEW – – – – – – – -6
2.1 INTRODUCTION – – – – – — – – -6
2.2 REVIEW OF SENSORS — – – – – – – -8
2.3 REVIEW OF THE ATMEL AT89S52 MICROCONTROLLER – -10
2.4 REVIEW OF DOOR CONTROL – – – – – -12
CHAPTER THREE
3.0 SYSTEM ANALYSIS – – – – – – – – 14
3.1: INTRODUCTION – – – – – – – – – 14
3.2: THE POWER SUPPLY UNIT: – – – – – – – – 15
3.3: THE CONTROL SECTION: – — – – – – – 16
3.4: THE SENSOR UNIT: – – – – – – – – – – – – -17
3.5: THE GATE DRIVE UNIT – – – – – – – – – 17
3.6: DESCRIPTION OF COMPONENTS USED IN THE DESIGN – 19
3.6.1: Voltage Regulators – – – – – – – – 19
viii
3.6.2: Transistors – – – – – – – – – 21
3.6.2.1: Types of Transistor – – – – – – – 22
3.6.2.2: Transistor currents – – – – – – – – 23
3.6.3: Light Dependent Resistor (LDR) – – — – – 26
3.6.4: Electromechanical Relay — – – – – – – 26
3.6.5: Diodes – — – – – – – – – – 27
3.6.6: Microcontroller unit: – – – – – – – – 30
3.6.6.1: Features of AT89S52 – – – – – – – 31
3.6.6.2: Pin description – – – – – – – – 34
3.7: SYSTEM SPECIFICATION – – – – – – – 38
CHAPTER FOUR
4.0 CONSTRUCTION APPROACH, CONSTRUCTION STEPS AND
EVALUATION – – – – – – – – – – 40
4.1 CONSTRUCTION APPROACH – – – – – – 40
4.2 CONSTRUCTION – – – — – – – – 41
ix
4.2.1 COMPONENT TESTING – – – – – – – 42
4.2.2 COMPONENT PLACING – – – – – – – 42
4.2.3 SOLDERING – – – – – – – – – 42
4.2.4 SYSTEM TESTING – – – – – – – – 43
4.2.5 CONSTRUCTION MATERIALS – — – – – 43
4.3 TESTING EQUIPMENT – – – – – – – – 44
4.4 TESTING METHOD – — – – – – – – 44
4.4.1 RESISTORS: – – – – – – – – – 44
4.4.2 CAPACITORS: – – – – – — – – – 44
4.4.3 TRANSISTORS: – – – – – — – – – 44
4.5 SYSTEM FLOWCHART – – – – – – – – 46
4.6 CIRCUIT DIAGRAM: – – – – – – – – 47
4.6.1 CIRCUIT DIAGRAM EXPLANATION – – – 48
4.7 EVALUATION – – – – – – – – – 48
CHAPTER FIVE
x
5.0 TEST RESULT, RECOMMENDATION AND CONCLUSION – -52
5.1 SYSTEM TESTING – – – – – – – – 52
5.2 SUMMARY – – – – – – – – – – 52
5.3 RECOMMENDATION – – – — – – – – 54
5.4 CONCLUSION – — – – – – – – – 54
REFERENCES – – — – – – – – – – 56
APPENDIX – – – – – – – – – – 58
xi
LIST OF FIGURES
Figures
1.1 The block diagram of microcontroller based automatic gate
Control – – – – – – – – – – -3
2.1 A typical light dependent resistor. – – – – – – -8
3.0 The block diagram of microcontroller based automatic
gate control – – – – – – – – – -14
3.1 Block diagram of power supply unit – – – – – -16
3.2 Input Sensor Design – – – – – – – – -17
3.3 Diagram of gate drive unit — – – – – – – -18
3.4 LM7805 Integrated Circuit Internal Schematic – – – -20
3.5 Diagram of 7805 – – – – – – – – -21
3.6 Transistor circuit symbols – – – – – – – -22
3.7 Current path of a Transistor – – – – – – – -23
3.8 Model of NPN Transistor – – – – – – – -24
3.9 Light Dependent Resistor Symbol – – – – – -26
3.10 Electromechanical relay – – – – – – – -27
xii
3.11 Schematic symbols for diodes – – – – – – -28
3.12 Pin configuration of AT89S52 – – – – – – -31
3.13 Block diagram of AT898S52 internal circuitry – – – -33
4.1 Circuit Diagram Of Microcontroller Based Automatic
Gate Control- – – – – – – – – -47
xiii
LIST OF TABLES
Table 2.1: Features of the AT89S52 microcontroller – – – -11
Table 3.1: Voltage Regulators output Voltages – – – – -20
Table 3.2: Alternate functions of port 3 – – – – – -36
xiv
ABSTRACT
Microcontroller based automate controller is a project design of a system that is used in operating a gate automatically. The system opens the gate automatically when a human being or car is about to enter a compound or exit a compound. The system works by sensing the light rays from the head lamp of the vehicle. The light ray is sensed and signal is used in operating the gate. Different blocks of circuit are put together to ensure that the system works perfectly as desired. The blocks include; the power supply unit, the control unit, the sensor unit, and drive unit. The power supply unit powers on the entire system, it supplies appropriate dc signal to where it is needed. The supply unit is made up of a 12volts step down transformer, a bridge rectifier circuit, a filter capacitor and a voltage regulator IC. The control unit receives signal from the sensor section to control the remaining part of the system. The control section is the logical part of the system and decides the state of the entire system depending on the signal from the sensor unit. The control section carries its operation with use of a microcontroller ATMEL89S52. The sensor unit receives signals from the headlamp of the vehicle or the human being and sends signals to indicate that a human being or car is present. This is achieved with the use a light dependent resistors. The drive unit is a DC motor which carries the gate to a specific direction as indicated by the microcontroller.
1
CHAPTER ONE
1.0 INTRODUCTION
1.1 BACKGROUND OF THE PROJECT
In the past, many systems that are designed by man are normally operated manually. This mode of operation is accompanied with many defects or disadvantages. Some of the disadvantages involve stress undergone by the operator; the operator is also exposed to health hazards when carrying out his or her duties. These health hazards might be in terms of electrocution, skin burn or bruises.
To overcome the above mentioned disadvantages that are associated with manual operation of systems, the recent systems are designed with mechanisms that enable them to carry out the required operations automatically. To this effect, the system carries out the required operation by them. The mechanism of the system can only be altered during servicing of the machine. With automatic operation of systems, the stress involved with handling the systems are reduced drastically.
The automatic gate control system is one of the systems that operate automatically. The system simply detects the presence of object at the front of the gate and then, opens the doors of the gate automatically. It
2
incorporates sensors that are mounted at strategic positions and which has the capability of detecting objects. These systems are used in public offices where people often make use of the doors.
1.2 AIMS AND OBJECTIVE OF THE PROJECT
The main aim of the design is to practically obtain a system that opens and closes a given gate automatically, when there is presence of cars or persons. The system is designed in such a way that it has sensors that senses the presence of people.
1.3 SCOPE OF THE PROJECT
The design and implementation of microcontroller based automatic gate controller utilizes the characteristic operation of both passive and active electronic components such as resistors, capacitors and integrated circuits. The circuit is designed in a prototype forms and it is only meant for indoor demonstration of how the system works. The system also uses a programmable integrated circuit in its control unit. Meanwhile, this project, microcontroller based automatic gate control has sub units such as: Power supply unit The control section
3
The gate drive section The sensor unit
Fig: 1.1. The block diagram of microcontroller based automatic gate control
THE GATE DRIVE SECTION
THE CONTROL SECTION
POWER SUPPLY UNIT
THE SENSOR UNIT
4
1.4 DEFINITION OF TERMS
Voltage regulation: this is simply, the control of voltage as needed by the design. Voltage regulation ensures that a specific and steady voltage supply is provided for the system operation. Electromagnetic switch: this is the contact making that exists between terminal of electronic components. These switches are carried through a process known as electromagnetic induction. Examples of devices that can perform this action is the relay. Erasable programmable read only memory (EPROM): this is a type of memory device which can be programmed. The device also has program erasing ability if it is to be reprogrammed.
1.5 PROJECT REPORT ORGANIZATION
Five chapters were covered in the course of design and development of this project. The chapters and their contents are as follows:
Chapter one is the introductory chapter that gives the background of the project, aim and objective, the scope and organization of the project.
Chapter Two handles the literature review; information on previous work relevant to the topic.
5
In chapter three, I discussed the practical system analysis of the project. Also discussed is the requirement analysis, which is all the information, gathered from a wide research on microcontroller over/under voltage protective system.
Chapter four deals with the design procedure, construction steps, packaging and cost of components.
Chapter five contains the test result, summary, conclusion and recommendations for further work.
DISCLAIMER: All project works, files and documents posted on this website, UniProjectTopics.com are the property/copyright of their respective owners. They are for research reference/guidance purposes only and some of the works may be crowd-sourced. Please don’t submit someone’s work as your own to avoid plagiarism and its consequences. Use it as a reference/citation/guidance purpose only and not copy the work word for word (verbatim). The paper should be used as a guide or framework for your own paper. The contents of this paper should be able to help you in generating new ideas and thoughts for your own study. UniProjectTopics.com is a repository of research works where works are uploaded for research guidance. Our aim of providing this work is to help you eradicate the stress of going from one school library to another in search of research materials. This is a legal service because all tertiary institutions permit their students to read previous works, projects, books, articles, journals or papers while developing their own works. This is where the need for literature review comes in. “What a good artist understands is that nothing comes from nowhere. All creative work builds on what came before. Nothing is completely original.” - Austin Kleon. The paid subscription on UniProjectTopics.com is a means by which the website is maintained to support Open Education. If you see your work posted here by any means, and you want it to be removed/credited, please contact us with the web address link to the work. We will reply to and honour every request. Please notice it may take up to 24 – 48 hours to process your request.