Microcontroller Based Vehicle Security System
Microcontroller Based Vehicle Security System
ON
MICROCONTROLLER BASED VEHICLE SECURITY
SYSTEM
TABLE OF CONTENTS
INTRODUCTION
PLATFORM USED
BLOCK DIAGRAM
CIRCUIT DIAGRAM
COMPONENT LIST
CIRCUIT DESCRIPTION
PCB LAYOUT
PROGRAMMING
MICROCONTROLLER UNIT
COMPONENTS DESCRIPTION
CONCLUSION
REFERENCE
INTRODUCTION
Here we are developing Microcontroller based vehicle security system .Daily we hear the
news regarding car ,motorcycle stealing .Number of security systems are available in the
market but they are costly so we have designed a system that provide an effective security the
vehicle .
In this project whenever driver try to start his vehicle he has to enter a password for
it ,if the entered password is correct then only the car will start automatically and if anyone
try to steal the vehicle buzzer will run to bring the attention of the vehicle owner .In this way
a this system is quite secure, cost effective and reliable without authorization no person can
start the vehicle. It is an embedded project which is combination of hardware and software
.we will first understand the basic need of the project and will design a software for it and
then will work on the hardware .
PLATFORM USED
SOFTWARE REQUIREMENTS
1. Batronix Prog Studio for programming of Microcontroller
2. Orcad for Circuit Designing
3. Pads for PCB designing
HARDWARE REQUIREMENTS
1.
MICROCONTROLLER 89C51/89s52
2.
CRYSTAL OSCILLATOR
3.
RESISTOR
4.
TRANSISTOR
5.
DIODE
6.
CAPACITOR
7.
CONNECTORS
8.
RELAY
9.
BUZZER
BLOCK DIAGRAM
Microcontroller
BUZZER
Power Supply
In this project we are using a microcontroller, buzzer and key matrix .keys are used for
entering password when any one enter a password then the microcontroller will check the
password with the stored password in the controller if the two password matches then the
relay gets on which in turn gets on the starter and the vehicle will started .To the
microcontroller a buzzer is connected if the password do not match then it understand that it
is an unauthorized person and it ring the buzzer on .
CIRCUIT DIAGRAM
CIRCUIT DESCRIPTION
Bridge Rectifier --- It is a full wave rectifier used to convert ac into dc , 9-15v ac
made by transformer is converted into dc with the help of rectifier.
Capacitor:
remove the ripples. Capacitor is the component used to pass the ac and block the dc.
Capacitor:
Capacitor: ----- It is an ceramic capacitor used to remove the spikes generated when
frequency is high(spikes).
MICROCONTROLLER
SECTION:
1. +5v
supply:
This +5v supply is required for the controller to get start which is
provided from the power supply section. This supply is provided at pin no. 20 of the
89c2051 controller.
2. Crystal Oscillator: A crystal oscillator of 12 MHz is connected at pin no.,x1 and pin
no.,x2 to generate the frequency for the controller. The crystal oscillator works on
piezoelectric effect.The clock generated is used to determine the processing speed of
the controller. Two capacitors are also connected one end with the oscillator while the
other end is connected with the ground. As it is recommended in the book to connect
two ceramic capacitor of 20 pf40pf to stabilize the clock generated.
3. Reset section:
one resistance of 1k. This section is used to reset the controller connected at pin no.1
of AT89c51.
RELAY SECTION:
RELAY is an isolator and an electrical switch. The relay used is 12V-5A.To control the
operation of relay an NPN transistor BC547 has been used. Whenever high signal comes at
the base of NPN transistor it is switched on and whenever low arrives it is switched off. Base
of the transistor is connected with the I/O pin of the microcontroller. Base resistance of 1k5 is
connected at the base of the transistor. Whenever low is sensed at the pin of microcontroller
transistor gets off and the output of the collector becomes high and the relay which is
connected at the output of the collector becomes off. The reverse action of it takes place
when high is sensed at the pin of microcontroller.
This section also consists of pull up & pull down resistance. A 2k2 resistance is used as pull
up. In any case when more than 5v comes then pull up resistance sinks the excess voltage &
maintains 5v. If pull up is not used then the 12v of relay can damage the processor when the
transistor BC547 is on. A pull down resistor of value 2k2 is also used.
BUZZER SECTION:
This section includes a buzzer as well as a resistance to limit the current. The buzzer operates
in the range of 20-25mA. The voltage given to the buzzer is 5v and also the buzzer can
operate between 3V-24V. The resistance used is calculated by using the ohms law.
Buzzer is an indicating device which is used for checking the software condition and also
used for indicating any specific condition.
PCB LAYOUT
PROGRAMMING
INCLUDE 89c51.mc
main:
mainlp:
JB
p3.7,mainlp
CPL
p3.5
JNB
p1.2,mainlp
JNB
p1.3,mainlp
JNB
p1.4,mainlp
JNB
p1.5,mainlp
JB
p3.7,la11
la11:
CPL
p3.5
JNB
p1.0,mainlp
JNB
p1.3,mainlp
JNB
p1.4,mainlp
JNB
p1.5,mainlp
JB
p3.7,la12
CPL
p3.5
JNB
p1.0,mainlp
JNB
p1.1,mainlp
JNB
p1.4,mainlp
JNB
p1.5,mainlp
JB
p3.7,la13
CPL
p3.5
JNB
p1.0,mainlp
JNB
p1.1,mainlp
JNB
p1.2,mainlp
JNB
p1.6,mainlp
JB
p3.7,la14
CPL
p2.0
DB
c0h;0
la12:
la13:
la14:
table:
addr
00h
bcd
11111111
DB
f9h;1
addr
01h
DB
a4h;2
addr
02h
DB
b0h;3
addr
03h
DB
99h;4
addr
04h
DB
92h;5
addr
05h
DB
82h;6
addr
06h
DB
f8h;7
addr
07h
DB
80h;8
addr
08h
DB
98h;9
addr
09h
DB
ffh;blank
addr
0ah
DB
88h;A
addr
0bh
bcd
10001000
DB
83h;b
addr
0ch
bcd
10000011
DB
80h;B
addr
0dh
bcd
10000000
DB
a7h;c
addr
0eh
bcd
10100111
DB
c6h;C
addr
0fh
bcd
11000110
DB
a1h;d
addr
10h
bcd
10100001
DB
86h;E
addr
11h
bcd
10000110
DB
8eh;F
addr
12h
bcd
10001110
DB
c2h;G
addr
13h
bcd
11000010
DB
8bh;h
addr
14h
bcd
10001011
DB
fbh;i
addr
15h
bcd
11111011
DB
e1h;j
addr
16h
bcd
11100001
DB
8fh;k
addr
17h
bcd
10001111
DB
c7h;L
addr
18h
bcd
11000111
DB
c8h;M
addr
19h
bcd
11001000
DB
abh;n
addr
1ah
bcd
10101011
DB
a3h;o
addr
1bh
bcd
10100011
DB
c0h;O
addr
1ch
bcd
11000000
DB
8ch;P
addr
1dh
bcd
10001100
DB
98h;q
addr
1eh
bcd
10011000
DB
afh;r
addr
1fh
bcd
10101111
DB
92h;S
addr
20h
bcd
10010010
DB
87h;t
addr
21h
bcd
10000111
DB
c1h;U
addr
22h
bcd
11000001
DB
e3h;vwaddr
23h
bcd
11100011
DB
89h;X
addr
24h
bcd
10001001
DB
91h;y
addr
25h
bcd
10010001
DB
a4h;Z
addr
26h
bcd
10100100
MICROCONTROLLER UNIT
CONTROLLER AT89C51/89s52
Features
DESCRIPTION
8Kbytes of
Flash programmable and erasable read only memory (PEROM). The device is manufactured
using Atmel s high-density nonvolatile memory technology and is compatible with the
industry standard 80C51 and 80C52 instruction set and pin out.The on-chip Flash allows the
program memory to be reprogrammed in-system or by a Conventional nonvolatile memory
programmer. By combining a versatile 8-bit CPU with Flash on a monolithic chip, the Atmel
AT89C52 is a powerful microcomputer that provides a highly flexible and cost-effective
solution to many embedded control application.
The AT89C52 provides the following standard features: 8K bytes of Flash, 256 bytes of
RAM, 32 I/O lines, three 16-bit timer/counters, a six-vector two-level interrupt architecture, a
full-duplex serial port, on-chip oscillator, and clock circuitry. In addition, the AT89C52 is
designed with static logic for operation down to zero frequency and supports two software
selectable power saving modes. The Idle Mode tops 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
PIN DESCRIPTION
VCC
Supply voltage.
GND
Ground.
Port 0
Port 0 is an 8-bit open drain bi-directional I/O port. As an output port, each pin can sink eight
TTL inputs. When 1s are written to port 0 pins, the pins can be used as high impedance
inputs.
Port 0 can also be configured to be the multiplexed low order address/data bus during
accesses to external program and data memory. In this mode, P0 has internal pull-ups .
Port 0 also receives the code bytes during Flash programming and outputs the code bytes
during program verification. External pull-ups are required during program verification.
Port 1
Port 1 is an 8-bit bi-directional I/O port with internal pull-ups. The Port 1 output buffers can
sink/source four TTL inputs. When 1s are written to Port 1 pins, they are pulled high by the
internal pull-ups and can be used as inputs. As inputs, Port 1 pins that are externally being
pulled low will source current (IIL) because of the internal pull-ups.
In addition, P1.0 and P1.1 can be configured to be the timer/counter 2 external count input
(P1.0/T2) and the timer/counter 2 trigger input (P1.1/T2EX), respectively, as shown in the
following table.
Port 1 also receives the low-order address bytes during
Port 2
Port 2 is an 8-bit bi-directional I/O port with internal pull-ups. The Port 2 output buffers can
sink/source four TTL inputs. When 1s are written to Port 2 pins, they are pulled high by the
internal pull-ups and can be used as inputs. As inputs, Port 2 pins that are externally being
pulled low will source current (IIL) because of the internal pull-ups. Port 2 emits the highorder address byte during fetches from external program memory and during accesses to
external data memory that use 16-bit addresses (MOVX @ DPTR). In this application, Port 2
uses strong internal pull-ups when emitting 1s. During accesses to external data memory that
use 8-bit addresses (MOVX @ RI), Port 2 emits the contents of the P2 Special Function
Register. Port 2 also receives the high-order address bits and some control signals during
Flash programming and verification.
Port 3
Port 3 is an 8-bit bi-directional I/O port with internal pull-ups. The Port 3 output buffers can
sink/source four TTL inputs. When 1s are written to Port 3 pins, they are pulled high by the
internal pull-ups and can be used as inputs. As inputs, Port 3 pins that are externally being
pulled low will source current (IIL) because of the pull-ups. Port 3 also serves the functions
of various special features of the AT89C51, as shown in the following table. Port 3 also
receives some control signals for Flash programming.
RST
Reset input. A high on this pin for two machine cycles while the oscillator is running resets
the device.
ALE/PROG
Address Latch Enable is an output pulse for latching the low byte of the address during
accesses to external memory. This pin is also the program pulse input (PROG) during Flash
programming. In normal operation, ALE is emitted at a constant rate of 1/6 the oscillator
frequency and may be used for external timing or clocking purposes. Note, however, that one
ALE pulse is skipped during each access to external data memory. If desired, ALE operation
can be disabled by setting bit 0 of SFR location 8EH. With the bit set, ALE is active only
during a MOVX or MOVC instruction. Otherwise, the pin is weakly pulled high. Setting the
ALE-disable bit has no effect if the micro controller is in external execution mode.
PSEN
Program Store Enable is the read strobe to external program memory. When the AT89C52 is
executing code from external program memory, PSEN is activated twice each machine cycle,
except that two PSEN activations are skipped during each access to external data memory.
EA/VPP
External Access Enable. EA must be strapped to GND in order to enable the device to fetch
code from external program memory locations starting at 0000H up to FFFFH.
Note, however, that if lock bit 1 is programmed, EA will be internally latched on reset.
EA should be strapped to VCC for internal program executions. This pin also receives the 12volt programming enable voltage (VPP) during Flash programming when 12-volt
programming is selected.
XTAL1
Input to the inverting oscillator amplifier and input to the internal clock operating circuit.
XTAL2
A map of the on-chip memory area called the Special Function Register (SFR) space is
shown in Table 1.
Note that not all of the addresses are occupied, and unoccupied addresses may not be
implemented on the chip. Read accesses to these addresses will in general return random
data, and write accesses will have an indeterminate effect. User software should not write 1s
to these unlisted locations, since they may be used in future prod new features. In that case,
the reset or inactive values of the new bits will always be 0.
Timer 2 Registers
Control and status bits are contained in registers T2CON (shown in Table 2) and T2MOD
(shown in Table 4) for Timer 2. The register pair (RCAP2H, RCAP2L) are the
Capture/Reload registers for Timer 2 in 16-bit capture mode or 16-bit auto-reload mode.
Interrupt Registers
The individual interrupt enable bits are in the IE register. Two priorities can be set for each of
the six interrupt sources in the IP register. 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 address is
0A0H).
MOV @R0, #data
Note that stack operations are examples of indirect addressing, so the upper 128 bytes of data
RAM are avail available as stack space.
Timer 0 and 1
Timer 0 and Timer 1 in the AT89C52 operate the same way as Timer 0 and Timer 1 in the
T89C51.
Timer 2
Timer 2 is a 16-bit Timer/Counter that can operate as either a timer or an event counter. The
type of operation is selected by bit C/T2 in the SFR T2CON (shown in Table 2).Timer 2 has
three operating modes: capture, auto-reload (up or down counting), and baud rate generator.
The modes are selected by bits in T2CON, as shown in Table 3.Timer 2 consists of two 8-bit
registers, TH2 and TL2. In the Timer function, the TL2 register is incremented every
machine cycle. Since a machine cycle consists of 12 oscillator periods, the count rate is 1/12
of the oscillator input pin, T2. In this function, the external input is sampled during S5P2 of
every machine cycle. When the samples show a high in one cycle and a low in the next cycle,
the count is incremented. The new count value appears in the register during S3P1 of the
cycle following the one in which
the transition was detected. Since two machine cycles (24 oscillator periods) are required to
recognize a 1-to-0 transition, the maximum count rate is 1/24 of the oscillator frequency. To
ensure that a given level is sampled at least once before it changes, the level should be held
for at least one full machine cycle.
Capture Mode
In the capture mode, two options are selected by bit EXEN2 in T2CON. If EXEN2 = 0,
Timer 2 is a 16-bit timer or counter which upon overflow sets bit TF2 in T2CON.This bit can
then be used to generate an interrupt. If EXEN2 = 1, Timer 2 performs the same operation,
but a 1-to-0 transition at external input T2EX also causes the current value in TH2 and TL2
to be captured into CAP2H and RCAP2L, respectively. In addition, the transition at T2EX
causes bit EXF2 in T2CON to be set. The EXF2 bit, like TF2, can generate an interrupt. The
capture mode is illustrated in Figure 1.
Timer 2 can be programmed to count up or down when configured in its 16-bit auto-reload
mode. This feature is invoked by theDCEN (Down Counter Enable) bit located in the SFR
T2MOD (see Table 4). Upon reset, the DCEN bit is set to 0 so that timer 2 will default to
count up. When DCEN is set, Timer 2 can count up or down, depending on the value of the
T2EX pin.
Figure 2 shows Timer 2 automatically counting up when DCEN = 0. In this mode, two
options are selected by bitEXEN2 in T2CON. If EXEN2 = 0, Timer 2 counts up to 0FFFFH
and then sets the TF2 bit upon overflow. The overflow also causes the timer registers to be
reloaded with the 16-bit value in RCAP2H and RCAP2L. The values in Timer in Capture
ModeRCAP2H and RCAP2L are preset by software. If EXEN2 = 1, a 16-bit reload can be
triggered either by an overflow or by a 1-to-0 transition at external input T2EX. This
transition also sets the EXF2 bit. Both the TF2 and EXF2 bits can generate an interrupt if
enabled. Setting the DCEN bit enables Timer 2 to count up or down, as shown in Figure 3. In
this mode, the T2EX pin controls
the direction of the count. A logic 1 at T2EX makes Timer 2 count up. The timer will
overflow at 0FFFFH and set the TF2 bit. This overflow also causes the 16-bit value in
RCAP2H and RCAP2L to be reloaded into the timer registers, TH2 and TL2, respectively. A
Logic 0 at T2EX makes Timer 2 count down. The timer underflows when TH2 and TL2
equal the values stored in RCAP2H and RCAP2L. The underflow sets the TF2 bit and causes
0FFFFH to be reloaded into the timer Registers. The EXF2 bit toggles whenever Timer 2
overflows or underflows and can be used as a 17th bit of resolution. In this operating mode,
EXF2 does not flag an interrupt.
UART
The UART in the AT89C52 operates the same way as the UART in the AT89C51.
Interrupts
The AT89C52 has a total of six interrupt vectors: two external interrupts (INT0 and INT1),
three timer interrupts (Timers 0, 1, and 2), and the serial port interrupt. These interrupts are
all shown in Figure 6.Each of these interrupt sources can be individually enabled or disabled
by setting or clearing a bit in Special Function Register IE. IE also contains a global disable
bit, EA, which disables all interrupts at once.
Note that Table shows that bit position IE.6 is unimplemented. In the AT89C51, bit position
IE.5 is also unimplemented. User software should not write 1s to these bit positions, since
they may be used in future AT89 products. Timer 2 interrupt is generated by the logical OR
of bits TF2 and EXF2 in register T2CON. Neither of these flags is cleared by hardware when
the service routine is vectored to. In fact, the service routine may have to determine whether
it was TF2 or EXF2 that generated the interrupt, and that bit will have to be cleared in
software. The Timer 0 and Timer 1 flags, TF0 and TF1, are set at S5P2 of the cycle in which
the timers overflow. The values are then polled by the circuitry in the next cycle. However,
the Timer 2 flag, TF2, is set at S2P2 and is polled in the same cycle in which the timer
overflows.
Oscillator Characteristics
XTAL1 and XTAL2 are the input and output, respectively, of an inverting amplifier that can
be configured for use as an on-chip oscillator, as shown in Figure 7. Either a quartz crystal or
ceramic resonator may be used. To drive the device from an external clock source, XTAL2
should be left
Un connected while XTAL1 is driven, as shown in Figure 8.There are no requirements on the
duty cycle of the external clock signal, since the input to the internal clocking circuitry is
through a divide-by-two flip-flop, but minimum and maximum voltage high and low time
specifications must be observed.
Idle Mode
In idle mode, the CPU puts itself to sleep while all the on chip peripherals remain active. The
mode is invoked by software. The content of the on-chip RAM and all the special functions
registers remain unchanged during this mode. The idle mode can be terminated by any
enabled interrupt or by a hardware reset.
Note that when idle mode is terminated by a hardware reset, the device normally resumes
program execution from where it left off, up to two machine cycles before the internal reset
algorithm takes control. On-chip hardware inhibits access to internal RAM in this event, but
access to the port pins is not inhibited. To eliminate the possibility of an unexpected write to
a port pin when idle mode is terminated by a reset, the instruction following the one that
invokes idle mode should not write to a port pin or to external memory.
Power-down Mode
In the power-down mode, the oscillator is stopped, and the instruction that invokes powerdown is the last instruction executed. The on-chip RAM and Special Function Registers
retain their values until the power-down mode is terminated. The only exit from power-down
is a hardware reset. Reset redefines the SFR s but does not change the on-chip RAM. The
reset should not be cultivated before VCC is restored to its normal operating level and must
be held active long enough to allow the oscillator to restart and stabilize.
COMPONENT DESCRIPTION
Transformers
A transformer is a device that transfers electrical energy from one circuit to another by
magnetic coupling without requiring relative motion between its parts. It usually comprises
two or more coupled windings, and, in most cases, a core to concentrate magnetic flux. A
transformer operates from the application of an alternating voltage to one winding, which
creates a time-varying magnetic flux in the core. This varying flux induces a voltage in the
other windings. Varying the relative number of turns between primary and secondary
windings determines the ratio of the input and output voltages, thus transforming the voltage
by stepping it up or down between circuits.
2.8.1
Basic principle
An electromotive force (EMF) is induced across each winding, an effect known as mutual
inductance. The windings in the ideal transformer have no resistance and so the EMFs are
equal in magnitude to the measured terminal voltages. In accordance with Faraday's law of
induction, they are proportional to the rate of change of flux:
and
where:
and
and
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
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:
Ns > Np
Ns < Np
RECTIFIER
A bridge rectifier is an arrangement of four diodes connected in a bridge circuit as shown
below, that provides the same polarity of output voltage for any polarity of the input voltage.
When used in its most common application, for conversion of alternating current (AC) input
into direct current (DC) output, it is known as a bridge rectifier. The bridge rectifier provides
full wave rectification from a two wire AC input (saving the cost of a center tapped
transformer) but has two diode drops rather than one reducing efficiency over a center tap
based design for the same output voltage.
The essential feature of this arrangement is that for both polarities of the voltage at the bridge
input, the polarity of the output is constant.
VOLTAGE REGULATORS
Description
The LM317 is an adjustable three-terminal positive-voltage regulator capable of supplying
more than 1.5 A over an output-voltage range of 1.2 V to 37 V. It is exceptionally easy to use
and requires only two external resistors to set the output voltage. Furthermore, both line and
load regulation are better than standard fixed
regulators. The LM317 is packaged in the KC (TO-220AB) and KTE packages, which are
easy to handle and use. In addition to having higher performance than fixed regulators, this
device includes on-chip current limiting, thermal overload protection, and safe-operating-area
protection. All overload protection remains fully functional, even if the ADJUST terminal is
disconnected.
The LM317 is versatile in its applications, including uses in programmable output regulation
and local on-card regulation. Or, by connecting a fixed resistor between the ADJUST and
OUTPUT terminals, the LM317 can function as a precision current regulator. An optional
output capacitor can be added to improve transient response. The ADJUST terminal can be
bypassed to achieve very high ripple-rejection ratios, which are difficult to achieve with
standard three-terminal regulators. The LM317 is characterized for operation over the
virtual junction temperature range of 0C to 125C.
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
RELAYS
A relay is an electrically operated switch. Current flowing through the coil of the relay
creates a magnetic field, which attracts a lever and changes the switch contacts. The coil
current can be on or off so relays have two switch positions and they are double throw
(changeover) switches.
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 circuits, 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.
The animated picture shows a working relay with its coil and switch contacts. You can see a
lever on the left being attracted by magnetism when the coil is switched on. This lever moves
the switch contacts. There is one set of contacts (SPDT) in the foreground and another behind
them, making the relay DPDT.
Relays can switch AC and DC, transistors can only switch DC.
Relays are a better choice for switching large currents (> 5A).
Disadvantages of relays:
Relays cannot switch rapidly (except reed relays), transistors can switch many times
per second.
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.
CRYSTAL OSCILLATOR
It is often required to produce a signal whose frequency or pulse rate is very stable and
exactly known. This is important in any application where anything to do with time or exact
measurement is
crucial. It is relatively simple to make an oscillator that produces some sort of a signal, but
another matter to produce one of relatively precise frequency and stability. AM radio stations
must have a carrier frequency accurate within 10Hz of its assigned frequency, which may be
from 530 to 1710 kHz. SSB radio systems used in the HF range (2-30 MHz) must be within
50 Hz of channel frequency for acceptable voice quality, and within 10 Hz for best results.
Some digital modes used in weak signal communication may require frequency stability of
less than 1 Hz within a period of several minutes. The carrier frequency must be known to
fractions of a hertz in some cases. An ordinary quartz watch must have an oscillator accurate
to better than a few parts per million. One part per million will result in an error of slightly
less than one half second a day, which would be about 3 minutes a year. This might not sound
like much, but an error of 10 parts per million would result in an error of about a half an hour
per year. A clock such as this would need resetting about once a month, 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.
CAPACITOR
RESISTOR
Resistors are used to limit the value of current in a circuit. Resistors offer opposition to the
flow of current. They are expressed in ohms for which the symbol is . Resistors are
broadly classified as
(1)
Fixed Resistors
(2)
Variable Resistors
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%.
Lead
Colour Coding
Coding Of Resistor :
Some resistors are large enough in size to have their resistance printed on the body. However
there are some resistors that are too small in size to have numbers printed on them. Therefore,
a system of colour coding is used to indicate their values. For fixed, moulded composition
resistor four colour bands are printed on one end of the outer casing. The colour bands are
always read left to right from the end that has the bands closest to it. The first and second
band represents the first and second significant digits, of the resistance value. The third band
is for the number of zeros that follow the second digit. In case the third band is gold or silver,
it represents a multiplying factor of 0.1to 0.01. The fourth band represents the manufactures
tolerance.
0 black
0 black
0 black
0 black
1 brown
1 brown
1 brown
1 brown
2 red
2 red
2 red
2 red
3 orange
3 orange
3 orange
3 orange
4 yellow
4 yellow
4 yellow
4 yellow
5 green
5 green
5 green
6 blue
6 blue
6 blue
6 blue
7 purple
7 purple
7 purple
7 purple
8 silver
8
silver
5 green
8 silver
8 silver
9 white
9 white
9 white
9 white
For example, if a resistor has a colour band sequence: yellow, violet, orange and gold
The fourth band is used to show the tolerance (precision) of the resistor.
This
resistor
has
red
(2),
violet
(7),
yellow
(4
zeros)
and
gold
bands.
= 270 k .
The standard colour code cannot show values of less than 10 . To show these small values
two special colours are used for the third band: gold, which means 0.1 and silver which
means 0.01. The first and second bands represent the digits as normal.
For example:
red,
violet,
gold
bands
represent
27 0.1 = 2.7
The fourth band of the colour code shows the tolerance of a resistor. Tolerance is the
precision of the resistor and it is given as a percentage. For example a 390
resistor with a
tolerance of 10% will have a value within 10% of 390 , between 390 - 39 = 351
+ 39 = 429
A
silver
and 390
special
10%,
colour
code
gold
is
used
5%,
for
the
red
2%,
fourth
band
brown
tolerance:
1%.
TRANSISTORS
Transistor has three sections of doped semiconductors. The section on one side is
emitter and section on the opposite side is collector.
A transistor raises the strength of a weak signal and thus acts as an amplifier. The
weak signal is applied between emitter-base junction and output is taken across the load Rc
connected in the collector circuit. The collector current flowing through a high load resistance
Rc produces a large voltage across it. Thus a weak signal applied in the input appears in the
amplified form in the collector circuit.
A junction diode, such as LED, can emit light or exhibit electro luminescence. Electro
luminescence is obtained by injecting minority carriers into the region of a pn junction where
radiative transition takes place. In radiative transition, there is a transition of electron from
the conduction band to the valence band, which is made possibly by emission of a photon.
Thus, emitted light comes from the hole electron recombination.
In practice, every electron does not take part in radiative recombination and hence, the
efficiency of the device may be described in terms of the quantum efficiency which is defined
as the rate of emission of photons divided by the rate of supply of electrons. The number of
radiative recombination, that take place, is usually proportional to the carrier injection rate
and hence to the total current flowing.
Buzzer
2.9.1Type of Buzzers
The different types of buzzers are electric buzzers, electronic buzzers, mechanical buzzers,
electromechanical, magnetic buzzers, piezoelectric buzzers and piezo buzzers.
Magnetic Buzzers
Magnetic buzzers are magnetic audible signal devices with built-in oscillating circuits. The
construction combines an oscillation circuit 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. The amplification
circuit, including the transistor and the feedback circuit, causes vibration. The oscillation
current excites the coil and the unit generates an AC magnetic field corresponding to an
oscillation frequency. This AC magnetic field magnetizes the yoke comprising the magnetic
circuit. The oscillation from the intermittent magnetization prompts the vibration diaphragm
to vibrate up and down, generating buzzer sounds through the resonator. In this project, a
magnetic buzzer has been used.
Pressure Sensor/Switch
A pressure sensor or switch measures pressure. Pressure is usually expressed in terms of
force per unit area. A pressure sensor usually acts as a transducer; it generates a signal as a
function of the pressure imposed.
CONCLUSION
This project Vehicle security system using microcontroller is successfully running and
provide excellent security of vehicle because no one can access the automobile without
matching the password ., so the security of the automobile is quite impressive .
This project has completed successfully with in the given time duration. it was
learning experience through which we gained invaluable on hand practical knowledge with
project enlightened us on the vastness and unique application of micro controller , which
forms the basic framework of our project.
This project gave us the deep understanding of the controller and described us how to use the
controller in different ways as well as provided us the clarity about the different sensors. This
is embedded based project as embedded is the combination of both the software as well as the
hardware so
This system helped us to clear all our doubts related to basic electronic components
REFERENCES
1. Mazedi, The 8051 Microcontroller and Embedded Systems, Prentice Hall, 1ST Edition
2. Kenneth J. Ayala, The 8051 Microcontroller, Penram International Publishing,1996,
2nd Edition
3. Sofcon india pvt ltd.
4.
Some Websites :
www.alldatasheets.com
www.datasheetcatalog.com
www.electronicscircuits.com
www.scielectronics.com
www.parallax.com