intruder alert system via sms for motorcycle - 24 pages

Upload: morixei-ueshiba

Post on 03-Apr-2018

224 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    1/24

    INTRUDER ALERT SYSTEM VIA SMS FOR MOTORCYCLE.

    (PIC Knowledge Required)

    MOHD RAFIZ BIN RAMLI

    This report is submitted in partial fulfilment of the requirement for the awardof Bachelor of Electronic Engineering (Computer Engineering) With Honours

    Faculty of Electronic and Computer Engineering

    Universiti Teknikal Malaysia Melaka

    April 2010

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    2/24

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    3/24

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    4/24

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    5/24

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    6/24

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    7/24

    ii

    ABSTRACT

    This project focuses on the programming of microcontrollers using a high

    level language (C language). The PIC family of microcontrollers is chosen as the

    target microcontroller because of the low power consumption which made this

    microcontroller popular in portable application. This project entitles Intruder Alarm

    System via SMS (PIC knowledge required) provides security to the bike owner from

    any intruders by automatically activating the alarm and cell phone connected to the

    microcontroller device. Through SMS, the microcontroller unit can immediately alert

    bike owners that the bike is being an intruder.

    vii

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    8/24

    iii

    ABSTRAK

    Fokus utama yang diketengahkan dalam projek ini ialah pengaturcaraan

    pengawal mikro menggunakan bahasa tahap tinggi. Pengawalmikro famili PIC ini

    dipilih sebagai sasaran pengawalmikro disebabkan penggunaan kuasa rendah yang

    mana menjadikan pengawalmikro ini terkenal dalam aplikasi yang mudah

    dibawa.Tajuk projek ini ialah Sistem Keselamatan dan Kawalan yang menyediakan

    keselamatan kepada pemilik motosikal daripada sebarang pencerobohan dan

    kecurian dengan megaktifkan sistem keselamatan secara automatik dan telefon

    disambungkan kepada pengawalmikro.Melalui mesej,pengawalmikro dapat

    menyedarkan pemilik motosikal bahawa rumah berlaku kecurian atau pencerobohan

    dengan pantas.

    viii

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    9/24

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    10/24

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    11/24

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    12/24

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    13/24

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    14/24

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    15/24

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    16/24

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    17/24

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    18/24

    1

    CHAPTER 1

    INTRODUCTION

    This project is designed to make motorcycle easy to monitor when a user is in

    distance with her bike. The project is designed to allow easy use of a mobile phone to

    alert biker in anywhere as long they have coverage of the phone line. Using a mobile

    phone the development of the alert system will be carried out using SMS. This will

    communicate with biker mobile phone, which is to alert when something intrude to

    the bike. When the action has been carried out then a response is sent to the user.

    The project involves three main areas, research, development\programming,

    testing and the writing of the report. This chapter will briefly discuss on the project

    overview. The objective, scope, and thesis outline will be presented in this chapter.

    1.1 Project Background

    The project is controlled at developing and testing the use of mobile phones

    to remotely control the bike. The microcontroller would then control a device based

    on the information given to it. The proposed solution will need to be easy to use,

    simple, secure, and robust and be useful on most mobile phones. To achieve this

    testing will need to be carried out to create a useful system.

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    19/24

    2

    The report consists of a background into the area of PIC16877A

    microcontroller and mobile communication, how they are interfaced and

    programming set used in communication.

    The widespread use of information technology is dramatically improving both

    the quality and the efficiency of different services offered to people. The large

    deployment of wireless networks and increased use of handheld devices like the

    personal digital assistant (PDA) and mobile phones have encouraged developer to

    build different kind of applications and systems in all domains.

    We can find, for example, IR remote control which is an application that can

    be installed on a mobile phone to use it as a remote control via Infrared; this

    application can be used in a small area and needs a line of sight [1]. Figure 1.1 shows

    the flow of sending messages; the GSM module will send SMS that has been

    programmed in the PIC when the bike intrudes, then the bike owner will receive

    message from GSM terminal.

    Figure 1.1: Overview of this project

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    20/24

    3

    1.2 Project Objectives

    The objectives of this project are to design thing that can alert us from a theft.

    Below are the main objectives:

    i. To send SMS (alert us) that is automatically generated without humanintervention when intrusion.

    ii. To monitor our vehicle from a distance.iii. This system can send via SMS messages.

    1.3 Project Scope

    There are a few scopes and guidelines listed to unsure the project is

    conducted within its intended boundary. This is to ensure the project is heading in the

    right direction to achieve its intended objectives.

    i. To design circuitry for the overall system.ii. To develop the program that can integrate and control the overall system.

    1.4 Project Methodology

    In this project we interfaced PIC16F877A microcontroller with Nokias 6100

    NPL-2 GSM mobile phone to the sending message to alert user. The protocol used

    for the communication between the two is one way communication, where GSM

    mobile phone sending a massage when the sensor was trigger.

    Mobile no. and then switches on the relays attached to its port to control the

    appliances. The relay is used to stop the engine motor that has been programmed in

    microcontroller.

    This project divided into hardware and software application.

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    21/24

    4

    1.4.1 Software Application

    For software application, compiler software used is WINPIC Compiler and

    the programmer software used is PCWH Compiler. It has a few steps to get the

    machine code (Hex) for the data to program in the microcontroller. Figure below

    show the process done with the software to get the .hex file.

    Table 1.2: PIC microcontroller programming process and software that used.

    1.4.2 Hardware Application

    Such as software application, this part also has some steps that need to follow.

    Firstly, do the research and understand the concept of 'alarm system'. Information

    collected are regarding with PIC, 'alarm system' concept. Through this method,

    information that had collected previously is researched consistent with the objective

    of the project. Through this method, concept and principle for the project will be

    studied to produce the ideas for this project.

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    22/24

    5

    Second, the flow chart is build where this flow chart is used to show the steps

    that need to follow before the project is implemented. The flow chart is planned and

    built and this flow chart also consist ways for this project to operate and to

    controlling. Third, the circuit is designed. The circuit is design using a software

    Proteus ISIS 7 Profesional.

    The fourth step is do the circuit simulation. The designed circuit is simulated

    by using software of 'Proteus ISIS 7 Profesional'. By this method, the operation of

    circuit can be inspect wheather the circuit has problem or not and if any, the

    improvement can implement.

    The fifth step is build a prototype for the project. Prototype is built when the

    circuit simulated is function and has no problem. It's built on the 'protoboard'. This

    prototype is built to test wheather the circuit has a problem or not. The improvement

    can implement if the circuit designed has a problem.

    The sixth step is design the 'PCB Layout'. If the circuit designed has no

    problem, next, the 'PCB Layout' is designed by using software of ARES 7

    Profesional. This method is did by full concentration to avoid a something mistake

    that will give difficulty when to assemble the component.

    The seventh step is design the 'PCB'. The completed PCB Layout will be

    printed on the PCB board and drilling hole on the PCB will be done. The last step is

    install the component on the PCB board. Component is installed on the PCB board

    that has completed follow the circuit that has designed previously. Pi of component

    is cut and soldered. Soldering equipment is required during this process.

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    23/24

    6

    Figure 1.3: Flowchart of the process of designing the project.

  • 7/29/2019 Intruder Alert System via Sms for Motorcycle - 24 Pages

    24/24

    1.5 Problem Statement

    Figure 1.4: Vehicle Theft Motorcycle

    Source: http://www.piam.org.my/

    Vehicle thefts - the total number of stolen vehicles has increased significantly

    from 8,869 cases in 1997 to 46,330 cases in 2008 i.e. up 5.2 times over 12 years

    whilst the quantum of claims escalated from RM135million to RM628million in

    2008, up 4.6 times in the same 12-year period. This problem statement clearly had

    shown how important this project to protect our property.