Vehical Locatin Finder (2)

download Vehical Locatin Finder (2)

of 12

Transcript of Vehical Locatin Finder (2)

  • 8/8/2019 Vehical Locatin Finder (2)

    1/12

    SMS BASED VEHICLE

    LOCATION FINDER FORPAKING

  • 8/8/2019 Vehical Locatin Finder (2)

    2/12

    Its very useful project to find the location ofthe vehicle in a crowded parking. You

    can simply send SMS and the vehiclestarts beeping there would then be buzzerin it). We can provide the security featurebesides it that the vehicle will send a SMSwhen some unauthorized person will try toopen the doors of vehicles.

    We all live in a time compressed society.Nearly every minute of the day is used forcritical tasks, and few can afford to wastethose minutes on trivial issues. Yet, trivialissues seem to present themselves andrequire us to divert our attention to lessimportant things. One of those trivial issues iswhen a person spends time searching for theirautomobile when they have forgotten wherethey have parked it.

    As more and more automobiles aremanufactured every year, and there are less

    and less classes of cars, more of thoseautomobiles are beginning to be lessdistinctive. Furthermore, as more strip mallsare being erected, parking lots are becomingexpansive. This creates a common problem

  • 8/8/2019 Vehical Locatin Finder (2)

    3/12

    that many people have experienced. Manypeople have exited from a structure, into alarge parking lot, and realizing they have

    forgotten where they parked their car, spentvaluable time, walking through row after row,searching for their automobile.

    Therefore, a device that can indicate to a userthe direction of his or her parked vehiclewould be an excellent solution to thiscommon problem. With this in mind, the CarLocator device was designed, constructed,and tested.

    INTRODUCTION-:

    The project is aimed at developing and testingthe use of mobile phones to remotely controlan appliance control system. Themicrocontroller would then control an devicebased on the information given to it. Theproposed solution will need to be easy to use,

    simple, secure, and robust and be useful onmost mobile phones. To achieve this testingwill need to be carried out to create a usefulsystem.

  • 8/8/2019 Vehical Locatin Finder (2)

    4/12

    The report consists of a background into thearea of 8051 microcontroller and mobilecommunication, how they are interfaced to

    each other and AT (Attention) commands setused in communication.

    HARDWARE USED

    1. AT command supporting GSM mobile

    phone.2. 89S52 Microcontroller3. Max 232 IC.4. Relays5. Relay driver IC ULN 28036. Voltage regulator 7805.7. Diode IN40078. GSM Phone

    SOFTWARE USED1. Keil u-Vision 3.0

    Keil Software is used provide you with

    software development tools for 8051 based

    microcontrollers. With the Keil tools, you can

  • 8/8/2019 Vehical Locatin Finder (2)

    5/12

    generate embedded applications for virtually

    every 8051 derivative. The supported

    microcontrollers are listed in the -vision

    2PRO51 Programmer Software

    THEORY OF OPERATION

    In this project we interfaced 8051microcontroller with Motorolas C168 GSMmobile phone to decode the receivedmessage and do the required action. Theprotocol used for the communication between

    the two is AT command.The microcontroller pulls the SMS received byphone, decode it, recognizes theMobile no. and then switches on the relaysattached to its port to control the appliances.After successful operation, controller sendsback the acknowledgement to the users

    mobile through SMS.

    AT-Command set

  • 8/8/2019 Vehical Locatin Finder (2)

    6/12

    The following section describes the AT-Command set. The commands can be triedout by connecting a GSM modem to one of

    the PCs COM ports. Type in the test-command, adding CR + LF (Carriage return +Line feed = \r\n) before executing. Table givesan overview of the implemented AT-Commands in this application. The use of thecommands is described in the later sections.

    AT-Command set overview

    Command Description

    AT

    Check if serialinterface and GSMmodem is working.

    ATE0 Turn echo off, lesstraffic on serial line.

    AT+CNMIDisplay of newincoming SMS.

    AT+CPMSSelection of SMSmemory.

    AT+CMGF

    SMS string format,how they arecompressed.

    AT+CMGR Read new messagefrom a given memory

  • 8/8/2019 Vehical Locatin Finder (2)

    7/12

    location.

    AT+CMGSSend message to agiven recipient.

    AT+CMGD Delete message.

    A BRIEF INTRODUCTION TO 8051MICROCONTROLLER:

    When we have to learn about a newcomputer we have to familiarize about themachine capability we are using, and we cando it by studying the internal hardware design(devices architecture), and also to know aboutthe size, number and the size of the registers.

    A microcontroller is a single chip thatcontains the processor (the CPU), non-volatilememory for the program (ROM or flash),volatile memory for input and output (RAM), aclock and an I/O control unit. Also called a"computer on a chip," billions of microcontroller units (MCUs) are embedded

    each year in a myriad of products from toys toappliances to automobiles. For example, asingle vehicle can use 70 or moremicrocontrollers. The following picture

  • 8/8/2019 Vehical Locatin Finder (2)

    8/12

    describes a general block diagram ofmicrocontroller.

    89s52: The AT89S52 is a low-power, high-performance CMOS 8-bit microcontroller with8K bytes of in-system programmable Flashmemory. The device is manufactured usingAtmels high-density nonvolatile memory

    technology and is compatible with theindustry-standard 80C51 instruction set andpinout. The on-chip Flash allows the programmemory to be reprogrammed in-system or bya conventional nonvolatile memory pro-grammer. By combining a versatile 8-bit CPUwith in-system programmable Flash on a

    monolithic chip, the Atmel AT89S52 is apowerful microcontroller, which provides ahighly flexible and cost-effective solution tomany, embedded control applications. TheAT89S52 provides the following standardfeatures: 8K bytes of Flash, 256 bytes of RAM,

    32 I/O lines, Watchdog timer, two datapointers, three 16-bit timer/counters, a six-vector two-level interrupt architecture, a fullduplex serial port, on-chip oscillator, and clockcircuitry. In addition, the AT89S52 is designed

  • 8/8/2019 Vehical Locatin Finder (2)

    9/12

    with static logic for operation down to zerofrequency and supports two softwareselectable power saving modes. The Idle

    Mode stops the CPU while allowing the RAM,timer/counters, serial port, and interruptsystem to continue functioning. The Power-down mode saves the RAM con-tents butfreezes the oscillator, disabling all other chipfunctions until the next interrupt

  • 8/8/2019 Vehical Locatin Finder (2)

    10/12

    The hardware is driven by a set of programinstructions, or software. Once familiar withhardware and software, the user can then

  • 8/8/2019 Vehical Locatin Finder (2)

    11/12

  • 8/8/2019 Vehical Locatin Finder (2)

    12/12

    Serial data communication

    The 8051 architecture consists of these

    specific features:

    16 bit PC &data pointer (DPTR)

    8 bit program status word (PSW)

    8 bit stack pointer (SP)

    Internal ROM 4k

    Internal RAM of 128 bytes.

    4 register banks, each containing8 registers

    80 bits of general purpose datamemory

    32 input/output pins arranged asfour 8 bit ports: P0-P3

    Two 16 bit timer/counters: T0-T1 Two external and three internal

    interrupt sources Oscillator andclock circuits.