Thanks for Visiting here

Laser sensor Project😋
in this Project we will make very useful project which is security alarm system this project is widely use for secure any expensive item like jewelry and so on.
Laser sensor project |
How this project work :
if we look this project works then we obserb that it is two parts first is laser and second part is Laser sensor(which is sens laser light is coming or not) after sens laser ray laser sensor gives some data like high or low then we can use this data any perform various type of command by arduino board
Before starting to make this project first look of project;
I hope you like this project if you like please mention in comment section I like this project
Last start:
Components required
1. arduino board
2. Laser
3. Laser sensor
4. Buzzer
Last move to the Wiring part
Laser Wiring
Laser | ARDUINO |
- | GND |
+5v | +5v |
s | 3 |
Laser sensor wiring
Laser Sensor | Arduino |
GND | GND |
+5v | +5v |
s | 2 |
Buzzer Wiring
GND-GND
POWER-4
After completing Wiring Do coding
int LaserSensor = 2;
int SensorReading = HIGH; // HIGH MEANS NO OBSTACLE
int Laser = 3;
int buzz = 4;
void setup() {
Serial.begin(9600);
pinMode(Laser, OUTPUT);
pinMode(LaserSensor, INPUT);
pinMode(buzz,OUTPUT);
}
void loop() {
digitalWrite(Laser, HIGH);
delay(200);
SensorReading = digitalRead(LaserSensor);
if (SensorReading == LOW)
{
digitalWrite(buzz,LOW);
}
else
{
digitalWrite(buzz,HIGH);
}
}
Thanks for visiting here💘
stay safe keep learning
Thanks for comment