Laser Counter

INTRODUCTION

LASER COUNTER:- Laser counter is modified way of enhancing security system. As per recent research it has been seen that keeping data related to security is degrading day-by-day, so we have made this project which can solve this problem by not only keeping data in secondary storage but also in cloud storage solving the problem of data loss.

This model can keep track of present as well as past data in cloud. We can keep it to ourselves and every security guard can also access it at real time.

RESULTS OF CASE STUDY:

CASE 1: Counter Mode

This mode will increment the value of a counter whenever a person will enter and decrement it whenever a person will exit. In this way we can keep record of person entering and exiting , increment and decrement is easy to monitor as we are sending the data in mobile phone through app and at a same time displaying it in lcd, it can further increased as all datas can access by a person living in distant by cloud.

CASE 2: Employ in / Employ out

If there is a person whose count u don’t want to consider than this mode is beneficial as it will keep their separate record and it will normalize their effect on counter.

CASE 3: Emergency Mode

This mode comes in to the picture whenever there is an emergency like fire, earthquake. Then it becomes a question for the person who is present at the moment for rescue that is there someone who needs to be rescued. A fire fighter , police man etc rush into danger for saving people without any second thought but it becomes pointless if there aren’t any . This mode will decrement the counter and gives the exact data about no. of people inside.

CASE 4: Security Mode

This mode is just like a bugler alarm but it is revised into a alarm which will generate the bell sound as well as send message to security guard’s phone whenever there is a break-in .

COMPONENTS USED :-

· AURDINO

· LASER

· LCD

· LDR

· BLUETOOTH MODULE

· RESISTANCE

· CONNECTING WIRES

· DING DONG GENERATOR BELL

· RELAY

· BREAD BOARD

· POWER SOURCE(BATTERY)

DESCRIPTION

Whenever a person is entering or exiting they will interrupt the laser falling on LDR which will change its resistance and this will recognized by aurdino which is behaving as our control system it will recive the data according to program and it will send the respective data to display devices.

PROGRAM:-

#include


int zin=A0;

int z=0;

const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;

LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

void setup()

{ pinMode(zin,INPUT);

Serial.begin(9600);

lcd.begin(16, 2);

lcd.print("Counter");

}

void emerg()

{ lcd.setCursor(0, 0);

lcd.print("Emergency Mode");

char c='o';

int x=analogRead(zin);

while(1)

{ lcd.setCursor(0, 1);

lcd.print(z);

if(Serial.available()>0)

{ c=Serial.read();

}

if(c=='E') break;

x=analogRead(zin);

if(x>900)

{ z--;delay(1000);

}

Serial.println(z);

} }

void sec()

{ lcd.setCursor(0, 0);

lcd.print("Security Mode");

char c='o';

int x=analogRead(zin);

while(1)

{ lcd.setCursor(0, 1);

lcd.print(z);

if(Serial.available()>0)

{ c=Serial.read();

}

if(c=='S') break;

x=analogRead(zin);

if(x<150) {z--;delay(1000);

}

Serial.println(z);

} }

void check(char c)

{ if(c=='B')

{z--;}

if(c=='G')

{z++;}

if(c=='E')

emerg();

if(c=='S')

sec();

}

void loop()

{ lcd.setCursor(0, 1);

lcd.print(z);

int x;

char c='O';

x=analogRead(zin);

if(x<150)

{z++;delay(2500);}

if(x>800)

{z--;delay(2500);}

Serial.println(z);

if(Serial.available()>0)

{ c=Serial.read();

check(c); } }

Share

    Recommendations

    • Plastics Contest

      Plastics Contest
    • Optics Contest

      Optics Contest
    • Make it Glow Contest 2018

      Make it Glow Contest 2018

    2 Discussions

    0
    None
    SP51DIY Hacks and How Tos

    Reply 7 months ago

    We had already uploaded proteus simulation image. You can check it and it will be helpful in assembling. If after that you are finding problems in assembling then we’ll surely upload an assembled circuit image as soon as possible