Académique Documents
Professionnel Documents
Culture Documents
USING IR SENSOR
A PROJECT REPORT
Submitted in partial fulfillment of the Requirements
For the degree of
BACHELOR OF ENGINEERING
IN
ELECTRONICS AND TELECOMMUNICATION
Submitted by
Achala Shukla
Ankit Francis
Bobby Nelson
Sonika Singh
Under Guidance of
Prof. Lakhwinder Kaur
CERTIFICATE
Certified that the contents of the project report entitled, "Collision Detection
& Warning system Using IR sensor" is a bonafide work carried out under
my guidance by Achala Shukla, Ankit Francis, Bobby Nelson, Sonika Singh
in partial fulfillment of the requirements for the degree of Bachelor of
Engineering in Electronics & Telecommunication.
SIGNATURE:
SIGNATURE:
Prof.L.P. Bhaiya
H.O.D
SIGNATURE:
Prof. Lakhwinder Kaur
External
Project Guide
ACKNOWLEDGEMENT
We are pleased to express our sincere gratitude to our project guide Prof.
Lakhwinder Kaur for her noble support and guidance in the development of the project
and our project incharge Prof. Nitin Naiyar for his timely monitoring and for mentoring
throuhout the various stages of project development.
We wish to express our special thanks to Prof. Lalit Kumar P. Bhaiya,
Associate Professor and Head, Department of Electronics and Telecommunication
Engineering, for all his active co-operation and kind consideration throughout the period.
We gratefully acknowledge Dr. S. M. Prasanna Kumar, Director, RCET,
Bhilai and Prof. S. B. Burje, Associate Professor and Vice-Principal, RCET, Bhilai and
all management personalities who have helped me indirectly.
We express cordial thanks to Mr. Arun Kumar and all helping faculties for their
valuable guidance, suggestion and help during the development of the project.
Finally, we wish to express our deepest sense of gratitude to our Families as their
wishes have always inspired us.
-Group Members
Achala Shukla
Ankit Francis
Bobby Nelson
Sonika Singh
ABSTRACT
The aim of the project has been to develop an embedded system capable
of detecting any obstacle when it comes within the pre-determined range of the system.
Furthermore, the system has to alert the user about the obstacle ahead of the system.
There are many devices that fit the criteria for the detection of a remote
object. In our project, the Infrared detection mechanism is used. An IR transmitter is used
for transmitting the said IR rays and these radiations are reflected back from the far off
obstacle to be detected by an IR sensing module. The system shall have a Controller that
can monitor the operation of these sensors and then alert the user by any audio or visual
aid about the impending collision so that user may then abort it or use this information as
required.
CONTENTS
CHAPTER 1
CHAPTER 2
INTRODUCTION
THEORY
7
9
CODE DEVELOPMENT
24
CHAPTER 4
CONCLUSION
27
CHAPTER 5
FUTURE EXPANSION
28
LIST OF TABLES
S.No. Table no.
1
2
2.1
2.2
Table name
Page no.
20
20
LIST OF FIGURES
S.No. Figure
no.
1
2
3
4
5
6
7
8
9
10
11
12
13
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.11
3.1
Figure name
Page
no.
Power supply
Project Circuit diagram
8051 Internal Architecture
Microcontroller block diagram
Schematic & Features
Pin Diagram
TSOP31238
Block diagram of TSOP
Application Schematic
Working of TSOP
Artwork PCB layout
Real World PCB layout
Process Flow Chart
11
12
14
15
16
18
19
20
20
21
22
22
25
CHAPTER 1
INTRODUCTION
The aim of the project has been to develop an embedded system capable
of detecting any obstacle when it comes within the pre-determined range of the system.
Furthermore, the system has to alert the user about the obstacle ahead of the system.
There are many devices that fit the criteria for the detection of a remote
object. In our project, the Infrared detection mechanism is used. An IR transmitter is used
for transmitting the said IR rays and these radiations are reflected back from the far off
obstacle to be detected by an IR sensing module. The system shall have a Controller that
can monitor the operation of these sensors and then alert the user by any audio or visual
aid about the impending collision so that user may then abort it or use this information as
required.
CHAPTER-2
THEORY
PROJECT REQUIREMENTS:
1
The cicuit shown above is used for fulfilling the power requirements of the
project. Its working is as follows:
1. The 250V source signal at mains is stepped down by a transfomer to 12V source.
2. The full wave rectifier bridge circuit of diodes then converts into a positive on;y
waveform.
3. The CRC filter shown then filters out the ac components to an extent from the
supply.
4. The regulator then regulates a contant 5V supply at its output.
The circuit used above practically provides a 5.1V dc voltage as seen during final
use.
PROJECT CIRCUIT
COMPONENT DETAILS
8051 Microcontroller
A micro controller is an integrated circuit or a chip with a processor and other support
devices like program memory, data memory, I/O ports, serial communication interface
etc integrated together. Unlike a microprocessor (ex: Intel 8085), a microcontroller does
not require any external interfacing of support devices. Intel 8051 is the most popular
microcontroller ever produced in the world market.
Intel first produced a microcontroller in 1976 under the name MCS-48, which was an 8
bit microcontroller. Later in 1980 they released a further improved version (which is also
8 bit), under the name MCS-51. The most popular microcontroller 8051 belongs to the
MCS-51 family of microcontrollers by Intel. Following the success of 8051, many other
semiconductor manufacturers released microcontrollers under their own brand name but
using the MCS-51 core. Global companies and giants in semiconductor industry like
Microchip, Zilog, Atmel, Philips, Siemens released products under their brand name.
The specialty was that all these devices could be programmed using the same MCS-51
instruction sets. They basically differed in support device configurations like improved
memory, presence of an ADC or DAC etc. Intel then released its first 16 bit
microcontroller in 1982, under name MCS-96
8051 Microcontroller Architecture
Its possible to explain microcontroller architecture to a great detail, but we are limiting
scope of this article to internal architecture, pin configuration, program memory
and data memory organization. The basic architecture remains same for the MCS51 family. In general all microcontrollers in MCS- 51 family are represented by
XX51, where XX can take values like 80, 89 etc.
1. Atmel 8051s architecture provides the following useful functions :2. 8-bit ALU, Accumulator and 8-bit Registers; hence it is an 8-bit microcontroller
3. CPU, RAM, ROM, I/O, interrupt logic, timer, etc. in a single package
4. 8-bit data bus It can access 8 bits of data in one operation
5. 16-bit address bus It can access 216 memory locations 64 KB (65536
locations) each of RAM and ROM
6. On-chip RAM 128 bytes (data memory)
7. On-chip ROM 4 kByte (program memory)
8. Four byte bi-directional input/output port
9.
Figure 1.5
Pinning:
1 = GND, 2 = Vs, 3 = OUT
BLOCK DIAGRAM:
Figure 2.7
APPLICATION CIRCUIT:
Figure
2.8
Table 2.1
Table 2.2
TYPICAL CHARACTERISTICS:
Figure 2.9
PCB LAYOUTS
CHAPTER-3
CODE DEVELOPMENT
ASSEMBLY CODE
ORG 0000H
;initial address
CPL P2.0
RETI
ORG 0030H
RESTART:MOV SP,#2FH
CLR P2.0
CLR P1.1
CLR P1.2
MOV TH0,#0F4H
SETB TR0
;start timer
AGAIN: JB P3.2,AGAIN
CLR P1.1
;led on
CLR P1.2
;buzzer on
SETB P1.1
;led off
SETB P1.2
;buzzer off
SJMP AGAIN
CHAPTER-3
CONCLUSION
The Collision detection and avoidance system using IR sensors has been
constructed as per the norms and found to be working aptly. The system is capable of
detecting an obstacle as it comes in the range of the system and the range can also be
altered by the user. The system also warns the user about the obstacle or the impending
collision via buzzer and led.
CHAPTER-5
FUTURE EXPANSION
Although the system is self-dependent and capable of functioning independently
yet it can be expanded into a part of a larger system in many ways.
The most interesting and quite expected utility of the project would be as a part of
home protection system to monitor the locked states of doors and alarming in case any
intruder breaks into the house.
Another interesting expansion would be the development of a self-calibrating
automated collision detection and warning system working on similar concept.