The E18-D80NK is an adjustable Infrared Proximity Sensor designed for contactless object detection. This sensor is widely used in robotics, automation lines, and various DIY projects due to its non-contact detection capabilities. It operates by emitting infrared light and detecting the reflection from nearby objects to determine their presence within a certain range.
Pin Number | Description | Notes |
---|---|---|
1 | VCC | Connect to 5V power supply |
2 | GND | Connect to ground |
3 | Digital Output | Outputs HIGH or LOW signal |
// Define the digital input pin where the sensor is connected
const int proximitySensorPin = 7;
void setup() {
// Initialize the proximitySensorPin as an input
pinMode(proximitySensorPin, INPUT);
Serial.begin(9600); // Start serial communication at 9600 baud rate
}
void loop() {
// Read the state of the proximity sensor
int sensorState = digitalRead(proximitySensorPin);
// Check if the sensor is detecting an object
if (sensorState == HIGH) {
Serial.println("Object Detected");
} else {
Serial.println("No Object Detected");
}
// Wait for 100 milliseconds before reading again
delay(100);
}
Q: Can the E18-D80NK sensor detect any material? A: The sensor is generally capable of detecting any object that reflects infrared light, but its effectiveness may vary with the object's surface and color.
Q: Is it possible to use multiple E18-D80NK sensors in one system? A: Yes, multiple sensors can be used, but ensure they are spaced adequately to prevent cross-talk and interference.
Q: How do I adjust the detection range of the sensor? A: Turn the onboard potentiometer clockwise to increase the range and counterclockwise to decrease it.
Q: What is the maximum detection range of the E18-D80NK sensor? A: The maximum specified range is 80 cm, but optimal performance is often found at shorter distances.
For further assistance or inquiries, please contact the manufacturer or your local distributor.