BLACK BOX AND ACCIDENT RESCUE SYSTEM

Photo of author

By Jackson Taylor

In this work, wireless black box using accelerometer and GPS tracking system is developed for accidental monitoring. The system consists of cooperative components of an accelerometer, piezo sensor ,micro controller unit, GPS device and GSM module. In the event of accident, this wireless device will send mobile phone short massage indicating the position of vehicle by GPS system to family member, emergency medical service (EMS) and nearest hospital. The threshold algorithm and speed of motorcycle are used to determine fall or accident in real-time. The system is compact and easy to install under rider seat.

BLOCK DIAGRAM

Block Diagram

CIRCUIT DIAGRAM

Circuit Diagram

PROGRAM


int f=0;
void setup()
{
  Serial.begin(9600);
  pinMode(12,INPUT);
  pinMode(13,INPUT);
  pinMode(A5,INPUT);
  delay(1000);
}
void loop()
{
  int a=digitalRead(12);
  int b=digitalRead(13);
  int c=digitalRead(A5);
  if((a || b || c)&& f==0)
  {
    message();f=1;
  }  
}
void message(void)
{
  Serial.print("AT+CMGF=1;");//TEXT MODE
  Serial.write(0xd);//ENTER
  delay(1000);
  Serial.print("AT+CMGS=");
  Serial.write(0X22);
  Serial.print("9995305586");//NUMBER
  Serial.write(0X22);
  Serial.write(0xd);//ENTER
  delay(1000);
  Serial.print("ACCIDENT AT ");
  for(int v=0;v<100;v++){Serial.write(Serial.read());}
  Serial.write(0x1a);
}

PCB LAYOUT

PCB Layout
See also
ULTRASONIC SENSOR HC-SRO4 WITH ARDUINO