The E18-D80NK is an infrared (IR) proximity sensor designed to detect objects within a range of 3 to 80 cm. It utilizes an NPN transistor output, making it suitable for various applications in automation and robotics, such as object detection, obstacle avoidance, and presence sensing.
Parameter | Value |
---|---|
Operating Voltage | 5V to 36V DC |
Detection Range | 3 cm to 80 cm |
Output Type | NPN Normally Open (NO) |
Output Current | 300 mA (max) |
Response Time | < 2 ms |
Operating Temperature | -25°C to 55°C |
Dimensions | 18 mm (diameter) x 45 mm (length) |
Cable Length | 45 cm |
Pin | Color | Description |
---|---|---|
1 | Brown | Vcc (5V to 36V DC) |
2 | Blue | GND |
3 | Black | Output (NPN) |
- Brown wire to 5V (Arduino)
- Blue wire to GND (Arduino)
- Black wire to Digital Pin 2 (Arduino)
// Define the pin connected to the sensor's output
const int sensorPin = 2;
void setup() {
// Initialize the serial communication
Serial.begin(9600);
// Set the sensor pin as input
pinMode(sensorPin, INPUT);
}
void loop() {
// Read the sensor value
int sensorValue = digitalRead(sensorPin);
// Print the sensor value to the serial monitor
Serial.print("Sensor Value: ");
Serial.println(sensorValue);
// Add a small delay to avoid flooding the serial monitor
delay(100);
}
No Detection:
False Readings:
Intermittent Detection:
Q1: Can the sensor detect transparent objects?
Q2: What is the maximum detection range?
Q3: Can I use the sensor with a 3.3V microcontroller?
Q4: How do I adjust the detection range?
This documentation provides a comprehensive guide to using the E18-D80NK IR High Range NPN Optical Proximity Switch. Whether you are a beginner or an experienced user, following these instructions and best practices will help you effectively integrate this sensor into your projects.