You are on page 1of 5

PROBLEM STATEMENT: Transport management system

PROJECT TITLE: Buckle Up(Because seatbelt can save you more than just a traffic ticket)
HOSTEL NAME: KAPILI
NAME 1: K. Rohit Reddy (150108015)
NAME 2: V.Deekshith Raya (150102069)

Abstract:
India is infamous for violating traffic rules especially in the case of seat belts.
These life savers have always been neglected irrespective of all the laws and
vigilance by traffic police. Also stopping cars for collecting fines in heavy traffic
has been an everlasting problem.
Here we are with an innovative idea to improve the vigilance by monitoring
the traffic real-time with Buckle Up.
This is how it works: a simple device is installed in the car, when a driver does
not put his seat belt the device transmits a signal which has been encoded
with the unique registration no. of the car. There are receivers on the road
which receive the encoded signal and collects the registration no. of the car
and stores the data temporarily. This can be used to enhance the vigilance on
the roads 24*7. It will force people to put on Seatbelts the Saviours.

Students Gymkhana Council 2016-17 * Indian Institute of Technology Guwahati -781 039

Components:
Microcontroller
Transmitter (Bluetooth 4.0) , Receiver
(Bluetooth 4.0)

SCHEMATIC DIAGRAM-

Applications-

Traffic can be monitored 24*7 for Seatbelt law violation.


This can also be extended for speed monitoring and speed limit
violation.
This forces people towards a good cause, by putting on their seatbelts
and saving lives in accidents.

Block Diagram:

Working and Description:


PROTOTYPE TO BE DISPLAY :
When a Bluetooth module HC-05(slave) is in the range of its master Bluetooth module, A
unique no. (the registration no.) , that is stored in the MEMORY of the Arduino connected to
the slave Bluetooth module , is sent to the master Bluetooth module Serially and the no. is
displayed on the serial monitor or an android phone . This protoype solves and displays the
important working of the buckle up. As soon as slaves signal is received by the master it
restarts.If multiple slaves are present in the vicinity it will connect to each of them one by one.
ACTUAL PRODUCT :
The above description is for the protoype that is going to be presented . In the final product
the slave module is attached along with an microcontroller and an EEPROM to the car and
when it comes in range of the master Bluetooth module, attached on the road (to the light
poles) it, both of them automatically pair and slave sends an unique no. which is unique for an
car (if the seat belt is not put on ).if the seat belt is put on the Bluetooth module is switched
off hence the unique no. is not transmitted . The data is collected and stored temporarily until
the person violating the traffic rules is fined

Codes :-

Master hm-05 :
#include <SoftwareSerial.h>
SoftwareSerial BTserial(2, 3); // RX | TX
// Connect the HC-05 TX to Arduino pin 2 RX.
// Connect the HC-05 RX to Arduino pin 3 TX through a voltage divider.
const int reset = 11; int count =0; char c = ' ';
int start=0;
void setup()
{
Serial.begin(9600);
//Serial.println("\nBUCKLEUP v1.0");
Serial.print("\nReady for the next reg. no of car: ");
pinMode(reset,INPUT);
digitalWrite(reset,LOW);
BTserial.begin(9600);
}
void loop()
{
// Keep reading from HC-05 and send to Arduino Serial Monitor
if (BTserial.available())
{
c =char( BTserial.read());
if(c=='*')
{
start=1;
}
if(((c<=90&&c>=65)||(c>=48&&c<=57))&&(count<10)&&start==1)
{
Serial.write(c);
count++;
//}
}
if (count>=10)
{
BTserial.write("|");
digitalWrite(reset, HIGH);
}
// Keep reading from Arduino Serial Monitor and send to HC-05
}
}

Slave hm-05 :
#include <SoftwareSerial.h> SoftwareSerial
BTserial(2, 3); // RX | TX
// Connect the HC-05 TX to Arduino pin 2 RX.

// Connect the HC-05 RX to Arduino pin 3 TX through a voltage divider.


//
void (*resetFunc)(void)=0;
char c = ' '; int i=0; int
count =0; const int
driver_bye = 11; void
setup()
{
delay(10000);
Serial.begin(9600);
Serial.println("Ready for next input: REG NO:");
pinMode(driver_bye,OUTPUT);
digitalWrite(driver_bye, LOW);
}
void loop()
{
BTserial.write("*KA02HM1745");
count++;
char c=char(BTserial.read());
if(c=='|')
{
digitalWrite(driver_bye,HIGH);
delay(1000);
resetFunc();
}
}

You might also like