You are on page 1of 36

MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024

INTRODUCTION

ABOUTELECTRONI

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page1
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024

CS

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page2
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
CHAPTER-

IINTRODUCTIO

ELECTRONICDEVICES

Electronic devices are components for controlling the flow of


electricalcurrentsforthepurposeofinformationprocessingandsystemcontrol.Promi
nentexamplesincludetransistorsanddiodes.Electronicdevicesareusuallysmallandc
anbegroupedtogetherintopackagescalledintegratedcircuits.This miniaturization
is central to the modern electronics boom.Thebranch of engineering deals with
current conduction through a vacuum or gas
orsemiconductorisknownas“ELECTRONICS”.

Electronics essentially deals with electronic device and their


utilization.An electronic device is that in which current flows through a vacuum
or gas orsemiconductor.Such devices have valuable properties which enable
them tofunctionand behaveasthefriendofmantoday.

Electronics has gained much importance due to its numerous


applicationsinindustry.Theelectronicsdevicesarecapableofperformingthelotoffun
ctions.

RECTIFICATION

Theconversionofalternatecurrentintodirectcurrentiscalledasrectification.El
ectronics devices can convert into a.c.power into d.c.power withvery high
efficiency.This d.c.supply can be used for charge storage batteries,field
supplyofd.c.generators,electroplating.

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page3
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
AMPLIFICATION

Theprocessofraisingthestrengthofaweaksignalisknownasamplification.Ele
ctronics devices can accomplish the job of amplification andthus act as
amplifiers.The amplifiers are used in a wide variety of ways.Forexample, an
Amplifier is used in radio-set where the weak signal is amplified sothat it can be
heard loudly.Similarly, amplifiers are used in public
addresssystem,televisionetc,

CONTROL

Electronicdevicesfindwideapplicationsinautomaticcontrol.Forexample,sp
eed ofamotor,voltageacrossa refrigeratoretc.

GENERATION

Electronicdevicescanconvertd.c.powerintoa.cpowerofanyfrequency.
Whenperformingthisfunction,theyareknownasoscillator.

CONVERSIONOFLIGHTINTOELECTRICITY

Electronic devices can convert one energy into other


energy.Conversionof light energy into electricity is known as photo-
electricity.Photo – electricdevices
areusedinburglaralarms,soundrecordingormotionofpictures etc.

CONVERSIONOFELECTRICITYINTOLIGHT

Electronic components can convert electricity into light.This


valuableproperty isutilized intelevisionandradar.

ICVOLTAGEREGULATORS
A voltage regulator is one of the most widely used electronic circuitry
and it is very important for many digital electronics circuits or devices and it is

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page4
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
important for the smooth functioning of many digital electronic
devices.Acommon case is with micro controllers, where a smooth regulated
input voltagemustbe suppliedforthemicrocontrollertofunctionsmoothly.

REGULATEDPOWERSUPPLY

Voltage regulators are of different types.It is an integrated circuit


whosebasic purpose is to regulate the unregulated input voltage (definitely over
apredefined range) and provide with a constant, regulated output voltage.An
ICbased voltage regulator can be classified in different ways.A common type
ofclassification is 3 terminal voltage regulator and 5 or multi terminal
voltageregulator.Anotherpopularway
ofclassifyingICvoltageregulatorsisbyidentifyingthemaslinearvoltageregulator&s
witchingvoltageregulator.There is a third set of classification as 1) Fixed
voltage regulators (Positive &negative)2) Adjustable voltage regulators
(Positive & negative) and finally3)Switching regulators.In the third
classification, fixed & adjustable regulatorsarebasically versionsoflinear
voltageregulators.

STEPDOWNTRANSFORMER

Step down transformer is one whose secondary voltage is less than


itsprimary voltage.It is designed to reduce the voltage from the primary
windingto the secondary winding.This kind of transformer “Steps down” the
voltageapplied toit.

As a step-down unit, the transformer converts high-voltage, low-


currentpower into low-voltage, high-current power.The larger-gauge wire used
in thesecondary winding is necessary due to the increase in current.The
primarywinding, which doesn’t have to conduct as much current,may be made
ofsmaller –gaugewire.
DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page5
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024

