Professional Documents
Culture Documents
1.0 Introduction 4
1.1 Platform used
1.1.0 Software Requirements 5
1.1.1 Hardware requirements 5
CHAPTER 2:
CHAPTER 3:
3.0 Working of the project 8
3.1 Circuit Diagram 9
3.2 Circuit Description
3.2.1 Power Supply Section 10
3.2.2 Microcontroller Section 10
3.2.3 Buzzer Section 10
3.3 Printed Circuit Boards Description
3.3.1 Manufacturing 12
3.3.2 Lamination 14
3.3.3 Drilling 14
3.3.4 Protection and packaging 17
1
3.3.5 Steps involved in making PCB 18
3.4 Component list 20
CHAPTER 4: SOFTWARE PROGRAM
5.1 LDR 27
5.2 IR SENSOR TX & RX 27
5.3 RAIN OPERATED WIPER SENSOR 30
5.4 FIRE SENSOR 32
5.4.1 Features 32
5.4.2 Functional description 33
5.5 Temperature sensor readings 34
CHAPTER 6:
7.0 DC Motors 46
7.1 Transformers 48
7.1.1 Basic principle 48
7.2 Rectifier 50
7.2.1 Basic Operation 51
7.2.2 Output Smoothing 52
7.2.3 LM7805 (3-Terminal Fixed Voltage 54
Regulator)
7.2.4 Features 55
7.3 RELAYS 56
7.3.1 Advantages of relays 57
7.3.2 Disadvantages of relays 58
7.4 Crystal Oscillator 58
7.5 CAPACITRO 59
7.6 RESISTOR 60
7.7 TRANSISTORS 61
7.8 Buzzer 62
7.9 DIODE 63
CHAPTER 8:
Conclusion of project 65
8.0 APLICATION 66
8.1 Features 66
8.2 Future scope 67
8.3 Result 68
8.4 Physical hard ware view 69
Annexures
Annexures 1 70
Annexures 2 71
References
3
CHAPTER 1
1.0 INTRODUCTION
4
1.1 Platform used
1) Microcontroller 8051(89s52)
2) LM7805 Regulator
3) Power Supply
4) Resistors
5) Capacitors
6) Transistors
7) LEDs
8) Connectors
9) Relays
11) Motor
12) Buzzer
13) switches
5
CHAPTER 2
6
2.1 Block diagram
8051
Motor Motor
Regulat Microcont
ed
Drivin
roller Mot
g IC
IR
Receiv
IR
Trans
BLOCK DIGRAM OF REVERSE
SYSTEM
Microco IR
Regulat ntroller TRANSMI
ed
IR
RECEI
Moto Moto
r Whe
Mot el
Drivi
7
CHAPTER 3
The computer uses sensors on the engine and transmission to detect such
things as throttle position, vehicle speed, engine speed, engine load, brake
pedal position, etc. to control exact shift points as well as how soft or firm
the shift should be. Once the computer receives this information, it then
sends signals to a solenoid pack inside the transmission.
8
3.1 CIRCUIT DIAGRAM
9
3.2 CIRCUIT DESCRIPTION
Expansion board Any board that plugs into one of the computer's
expansion slots. Expansion boards include controller boards, LAN
cards, and video adapters.
Daughter card Any board that attaches directly to another board.
11
Controller board A special type of expansion board that contains a
controller for a peripheral device. When you attach new devices, such
as a disk drive or graphics monitor, to a computer, you often need to
add a controller board.
3.3.1 Manufacturing
Patterning (etching)
The vast majority of printed circuit boards are made by adhering a
layer of copper over the entire substrate, sometimes on both sides,
(creating a "blank PCB") then removing unwanted copper after
applying a temporary mask (eg. by etching), leaving only the desired
copper traces. A few PCBs are made by adding traces to the bare
substrate (or a substrate with a very thin layer of copper) usually by a
complex process of multiple electroplating steps.
There are three common "subtractive" methods (methods that
remove copper) used for the production of printed circuit boards:
12
(non-conductive) board. The latter technique is also used in the
manufacture of hybrid circuits.
2. Photoengraving uses a photomask and chemical etching to
remove the copper foil from the substrate. The photomask is
usually prepared with a photoplotter from data produced by a
technician using CAM, or computer-aided manufacturing
software. Laser-printed transparencies are typically employed
for phototools; however, direct laser imaging techniques are
being employed to replace phototools for high-resolution
requirements.
3. PCB milling uses a two or three-axis mechanical milling
system to mill away the copper foil from the substrate. A PCB
milling machine (referred to as a 'PCB Prototyper') operates in a
similar way to a plotter, receiving commands from the host
software that control the position of the milling head in the x, y,
and (if relevant) z axis. Data to drive the Prototype is extracted
from files generated in PCB design software and stored in
HPGL or Gerber file format.
13
isolating the individual traces. The additive process is commonly used
for multi-layer boards as it facilitates the plating-through of the holes
(vias) in the circuit board.
3.3.2 Lamination
Some PCBs have trace layers inside the PCB and are called multi-
layer PCBs. These are formed by bonding together separately etched
thin boards.
3.3.3 Drilling
Holes, or vias, through a PCB are typically drilled with tiny drill bits
made of solid tungsten carbide. The drilling is performed by
automated drilling machines with placement controlled by a drill tape
or drill file. These computer-generated files are also called
numerically controlled drill (NCD) files or "Excellon files". The drill file
describes the location and size of each drilled hole. When very small
vias are required, drilling with mechanical bits is costly because of
high rates of wear and breakage. In this case, the vias may be
evaporated by lasers. Laser-drilled vias typically have an inferior
surface finish inside the hole. These holes are called micro vias. It is
also possible with controlled-depth drilling, laser drilling, or by pre-
drilling the individual sheets of the PCB before lamination, to produce
holes that connect only some of the copper layers, rather than
passing through the entire board. These holes are called blind vias
when they connect an internal copper layer to an outer layer, or
buried vias when they connect two or more internal copper layers.
14
The walls of the holes, for boards with 2 or more layers, are plated
with copper to form plated-through holes that electrically connect the
conducting layers of the PCB. For multilayer boards, those with 4
layers or more, drilling typically produces a smear comprised of the
bonding agent in the laminate system. Before the holes can be plated
through, this smear must be removed by a chemical de-smear
process, or by plasma-etch.
15
Screen printing
Line art and text may be printed onto the outer surfaces of a PCB by
screen printing. When space permits, the screen print text can
indicate component designators, switch setting requirements, test
points, and other features helpful in assembling, testing, and
servicing the circuit board.Screen print is also known as the silk
screen, or, in one sided PCBs, the red print.
Test
Unpopulated boards may be subjected to a bare-board test where
each circuit connection (as defined in a netlist) is verified as correct
on the finished board. For high-volume production, a Bed of nails
tester or fixture is used to make contact with copper lands or holes on
one or both sides of the board to facilitate testing. A computer will
instruct the electrical test unit to send a small amount of current
through each contact point on the bed-of-nails as required, and verify
that such current can be seen on the other appropriate contact points.
For small- or medium-volume boards, flying-probe testers use moving
test heads to make contact with the copper lands or holes to verify
the electrical connectivity of the board under test.
Populating
After the PCB is completed, electronic components must be attached
to form a functional printed circuit assembly, or PCA. In through-hole
construction, component leads may be inserted in holes and
electrically and mechanically fixed to the board with a molten metal
solder, while in surface-mount construction, the components are
16
simply soldered to pads or lands on the outer surfaces of the
PCB.Often, through-hole and surface-mount construction must be
combined in a single PCA because some required components are
available only in surface-mount packages, while others are available
only in through-hole packages.
18
Now wash it under the flowing water.
Dry the negative in the photocure machine.
Take the PCB board of the size of the layout and clean it with steel
wool to make the surface smooth.
Now dip the PCB in the liquid photoresist, with the help of dip coat
machine.
Now clip the PCB next to the negative in the photo cure machine,
drying for approximate 10-12 minute.
Now place the negative on the top of the PCB in the UV machine,
set the timer for about 2.5 minute and switch on the UV light at the
top.
Take the LPR developer in a container and rigorously move the
PCB in it.
After this, wash it with water very gently.
Then apply LPR dye on it with the help of a dropper so that it is
completely covered by it.
Now clamp the PCB in the etching machine that contains ferric
chloride solution for about 10 minutes.
After etching, wash the PCB with water, wipe it a dry cloth softly.
Finally rub the PCB with a steel wool, and the PCB is ready.
19
3.4 Component list
20
CHAPTER 4
SOFTWARE PROGRAM
21
Data can be loaded and saved in the binary, Intel-Hex,
Motorola-S and other formats.
22
Basic support for the simple programming of frequently required
partial functions such as conditions (If...Else) or loops (For...),
nesting possible up to 99 levels
4.1 PROGRAMMING
#include<reg52.h>
sbit MTL1=P2^0;
sbit MTR1=P2^1;
sbit MTL2=P2^2;
sbit MTR2=P2^3;
void msec_wait(int z)
{
int a,y;
for(a=0;a<z*10;a++)
for(y=0;y<z*10;y++);
23
}
void msec1_wait(int f)
{
int a,y;
for(a=0;a<f*1;a++)
for(y=0;y<f*1;y++);
}
void main()
{
while(1)
{
P3=0X00;
P2=0X00;
if(P0==0xf9) ///////////////FF
{
MTL1=1;
MTL2=1;
MTR1=0;
MTR2=0;
msec_wait(1);
}
else if(P0==0xfa) ///////////////RW
{
MTL1=0;
MTL2=0;
MTR1=1;
MTR2=1;
msec_wait(1);
}
else if(P0==0xfc)//////////////LEFT
{
MTL1=1;
MTR1=0;
24
MTL2=0;
MTR2=0;
msec_wait(1);
}
else if(P0==0xfb)/////////////RIGHT
{
MTL1=0;
MTR1=0;
MTL2=1;
MTR2=0;
msec_wait(1);
}
else if(P0==0xf1)
{
TMOTL=1; ///////////////top motor left
TMOTR=0;
msec_wait(1);
}
else if(P0==0xf2)
{
TMOTL=0; ///////////////top motor right
TMOTR=1;
msec_wait(1);
else if(P0==0xf4)
{
MMOTL=1; ///////////////mid motor left
MMOTR=0;
msec_wait(1);
}
25
else if(P0==0xf3)
{
MMOTL=0; ///////////////mid motor right
MMOTR=1;
msec_wait(1);
////////////////
else if(P0==0xf6)
{
LMOTL=1; ///////////////LOW motor left
LMOTR=0;
msec_wait(1);
}
else if(P0==0xf5)
{
26
CHAPTER 5
Sensing unit
5.1 LDR
27
Figure 5.2 IR SENSOR TX & RX
28
Circuit TX
Circuit Rx
29
5.3 RAIN OPERATED WIPER SENSOR
30
There are two main applications for rain sensors. The first is a
water conservation device connected to an automatic irrigation
system that causes the system to shut down in the event of rainfall.
The second is a device used to protect the interior of an automobile
from rain and to support the automatic mode of windscreen wipers.
31
5.4 FIRE SENSOR
5.4.1 Features
FORMULA:
Temperature ( Oc ) = (Vout/5) *100( Oc/V)
34
5.5 Temperature Sensor Readings
35
CHAPTER 6
37
Mode stops the CPU while allowing the RAM, timer/counters, serial
port, and interrupt system to continue functioning. The Power Down
Mode saves the RAM contents but freezes the oscillator, disabling all
other chip functions until the next hardware reset.
6.2 Description
39
address 7FH, the address mode used in the instruction specifies
whether the CPU accesses the upper 128 bytes of RAM or the SFR
space. Instructions that use direct addressing access SFR space. For
example, the following direct addressing instruction accesses the
SFR at location 0A0H (which is P2). MOV 0A0H, #data Instructions
that use indirect addressing access the upper 128 bytes of RAM. For
example, the following indirect addressing instruction, where R0
contains 0A0H, accesses the data byte at address 0A0H, rather than
P2 (whose addresses 0A0H). MOV @R0, #data Note that stack
operations are examples of indirect addressing, so the upper 128
bytes of data RAM are available as stack space.
40
6.5.4 Table 2.
41
6.6 AT89C52
6.6.2 Timer 2
44
6.6 Pin Diagram
.
Figure 6.0 Pin diagram of 8051
45
CHAPTER 7
Component description
7.0 DC Motors
Every DC motor has six basic parts -- axle, rotor (a.k.a., armature), stator,
commutator, field magnet(s), and brushes. In most common DC motors (and
all that BEAMers will see), the external magnetic field is produced by high-
strength permanent magnets1. The stator is the stationary part of the motor --
this includes the motor casing, as well as two or more permanent magnet
46
pole pieces. The rotor (together with the axle and attached commutator)
rotate with respect to the stator. The rotor consists of windings (generally on
a core), the windings being electrically connected to the commutator. The
above diagram shows a common motor layout -- with the rotor inside the
stator (field) magnets.
The geometry of the brushes, commutator contacts, and rotor windings are
such that when power is applied, the polarities of the energized winding and
the stator magnet(s) are misaligned, and the rotor will rotate until it is almost
aligned with the stator's field magnets. As the rotor reaches alignment, the
brushes move to the next commutator contacts, and energize the next
winding. Given our example two-pole motor, the rotation reverses the
direction of current through the rotor winding, leading to a "flip" of the
rotor's magnetic field, driving it to continue rotating.
In real life, though, DC motors will always have more than two poles (three
is a very common number). In particular, this avoids "dead spots" in the
commutator. You can imagine how with our example two-pole motor, if the
rotor is exactly at the middle of its rotation (perfectly aligned with the field
magnets), it will get "stuck" there. Meanwhile, with a two-pole motor, there
is a moment where the commutator shorts out the power supply (i.e., both
brushes touch both commutator contacts simultaneously). This would be bad
for the power supply, waste energy, and damage motor components as well.
Yet another disadvantage of such a simple motor is that it would exhibit a
high amount of torque "ripple" (the amount of torque it could produce is
cyclic with the position of the rotor
and
where:
and are the induced EMFs across primary and secondary windings,
and are the numbers of turns in the primary and secondary windings,
and are the time derivatives of the flux linking the primary and
secondary windings.
In the ideal transformer, all flux produced by the primary winding also links
the secondary, and so , from which the well-known transformer
equation follows:
The ratio of primary to secondary voltage is therefore the same as the ratio
of the number of turns; alternatively, that the volts-per-turn is the same in
both windings. The conditions that determine Transformer working in STEP
UP or STEP DOWN mode are:
49
Ns > Np
Ns < Np
7.2 Rectifier
50
7.2.1 Basic Operation
When the right hand corner is positive relative to the left hand corner,
current flows along the upper colored path and returns to the supply
via the lower colored path.
51
Figure 7.4 AC, half-wave and full wave rectified signals
In each case, the upper right output remains positive with respect to
the lower right one. Since this is true whether the input is AC or DC,
this circuit not only produces DC power when supplied with AC
power: it also can provide what is sometimes called "reverse polarity
protection". That is, it permits normal functioning when batteries are
installed backwards or DC input-power supply wiring "has its wires
crossed" (and protects the circuitry it powers against damage that
might occur without this circuit in place). Prior to availability of
integrated electronics, such a bridge rectifier was always constructed
from discrete components. Since about 1950, a single four-terminal
component containing the four diodes connected in the bridge
configuration became a standard commercial component and is now
available with various voltage and current ratings.
52
Figure 7.5 Bridge Rectifier with smoothen output
The capacitor and the load resistance have a typical time constant τ =
RC where C and R are the capacitance and load resistance
respectively. As long as the load resistor is large enough so that this
time constant is much longer than the time of one ripple cycle, the
above configuration will produce a well smoothed DC voltage across
the load resistance. In some designs, a series resistor at the load
side of the capacitor is added. The smoothing can then be improved
by adding additional stages of capacitor–resistor pairs, often done
only for sub-supplies to critical high-gain circuits that tend to be
sensitive to supply voltage noise.
53
7.2.3 LM7805 (3-Terminal Fixed Voltage Regulator)
54
Figure 7.7 Fixed Output Regulators
7.2.4 Features
• Output Current up to 1A
• Output Voltages of 5, 6, 8, 9, 10, 12, 15, 18, 24V
• Thermal Overload Protection
• Short Circuit Protection
• Output Transistor Safe Operating Area Protection
55
7.3 RELAYS
b. Relays Photographs
c.
56
Relays allow one circuit to switch a second circuit that can be completely
separate from the first. For example a low voltage battery circuit can use a
relay to switch a 230V AC mains circuit. There is no electrical connection
inside the relay between the two circuit , the link is magnetic and
mechanical.
The coil of a relay passes a relatively large current, typically 30mA for a
12V relay, but it can be as much as 100mA for relays designed to operate
from lower voltages. Most ICs (chips) cannot provide this current and a
transistor is usually used to amplify the small IC current to the larger value
required for the relay coil. The maximum output current for the popular 555
timer IC is 200mA so these devices can supply relay coils directly without
amplification.
Relays are usually SPDT or DPDT but they can have many more sets of
switch contacts, for example relays with 4 sets of changeover contacts are
readily available. For further information about switch contacts and the
terms used to describe them please see the page on switch.
The relay's switch connections are usually labeled COM, NC and NO:
COM = Common, always connect to this, it is the moving part of
the switch.
NC = Normally Closed, COM is connected to this when the relay
coil is off.
NO = Normally Open, COM is connected to this when the relay
coil is on.
Connect to COM and NO if you want the switched circuit to be on
when the relay coil is on.
Connect to COM and NC if you want the switched circuit to be on
when the relay coil is off.
Relays are a better choice for switching large currents (> 5A).
57
7.3.2 Disadvantages of relays
Relays use more power due to the current flowing through their
coil.
Relays require more current than many chips can provide, so a
low power transistor may be needed to switch the current for
the relay's coil.
58
and more often if you are the punctual type. A programmed VCR with
a clock this far off could miss the recording of part of a TV show.
Narrow band SSB communications at VHF and UHF frequencies still
need 50 Hz frequency accuracy. At 440 MHz, this is slightly more
than 0.1 part per million.
7.5 CAPACITOR
7.6 RESISTOR
Fixed Resistors
The most common of low wattage, fixed type resistors is the molded-
carbon composition resistor. The resistive material is of carbon clay
composition. The leads are made of tinned copper. Resistors of this
type are readily available in value ranging from few ohms to about
20M, having a tolerance range of 5 to 20%. They are quite
inexpensive. The relative size of all fixed resistors changes with the
wattage rating.
Another variety of carbon composition resistors is the
metalized type. It is made by deposition a homogeneous film of pure
carbon over a glass, ceramic or other insulating core. This type of
film-resistor is sometimes called the precision type, since it can be
obtained with an accuracy of 1%.
60
VARIABLE RESISTOR
7.7 TRANSISTORS
Collector : The section on the other side that collects the charge is
called collector. The collector is always reversed biased.
Base : The middle section which forms two pn-junctions between the
emitter and collector is called base.
7.8 Buzzer
Magnetic Buzzers
62
unit with a detection coil, a drive coil and a magnetic transducer.
Transistors, resistors, diodes and other small devices act as circuit
devices for driving sound generators. With the application of voltage,
current flows to the drive coil on primary side and to the detection coil
on the secondary side.
Circuit of buzzer
7.9 DIODE
ACTIVE COMPONENT
Active component are those component for not any other component
are used its operation. I used in this project only function diode, these
component description are described as bellow.
SEMICONDUCTOR DIODE
A PN junctions is known as a semiconductor or crystal diode. A
crystal diode has two terminal when it is connected in a circuit one
thing is decide is weather a diode is forward or reversed biased.
There is a easy rule to ascertain it. If the external CKT is trying to
push the conventional current in the direction of error, the diode is
forward biased. One the other hand if the conventional current is
trying is trying to flow opposite the error head, the diode is reversed
biased putting in simple words.
63
1. If arrowhead of diode symbol is positive W.R.T Bar of the symbol,
the diode is forward biased.
2. The arrowhead of diode symbol is negative W.R.T bar , the diode
is the reverse bias.
64
CHAPTER 8
CONCLUSION
65
8.0 APPLICATION
Automatic braking.
Automatic deeper.
Automatic wiper.
Automatic path finder
Engine Heat sensing
8.1 FEATURES
66
8.2 FUTURE SCOPE
67
8.3RESUT
68
8.4 PHYSICAL HARDWARE VIEW OF THE GIVEN PROJECT
TOP VIEW
FRONT VIEW
69
ANNEXURE 1
70
ANNEXURE 2
PCB LAYOUT
71
References:
Webisite link:
Online Available @:
WIKIPEDIA.ORG
[1].(http://www.mikroe.com/chapters/view/65/ chapter-2-8051)
[2].microcontroller-architecture/
(http://en.wikipedia.org/wiki/Voltage_regulator)
ml)
ml)
BOOK:
and Herigs
73
[14]. howstuffworks.com: How Pre-Collision Systems Work.
Types of Pre-collision
Systems. http://auto.howstuffworks.com/car-driving-
safety/safety-regulatory-devices/pre-collision-systems2.htm
74