In this illustration we will going to wire the Infrared distance switch, a high-sensitive photoreflector to detect distance function, ranging from 3cm to 80cm. When the infrared emitted by the emitter it will get reflected on a surface blocked it then the phototransistor will pick up the signal for a distance calculation. This device has integrated with potentiometer to adjust the range for easy and clear to use. Best usage on this device is for robotics, interactive media, industrial and automotive, etc.
As you can see the diagram above the technology behind this effective distance sensor is the modulation from the infrared light, the receiver functionality is sense only if infrared light and only when it receives the correct signal. Therefore it is not very sensitive to ambient light compared to normal infrared detectors. Below are the wiring diagram for testing and how to use this device with Arduino MCU.
Device Characteristics
- Power Supply: 5VDC
- Supply current DC <25mA
- Maximum load current 100mA (Open-collector NPN pulldown output)
- Response time <2ms
- Diameter: 17MM
- Pointing angle: ≤ 15 °, effective from 3-80CM Adjustable
- Detection of objects: transparent or opaque
- Working environment temperature: -25℃+55℃
- Case Material: Plastic
- Lead Length: 45CM
Required Components
Arduino UNO/MEGA/MINI
E18-D80NK Infrared Distance Ranging Sensor
Solder-less Bread Board
Jumper Wire / DuPont Wire
Arduino Sketch Code
[crayon-679c353edb2cb282647835/]