How to Use Infrared (IR) Sensors – Tutorials

In this article, I go further in the series of articles that explore sensor types used in robotic applications. In another article, I made an overview of infrared sensors while now the main topic is to help users to learn how to interface and programming infrared sensors for different applications like color detection, line following, or distance calculation.

The principle of operation of an infrared sensor is based on infrared light that is reflected when hitting an obstacle. An IR receiver captures the reflected light and the voltage are measured based on the amount of light received.

Infrared sensors are used in a wide range of applications including here proximity robotic applications for distance and object detection, or color detection and tracking.

Infrared Proximity Sensor Long Range

Infrared Proximity Sensor Long Range

As a disadvantage, I have to mention that IR sensors have bad performance in strong sunlight and many applications where this type of sensor is used are designed for indoor use. As an advantage, I can include here the low prices of these sensors.

In the following tutorials can be seen how different IR sensors are used for different applications. For example, when an infrared sensor is used for object detection users have to take account of the minimum and maximum range of the sensor used.


Tutorials and how to articles with electronic schemes for interfacing and programming infrared sensors.
In this section of the article a series of tutorials that shows electronic schemes how to interface the IR sensors with different electronic boards, and up to programming in order to read the sensor signals.

5 comments » Write a comment

  1. Hi George, I m Candice from Singapore. I read about your article in infrared sensors. Do you think it is possible to make a infrared sensors that can detect blood flow in the brain.

    Please advice .


    • Hi Candice,

      An IR sensor is used in a wide range of applications as a liquid level sensor, but in this applications the sensor stand above the liquid surface. Since the brain is covered by the skull, I’m pessimistic regarding the detection of the blood flow.

      • Is it possible to detect blood flow on arms using infrared sensors? Please provide a tutorial or something if it is possible.


Leave a Reply