ELECTRONICSCOMPONENTS

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page6
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
CHAPTER –

IIELECTRONICCOMPONENTS

TYPESOFCOMPONENTS

ElectronicComponentsaremainlydividedintotwotypes.They

are

1. ActiveComponents
2. PassiveComponents

 ACTIVECOMPONENTS

Thecomponentswhichproducetheenergyintheformofcurrentorvoltagearecalleda
sactivecomponents.

Example:

Transistor,Semiconductor,Diodeetc.,

 PASSIVECOMPONENTS

The components which store the energy in the form of current or voltage
arecalled aspassivecomponents.

Example:Resistors,Capacitor,Inductorsetc.,

TRANSFORMER

VoltageTransformerBasics

One of the main reasons that we use alternating AC voltages and


currentsin our homes and workplace’s is that it can be easily generated at a
convenientvoltage,transformedintoamuc higher voltage and then district and

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page7
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
country using anational grid of pylonsand cablesoververy long distances.The
reason for transforming thevoltageis that higher distribution
voltagesimplylowercurrents and thereforelowerlossesalongthegrid.

These high AC transmission voltages and currents are then reduced to


amuchlower,saferandusablevoltagelevel wereitcan beusedtosupplyelectrical
equipmentin ourhomesandworkplaces,andall
thisispossiblethankstothebasicVoltageTransformer.

RESISTORS:

Aresistorisanelectricalcomponent,whichhasbeenmanufacturedwitha
resistance.The resistors can conduct current in both the directions.Thus
theresistorsmaybeconnectedinanelectriccircuitwithoutconcernforlaidpolarization
.Theresistorsareusedmainlyfortwopurposes,namelycontrolling the flow of
electric current and providing desired amounts o voltageinelectricor
electroniccircuits.

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page8
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024

TYPESOFRESISTORS

Theresistorsarebasicallyoftwotypes, thereare

 Fixedresistor
 Variableresistor

FIXEDRESISTOR

Thefixedresistorsarethose,whosevaluesdonotchangewiththevariations in
applied voltage temperature and light intensity.Such resistors
areavailableinvariousshapesandsizes,withbothaxialandradial.

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page9
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
VARIABLERESISTOR

These resistors, like fixed resistors, are used to control current flow
andprovidedesiredamountsofvoltageinelectriccircuits.Butunlikefixedresistors,
the resistance values of variable linear resistors can be varied 0 to aspecified
value.A simple application of a variable resistor the intensity of lampcan be
changed from full brightness to total darkness.Another application of avariable
resistor, where it is used to vary the gain of amplifier.When a
variableresistorisused inthismanner,itiscalledavolume control.

INDUCTORS

An inductor is an electrical component, which is manufactured with


