Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Manufacturing process

Build an IR Sensor Project with Arduino UNO – Simple Guide

Components and supplies

Build an IR Sensor Project with Arduino UNO – Simple Guide
Arduino UNO
×1
Build an IR Sensor Project with Arduino UNO – Simple Guide
Proximity Sensor
×1
Build an IR Sensor Project with Arduino UNO – Simple Guide
Jumper wires (generic)
×1

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

Build an IR Sensor Project with Arduino UNO – Simple Guide

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

Build an IR Sensor Project with Arduino UNO – Simple Guide
Build an IR Sensor Project with Arduino UNO – Simple Guide

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.

Build an IR Sensor Project with Arduino UNO – Simple Guide

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.


Code

  • 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
  }
  
}

Manufacturing process

  1. K30 CO2 Sensor: Real‑Time Indoor Air Quality Monitoring
  2. Build a Simple Obstacle Sensor with Arduino – Easy IR LED & Photodiode Tutorial
  3. Integrating a DFRobot Capacitive Fingerprint Sensor with Arduino or ESP8266
  4. Build a Sensor Tower with Arduino Cloud: Temperature, Motion & Gas Monitoring
  5. Compact Arduino Radar System with HC‑SR04 Ultrasonic Sensor & 1.8" Display
  6. Arduino Nano Fingerprint Sensor Project – Step‑by‑Step Tutorial
  7. Build an Ultrasonic Range Detector Using Arduino UNO and SR04 Sensor
  8. Arduino‑Powered HID UPS: Upgrade Your Dummy Power Supply to USB‑Compatible Backup
  9. Real-Time Soil Moisture Monitoring with LCD Display – Arduino DIY Kit
  10. SmartAgro: Advanced IoT Solutions for Precision Farming