Professional Documents
Culture Documents
Anti-Accident Sensor
Anti-Accident Sensor
GANESH SHASTRI
‣ P.LAXMIDHAR
‣ HTNO : 227Z1A1209 & 1248
1
AIM : The main aim of this idea is to stop people from crossing the
barriers at traffic signals and railway crossings.
PROBLEM DEFINATION : The Idea came when we saw a news report which was
telling that a vehicle was trying to cross the railway line even there was a stop signal,
and there were no Railway Crossing Security Employees during the incident to stop the
person from crossing the railway track
2
BACKGROUND OF IDEA (WHAT WILL IT DO?) :
3
REQUIREMENTS :
4
Design & Drawings of Prototype (Rough Sketches) :
5
SOURCE CODE :
int analogInPin = A0; // Analog input pin that the
potentiometer is attached to
int led =11;
int sensorValue = 0; // value read from the pot
void setup() {
// initialize serial communications at 9600 bps:
Serial.begin(9600);
pinMode(led, OUTPUT);
}
void loop() {// read the analog in value:
6
sensorValue = analogRead(analogInPin);
Serial.print("sensor = " );
Serial.println(sensorValue);
delay(200);
if(sensorValue<100)
{
digitalWrite(led,HIGH);
}
else
{
digitalWrite(led,LOW);
}
}
7
CONCLUSION :
‣ There is a lot of scope for the further development of this prototype such as implementing an
automatic alert system to the security employees who work at railway crossing and traffic
signals. Also, automatic photo capturing cameras can be included when someone is trying to
cross the stop line. This photo capturing system already exists at traffic signals and other
places but it uses AI and ML which costs higher than this IR System.
8
9