How to Interface With Adjustable Infrared Sensor

by mybotic in Circuits > Sensors

10909 Views, 14 Favorites, 0 Comments

How to Interface With Adjustable Infrared Sensor

adjustable ir sensor (top).jpg
adjustable ir sensor (back).jpg

This tutorial is gonna to teach you some basics on using Adjustable Infrared Sensor.

Introduction

Description:

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.

Specifications:

  • 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

Connections:

  • Red wire: +5V
  • Green wire: GND
  • Yellow wire: NPN output (Active Low)

or

  • Red wire:+5V
  • Black wire: GND
  • Green wire: NPN output (Active Low)

Pin Definition

pin definition 2.PNG
pin definition 1.PNG
functions of pins.PNG

Sample Hardware Installation

sample hardware installation.PNG

Sample Source Code

To get the result, please download the sample source code attached below and upload it into Arduino.

Real Life Result (1)

without obstacle.jpg

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.

Real Life Result (2)

with obstacle.jpg

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.

Video

Adjustable Infrared Sensor Interface With Arduino

This video shows how adjustable infrared sensor works with Arduino.