Ajay RawatRohit kumar
Published

Laser based Security Alarm System

This project deals with a model of laser security alarm system design.

IntermediateFull instructions provided1 hour16,390
Laser based Security Alarm System

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Breadboard (generic)
Breadboard (generic)
×1
LDR, 5 Mohm
LDR, 5 Mohm
×1
Buzzer
Buzzer
×3
LED (generic)
LED (generic)
×8
Male/Female Jumper Wires
Male/Female Jumper Wires
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Laser Diode, 655 nm
Laser Diode, 655 nm
×1
USB-A to B Cable
USB-A to B Cable
×1
9V battery (generic)
9V battery (generic)
×2

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Solder Wire, Lead Free
Solder Wire, Lead Free
Hot glue gun (generic)
Hot glue gun (generic)
Tape, Electrical
Tape, Electrical
Tape, Double Sided
Tape, Double Sided

Story

Read more

Schematics

Schematics

Code

Arduino Code

Arduino
int a2;
int ldr=A2;
boolean threshold=true;
void setup() {
  // put your setup code here, to run once:
  pinMode(ldr,INPUT);
  pinMode(2,OUTPUT);
  pinMode(3,OUTPUT);
  pinMode(4,OUTPUT);
  pinMode(5,OUTPUT);
}
void loop(){
  // put your main code here, to run repeatedly:
  while(digitalRead(ldr)==HIGH){
    digitalWrite(2,HIGH);
    digitalWrite(3,HIGH);
    digitalWrite(4,HIGH);
    digitalWrite(5,HIGH);
    delay(200);
    digitalWrite(2,LOW);
    digitalWrite(3,LOW);
    digitalWrite(4,LOW);
    digitalWrite(5,LOW);
    delay(100);
    digitalWrite(2,HIGH);
    digitalWrite(3,HIGH);
    digitalWrite(4,HIGH);
    digitalWrite(5,HIGH);
    delay(200);
    digitalWrite(2,LOW);
    digitalWrite(3,LOW);
    digitalWrite(4,LOW);
    digitalWrite(5,LOW);
    delay(500);
  }
}

Credits

Ajay Rawat

Ajay Rawat

3 projects • 7 followers
Electrical Engineering student with a passion for programming. Seek knowledge. Money is just a by-product of our journey toward success.
Rohit kumar

Rohit kumar

1 project • 8 followers
I am student of Electrical Engineering College - BTKIT Dwarahat, Uttarakhand India .

Comments