Arduino IR Sensor

 


    Components

         1. Arduino Uno

         2. IR sensor

         3. LED

         4.Arduio cable

         5.Jumper wire




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.


අධෝරක්ත සංවේදකය යනු කුමක්ද? අධෝරක්ත සංවේදකය යනු ඉලෙක්ට්‍රොනික උපකරණයකි, එය වටපිටාවේ සමහර අංග දැනීම සඳහා විමෝචනය කරයි. IR සංවේදකයකට වස්තුවක තාපය මැනීමට මෙන්ම චලිතය හඳුනා ගැනීමට ද හැකිය. මෙම සංවේදක මගින් මනිනු ලබන්නේ නිෂ්ක්‍රීය IR සංවේදකයක් ලෙස හඳුන්වන විමෝචනය කරනවාට වඩා අධෝරක්ත කිරණ පමණි.


IR සංවේදකයකට මිනිසුන් හඳුනාගත හැකිද? උදාසීන අධෝරක්ත (PIR) සංවේදකය මිනිසාගේ පැවැත්ම හඳුනා ගැනීමට භාවිතා කරයි .... ග්‍රිඩ්-අයිඊ සංවේදකය මගින් මිනිස් සිරුරෙන් විකිරණය වන අධෝරක්ත කිරණ භාවිතා කරමින් මිනිසා හඳුනා ගනී. සෑම මිනිසෙකුම නිශ්චිත තරංග ආයාම පරාසයේ අධෝරක්ත ශක්තිය විකිරණය කරයි. අවශෝෂණය වූ සිද්ධි විකිරණය ද්‍රව්‍යයක උෂ්ණත්වය වෙනස් කරයි. 4.5 සිට 5.5 VDC අතර සැපයුම් වෝල්ටීයතාවයක් සහිත 150cm දී 15cm සිට 0.4V දක්වා 2.8V.

LedWhat 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.


LED යන්නෙන් ඔබ අදහස් කරන්නේ කුමක්ද? "ආලෝක විමෝචක දියෝඩ" යන්නෙන් අදහස් කෙරේ. LED යනු විද්‍යුත් උපාංගයක් වන අතර එය හරහා විද්‍යුත් ධාරාවක් ගමන් කරන විට ආලෝකය විමෝචනය වේ. මුල් LED වල රතු එළිය පමණක් නිපදවන නමුත් නවීන LED වලට රතු, කොළ සහ නිල් (RGB) ආලෝකය ඇතුළු විවිධ වර්ණ නිපදවිය හැකිය




Arduino Code


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

0 Comments