Professional Documents
Culture Documents
CHAPTER 1
This project is used for developing countries for bright future of countries.
It helps us to control the train without drivers and stations will indicate on LCD so
passenger doesnt have any difficulty.
The major advantage of this project it avoid the accidents.
These projects reduce the power consumption.
It is increase the technological trends and in this way help the people in many ways.
CHAPTER 2
WORKING
6
BLOCK DIAGRAM
7
BUZZER
MICRO CONTROLLER P89V51RD2
LCD
L292D
DC MOTOR
POWER SUPPLY
CIRCUIT DIAGRAM
10
11
PCB LAYOUT:
1. PCB LAYOUT OF INTELLEGENCE SYSTEM
A. TOP VIES OF INTELLIGENCE TRAIN
12
13
FLOW CHART
14
TESTING
A) Hardware
1. Continuity test
First of all we checked the PCB that all the tracks are as per the design of PCB and
showing continuity with the help of millimeter PCB layout.
15
16
CHAPTER 3
17
Pin Diagram
Pin Description
Pin
No
1
2
3
Function
Name
Ground (0V)
Supply voltage; 5V (4.7V 5.3V)
Contrast adjustment; through a variable resistor
Ground
Vcc
VEE
18
Selects command register when low; and data register when high
Register Select
5
6
7
8
9
10
11
12
13
14
15
16
Read/write
Enable
DB0
DB1
DB2
DB3
DB4
DB5
DB6
DB7
Led+
Led-
Required Theory
LCD displays are connected through 14 pins: 8 data pins (D0-D7), 3 control pins (RS, E, R/W), and three
power lines (Vdd, Vss, Vee). Some LCDs have LED backlight feature that helps to read the data on the
display during low illumination conditions. So they have two additional connections (LED+ and LED-),
making altogether 16 pin.
Control pins
The control pin RS determines if the data transfer between the LCD module and an external
microcontroller are actual character data or command/status. When the microcontroller needs to send
commands to LCD or to read the LCD status, it must be pulled low. Similarly, this must be pulled high if
character data is to be sent to and from the LCD module.
The direction of data transfer is controlled by the R/W pin. If it is pulled Low, the commands or character
data is written to the LCD module. And, when it is pulled high, the character data or status information
from the LCD registers is read. Here, we will use one way data transfer, i.e., from microcontroller to LCD
module, so the R/W pin will be grounded permanently.
The enable pin (E) initiates the actual data transfer. When writing to the LCD display, the data is
transferred only on the high to low transition of the E pin
19
LCD Initialization
Before you may really use the LCD, you must initialization and configure it. This is
accomplished by sending a number of initialization instructions to the LCD.
The first instruction we send must tell the LCD whether we'll be communicating with it
with an 8-bit or 4-bit data bus.
We also select a 5x8 dot character front.
These two options are selected by sending the command 38h to the LCD as a command.
For sending command to LCD you have to do the following things.
EN = 0
RS = 0/1(0=Command, 1=data)
DATA = xxx (Any command in the table, or any character to be displayed)
RW = 0(Write mode selected)
EN = 1
Some Delay
EN = 0(Observe the high to low transition on EN)
Enable pin should be made to go a transition from high to low while you are writing the
LCD. This is called as negative edge triggering.
But when you are reading the content of any pin of the LCD i.e. R/W=1, you have to
make Enable pin to go from low to high transition. This is also referred to as positive
edge triggering.
20
CHAPTER 4
MECHANICAL DESIGN
The mechanical design is divided into three section:
1. Train set
2. Base for the project
3. Base of the motor
21
SOFTWERE DESIGN
1. DIP TRACE
INTRODUCTION
Dip Trace is EDA software for creating schematic diagrams and printed circuit boards. The first
version of Dip Trace was released in August, 2004. The latest version as of October 2012 is Dip
Trace version 2.3. The interface and tutorials are multi-lingual (currently English, Czech,
Russian and Turkish). In January of 2011, Parallax switched from Eagle to Dip Trace for
developing its printed circuit boards. Dip trace is a popular program for designing your own
circuit boards. This document allows you to get started with ease by designing
simple Schematic and its PCB, pattern and component libraries, then trying
23
24
KEIL
25
A project manager.
A make facility.
Tool configuration.
Editor.
A powerful debugger.
To help you get started, several example programs (located in the \C51\Examples,
\C251\Examples, \C166\Examples, and \ARM\...\Examples) are provided.
HELLO is a simple program that prints the string "Hello World" using the Serial Interface.
MEASURE is a data acquisition system for analog and digital systems.
TRAFFIC is a traffic light controller with the RTX Tiny operating system.
SIEVE is the SIEVE Benchmark.
DHRY is the Dhrystone Benchmark.
WHETS is the Single-Precision Whetstone Benchmark.
Additional example programs not listed here are provided for each device architecture.
To create a new project in Vision
1. Select Project - New Project.
2. Select a directory and enter the name of the project file.
3. Select Project - Select Device and select an 8051, 251, or C16x/ST10 device from the Device
Database.
4. Create source files to add to the project.
5. Select Project - Targets, Groups, Files. Add/Files, select Source Group1, and add the source files
to the project.
26
commands work on CPU instruction level rather than program source lines. You
can select a text line and set or modify code breakpoints using toolbar buttons or
the context menu commands.
1.
2.
27
3.
4.
5.
6.
7.
Save the Project by typing suitable project name with no extension in u r own folder
sited in either C:\ or D:\
Then Click on Save button above.
Select the component for u r project. i.e. Philips
8.
9.
10.
Then Click on OK
11.
12.
13.
14.
Now double click on the Target1, you would get another option Source group 1 as
shown in next page.
15.
Click on the file option from menu bar and select new.
16.
The next screen will be as shown in next page, and just maximize it by double
clicking on its blue boarder.
28
18.
For a program written in Assembly, then save it with extension .asm and for C
based program save it with extension .C
19.
Now right click on Source group 1 and click on Add files to Group Source
20.
Now you will get another window, on which by default C files will appear.
21.
Now select as per your file extension given while saving the file
22.
23.
Now Press function key F7 to compile. Any error will appear if so happen.
24.
25.
26.
Then Click OK
27.
Now Click on the Peripherals from menu bar, and check your required port as
shown in fig below
28.
29.
FLASH MAGIC
8051 Development Board support major chips From Philips. For programming that are flash
programmable microcontrollers that supports serial programming of devices. Flash
29
FEATURES
30
Computer side software called Flash Magic is executed that accepts the Intel HEX format file
generated from compiler Keil to be sent to target microcontroller. It detects the hardware
connected to the serial port.
31
BOARD TYPES
The two most popular PCB types are:
1.
2.
32
(A)
PCB DESIGNING
The main purpose of printed circuit is in the routing of electric currents and signal through a
thin copper layer that is bounded firmly to an insulating base material sometimes called the
substrate. This base is manufactured with an integrally bounded layer of thin copper foil which
has to be partly etched or removed to arrive at a pre-designed pattern to suit the circuit
connections or other applications as required.
The term printed circuit board is derived from the original method where a printed pattern
is used as the mask over wanted areas of copper. The PCB provides an ideal baseboard upon
which to assemble and hold firmly most of the small components.
From the constructors point of view, the main attraction of using PCB is its role as the
mechanical support for small components. There is less need for complicated and time
consuming metal work of chassis contraception except perhaps in providing the final enclosure.
Most straight forward circuit designs can be easily converted in to printed wiring layer the
thought required to carry out the inversion cab footed high light an possible error that would
otherwise be missed in conventional point to point wiring .The finished project is usually neater
and truly a work of art.
Actual size PCB layout for the circuit shown is drawn on the copper board. The board is
then immersed in FeCl3 solution for 12 hours. In this process only the exposed copper portion is
etched out by the solution.
Now the petrol washes out the paint and the copper layout on PCB is rubbed with a
smooth sand paper slowly and lightly such that only the oxide layers over the Cu are removed.
Now the holes are drilled at the respective places according to component layout as shown in
figure.
33
LAYOUT DESIGN
When designing the layout one should observe the minimum size (component body
length and weight). Before starting to design the layout we need all the required components in
hand so that an accurate assessment of space can be made. Other space considerations might also
be included from case to case of mounted components over the printed circuit board or to access
path of present components.
It might be necessary to turn some components around to a different angular position so
that terminals are closer to the connections of the components. The scale can be checked by
positioning the components on the squared paper. If any connection crosses, then one can reroute
to avoid such condition.
All common or earth lines should ideally be connected to a common line routed around the
perimeter of the layout. This will act as the ground plane. If possible try to route the outer supply
line to the ground plane. If possible try to route the other supply lines around the opposite edge
of the layout through the center. The first set is tearing the circuit to eliminate the crossover
without altering the circuit detail in any way.
Plan the layout looking at the topside to this board. First this should be translated
inversely, later for the etching pattern large areas are recommended to maintain good copper
adhesion. It is important to bear in mind always that copper track width must be according to the
recommended minimum dimensions and allowance must be made for increased width where
termination holes are needed. From this aspect, it can become little tricky to negotiate the route
to connect small transistors.
There are basically two ways of copper interconnection patterns underside the board. The
first is the removal of only the amount of copper necessary to isolate the junctions of the
components to one another. The second is to make the interconnection pattern looking more like
conventional point wiring by routing uniform width of copper from component to component.
34
ETCHING PROCESS
Etching process requires the use of chemicals. acid resistant dishes and running water
supply. Ferric chloride is mostly used solution but other etching materials such as ammonium per
sulphate can be used. Nitric acid can be used but in general it is not used due to poisonous fumes.
The pattern prepared is glued to the copper surface of the board using a latex type of
adhesive that can be cubed after use. The pattern is laid firmly on the copper using a very sharp
knife to cut round the pattern carefully to remove the paper corresponding to the required copper
pattern areas. Then apply the resistant solution, which can be a kind of ink solution for the
purpose of maintaining smooth clean outlines as far as possible. While the board is drying, test
all the components.
Before going to next stage, check the whole pattern and cross check
With the circuit diagram. Check for any free metal on the copper. The etching bath should be in a
glass or enamel disc. If using crystal of ferric- chloride these should be thoroughly dissolved in
water to the proportion suggested. There should be 0.5 lt. of water for 125 gm of crystal.
To prevent particles of copper hindering further etching, agitate the solutions carefully by
gently twisting or rocking the tray.
The board should not be left in the bath a moment longer than is needed to remove just
the right amount of copper. Inspire of there being a resistive coating there is no protection against
etching away through exposed copper edges. This leads to over etching. Have running water
ready so that etched board can be removed properly and rinsed. This will halt etching
immediately.
Drilling is one of those operations that call for great care. For most purposes a 0.5mm
drill is used. Drill all holes with this size first those that need to be larger can be easily drilled
again with the appropriate larger size.
35
36
37
CHAPTER 5
PROGRAMMING
38
CHAPTER 6
APPLICATION
39
This project is used in railway. In this project we including metro train, intelligence
Engine, and automatic gate control. All the things are used in railway.
FUTURE ENHANCEMENT
Its also control by the pc using satellite.
Replacement of transmitter with low power transmitter & Receiver with highly sensitive
receiver to reduce the power consumption.
The range can be increased.
Track change is also including in that project.
COST ANALYSIS
S.N
Component
Quantity
Cost
40
Name
1.
Resistor
23
10
2.
Capacitor
12
12
3.
LED
10
10
4.
IR-sensor module
280
5.
Oscillator
40
6.
Read Switch
300
450
7.
IC-P89V51RD2
8.
IC-L293D
40
9.
IC-7805
30
480
10.
LCD
11.
DC Motor
130
12.
Battery
60
13.
Relay
70
14.
Diode
20
20
15.
PCB
250
30
30
16.
Connecting
wire
17.
Transistor
18.
Header
19.
Strip
20.
Buzzer
10
5
30
30
40
41
Solar panel
22.
Zip socket
23.
Connector
24.
25.
26.
1(10 volt)
3
20
1000
120
60
Train set
480
Magnet
40
12
Battery connector
Total
4029 /-
CONCLUSION
42
BIBLIOGRAPHY
43
BOOKS:
R.S. SEDHA
ELECTRONICS
M.A. Mazidi
APPENDIX
PCB
CCB
INTELLIGENCE TRAIN
AGC
DC
DIRECT CURRENT
AC
ALTERNATING CURRENT
GND
Vcc
INDICATING 5V DC
RPM
45