Professional Documents
Culture Documents
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-
Block Diagram:
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.