aspecifiedamountofinductance.Theinductorsareusedtuningandfiltercircuits.
(These concepts will be discussed in later chapter.They are used
inradioreceiversasabuilt-inantennacoiltopickupradiosignals.Theyarealso

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page10
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
used in transformers and coupled circuitsto transfer (or couple) energy
fromonecircuit toanother.

Inmanyapplications,theinductorsareusedtominimizealternatingcurrents,wh
ile permitting flow of directcurrent.In such applications,theinductor is called a
choke.Thus we have chokes for audio-frequency and radio-frequency
range.These chokes are called audio-frequency chokes (AFO) andradio-
frequencychokes(RFC).Theinductorsaregenerallyspecifiedwithinductancevaluea
nd currentcapacity.

TYPESOFINDUCTORS:

Theinductorsareoftwotypesnamelyfixedinductorsandvariableinductors
depending upon the type of core, whether it is fixed or
variable.Nowweshalldiscussboththetypesofinductors.Thereare

 Fixed inductor
 Variableinductor

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page11
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
FIXEDINDUCTORS:

The fixed inductors are of three types namely air inductors, iron
coreinductorsandferritecoreinductors.

 Air-coreinductors:

The inductor is made of coils of wire wound on a former made of


simplecardboard.The air-core inductor has very low value of inductance.They
aresuitablefor radio-frequencyapplications.

 Iron-coreinductors:

This inductor is made of coils of wire wound on solid iron-core.The iron-


core is laminated to avoid eddy current loss.Thus iron-core inductors are
verysuitablefor audio-frequencyapplications.

 Ferrite-coreinductor:

This inductor is made of coils or wire wound on a ferrite core.A ferrite isa
magnetic consisting of fine particles of iron, cobalt or nickel embedded in
aninsulator binder.The ferrite core has very low eddy current
loss.Thereforeferrite-coreinductorsareused athigherfrequencies.

VARIABLEINDUCTORS

These inductors are similar to the fixed ferrite-core inductors.But


thecoreisadjustable.Thevariableinductorsareusedintuningandfiltercircuit.In case
of large inductance coils, a variable inductor is made of a long coilwound on a
ferrite core provided with a slider contact.The slider contact can beused
tovarytheinductanceofacoil.

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page12
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
TRANSISTOR
\
Whenathirddopedelementisaddedtoacrystaldiodeinsuchawaythattwopnjunct
ionsareformed,theresultingdeviceinknownas a transistor.

A transistorconsistsoftwopn junctionsformedbysandwichingeitherp-
typeorn-typesemiconductorbetweenapairofoppositetypes.

Accordinglytherearetwotypesoftransistors,namely;

I. n-p-ntransistor
II. p-n-ptransistor

Ann-p-ntransistoriscomposedoftwon-
typesemiconductorsseparatedbythinsection ofp-type.

However,ap-n-ptransistorisformedbytwop-sectionsseparatedbythinsectionof
n-type.

Ineachtypeoftransistor,thefollowingpointsmaybenoted:

1. These are two PN junctions.Therefore, a transistor may be regarded as


acombinationsoftwo diodesconnectedbackto back.
2. Therearethreeterminals, takeneachtypeofsemiconductor.
3. The middle section is very thin layer.This is the most important factor
inthefunctionofatransistor.

A transistor has two PN junctions.As discussed later, one junction


isforward bias and the other is reversed.The forward biased junction has a
lowresistancepathwhereasa reversebiasedjunctionhasa highresistance.

The weak signal is introduced in the low resistance circuit and output
istakenfromthehighresistancecircuit. Therefore,atransistoristransfersa
signalfromlowresistancetohighresistance. Theprefix‘trans’meansthe
DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page13
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
signaltransfer
propertyofthedevicewhile‘istor’classifiesitasasolidelementinthesamegeneralfami
lywithresistors.

NAMINGTHETRANSISTORTERMINALS

A transistor has three sections of doped semiconductors.Thesection onone


side is the emitter and the section on the opposite side is the
collector.Themiddle section is called the base and forms two junctions between
the emitterand collector.

 EMITTER

The section on one side that supplies charge carries (electrons or holes)
iscalled the emitter.The emitter is always forward biased w.r.t base so that it
cansupplyalargenumber ofmajoritycarriers.

The emitter (p-type) of p-n-p transistor is forward biased and


suppliesholechargestoitjunctionwiththebase.

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page14
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
The emitter (n-type) of n-p-n transistor has a forward bias and
suppliesfreeelectronstoitsjunctionwiththebase.

 COLLECTOR

Thesectionontheothersidethatcollectsthechargesiscalledthecollector.The
collector is always reverse biased.Its function is to
removechargesfromitsjunctionwiththebase.TheCollector(p-type)ofp-n-
ptransistor has a reverse bias and receives hole charges that flow in the
outputcircuit.The collector(n-type) of n-p-n transistor has reverse bias and
receiveselectrons.

 BASE

The middle section which forms two p-n junctions between the
emitterand collector is called the base.The base-emitter junction is forward
biased,allowing low resistance for the emitter circuit.The base-collector junction
isreversingbiasedand provideshighresistance inthe collectorcircuit.

TRANSISTORACTION

Theemitter-basejunctionofatransistorisforwardbiasedwhereascollector-
base junction is reversing biased.If for a moment, we ignore thepresence of
emitter-base junction, then practically no current would flow in
thecollectorcircuitbecauseof thereversebias.However,if theemitter-basejunction
is also present, then forward bias on it causes the emitter current
toflow.Therefore the current in the collector circuit depends upon the
emittercurrent.Ifthe emitter current is zero, then the collector current is nearly
zero.However if the emitter current is 1mA, then collector current is also about
1mA.Thisispreciselywhathappensinatransistor.

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page15
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
RELAY

A relay is an electrical switch that uses an electromagnet to move


theswitch from the off to on position instead of a person moving the
switch.Ittakes a relatively small amount of power to turn on a relay but the relay
cancontrol something that draws much more power.Ex: A relay is used to
controlthe air conditioner in your home.The AC unit probably runs off of
220VAC ataround 30A.That’s 6600 Watts! The coil that controls the relay may
only needafewwattsto pull thecontactstogether.

This is the schematic representation of a relay.The contacts at the top


arenormally open (i.e.not connected).When current is passed through the coil
itcreatesmagneticfieldthatpullstheswitchclosed(i.e.connectedthetopcontacts).Us
ually a spring will pull the switch open again once the power
isremovedfromthecoil.

CAPACITOR

A capacitor is an electronic component manufactured with a


specifiedamount of capacitance.This component does not have ability to charge
or storeenergy, which resistance nor can an inductor do.It opposes any changes
ofvoltage in the circuit in which it is connected.A capacitor is used in
anumberofapplications,whicharehighlyspecialized.Someoftheimportantapplicati
ons of a capacitor are in starting motors, blocking d.c.current,
passinga.c.current, filtering unwanted signals, tuning circuit to a specific
frequency,coupling theelectroniccircuits,bypassingsignals,etc.,

A capacitor consistsof two conducting platesseparated by


dielectric.Thedielectricisaninsulatingmaterialinwhichanelectricfieldcanbeestabli
shed with little or no leakage current.The dielectrics commonly used
inactualpracticeareair,mica,ceramic,paper,plastic,aluminum,tantalum,etc.
DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page16
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
SYMBOL

TYPESOF CAPACITOR

 Fixedcapacitor
 Variablecapacitor

FIXEDCAPACITOR

The capacitors in which the capacitance value cannot be varied by


anymeans (either by changing plate separation or area) are called fixed
capacitor.Thesecapacitorarebroadlyoftwotypesnamelyelectrostatic(ornon-
electrolytic)andelectrolyticcapacitors.Boththesecapacitortypesarediscussed.

ELECTROSTATICCAPACITOR

These capacitors are made up of two metal conductors separated by


adielectric.They are characterized by very low leakage current and high
leakageresistance.

ELECTROLYTICCAPACITOR

These capacitors aremade up of metal plates,which have a


definitepolarity separated by a thin metal oxide dielectric.The metal oxide is
theconductive compound having dielectric constant between 8 and 25. Usually
itisinapasteform,thoughitcnbeinaliquidformalso.Themetaloxidefilmis

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page17
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
deposited on one of the metal plates.The electrolyte used is either in a
liquidform or intheform of apaste,whichsaturatesapaper or agauge.Thecapacitor
is packed in metal cylinder.The cathode is connected to the cylinder.The
cylinder is usually, enclosed in a paper tube or cardboard tube, in order
toinsulateitfromoutside.

SYMBOL

VARIABLECAPACITOR

The capacitors, in which the capacitance value may be changed by


somemeans, are called variable
capacitors.Thecapacitancevalueis,isusually,changedeitherby varying
theareabetween theplatesorby adjustingthespacing between them.The variable
capacitors have capacitance in pico faradrange.These capacitors are made by
using air, mica, ceramic or plastic as adielectric.The variable capacitors, using
air as a dielectric, are used as gangedcapacitorsinradioreceivers.

DIODE

A PN junction diode consists of a PN junction, formed either in


geraniumor silicon crystal.The diode has two terminals namely anode and
cathode.Theanode refers to the p-type region and cathode refers to the n-type
region.Thearrow head, shown in the circuit symbol, points the direction of
current flow,when it is forward biased.It may be noted that it is the same
direction in whichthemovement of holestakesplace.

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page18
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
The commercially available diodes usually have some notation to
identifytheP andNterminals.

The standard notation consists of type numbers preceded by IN, such


asIN 240 and IN 1250.Here 240 and 1250 correspond to colour bands.In
somediodes, the schematic symbol of a diode is painted or the color dots are
markedonthebodies.

The diode has a color band located near the one of ends.The end is
nearthe color band, is defined as cathode. And the other end, obviously, is
theanode. The diode has a schematic symbol actually painted as its cathode
andthe other end as anode. The diodes can pass a forward current of 100mA
andare known as low current diodes. The diode has a color dots marked on
itsbody.The end lying near the blue dot is cathode, while the other end is
anode.The diodes of this size can pass a forward current of 500Ma and are
known ascurrent diodes which can pass a forward current of several amperes.
Thereforeitisknownashighcurrentdiodes.

SYMBOLOFDIODE

APPLICATIONOFDIODE

A p-n junction diode has an important characteristic that it conducts


wellin forwardjunctionand

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page19
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
poorlyin reversedirection.Thischaracteristicsmakesadiodeveryuseful
inanumber ofapplication:

I. Asrectifiersorpowerdiodesind.c.powersupplies.
II. As signaldiodesincommunicationcircuits.
III. Aszenerdiodeinvoltagestabilizingcircuits.
IV. AsvaractordiodeinradioandT.Vreceivers.
V. Asaswitchinlogiccircuitsusedincomputers.

PRINTED CIRCUIT BOARD

Advances in electronic packaging have led to the development of


theprinted circuit board(PCB).Sometimes it is called printed circuit wiring
board.All types of electronic circuits are now assembled on PCB’s and are used
inmost typeofelectroniccircuits:

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page20
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
The circuit is made of copper foil so thin that it needs a base to support
it.The base is also mounting device, used to fasten the complete package to
thecase.An etchedorprintedcircuitconsistsof athinlayerofcopperinachemical.The
copper foil acts as the wire or conductor in the
circuit.Thecomponentlikeresistors,transistors,andcapacitorsaresolderedtothecon
ductivefoilto completetheelectricalpathand circuit.

POWERSUPPLY

All electronic circuits need d.c power supply either from battery or power
packunits.It may not be economical and convenient to depend upon battery
powersupply.Hence,manyelectronicequipmentcontaincircuitswhichconvertthe
a.c supply voltage into d.c voltage at the required level.The unit
containingthesecircuitsiscalledthelinearmodepowersupply(LPS).Intheabsenceof
a.c mains supply, the d.c supply from battery can be converted into required
a.cvoltagewhihmaybeusedbycomputerandotherelectronicfortheiroperation.

Also, in certain applications.D.c to d.c conversion required.Such apower


supply unit that converts d.c into a.c or d.c is called Switched
ModePowerSupply(SMPS).

 Linearpowersupply(LPS):a.c/d.cpowersupply–converter.
 Switchedmodepowersupply(SMPS):
I. d.c/d.cpowersupply–converter
II. d.c/a.cpowersupply–inverter

An a.c/d.c power supply converts a.c mains (230 v, 50Hz) into required
d.cvoltagesandisfoundinallmainsoperablesystem.

D.C/D.Cposersuppliesord.c/d.cconvertersareusedinportablesystems.DC/
ACpowersuppliesorinvertersareusedinportablemains

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page21
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
operablesystemsandasasupplementtoa.cmainsinnon-portablemainsoperable
system, where a disruption in the power supply can affect the job beingdone by
the system.An inverter is a form of UPS or SPS and is very popular incomputer
system.

Based on the regular concept,power suppliesare classified aseitherlinearor


switchedmodepowersupply.

LIGHT EMITTING DIODE

A pn junction diode, which emits light when forward biased, is known


asa light emitting diode.The emitted light may be visible or invisible.Theamount
of light output is directly proportional to the forward current.Thus,higher the
forward current, higher is the light output. The arrows, pointingaway from the
diode symbol represent thelight, which isbeing transmittedaway
fromthejunction.

Here, an N-type layer is grown on a P-type substrate by diffusion


process.Then a thin P-type layer is grown on the N-type layer.The metal
connections toboth the layer make anode and cathode terminals as indicated.The
light energyis released at the junction, when the recombination of electrons with
holes takesplace.After passing through the P-region, the light is emitted through
thewindowprovideat thetop ofthesurface.

It will be interesting to know that when the LED is forward biased,


theelectrons and holes move towards the junction and the recombination
takesplace.After recombination’s, the electrons, lying in the conduction bands
of N-region,fallintotheholeslyinginthevalancebandofaP-region.Thedifference of
energy between the conduction band and valance band is
radiatedfromofenergy.Inordinarydiodes,thisenergyisradiatedintheformofheat.

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page22
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
Thesemiconductingmaterialsusedformanufacturinglightemittingdiodes are
gallium arsenide, gallium arsenide phosphide..Moreover,
thesematerialsareverypoorinemittinglight radiations.

The LED’s radiated light in different colours such as red, green,


yellow,blue, orange, etc.Some of the LED’s emit infrared light also.The colour
of theemitted light, depends upon the type of semiconductor used.Thus
galliumarsenide emitinfrared radiations, gallium arsenide phosphide produces
eitherred or yellow light, gallium phosphide emits red or green light and
galliumnitriteproducesbluelights.

SYMBOL OFLED

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page23
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024

CIRCUIT DIAGRAM AND COMPONENTS

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page24
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024

CIRCUIT DIAGRAM OF VEHICLE DETECTION SYSTEM

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page25
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
COMPONENTSREQUIRED
 ESP 8266-micro controller
 Ignition key
 Buzzer
 Breadboard
 ConnectingWires
 PowerSupply

ESP 8266-MICRO CONTROLLER


The chip was popularized in the English-speaking community in
August 2014 via the ESP-01 module, made by a third-party manufacturer Ai-
Thinker. This small module allows microcontrollers to connect to a Wi-Fi
network and make simple TCP/IP connections using style commands.
However, at first, there was almost no English-language documentation on the
chip and the commands it accepted. The very low price and the fact that there
were very few external components on the module, which suggested that it
could eventually be very inexpensive in volume, attracted many hackers to
explore the module. ,

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page26
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024

Ignition key:

The ignition system consists of several components working together, controlled

by the vehicle’s internal computer, to get your vehicle started. Beginning with the

ignition coil, it takes power from the battery and turns it into a spark powerful

enough to ignite fuel vapor. The coil itself is made up of two windings called the

primary and secondary. The primary winding gathers the power to create a spark

and the secondary’s job is to send it to the distributor. The distributor is a precise

spinner that distributes the sparks via the spark plug wires to the individual spark

plugs with precise timing by the use of a rotor. The spark plugs are plugged

into the cylinder head. When the intake valves have distributed the proper amount

of fuel and vapor into the cylinder, the spark plug produces a hot spark that

ignites, creating combustion.Atmega16U2Microcontroller

Buzzer.
A buzzer or beeper is an audio signaling device,[1] which may

be mechanical, electromechanical, or piezoelectric . Typical uses of buzzers and

beepers include alarm devices, timers, train and confirmation of user input such as

a mouse click or keystroke.

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page27
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
1K Resistance
The Crystal oscillator has a frequency of 16MHz, which provides
theclock signal to the microcontroller. It provides the basic timing and control
totheboard.

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page28
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024

PRINCIPLE&WORKING

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page29
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
CHAPTERIV

INTRODUCTION ABOUT OUR PROJECT

It can track, monitor and stop the stolen two wheelers too by this system. The two-

wheeler position is obtained by the GPS module, which is send to the

microcontroller, which then sends the message to the user smart phone through

the GSM moduleThis paper implements for theft prevention in two-wheeler using

GSM, GPS. It can track, monitor and stop the stolen two wheelers too by this

system. The two-wheeler position is obtained by the GPS module, which is send

to the microcontroller, which then sends the message to the user smart phone

through the GSM module

Principle of the Project

The main purpose of this project to Prevent Vehicle Theft.ThisAnti-Theft


Systems are devices which prevent unauthorized access to Cars or other mobile
systems. The evolution of Anti-theft systems has ranged from simple key to RFID
Tags, Bio metric Identification, and Palm Vein Recognition, etc.

The main purpose of this project is to prevent vehicle theft. This functionality is achieved by detecting
vehicle status in theft mode and by sending an SMS which is generated automatically. This SMS is then
sent to the owner of the vehicle. The owner can then send back the SMS tin order to disable the ignition of
the vehicle. Thus in this way crimes can be reduced to a great extent as vehicles today are being stolen in
large number. Hence, vehicles today require high security which can be achieved with the help of this
application. How the system works is when a person tries to steal the vehicle, the microcontroller is
interrupted and the command is sent to the GSM modem to send SMS. On the receipt of the message, the
owner sends back the SMS to the GSM modem. This is done in order to stop the engine. This GSM

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page30
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
modem is interfaced to the microcontroller. This microcontroller on the receipt of the message uses a
mechanism that helps to stop the engine. Motor is being used in this project in order to indicate vehicle
ON/OFF state.
Further enhancement can be done to this project by using a GPS system that helps to find out the exact
position of the vehicle with the help of its latitude and longitude which then can be sent to the owner of
the vehicle via SMS. This data can be then entered by the owner on Google map to find out the exact
location of the vehicle.

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page31
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024

ESP8266 Functions
ESP8266 has many applications when it comes to the IoT. Here are just some of
the functions the chip is used for:

 Networking: The module’s Wi-Fi antenna enables embedded devices to


connect to routers and transmit data
 Data Processing: Includes processing basic inputs from analog and
digital sensors for far more complex calculations with an RTOS or Non-
OS SDK
 P2P Connectivity: Create direct communication between ESPs and other
devices using IOT P2P connectivity.
 Web Server: Access pages written in HTML or development languages.

PROGRAM CODING:

#define RELAYPIN 2
#define WARNLEDPIN 2
char tag[] ="4000350ABAC5";

char input[12];
int count = 0;
boolean flag = 0;
void setup()
{
Serial.begin(9600);
pinMode(RELAYPIN,OUTPUT);
pinMode(WARNLEDPIN,OUTPUT);
}
void loop()
{
if(Serial.available())
{
count = 0;

while(Serial.available() && count < 12)


{
input[count] = Serial.read();
count++;
delay(5);
}

if(count == 12)
{
count =0;
flag = 1;

while(count<12 && flag !=0)


{
if(input[count]==tag[count])
flag = 1;
DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page32
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
else
flag= 0;

count++;
}
}
if(flag == 1)
{
Serial.println("Access Allowed!");
digitalWrite(RELAYPIN,HIGH);
delay (5000);
digitalWrite (RELAYPIN,LOW);
}
else
{
Serial.println("Access Denied");
digitalWrite(WARNLEDPIN,HIGH);
delay(5000);
digitalWrite(WARNLEDPIN,LOW);
}

for(count=0; count<12; count++)


{
input[count]= 'F';
}
count = 0;
}
}

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page33
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page34
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024

CHAPTER–V

CONCLUSION

n this paper, we have made an


android app, which is used to
communicate with the device installed
in our vehicles, which in
turn will control the functions of the
vehicle, as well as ensure the
the locking of the accelerator, gear and
brake pedals, so that the
vehicle does not move. Thus, the most
expensive and important
In this paper, we have made a android app, which is used to communicate with
DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page35
MICRO CONTROLLER BASED VEHICLE SECURITY SYSTEM 2024
the device installed in our vehicles, which in turn will control the functions of the
vehicle, as well as ensure the the locking of the accelerator, gear and brake
pedals, so that the vehicle does not move. Thus, the most expensive and important
asset of all of us, will be on our fingertips and fully secure. This will prove to be a
great technique to prevent the theft of the vehicles, especially in metropolitan
cities, where theft cases are being reported, and everyday.

DEPARTMENTOFPHYSICS,ANANDACOLLEGE,DEVAKOTTAI
Page36

You might also like