soicalwork12
Published

Laser security system

This project also related to security. It is also Great project you can make easily

IntermediateFull instructions provided4,234
Laser security system

Things used in this project

Story

Read more

Schematics

Circuit

Very to make ,But you will face some Difficulty when you do setup at large level

Code

COde

Arduino
int sensorPin = A5;    
int sensorValue = 0;  
int thresholdValue = 500; 
#define BUZ 3; 
#define LIGHT 10;
void setup() {
Serial.begin(9600); 
pinMode(3,OUTPUT); 
pinMode(10,OUTPUT);  
}
void loop() {
digitalWrite(10,HIGH); 
delay(100);
digitalWrite(10,LOW); 
sensorValue = analogRead(sensorPin);
if(sensorValue < thresholdValue){   
Serial.println(1); 
digitalWrite(10,LOW);
digitalWrite(11,LOW);  
delay(100000);                
}
else if(sensorValue > thresholdValue){   
Serial.println(0); 
digitalWrite(10,HIGH);
digitalWrite(11,HIGH);
}
delay(40);                        
}

Credits

soicalwork12

soicalwork12

0 projects • 2 followers

Comments