You are on page 1of 20

GSM & GPS BASED ACCIDENT LOCATION AND INTENSITY INFORMATION SYSTEM

Abstract:
In our day to day life we hear many accidents daily which cause to loss of many people life, people loose their life after accident by not getting the right treatment at right time. One of the main cause is when people travel on highways from one state to other or outer part of the city when an accident occur the information will be passed very late to the ambulance or police this waste of time cause to loose many people life. In this project we are going track the accident location and send message to ambulance, police and their relatives immediately when accident occurred. GSM & GPS Based Accident location and intensity information system uses GSM module to send the messages and GPS module to track the location were accident has occurred .This project will also tell us about the intensity of the accident occurred by using a pressure sensor to the vehicle, with how much speed vehicle hits according to that intensity of the accident can be detected.

BLOCK DIAGRAM:

LCD (Display) LCD Driver LCD Glass

GPS Receiver

RELAY RS232 Converter c o n v e r t e r

GSM MODEM
Micro Controller (AT89C52)

Pressure Sensor

Power Supply
Trans former Rectifier Regulator (7805) Filter

Working Principle:
Gps module is used to track the location of the vehicle and it sends the location to the micro-controller, using GSM module we send the location to the number feeded, the intensity of the accident can be detected by the Pressure sensor attached to the vehicle according to that we can detect the intensity of the accident and send the measure whether it is critical or normal.

Hardware Requirements:
GSM MODEM GPS Pressure Sensor MAX232 AT89c51 micro-controller Power Supply RS232 cable 2*16 LCD

Software Requirements:
Embedded C Kiel vision2 Flash Magic

Voltage Regulator (LM7805): General description: The LM78XX series of three terminal positive regulators are available in the TO-220 package and with several fixed output voltages, making them useful in a wide range of applications. Each type employs internal current limiting, thermal shut down and safe operating area protection, making it essentially indestructible. If adequate heat sinking is provided, they can deliver over 1A output current. Although designed primarily as fixed voltage regulators, these devices can be used with external components to obtain adjustable voltages and currents. Features:

Output Current up to 1A Output Voltages of 5, 6, 8, 9, 10, 12, 15, 18, 24

Thermal Overload Protection Short Circuit Protection Output Transistor Safe Operating Area Protection

Voltage Regulator (LM7805) is used to give different voltage levels for different uses. It gives 5v input to the micro controller to work and it gives 12v input to the LCD to work. It differentiates the voltage levels to the various devices. It gives a clear output to the devices. POWER SUPPLY: The micro controller and other devices get power supply from AC to Dc adapter through voltage regulator. The adapter output voltage will be 12V DC non regulated. The 7805 voltage regulators are used to convert 12 V to 5VDC.
AC/DC Adapter Regulator (LM7805) Filter

AC Power

DC Output

From simple LED light to embedded boards all need clean regulated DC power supply. Here we give few schematic diagrams to build power supply circuits from simple to complex types. If power consumption is a critical factor go for switching only. Here is one most popular, old, reliable and simple circuit for fixed DC power supply. These are ideal for circuits with an average current requirement of less than 1.00 amp. 5V/9V/12V fixed power supply (Positive) at 1 Ampere current rating

Circuit Diagram (Schematic Diagram)-1 L1 = Step down transformer with i/p of 230 AC 50 Hz and output of (XX ) - 0- (XX)) volts(rms). XX = Required DC output voltage.

Here is the table for different voltages

Output voltage (DC Volts) 5 9 12 15

Transformer rating (rms Volts) 230: 5-0-5 230:9-0-9 230:12-0-12 230:15-0-15

The current rating has to be more than 1 Amp. D1, D2 = Diodes 1N4003 D3 = Diode 1N4003/ 1N4001 (optional) C1 = 1000 Micro Farad aluminum electrolytic capacitor (For loads less than 100mA you can sustitute with 220 microfards capacitor), Voltage rating = 2.5 times of Output Voltage. C2 = 10 Micro Farad aluminum electrolytic capacitor IC1 = 7805 for + 5V DC output =7809 for +9V DC output =7812 for +12V DC output =7815 for +15V DC output

5V/9V/12V fixed power supply (Negative) at 1 Ampere current rating

Bridge Rectifier
Download Bridge Rectifier.epb

Aim: To simulate a Bridge Rectifier circuit. Components: Name EDWin Components Used SMB_TRANSFORMER RC05 1N4007 SMB_VGEN SMB_SPL0 Description Number of components required 1 1 4 1 1

TRANSFORMER RES DIODE VGEN GND Theory: -

Transformer Resistor Diode Ac voltage source Ground

The Bridge rectifier is a circuit, which converts an ac voltage to dc voltage using both half cycles of the input ac voltage. The Bridge rectifier circuit is shown in the figure. The circuit has four diodes connected to form a bridge. The ac input voltage is applied to the diagonally opposite ends of the bridge. The load resistance is connected between the other two ends of the bridge. For the positive half cycle of the input ac voltage, diodes D1 and D3 conduct, whereas diodes D2 and D4 remain in the OFF state. The conducting diodes will be in series with the load resistance RL and hence the load current flows through RL. For the negative half cycle of the input ac voltage, diodes D2 and D4 conduct whereas, D1 and D3 remain OFF. The conducting diodes D2 and D4 will be in series with the load resistance RL and hence the current flows through RL in the same direction as in the previous half cycle. Thus a bi-directional wave is converted into a unidirectional wave.

