0% found this document useful (0 votes)
99 views2 pages

VCGV BN

The document discusses code for an accident detection and alert system using a microcontroller, vibration sensor, GPS module, and web interface. The system detects vehicle accidents by sensing vibrations with a sensor connected to a microcontroller. The microcontroller receives location data from a GPS module. It collects and sends this data. A web page built with Django displays alerts and information.

Uploaded by

Chandini Rajeev
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
99 views2 pages

VCGV BN

The document discusses code for an accident detection and alert system using a microcontroller, vibration sensor, GPS module, and web interface. The system detects vehicle accidents by sensing vibrations with a sensor connected to a microcontroller. The microcontroller receives location data from a GPS module. It collects and sends this data. A web page built with Django displays alerts and information.

Uploaded by

Chandini Rajeev
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

var arr = [];

var getProto = Object.getPrototypeOf;

var slice = arr.slice;

var flat = arr.flat ? function( array ) {


return arr.flat.call( array );
} : function( array ) {
return arr.concat.apply( [], array );
};
#include<stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <GPS_Lib.c> // include GPS library source file (GPS_Lib.c)

void command(int a);


void data(char b);
void string(char c[]);

void main()
{
int16 value,p;
char b[20]="AlcoholLevel=";
char c[20]="Alert";
char str[20];
char lat[20];
char long[20];
int a,i ;
setup_adc_ports(ALL_ANALOG);
setup_adc(ADC_CLOCK_INTERNAL);
setup_spi(SPI_SS_DISABLED);
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_comparator(NC_NC_NC_NC);
setup_vref(FALSE);
set_tris_A(0xff);
set_tris_C(0x00);
set_tris_B(0x00);
command(0x38);
command(0x01);
command(0x06);

var push = arr.push;


When a person is driving the
the vehicle met with an
accident then the vibrations of the
the vehicle is received by the vibration sensor and the sensor
acts as an accident detection module that further
send the
information to the microcontroller and the location of the
the vehicle is received through a GPS module. The received
information is sent to the microcontroller. The received
coordinate�s information is collected and is sent.
The web page is developed with python as frond end and Mysql as backend using
Django framework.Django is a high-level Python web framework that enables rapid
development of secure
and maintainable websites. Built by experienced developers, Django takes care of
much of the hassle of web development, so you can focus on writing your app without
needing to reinvent the
wheel. It is free and open source, has a thriving and active community, great
documentation, and many options for free and paid-for support. Django can be (and
has been) used to build
almost any type of website � from content management systems and wikis, through to
social networks and news sites. It can work with any client-side framework, and can
deliver content in
almost any format (including HTML, RSS feeds, JSON, XML, etc).

var indexOf = arr.indexOf;


var ObjectFunctionString = fnToString.call( Object );

var support = {};

var isFunction = function isFunction( obj ) {

// Support: Chrome <=57, Firefox <=52


// In some browsers, typeof returns "function" for HTML <object>
elements
// (i.e., `typeof document.createElement( "object" ) === "function"`).
// We don't want to classify *any* DOM node as a function.
// Support: QtWeb <=3.8.5, WebKit <=534.34, wkhtmltopdf tool <=0.12.5
// Plus for old WebKit, typeof returns "function" for HTML collections
// (e.g., `typeof document.getElementsByTagName("div") ===
"function"`). (gh-4756)
return typeof obj === "function" && typeof obj.nodeType !== "number" &&
typeof obj.item !== "function";
};

var isWindow = function isWindow( obj ) {


return obj != null && obj === obj.window;
};

You might also like