Introduction: How to Interface With Adjustable Infrared Sensor
This tutorial is gonna to teach you some basics on using Adjustable Infrared Sensor.
Step 1: Introduction
Another great infrared sensor. This infrared sensor can be powered with 5V and detection distance can be adjust from 3cm to 80cm. NPN output. It can be used at automation machine, mobile robot for obstacle detecting. it is a non contact detection.
The implementations of modulated IR signal immune the sensor to the interference caused by the normal light of a light bulb or the sun light.
- Diffuse reflective type
- Light source: Infrared
- Sensing range: 3cm to 80cm (depends on obstacle surface)
- Input voltage: 5VDC
- Current consumption: 100mA
- NPN output.
- Dimension: 1.7cm (D) x 4.3cm (L)
- Cable length: 4.5cm
- Red wire: +5V
- Green wire: GND
- Yellow wire: NPN output (Active Low)
- Red wire:+5V
- Black wire: GND
- Green wire: NPN output (Active Low)
Step 2: Pin Definition
Step 3: Sample Hardware Installation
Step 4: Sample Source Code
To get the result, please download the sample source code attached below and upload it into Arduino.
Step 5: Real Life Result (1)
The picture above shows the conditions of LEDs when there is no obstacle detected in the sensing range. In this picture, it shows that green led lights up while red led does not.
Step 6: Real Life Result (2)
The above picture shows the conditions of LEDs when an obstacle is being detected in the sensing range. Due to the detection of obstacle, this time, green led does not light up while red led lights up.
Step 7: Video
This video shows how adjustable infrared sensor works with Arduino.
We have a be nice policy.
Please be positive and constructive.