The Laser Beam Photoelectric Sensor is a device that uses a laser beam to detect the presence or absence of an object by measuring the interruption or reflection of the beam. This sensor is highly precise and can be used in various applications, including industrial automation, security systems, and object detection in robotics.
Parameter | Value |
---|---|
Operating Voltage | 5V - 24V DC |
Operating Current | ≤ 30mA |
Detection Range | 0.1m - 10m |
Response Time | ≤ 1ms |
Output Type | NPN/PNP, NO/NC |
Laser Wavelength | 650nm (Red) |
Operating Temperature | -10°C to 50°C |
Dimensions | 50mm x 25mm x 15mm |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (5V - 24V DC) |
2 | GND | Ground |
3 | OUT | Output signal (NPN/PNP, NO/NC) |
/*
Laser Beam Photoelectric Sensor Example
This code demonstrates how to use the laser beam photoelectric sensor
with an Arduino UNO to detect the presence of an object.
*/
const int sensorPin = 2; // Pin connected to the sensor's OUT pin
const int ledPin = 13; // Pin connected to an LED for indication
void setup() {
pinMode(sensorPin, INPUT); // Set sensor pin as input
pinMode(ledPin, OUTPUT); // Set LED pin as output
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int sensorValue = digitalRead(sensorPin); // Read the sensor value
if (sensorValue == HIGH) {
// Object detected
digitalWrite(ledPin, HIGH); // Turn on the LED
Serial.println("Object detected!");
} else {
// No object detected
digitalWrite(ledPin, LOW); // Turn off the LED
Serial.println("No object detected.");
}
delay(100); // Small delay to avoid serial flooding
}
False Detections:
No Detection:
Intermittent Operation:
By following this documentation, users can effectively integrate and utilize the Laser Beam Photoelectric Sensor in their projects, ensuring accurate and reliable object detection.