Project tutorial
Arduino with IR Sensor

Arduino with IR Sensor © Apache-2.0

How to interface an IR sensor with an Arduino Uno.

  • 225,347 views
  • 16 comments
  • 48 respects

Components and supplies

About this project

Hello, friends! Today I will show you how to interface an IR sensor with an Arduino UNO. So let's start!


Components

1. Arduino Uno

2. IR sensor

3. LED

4.Arduio cable

5.Jumper wire

What is the Arduino Uno used for? Arduino is an open-source electronics platform based on easy-to-use hardware and software. Arduino boards are able to read inputs - light on a sensor, a finger on a button, or a Twitter message - and turn it

What is an infrared sensor? An infrared sensor is an electronic device, that emits in order to sense some aspects of the surroundings. An IR sensor can measure the heat of an object as well as detects the motion.These types of sensors measures only infrared radiation, rather than emitting it that is called as a passive IR sensor.

Can an IR sensor detect humans? The Passive Infrared (PIR) sensor is used to detect the presence of human.... The Grid-EYE sensor detects the human using the infrared radiation radiated by the human body. Every human radiates the infrared energy of specific wavelength range. The absorbed incident radiation changes the temperature of a material.IR sensors? 2.8V at 15cm to 0.4V at 150cm with a supply voltage between 4.5 and 5.5 VDC.

What do you mean by LED? Stands for "Light-Emitting Diode." An LED is an electronic device that emits light when an electrical current ispassed through it. Early LEDs produced only red light, but modern LEDs can produce several different colors, including red, green, and blue (RGB) light.

Please Subscribe My Channel


Code

CodeArduino
int IRSensor = 2; // connect ir sensor to arduino pin 2
int LED = 13; // conect Led to arduino pin 13



void setup() 
{



  pinMode (IRSensor, INPUT); // sensor pin INPUT
  pinMode (LED, OUTPUT); // Led pin OUTPUT
}

void loop()
{
  int statusSensor = digitalRead (IRSensor);
  
  if (statusSensor == 1)
    digitalWrite(LED, LOW); // LED LOW
  }
  
  else
  {
    digitalWrite(LED, HIGH); // LED High
  }
  
}

Comments

Similar projects you might like

How to Make an IR Sensor

Project tutorial by Manikant savadatti

  • 27,450 views
  • 0 comments
  • 22 respects

DIY IR Remote and IR Remote controlled LEDs

Project tutorial by Rucksikaa Raajkumar

  • 3,196 views
  • 0 comments
  • 7 respects

Arduino-Based Automatic Water Tap Using IR Sensor

Project tutorial by Creatjet3D R&D Team

  • 25,051 views
  • 8 comments
  • 29 respects

Using IR Sensor (TCRT 5000) With Arduino

Project tutorial by abhilash_patel

  • 9,477 views
  • 0 comments
  • 1 respect

Automatic Gate opener using arduino and IR Sensor

Project tutorial by hrbhadrappa

  • 5,647 views
  • 0 comments
  • 0 respects

Interfacing IR temperature sensor with Arduino UNO

Project tutorial by engineeringuofs

  • 4,246 views
  • 3 comments
  • 5 respects
Add projectSign up / Login