Peak Inverse Voltage Peak inverse voltage represents the maximum voltage that the non- conducting diode must withstand. At the instance the secondary voltage reaches its positive peak value, Vm the diodes D1 and D3 are conducting, where as D2 and D4 are reverse biased and are nonconducting. The conducting diodes D1 and D3 have almost zero resistance. Thus the entire voltage Vm appears across the load resistor RL. The reverse voltage across the nonconducting diodes D2 (D4) is also Vm. Thus for a Bridge rectifier the peak inverse voltage is given by Ripple Factor The ripple factor for a Full Wave Rectifier is given by

The average voltage or the dc voltage available across the load resistance is

RMS value of the voltage at the load resistance is

Efficiency Efficiency, is the ratio of the dc output power to ac input power

The maximum efficiency of a Full Wave Rectifier is 81.2%. Procedure: EDWin 2000 -> Schematic Editor: The circuit diagram is drawn by loading components from the library. Wiring and proper net assignment has been made. The values are assigned for relevant components.

EDWin 2000 -> Mixed Mode Simulator: The circuit is preprocessed. The test points and waveform markers are placed in input and output of the circuit. GND net is set as reference

net. The Transient Analysis parameters have been set. The Transient Analysis is executed and output waveform is observed in Waveform Viewer. Result: The output waveform may be observed in the waveform viewer.

P89V51RD2 8-bit 80C51 5 V low power 64 kB Flash microcontroller


1.

General description

The P89V51RD2 is an 80C51 microcontroller with 64 kB Flash and 1024 bytes of data RAM. A key feature of the P89V51RD2 is its X2 mode option. The design engineer can choose to run the application with the conventional 80C51 clock rate (12 clocks per machine cycle) or select the X2 mode (6 clocks per machine cycle) to achieve twice the throughput at the same clock frequency. Another way to benefit from this feature is to keep the same performance by reducing the clock frequency by half, thus dramatically reducing the EMI. The Flash program memory supports both parallel programming and in serial In-System Programming (ISP). Parallel programming mode offers gang-programming at high speed, reducing programming costs and time to market. ISP allows a device to be reprogrammed in the end product under software control. The capability to field/update the application firmware makes a wide range of applications possible. The P89V51RD2 is also In-Application Programmable (IAP), allowing the Flash program memory to be reconfigured even while the application is running.

2.Features 80C51 Central Processing Unit 5 V Operating voltage from 0 to 40 MHz 64 kB of on-chip Flash program memory with ISP (In-System Programming) and IAP (In-Application Programming) Supports 12-clock (default) or 6-clock mode selection via software or ISP SPI (Serial Peripheral Interface) and enhanced UART PCA (Programmable Counter Array) with PWM and Capture/Compare functions Four 8-bit I/O ports with three high-current Port 1 pins (16 mA each) Three 16-bit timers/counters Programmable Watchdog timer (WDT) Eight interrupt sources with four priority levels Second DPTR register Low EMI mode (ALE inhibit) TTL- and CMOS-compatible logic levels

7. Functional description 7.1 Memory organization The device has separate address spaces for program and data memory. 7.1.1 Flash program memory There are two internal flash memory blocks in the device. Block 0 has 64 kbytes and contains the users code. Block 1 contains the Philips-provided ISP/IAP routines and may be enabled such that it overlays the first 8 kbytes of the user code memory. The 64 kB Block 0 is organized as 512 sectors, each sector consists of 128 bytes. Access to the IAP routines may be enabled by clearing the BSEL bit in the FCF register. However, caution must be taken when dynamically changing the BSEL bit. Since this will cause different physical memory to be mapped to the logical program address space, the user must avoid clearing the BSEL bit when executing user code within the address range 0000H to 1FFFH. 7.1.2 Data RAM memory The data RAM has 1024 bytes of internal memory. The device can also address up to 64 kB for external data memory. 7.1.3 Expanded data RAM addressing The P89V51RD2 has 1 kB of RAM. See Figure 5 Internal and external data memory structure

