EEP 211

Embed Size (px)

Citation preview

  • 8/6/2019 EEP 211

    1/16

    EEP 211

    DESIGN LAB

    ProjEct.

    ROAD ACCIDENT EMERGENCY ALERT SYSTEM

    Submitted by:

    Siddhartha Das

    Avnish KumarNirupam Gupta.

    Ankit Chandawala.

    Arun Khurana.

  • 8/6/2019 EEP 211

    2/16

    The Idea

    A few seconds of early medical help can be crucial to a persons lifewhen he has met with a fatal vehicular accident. Many times across news

    that people who suffer accident failed to get proper medical help because

    the accident took place in a remote area or because his/her identification

    and medical background was not available to the authorities. We aim to

    rectify this by proposing an automatic system where as soon as a person

    meets with an accident in his vehicle (two/four wheeler), a message

    indicating the coordinates of the accident site and his identification

    (name, blood group etc.) is sent to the nearest hospital and police station

    from the accident site.

    Design

    The aim is to create an automatic system to detect an accident and

    consequently triggering a chain of events which will lead to an info

    message to alert the authorities and to take appropriate actions. This will

    prevent late response and immediate help to the victim.

  • 8/6/2019 EEP 211

    3/16

    Methodology

    Each vehicle will have a GPS Module and a collision detecting system.

    We plan to detect the collision using Accelerometer.

    As soon as the collision occurs, GPS is used to find the exact location in

    terms of latitude and longitude.

    A message is created containing the location(in terms of longitude and

    latitude) as well as details like blood group, persons identification and

    contact details of a relative that were stored in the system beforehand.

    This message is sent to the nearest police station and hospital that have

    receivers. Another message is sent to a relative regarding the location. Here

    we thought of using a GSM module for long distance communication but

    due to cost constraint, we used a Bluetooth Module to show the basic idea of

    wireless communication which we wanted to bring to the fore. As a result of this change, we made a Mobile Application which would take

    the co-ordinate data from the GPS Module through the Bluetooth Module

    and use the persons phone to send it to the concerned authorities.

    Step 1

    Accelerometer detects the change in acceleration of the vehicle as soon as the collisionoccurs

    GPS is used to find the exact location in terms of latitude and longitude.

    Step 2

    A message is created containing the location as well as details like blood group,persons identification and contact details of a relative that were stored in the systembeforehand.

    Using Java Micro Edition, we designed an application to create a link between theclient and the server.

    Step 3This message is sent to the nearest police station and hospital that have receivers.

    Another message is sent to a relative regarding the location.

  • 8/6/2019 EEP 211

    4/16

    Components Used.

    1.Our Micro Controller-Arduino Atmega 2560

    Operating Voltage 5V

    Input Voltage(recommended)

    7-12V

    Input Voltage (limits) 6-20V

    Digital I/O Pins54 (of which 14provide PWM output)

    Analog Input Pins 16

    DC Current per I/O Pin 40 mA

    DC Current for 3.3VPin

    50 mA

    Flash Memory 256 KB of which 8 KBused by bootloader

    SRAM 8 KB

    EEPROM 4 KB

    Clock Speed 16 MHz

  • 8/6/2019 EEP 211

    5/16

    2. 9 Degrees of Freedom - Razor IMU - AHRScompatible

    Features:

    9 Degrees of Freedom on a single, flat board: LY530ALH - 300/s single-axis gyro LPR530ALH - 300/s dual-axis gyro

    ADXL345 - 13-bit resolution, 16g, triple-axis accelerometer HMC5843 - triple-axis, digital magnetometer Outputs of all sensors processed by on-board ATmega328 and

    sent out via a serial stream Auto run feature (hit 'Ctrl-z') and help menu integrated into the

    example firmware Output pins match up with FTDI Basic Breakout, Bluetooth

    Mate, XBee Explorer

    3.5-16VDC input ON-OFF control switch and reset switch

    Dimensions: 1.95 x 1.10 " (49.53 x 27.94 mm)

  • 8/6/2019 EEP 211

    6/16

    3. GPS Receiver MT3318 Module

    Specifications Supply: 3.3V, 45mA Chipset: MTK MT3318 Antenna: High gain GPS patch antenna from Cirocomm Data output: CMOS UART interface at 3.3V Protocol: NMEA-0183@9600bps (Default) at update rate of 1

    second. Protocol message support: GGA, GSA, RMC, VTG No. of Satellite simultaneously tracked: 51 Tracking Sensitivity: On-module antenna : -157 dBm Position Accuracy :

  • 8/6/2019 EEP 211

    7/16

    NMEA PROTOCOL

    NMEA is a standard protocol, use by GPS receivers to transmit data.NMEA output is EIA-422A but for most purposes you can consider it RS-

    232 compatible. Use 4800 bps, 8 data bits, no parity and one stop bit (

    8N1 ). NMEA 0183 sentences are all ASCII. Each sentence begins with a

    dollar sign ($) and ends with a carriage return linefeed (). Data

    is comma delimited. All commas must be included as they act as

    markers. Some GPS do not send some of the fields. A checksum is

    optionally added (in a few cases it is mandatory). Following the $ is the

    address field aaccc. aa is the device id. GP is used to identify GPS data.Transmission of the device ID is usually optional. ccc is the sentence

    formatter, otherwise known as the sentence name.

  • 8/6/2019 EEP 211

    8/16

    4. Bluetooth Modem - BlueSMiRF Gold

    Specifications: FCC Approved Class 1 Bluetooth

    Radio Modem Extremely small radio - 0.15x0.6x1.9" Very robust link both in integrity and transmission distance

    (100m) - no more buffer overruns!

    Low power consumption : 25mA avg Hardy frequency hopping scheme - operates in harsh RF

    environments like WiFi, 802.11g, and Zigbee Encrypted connection Frequency: 2.4~2.524 GHz Operating Voltage: 3.3V-6V Serial communications: 2400-115200bps Operating Temperature: -40 ~ +70C Built-in antenna Dimensions: 51.5x15.8x5.6mm

  • 8/6/2019 EEP 211

    9/16

    5. Mobile Application

    A MIDlet is an application that uses the Mobile Information

    Device Profile (MIDP) of the Connected Limited DeviceConfiguration (CLDC) for the Java ME environment. The MIDlet must contain a class that extends the

    javax.microedition.midlet.MIDlet class MIDlets are packaged together in suites inside a .jar file with a

    Manifest file indicating which classes implement which MIDlet.As well as the Java classes, the .jar file can contain otherresources such as images or sound files. A .jad file contains the

    location of the .jar as well as the list of MIDlets in the suite andother attributes.

  • 8/6/2019 EEP 211

    10/16

    The Methodology in Pictures!!

  • 8/6/2019 EEP 211

    11/16

    The Circui

    t:

  • 8/6/2019 EEP 211

    12/16

    The Output

    Here we see the output of the system. In the hyper terminal, we see

    the values of latitudes and longitudes sent by the GPS Module and

    when we feed the values in Google maps, we are able to see that thelocation of the place from where the GPS module has sent the values.

    Also, at the terminal we see the values sent by the Bluetooth module.

  • 8/6/2019 EEP 211

    13/16

    #include

    Attached is the Arduino Code:

    #include

    int ledPin = 13; // LED test pin

    int rxPin = 0; // RX PIN

    int txPin = 1; // TX TX

    int byteGPS=-1;

    // int byteACC=-1;

    char linea[300] = "";

    char comandoGPR[7] = "$GPRMC";

    int cont=0;

    int bien=0;int conta=0;

    int trigger=22;

    int indices[13];

    void setup() {

    pinMode(ledPin, OUTPUT); // Initialize LED pin

    pinMode(rxPin, INPUT);

    pinMode(txPin, OUTPUT);

    pinMode(trigger,INPUT);

    Serial.begin(9600);

    Serial1.begin(9600);

    Serial2.begin(9600);

    Serial1.read();

    for (int i=0;i

  • 8/6/2019 EEP 211

    14/16

    digitalWrite(ledPin, LOW);

    cont=0;

    bien=0;

    for (int i=1;i

  • 8/6/2019 EEP 211

    15/16

    Serial.print("Direction (E/W): ");Serial2.print("Direction (E/W): ");break;

    case 6 :Serial.print("Velocity in knots: ");

    Serial2.print("Velocity in knots: ");break;

    case 7 :Serial.print("Heading in degrees: ");Serial2.print("Heading in degrees: ");break;

    case 8 :Serial.print("Date UTC (DdMmAa): ");Serial2.print("Date UTC (DdMmAa): ");

    break;

    case 9 :Serial.print("Magnetic degrees: ");Serial2.print("Magnetic degrees: ");break;

    case 10 :Serial.print("(E/W): ");Serial2.print("(E/W): ");break;

    case 11 :Serial.print("Mode: ");Serial2.print("Mode: ");break;

    case 12 :Serial.print("Checksum: ");Serial2.print("Checksum: ");break;

    }

    for (int j=indices[i];j

  • 8/6/2019 EEP 211

    16/16

    Serial2.println("---------------");

    }conta=0; // Reset the buffer

    for (int i=0;i