Skip to main content

Understanding Infrared Sensors

 




 we’ll be discussing the basics of infrared sensors, how they work, and their applications.

Chapter 1: Introduction to Infrared Sensors

·       What is an infrared sensor? An infrared (IR) sensor is an electronic device used to measure and detect infrared radiation in its surrounding environment An IR sensor can measure the heat of an object as well as detects the motion.

·       How does an infrared sensor work? An IR sensor can detect changes in the amount of infrared radiation impinging upon it, which varies depending on the temperature and surface characteristics of the objects in front of the sensor . These types of radiations are invisible to our eyes, which can be detected by an infrared sensor. The emitter is merely an infrared LED (Light Emitting Diode), and the detector is simply an infrared photodiode sensitive to infrared light of the same wavelength as the IR LED. When infrared light strikes a photodiode, IR source (transmitter) is used to emit radiation of required wavelength.

·       This radiation reaches the object and is reflected back.

·       The reflected radiation is detected by the IR receiver.

·       The IR Receiver detected radiation is then further processed based on its intensity. Generally, IR Receiver output is small and amplifiers are used to amplify the detected signal.

·       .

·       Types of infrared sensors There are two types of IR sensors: active and passive. Active IR sensors contain both a transmitter and receiver Examples of Active IR Sensor: Break Beam Sensor, Reflectance Sensor., while passive IR sensors only detect emitted IR radiation Example of Passive IR Sensor: Thermocouple-Thermopile, Bolometer, Pyro-Electric Detector.

The most common IR sensor has a 3-pin connector. The pin configuration is as follows:

VCC: Power Supply +5v

GND: Power Supply Ground

OUTPUT: Active High Output or 5V TTL logic output. In some IR sensors, there will be an analog output which will give you the voltage reading between 0 and 5 V

·        

Chapter 2: Infrared Radiation

·       What is infrared radiation? Infrared radiation - also known as infrared light - refers to electromagnetic radiation that has wavelengths longer than those of visible light ,  region of the electromagnetic radiation spectrum where wavelengths range from about 700 nanometers (nm) to 1 millimeter (mm).

·       Wavelength regions of the infrared spectrum The infrared spectrum is categorized into three regions based on its wavelength: Near Infrared, Mid Infrared, and Far Infrared .

·       Infrared radiation laws Infrared sensors work on three fundamental physics laws: Planck’s Radiation Law, Stephan Boltzmann Law, and Wein’s Displacement Law .

Chapter 3: Infrared Detection System

·       Key elements of an infrared detection system The key elements of an infrared detection system are the IR transmitter, transmission medium, and IR receiver .

·       IR transmitter The IR transmitter acts as a source for IR radiation .

·       Transmission medium The transmission medium provides a passage for the radiation to reach from the IR transmitter to the IR receiver .

·       IR receiver The IR receiver detects the emitted or reflected IR radiation from objects .

 

Chapter 4: Applications of Infrared Sensors

·       Security alarms IR sensors are commonly used in security alarms to detect motion or movement .

·       Automatic lighting IR sensors can also be used in automatic lighting systems to turn lights on or off based on motion detection .

·       Motion detection IR sensors can be used in motion detection systems to detect general movement, but do not give information on who or what moved .

Chapter 5 Code:


void setup()

{

  pinMode(13,INPUT);

  Serial.begin(9600);

}

void loop()

{

  if (digitalRead(13)== LOW)

  {

    Serial.println("high");   

    delay(10);

  }

  else 

  {

    

       Serial.println("low");   

    delay(10);

    

  }

  

}

Chapter 6 explanation:

This code is written in the Arduino programming language and is used to control an Arduino microcontroller. The code consists of two main functions: setup() and loop().

The setup() function is called once when the program starts. In this function, the code sets the pin mode of pin 13 to INPUT using the pinMode() function. This means that pin 13 is configured to read input signals. The Serial.begin(9600) function is also called in the setup() function, which initializes serial communication at a baud rate of 9600.

The loop() function is called repeatedly in an infinite loop. In this function, the code checks the state of pin 13 using the digitalRead() function. If the state of pin 13 is LOW, the code prints “high” to the serial monitor using the Serial.println() function and then waits for 10 milliseconds using the delay() function. If the state of pin 13 is not LOW, the code prints “low” to the serial monitor and then waits for 10 milliseconds.

In summary, this code reads the state of pin 13 and prints “high” or “low” to the serial monitor depending on whether the state of pin 13 is LOW or not. The code also includes a delay of 10 milliseconds between each iteration of the loop to prevent rapid switching between states. This can be useful for debugging or monitoring the state of a digital input pin on an Arduino microcontroller.

Comments

Popular posts from this blog

Thevenin’s Theorem: A Beginner’s Guide

                                        table of content  Introduction History of Thevenin’s theorem Basic circuit analysis concepts Voltage, current, and resistance Ohm’s law Thevenin’s theorem: principles and applications Statement of the theorem Finding the Thevenin equivalent circuit What is Thevenin’s theorem? When should you use Thevenin’s theorem? How do you apply Thevenin’s theorem to a circuit Conclusion . Introduction Electrical engineers can effectively convert complicated circuits into smaller equivalent circuits by using Thevenin's theorem. The French telegraph engineer Léon Charles Thévenin is honored by having his theorem called in his honor. He proposed it in 1883. History of Thevenin’s theorem Hermann von Helmholtz, a German scientist, independently derived Thevenin's theorem in 1853; Léon Charles Thévenin did ...

WHAT IS WEBSCRAPING IN PYTHON

  Web scraping is a technique that allows you to extract data from websites and store it in a format of your choice. It can be useful for various purposes, such as market research, price comparison, content analysis, and more. In this blog post, i will show you everything a beginner needs to know about web scraping, from the basics to some advanced tips and tricks.   What is web scraping?   Web scraping is the process of programmatically retrieving information from web pages. It involves sending requests to web servers, parsing the html code of the web pages, and extracting the data you want. Web scraping can be done manually, by copying and pasting data from a website, or automatically, by using a software tool or a programming language.   Why web scrape?   Web scraping can help you access data that is not available through an api or a downloadable file. For example, you may want to scrape product reviews from an e-commerce website, or news ...

Study Linear Regression: A Beginner’s Guide with c++

Table of content: • Introduction • What is Linear Regression? • Simple vs. Multiple Linear Regression • Implementing Linear Regression in C++ • Complex Linear Regression • Conclusion • References Understanding Linear Regression: A Beginner’s Guide Linear regression is a powerful statistical tool that allows us to understand the relationship between two or more variables. It is widely used in many fields, including finance, economics, and engineering, to make predictions and analyze data. In this article, we will explore the basics of linear regression, including what it is, how it works, and how to implement it in C++. We will also discuss the differences between simple and multiple linear regression and provide examples to help you understand these concepts. What is Linear Regression? At its core, linear regression is a method for finding the line of best fit that describes the relationship between two continuous variables. This line can be used to make predictions about o...