The device has four sections of internal data memory: 1. The lower 128 bytes of RAM (00H to 7FH) are directly and indirectly addressable. 2. The higher 128 bytes of RAM (80H to FFH) are indirectly addressable. 3. The special function registers (80H to FFH) are directly addressable only. 4. The expanded RAM of 768 bytes (00H to 2FFH) is indirectly addressable by the move external instruction (MOVX) and clearing the EXTRAM bit. Since the upper 128 bytes occupy the same addresses as the SFRs, the RAM must be accessed indirectly. The RAM and SFRs space are physically separate even though they have the same addresses. 7.2 Flash memory In-Application Programming 7.2.1 Flash organization The P89V51RD2 program memory consists of a 64 kB block. An In-System Programming (ISP) capability, in a second 8 kB block, is provided to allow the user code to be programmed in-circuit through the serial port. There are three methods of erasing or programming of the Flash memory that may be used. First, the Flash may be programmed or erased in the end-user application by calling low-level routines through a common entry point (IAP). Second, the on-chip ISP boot loader may be invoked. This ISP boot loader will, in turn, call low-level routines through the same common entry point that can be used by the end-user application. Third, the Flash may be programmed or erased using the parallel method by using a commercially available EPROM programmer which supports this device. 7.2.2 Boot block When the microcontroller programs its own Flash memory, all of the low level details are handled by code that is contained in a Boot block that is separate from the user Flash memory. A user program calls the common entry point in the Boot block with appropriate parameters to accomplish the desired operation. Boot block operations include erase user code, program user code, program security bits, etc. A Chip-Erase operation can be performed using a commercially available parallel programer. This operation will erase the contents of this Boot Block and it will be necessary for the user to reprogram this Boot Block (Block 1) with the Philips-provided ISP/IAP code in order to use the ISP or IAP capabilities of this

7.2.3 Power-On reset code execution Following reset, the P89V51RD2 will either enter the SoftICE mode (if previously enabled via ISP command) or attempt to autobaud to the ISP boot loader. If this autobaud is not successful within about 400 ms, the device will begin execution of the user code. 7.2.4 In-System Programming (ISP) In-System Programming is performed without removing the microcontroller from the system. The In-System Programming facility consists of a series of internal hardware resources coupled with internal firmware to facilitate remote programming of the P89V51RD2 through the serial port. This firmware is provided by Philips and embedded within each P89V51RD2 device. The Philips In-System Programming facility has made in-circuit programming in an embedded application possible with a minimum of additional expense in components and circuit board area. The ISP function uses five pins (VDD, VSS, TxD, RxD, and RST). Only a small connector needs to be available to interface your application to an external circuit in order to use this feature. 7.2.5 Using the In-System Programming The ISP feature allows for a wide range of baud rates to be used in your application, independent of the oscillator frequency. It is also adaptable to a wide range of oscillator frequencies. This is accomplished by measuring the bit-time of a single bit in a received character. This information is then used to program the baud rate in terms of timer counts based on the oscillator frequency. The ISP feature requires that an initial character (an uppercase U) be sent to the P89V51RD2 to establish the baud rate. The ISP firmware provides auto-echo of received characters. Once baud rate initialization has been performed, the ISP firmware will only accept Intel Hex-type records. Intel Hex records consist of ASCII characters used to represent hexadecimal values and are summarized below: :NNAAAARRDD..DDCC<crlf> In the Intel Hex record, the NN represents the number of data bytes in the record. The P89V51RD2 will accept up to 32 data bytes. The AAAA string represents the address of the first byte in the record. If there are zero bytes in the record, this field is often set to 0000. The RR string indicates the record type. A record type of 00 is a data record. A record type of 01 indicates the end-of-file mark. In this application, additional record types will be added to indicate either commands or data for the ISP facility.

The maximum number of data bytes in a record is limited to 32 (decimal). ISP commands are summarized in Table 10. As a record is received by the P89V51RD2, the information in the record is stored internally and a checksum calculation is performed. The operation indicated by the record type is not performed until the entire record has been received. Should an error occur in the checksum, the P89V51RD2 will send an X out the serial port indicating a checksum error. If the checksum calculation is found to match the checksum in the record, then the command will be executed. In most cases, successful reception of the record will be indicated by transmitting a . character out the serial port.

ADC:
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805 8-Bit P Compatible A/D Converters:
General Description The ADC0801, ADC0802, ADC0803, ADC0804 and ADC0805 are CMOS 8-bit successive approximation A/D converters that use a differential potentiometric laddersimilar to the 256R products. These converters are designed to allow operation with the NSC800 and INS8080A derivative control bus with TRI-STATE output latches directly driving the data bus. These A/Ds appear like memory locations or I/O ports to the microprocessor and no interfacing logic is needed. Differential analog voltage inputs allow increasing the common-mode rejection and offsetting the analog zero input voltage value. In addition, the voltage reference input can be adjusted to allow encoding any smaller analog voltage span to the full 8 bits of resolution.
Features

Compatible with 8080 P derivativesno interfacing logic needed - access time - 135 ns Easy interface to all microprocessors, or operates stand alone Differential analog voltage inputs Logic inputs and outputs meet both MOS and TTL voltage level specifications Works with 2.5V (LM336) voltage reference On-chip clock generator 0V to 5V analog input voltage range with single 5V supply No zero adjust required

0.3" standard width 20-pin DIP package 20-pin molded chip carrier or small outline package Operates ratiometrically or with 5 VDC, 2.5 VDC, or analog span adjusted voltage reference Key Specifications Resolution 8 bits Total error 14 LSB, 12 LSB and 1 LSB Conversion time 100 s
Connection Diagram

You might also like