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
We are design the train automation system, we are dividing the project in two section
1. Intelligence train
2. Automatic gate controller
So first we explain the working of intelligence train, in the intelligence train when the train will
start from the first station (say Ujjain) at this time the LCD shows the message WELCOME TO
INTELLIGENCE TRAIN , after some time the motor will start train travel along the track,
again LCD display the message NEXT STATION INDORE. When the read switch is contact
with magnet (the magnet is attached with train) than the signal is send to the microcontroller,
according to signal the microcontroller provide the signal to the relay and motor will stop and at
that time the LCD display the message INDORE, before the train starting the buzzer will glow
and train will goes to Ujjain. If any cases when the train has come on the same track and both
train on the same track than the IR sensor detect the obstacle or train than the both train is stop,
at that time LCD display the message SORRY FOR THE INCONVINIENCE .
The second section is automatic gate controller, in this section the two read switch is placed
along the track and the distance between the gate and read switch is 1km. when the train is
contact with read switch than the read switch send the signal to microcontroller and
microcontroller provide the signal according to signal to L293D and its connected to DC motor
and motor move, close the gate and at that time the LCD display the message GATE WILL
CLOSE. The buzzer also glows at that time. When train is contact with the other end read
switch than at that time the gate will open and the LCD also display the message GATE WILL
OPEN.
This process repeat in our project
BLOCK DIAGRAM
BUZZER
MICRO CONTROLLER P89V51RD2
LCD
L292D
DC MOTOR
POWER SUPPLY
10
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
15
16
CHAPTER 3
RESISTOR
A resistor is a passive two-terminal electrical component that implements electrical resistance as
a circuit element.
The current through a resistor is in direct proportion to the voltage across the resistor's terminals.
This relationship is represented by Ohm's law:
17
Where I is the current through the conductor in units of amperes, V is the potential difference
measured across the conductor in units of volts, and R is the resistance of the conductor in units
of ohms.
The ratio of the voltage applied across a resistor's terminals to the intensity of current in the
circuit is called its resistance, and this can be assumed to be a constant (independent of the
voltage) for ordinary resistors working within their ratings.
American-style symbols.
(c) potentiometer
(a) Resistor,
(b) rheostat
(variable
resistor),
and
Theory of operation
18
The hydraulic analogy compares electric current flowing through circuits to water flowing through pipes.
When a pipe (left) is filled with hair (right), it takes a larger pressure to achieve the same flow of water.
Pushing electric current through a large resistance is like pushing water through a pipe clogged with hair:
It requires a larger push (voltage drop) to drive the same flow (electric current).
Lead arrangements
Through-hole components typically have leads leaving the body axially. Others have leads
coming off their body radials instead of parallel to the resistor axis. Other components may be
SMT (surface mount technology) while high power resistors may have one of their leads
designed into the heat sink.
19
1st
band
2nd
band
3rd
(multiplier)
band 4th
(tolerance)
Black
100
Brown 1
101
1% (F)
100 ppm
Red
102
2% (G)
50 ppm
Orang
3
e
103
15 ppm
Yellow 4
104
25 ppm
Green 5
105
0.5% (D)
Blue
106
0.25% (C)
Violet 7
107
0.1% (B)
Gray
108
0.05% (A)
White 9
109
Gold
0.1
5% (J)
Silver
0.01
10% (K)
band Temp.
Coefficient
CAPACITOR
A capacitor (originally known as condenser) is a passive two-terminal electrical component used
to store energy in an electric field. The forms of practical capacitors vary widely, but all contain
at least two electrical conductors separated by a dielectric (insulator); for example, one common
20
Theory of operation
Sometimes charge build-up affects the capacitor mechanically, causing its capacitance to vary. In
this case, capacitance is defined in terms of incremental changes:
Applications
Energy storage:
Pulsed power and weapons
Power conditioning:
TRANSISTOR
22
Operation
The essential usefulness of a transistor comes from its ability to use a small signal applied
between one pair of its terminals to control a much larger signal at another pair of terminals. This
property is called gain. A transistor can control its output in proportion to the input signal; that is,
it can act as an amplifier. Alternatively, the transistor can be used to turn current on or off in a
circuit as an electrically controlled switch, where the amount of current is determined by other
circuit elements.
23
Application
1) Transistor as a switch
2) Transistor as an amplifier:
Advantages
The key advantages that have allowed transistors to replace their vacuum tube predecessors in
most applications are
Small size and minimal weight, allowing the development of miniaturized electronic
devices.
Extremely long life. Some transistorized devices have been in service for more than 50
years.
24
Insensitivity to mechanical shock and vibration, thus avoiding the problem of micro
phonics in audio applications.
Technology
25
Wavelength Voltage
[nm]
[V]
Infrared
> 760
drop
V < 1.63
Semiconductor material
Gallium
arsenide
Aluminum gallium arsenide (AlGaAs)
(GaAs)
Aluminum
gallium
arsenide
(AlGaAs)
Gallium
arsenide
phosphide
(GaAsP)
Aluminum gallium indium phosphide (AlGaInP)
Gallium(III) phosphide (GaP)
Orange
Gallium
arsenide
phosphide
(GaAsP)
Aluminium gallium indium phosphide (AlGaInP)
Gallium(III) phosphide (GaP)
Yellow
Gallium
arsenide
phosphide
(GaAsP)
Aluminium gallium indium phosphide (AlGaInP)
Gallium(III) phosphide (GaP)
Green
Red
26
Blue
Zinc
selenide
(ZnSe)
Indium
gallium
nitride
(InGaN)
Silicon
carbide
(SiC)
as
substrate
Silicon (Si) as substrateunder development
Violet
Dual
blue/red
blue
with
red
or white with purple plastic
Purple
LEDs,
phosphor,
Diamond
(235 nm)[60]
Boron
nitride
(215 nm)[61][62]
Aluminium
nitride
(AlN)
(210 nm)[63]
Aluminium
gallium
nitride
(AlGaN)
Aluminium gallium indium nitride (AlGaInN)
down to 210 nm[64]
Pink
White
Broad
spectrum
V = 3.5
Application
Flashing LEDs are used as attention seeking indicators without requiring external electronics. Flashing
LEDs resemble standard LEDs but they contain an integrated multivibrator circuit that causes the LED to
flash with a typical period of one second. In diffused lens LEDs this is visible as a small black dot. Most
flashing LEDs emit light of one color, but more sophisticated devices can flash between multiple colors
and even fade through a color sequence using RGB color mixing.
Bi-color LEDs are two different LED emitters in one case. There are two types of these. One
type consists of two dies connected to the same two leads ant parallel to each other. Current flow
in one direction emits one color, and current in the opposite direction emits the other color. The
other type consists of two dies with separate leads for both dies and another lead for common
anode or cathode, so that they can be controlled independently.
Tri-color LEDs are three different LED emitters in one case. Each emitter is connected to a
separate lead so they can be controlled independently. A four-lead arrangement is typical with one
common lead (anode or cathode) and an additional lead for each color.
27
RGB LEDs are Tri-color LEDs with red, green, and blue emitters, in general using a four-wire
connection with one common lead (anode or cathode). These LEDs can have either common
positive or common negative leads. Others however, have only two leads (positive and negative)
and have a built in tiny electronic control unit.
Alphanumeric LED displays are available in seven-segment and starburst format. Sevensegment displays handle all numbers and a limited set of letters. Starburst displays can display all
letters. Seven-segment LED displays were in widespread use in the 1970s and 1980s, but rising
use of liquid crystal display with their lower power needs and greater display flexibility, has
reduced the popularity of numeric and alphanumeric LED displays.
DIODE
In electronics, a diode is a two-terminal electronic component with an asymmetric transfer
characteristic, with low (ideally zero) resistance to current flow in one direction, and high
(ideally infinite) resistance in the other. A semiconductor diode, the most common type today, is
a crystalline piece of semiconductor material with a p-n junction connected to two electrical
terminals. A vacuum tube diode is a vacuum tube with two electrodes, a plate (anode) and heated
cathode.
The most common function of a diode is to allow an electric current to pass in one direction
(called the diode's forward direction), while blocking current in the opposite direction (the
reverse direction). Thus, the diode can be viewed as an electronic version of a check valve. This
unidirectional behavior is called rectification, and is used to convert alternating current to direct
current, including extraction of modulation from radio signals in radio receiversthese diodes
are forms of rectifiers.
However, diodes can have more complicated behavior than this simple onoff action.
Semiconductor diodes begin conducting electricity only if a certain threshold voltage or cut-in
voltage is present in the forward direction (a state in which the diode is said to be forwardbiased). The voltage drop across a forward-biased diode varies only a little with the current, and
is a function of temperature; this effect can be used as a temperature sensor or voltage reference.
Semiconductor diodes' nonlinear currentvoltage characteristic can be tailored by varying the
semiconductor materials and doping, introducing impurities into the materials. These are
exploited in special-purpose diodes that perform many different functions. For example, diodes
are used to regulate voltage (Zener diodes), to protect circuits from high voltage surges
(avalanche diodes), to electronically tune radio and TV receivers (varactor diodes), to generate
radio frequency oscillations (tunnel diodes, Gunn diodes, IMPATT diodes), and to produce light
(light emitting diodes). Tunnel diodes exhibit negative resistance, which makes them useful in
some types of circuits.
28
BUZZER
A buzzer or beeper is an audio signaling device, which may be mechanical, electromechanical, or
piezoelectric. Typical uses of buzzers and beepers include alarm devices, timers and
confirmation of user input such as a mouse click or keystroke.
Buzzer (Electromagnetic) 5 volt - Active Buzzer : Piezo Buzzer (PCB mountable)
General Description
Good performance, general purpose piezo buzzer used commonly in alerting / alarming circuits.
This is a PCB mountable buzzer can be easily soldered to PCB board. Most commonly used in at
5v. Long life, stable performance, High Quality with SOT plastic package
Specification
29
Voltage : 4 - 9VDC
Maximum current : 30mA/5VDC
Decibel : > 85db/10cm
Resonant frequency : 2500Hz (+/- 300 HZ)
Operating Temperature : -20 to 70 C
Features
Piezo Buzzers - PCB Mount A 12V dc buzzer requiring no external oscillation circuit.
The buzzer has a black ABS case and PCB pins.
Diameter, external - 23mm
Frequency, resonant - 3300Hz
Sound level SPL - 87dB
Centers, fixing - 27.5mm
Current, max - 15mA
Length / Height, external - 16mm
Pitch, lead - 15mm
Termination Type - SMD
Voltage, supply DC - 12V
Do not apply DC bias to the piezoelectric buzzer; otherwise insulation resistance may
become low and affect the performance.
Do not supply any voltage higher than applicable to the piezoelectric buzzer.
Do not use the piezoelectric buzzer outdoors. It is designed for indoor use.
If the piezoelectric buzzer has to be used outdoors, provide it with waterproofing
measures; it will not operate normally if subjected to moisture.
Do not wash the piezoelectric buzzer with solvent or allow gas to enter it while washing;
any solvent that enters it may stay inside a long time and damage it.
A piezoelectric ceramic material of approximately 100?m thick is used in the sound
generator of the buzzer. Do not press the sound generator through the sound release hole
otherwise the ceramic material may break. Do not stack the piezoelectric buzzers without
packing.
30
Do not apply any mechanical force to the piezoelectric buzzer; otherwise the case may
deform and result in improper operation.
Do not place any shielding material or the like just in front of the sound release hole of
the buzzer; otherwise the sound pressure may vary and result in unstable buzzer
operation. Make sure that the buzzer is not affected by a standing wave or the like.
Be sure to solder the buzzer terminal at 350C max.(80W max.)(soldering iron trip)
within 5 seconds using a solder containing silver.
Avoid using the piezoelectric buzzer for a long time where any corrosive gas (H2S, etc.)
exists; otherwise the parts or sound generator may corroded and result in improper
operation.
Be careful not to drop the piezoelectric buzzer.
READ SWITCH
The basic reed switch consists of two identical flattened ferromagnetic reeds, sealed in a dry
inert-gas atmosphere within a glass capsule, thereby protecting the contact from contamination.
The reeds are sealed in the capsule in cantilever form so that their free ends overlap and are
separated by a small air gap
RELAY
A relay is an electrically operated switch. Many relays use an electromagnet to operate a
switching mechanism mechanically, but other operating principles are also used. Relays are used
where it is necessary to control a circuit by a low-power signal (with complete electrical isolation
between control and controlled circuits), or where several circuits must be controlled by one
signal. The first relays were used in long distance telegraph circuits, repeating the signal coming
in from one circuit and re-transmitting it to another. Relays were used extensively in telephone
exchanges and early computers to perform logical operations.
A type of relay that can handle the high power required to directly control an electric motor or
other loads is called a contactor. Solid-state relays control power circuits with no moving parts,
instead using a semiconductor device to perform switching. Relays with calibrated operating
characteristics and sometimes multiple operating coils are used to protect electrical circuits from
overload or faults; in modern electric power systems these functions are performed by digital
instruments still called "protective relays".
32
33
A simple electromagnetic relay consists of a coil of wire wrapped around a soft iron core, an
iron yoke which provides a low reluctance path for magnetic flux, a movable iron armature, and
one or more sets of contacts (there are two in the relay pictured). The armature is hinged to the
yoke and mechanically linked to one or more sets of moving contacts. It is held in place by a
spring so that when the relay is de-energized there is an air gap in the magnetic circuit. In this
condition, one of the two sets of contacts in the relay pictured is closed, and the other set is open.
Other relays may have more or fewer sets of contacts depending on their function. The relay in
the picture also has a wire connecting the armature to the yoke. This ensures continuity of the
circuit between the moving contacts on the armature, and the circuit track on the printed circuit
board (PCB) via the yoke, which is soldered to the PCB.
When an electric current is passed through the coil it generates a magnetic field that activates the
armature and the consequent movement of the movable contact either makes or breaks
(depending upon construction) a connection with a fixed contact. If the set of contacts was closed
when the relay was de-energized, then the movement opens the contacts and breaks the
connection, and vice versa if the contacts were open. When the current to the coil is switched off,
the armature is returned by a force, approximately half as strong as the magnetic force, to its
relaxed position. Usually this force is provided by a spring, but gravity is also used commonly in
industrial motor starters. Most relays are manufactured to operate quickly. In a low-voltage
application this reduces noise; in a high voltage or current application it reduces arcing.
When the coil is energized with direct current, a diode is often placed across the coil to dissipate
the energy from the collapsing magnetic field at deactivation, which would otherwise generate a
voltage spike dangerous to semiconductor circuit components. Some automotive relays include a
diode inside the relay case. Alternatively, a contact protection network consisting of a capacitor
and resistor in series (snubber circuit) may absorb the surge. If the coil is designed to be
34
Types of Relay
Latching relay
A latching relay has two relaxed states (bistable). These are also called "impulse", "keep", or
"stay" relays. When the current is switched off, the relay remains in its last state. This is achieved
with a solenoid operating a ratchet and cam mechanism, or by having two opposing coils with an
over-center spring or permanent magnet to hold the armature and contacts in position while the
coil is relaxed, or with a remanent core. In the ratchet and cam example, the first pulse to the coil
turns the relay on and the second pulse turns it off. In the two coil example, a pulse to one coil
turns the relay on and a pulse to the opposite coil turns the relay off. This type of relay has the
advantage that one coil consumes power only for an instant, while it is being switched, and the
relay contacts retain this setting across a power outage. A remanent core latching relay requires a
current pulse of opposite polarity to make it change state.
Reed relay
35
Mercury-wetted relay
A mercury-wetted reed relay is a form of reed relay in which the contacts are wetted with
mercury. Such relays are used to switch low-voltage signals (one volt or less) where the mercury
reduces the contact resistance and associated voltage drop, for low-current signals where surface
contamination may make for a poor contact, or for high-speed applications where the mercury
eliminates contact bounce. Mercury wetted relays are position-sensitive and must be mounted
vertically to work properly. Because of the toxicity and expense of liquid mercury, these relays
are now rarely used.
Polarized relay
A polarized relay placed the armature between the poles of a permanent magnet to increase
sensitivity. Polarized relays were used in middle 20th Century telephone exchanges to detect
faint pulses and correct telegraphic distortion. The poles were on screws, so a technician could
first adjust them for maximum sensitivity and then apply a bias spring to set the critical current
that would operate the relay.
IR-SENSOR
A Sensor can be understood as an electrical device which tries to imitate human senses to
perform different functions in an electronic circuit. For example, light sensor helps understand
the intensity of light just like our eyes; Heat sensor helps us know the temperature and
similarly pressure sensor, sound sensor. Let us start with a Light sensor
A Light sensor is basically a transmitter receiver pair in which the transmitter transmits
electromagnetic radiation in the form of waves and these waves upon reflection or direct
transmission are received by the receiver. Based on the different types of electromagnetic
36
The ir sensor pair typically consists of an IR transmitter and receiver pair. The IR transmitter is
an led that emits light in the infra red region of light spectrum. Hence the emitter's light cannot
be seen by naked eye. The ir receiver is a diode constructed in such a way that when the diode is
reverse biased ,their light falling on the depleted region causes creation of electron-hole pair and
thus this generated pair constitutes current. Thus the current flowing is proportional to ir light
falling on it.
The emitter is forward biased with a resistor connected in series to limit the current flowing
through it, the receiver is reverse biased with a resistor of order of 10's of kilo ohms(10 k ohms is
the best), to detect the possible voltage change.
Thus the value of voltage at the voltage divider formed on the receiver side varies with the IR
light falling on it. A white surface reflects almost all the light focused on it, and a black surface
absorbs all the light focused on it. so depending upon the surface on which the sensor pair is
facing, different voltage is obtained at the output of receiver section.
Infrared radiation is the portion of electromagnetic spectrum having wavelengths longer than
visible light wavelengths, but smaller than microwaves, i.e., the region roughly from 0.75m to
1000 m is the infrared region. Infrared waves are invisible to human eyes. The wavelength
region of 0.75m to 3 m is called near infrared, the region from 3 m to 6 m is called mid
infrared and the region higher than 6 m is called far infrared. (The demarcations are not rigid;
37
2. Reflectance Sensors
This type of sensors house both an IR source and an IR detector in a single housing in such a
way that light from emitter LED bounces off an external object and is reflected into a detector.
Amount of light reflected into the detector depends upon the reflectivity of the surface.
38
This principle is used in intrusion detection, object detection (measure the presence of an object
in the sensors FOV), barcode decoding, and surface feature detection (detecting features
painted, taped, or otherwise marked onto the floor), wall tracking (detecting distance from the
wall), etc.
It can also be used to scan a defined area; the transmitter emits a beam of light into the scan
zone, the reflected light is used to detect a change in the reflected light thereby scanning the
desired zone.
Pin Description
Pin
No
1
2
3
4
5
6
7
8
Function
Name
Ground (0V)
Supply voltage; 5V (4.7V 5.3V)
Contrast adjustment; through a variable resistor
Selects command register when low; and data register when high
Ground
Vcc
VEE
Register Select
Read/write
Enable
DB0
DB1
41
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
Data pins
Pins 7 to 14 are data lines (D0-D7). Data transfer to and from the display can be achieved either in 8-bit
or 4-bit mode. The 8-bit mode uses all eight data lines to transfer a byte, whereas, in a 4-bit mode, a byte
42
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.
COMMAND TO LCD
Return Home
43
10
14
18
1C
80
C0
38
OSCILLATOR
An oscillator is a mechanical or electronic device that works on the principles of oscillation a
periodic fluctuation between two things based on changes in energy. Computers, clocks, watches,
radios, and metal detectors are among the many devices that use oscillators.
The frequency at which an oscillator works is usually determined by a quartz crystal. When a
direct current is applied to such a crystal, it vibrates at a frequency that depends on its thickness,
and on the manner in which it is cut from the original mineral rock. Some oscillators employ
combinations of inductors, resistors, and/or capacitors to determine the frequency. However, the
best stability (constancy of frequency) is obtained in oscillators that use quartz crystals.
44
Features
125gm weight
0.5kgcm torque
Pin Description:
Pin
No
1
Function
Name
Input
47
Ground (0V)
Ground
Output
I have attached an image of 7805 IC to describe its pin configuration setting. In addition to that I
have also attached a small fully working voltage regulator circuit diagram with this tutorial. The
two capacitors used in the voltage regulator circuit are not mandatory but they are good to
maximize voltage regulation. The capacitor values I have used in this circuit are not written on
stone, you can change them slightly. 7805 IC has a thermal shutdown feature to protect the IC in
case of overheating so it should be safe to use 7805 without a heat sink plate for less than 200mA
load. However should your load cross 200mA, you should consider using a heat sink plate. Heat
sink plate should be large enough to bring 7805 heat to such a level that you can comfortably
touch it. 7805 is a linear voltage regulator, so it is not very efficient and it has drop out voltage
48
L293D
L293D is a dual H-bridge motor driver integrated circuit (IC). Motor drivers act as current
amplifiers since they take a low-current control signal and provide a higher-current signal. This
higher current signal is used to drive the motors.
49
The L293D is an integrated circuit motor driver that can be used for simultaneous, bidirectional control of two small motors.
Small means small. The L293D is limited to 600mA, but in reality can only handle much
small currents unless you have done some serious heat sinking to keep the ease
temperature down.
Unsure about whether the L293 will work with your motor?
Hook up the circuit and run your motor while keeping your finger on the chip. If it gets
too got to touch, you cant use it with your motor. (Note to students: the L293D should be
ok for your small motor but is not Ok for your gear motor).
The L293D comes in a standard 16-pin, dual in line integrated circuit package. There is
an L293D and an L293D part number. Pick the D version because it has built in fly
back diodes to minimize inductive voltage spikes.
The pin out for the L293 in the 16 pin package is shown below in top view.
Pin Diagram:
50
Pin Description:
51
Function
Name
Enable 1,2
Input 1
Output 1
Ground
Ground
Output 2
Input 2
Vcc 2
Enable 3,4
Input 3
Output 3
Ground
Ground
Output 4
Input 4
LM324
52
53
Pin Description:
Pin
No
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Function
Name
Output 1
Input 1Input 1+
Vcc
Input 2+
Input 2Output 2
Output 3
Input 3Input 3+
Ground
Input 4+
Input 4Output 4
Microcontroller P89V51RD2
1. General description
54
2. Features
55
56
Symbol
P0.0 to P0.7
Type
I/O
Description
57
P1.0
P1.1
P1.2
I/O with
Port 1: Port 1 is an 8-bit bi-directional I/O port with internal
internal pull- pull-ups. The Port 1 pins are pulled high by the internal pull-ups
when 1s are written to them and can be used as inputs in this
up
state. As inputs, Port 1 pins that are externally pulled LOW will
source current (IIL) because o f the internal pull-ups. P1.5, P1.6,
P1.7 have high current drive of 16 mA. Port 1 also receives the
low-order address bytes during the external host mode
programming and verification.
I/O
P1.3
I/O
P1.4
I/O
P1.5
I/O
P1.6
I/O
I/O
P1.7
58
P3.0 toP3.7
P3.0
P3.1
P3.2
P3.3
P3.4
P3.5
P3.6
P3.7
59
I/O
RST
I
EA
ALE/
PROG
I/O
NC
I/O
No Connect
60
XTAL2
VDD
Power supply
I
VSS
Ground
SOLAR PANEL
A solar panel (also solar module, photovoltaic module or photovoltaic panel) is a packaged,
connected assembly of photovoltaic cells. The solar panel can be used as a component of a larger
photovoltaic system to generate and supply electricity in commercial and residential applications.
Each panel is rated by its DC output power under standard test conditions, and typically ranges
from 100 to 320 watts. The efficiency of a panel determines the area of a panel given the same
rated output - an 8% efficient 230 watt panel will have twice the area of a 16% efficient 230 watt
panel. Because a single solar panel can produce only a limited amount of power, most
installations contain multiple panels. A photovoltaic system typically includes an array of solar
panels, an inverter, and sometimes a battery and or solar tracker and interconnection wiring.
61
Efficiency
The efficiency of a solar cell may be broken down into reflectance efficiency, thermodynamic
efficiency, charge carrier separation efficiency and conductive efficiency. The overall efficiency
is the product of each of these individual efficiencies.
A solar cell usually has a voltage dependent efficiency curve, temperature coefficients, and
shadow angles.
63
64
The negative solar plate is sandwiched with the positive plate, and the
plates are attached to wires that then lead out and connect to a battery
System or appliance.
65
The electrons released by the negative plate are attracted to the outer band of the positive plate.
The electrons that are not used are essentially brought back to the silicon/boron negative plate,
and the process of generating electricity restarts.
When this activity is conducted on a large scale, with plates positioned to attract maximum
sunlight throughout the day, there can be sufficient electricity to run many types of electronic
devices. Typically, smaller scale projects will store that eletricity in a battery bank until needed.
This is true for solar garden lights and even the large panels mounted on residential rooftops.
Photovoltaic
In 1839, French scientist Edmund Becquerel discovered that certain materials would give off a
spark of electricity when struck with sunlight. This photoelectric effect was used in primitive
solar cells made of selenium in the late 1800s. In the 1950s, scientists at Bell Labs revisited the
technology and, using silicon, produced solar cells that could convert four percent of the energy
in sunlight directly to electricity. Within a few years, these photovoltaic (PV) cells were
powering
spaceships
and
satellites.
The most important components of a PV cell are two layers of semiconductor material generally
composed of silicon crystals. On its own, crystallized silicon is not a very good conductor of
electricity, but when impurities are intentionally addeda process called dopingthe stage is
set for creating an electric current. The bottom layer of the PV cell is usually doped with boron,
which bonds with the silicon to facilitate a positive charge (P). The top layer is doped with
phosphorus, which bonds with the silicon to facilitate a negative charge (N).
The surface between the resulting "p-type" and "n-type" semiconductors is called the P-N
junction (see the diagram below). Electron movement at this surface produces an electric field
that only allows electrons to flow from the p-type layer to the n-type layer.
When sunlight enters the cell, its energy knocks electrons loose in both layers. Because of the
66
Most PV systems consist of individual square cells averaging about four inches on a side. Alone,
each cell generates very little power (less than two watts), so they are often grouped together as
modules. Modules can then be grouped into larger panels encased in glass or plastic to provide
protection from the weather, and these panels, in turn, are either used as separate units or
grouped
into
even
larger
arrays.
The three basic types of solar cells made from silicon are single-crystal, polycrystalline, and
amorphous.
Single-crystal cells are made in long cylinders and sliced into round or hexagonal wafers.
While this process is energy-intensive and wasteful of materials, it produces the highestefficiency cellsas high as 25 percent in some laboratory tests. Because these high-efficiency
cells are more expensive, they are sometimes used in combination with concentrators such as
mirrors or lenses. Concentrating systems can boost efficiency to almost 30 percent. Singlecrystal
accounts
for
29
percent
of
the
global
market
forPV.
67
Photovoltaic
costs
(Source:
NREL)
Innovative processes and designs are continually reaching the market and helping drive down
costs, including string ribbon cell production, photovoltaic roof tiles, and windows with a
68
Advantage
Once solar panels are installed, they produce energy without generating waste or
pollution. They operate with little maintenance or intervention.
Once the initial capital cost of building a solar power plant has been met, operating costs
are low when compared to existing power technologies.
69
They are applicable for low-power uses such as solar powered garden lights and battery
chargers.
A solar panel saves approximately 0.7 pounds of coal per kWh, or 2 pounds of carbon
dioxide per KWh.
Disadvantage
Solar cells are currently costly and require a large initial capital investment.
For larger applications, many photovoltaic cells are needed, corresponding to high
investment costs and large land requirements.
The cost effectiveness of a solar energy system is dependent upon the location and
climate.
70
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
TRAIN SET
71
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
73
74
75
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.
76
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.
77
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.
78
The next screen will be as shown in next page, and just maximize it by double
clicking on its blue boarder.
17.
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
79
FEATURES
80
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.
81
BOARD TYPES
The two most popular PCB types are:
1.
2.
82
(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.
83
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.
84
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.
85
86
(E) SOLDERING
This is the operation of joining the components with PCB after this operation the circuit
will be ready to use to avoid any damage or fault during this operation following care must be
taken.
1. A longer duration contact between soldering iron bit & components lead can exceed
the temperature rating of device & cause partial or total damage of the device. Hence before
soldering we must carefully read the maximum soldering temperature & soldering time for
device.
2. The wattage of soldering iron should be selected as minimum as permissible for that
soldering place.
3. To protect the devices by leakage current of iron its bit should be earthed properly.
4. We should select the soldering wire with proper ratio of Pb & Tn to provide the
suitable melting temperature.
5. Proper amount of good quality flux must be applied on the soldering point to avoid dry
soldering.
87
CHAPTER 5
PROGRAMMING
88
CHAPTER 6
89
APPLICATION
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.
90
Component
Quantity
Cost
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
10
5
30
91
Strip
20.
Buzzer
21.
Solar panel
22.
Zip socket
23.
Connector
24.
25.
26.
30
4
1(10 volt)
3
20
40
1000
120
60
Train set
480
Magnet
40
12
Battery connector
Total
4029 /-
92
CONCLUSION
This project is an embedded system with software embedded into related hardware developed
with a view to merge many projects into one with a reasonable cost. If enhanced, it can transform
into more facilitating and smart project.
At present the system is fully automatic, it has no human control over it but we can
enhance it and install GPS system into it. So that we can be able to locate the train and after
installing certain features, we can be able to control it too.
Concluding, this work can be treated as an initialization to a project which can serve
virtually all requirement in the future public transport network.
93
BIBLIOGRAPHY
WEBSITE:
http://www.electronicsforu.com
http://www.8051projects.info
http://www.instructable.com
http://www.alldatasheet.com
http://www.datasheet4u.com
http://www.datasheetcatalog.com
BOOKS:
R.S. SEDHA
ELECTRONICS
M.A. Mazidi
94
APPENDIX
PCB
CCB
IT
INTELLIGENCE TRAIN
AGC
DC
DIRECT CURRENT
AC
ALTERNATING CURRENT
GND
Vcc
INDICATING 5V DC
RPM
95