Β  IR SENSOR INTERFACE USING ARDUINOΒ 

 

 

πŸ”¦ IR SENSOR Interface with Arduino – Short Note

Overview:

An IR (Infrared) Sensor is an electronic device that detects objects or obstacles by emitting and receiving infrared light. It is commonly used in applications like object detection, line following robots, and proximity sensing.

βœ… How It Works

  • The sensor emits infrared light using an IR LED.

  • If an object is in front, the IR light reflects back and is detected by the photodiode.

  • Based on the amount of reflected IR light, the sensor outputs HIGH or LOW signal.

 

πŸ”ŒConnection:

  • VCC β†’ Arduino 5V

  • GND β†’ Arduino GND

  • OUT β†’ Arduino Digital pin (e.g., D8)

  • LED β†’ Arduino Digital pin (e.g., D13)

πŸ”Œ Circuit Diagram:

 

 

πŸ’‘ Basic Working Logic

  • Object Present β†’ Sensor OUT = LOW (0)

  • No Object β†’ Sensor OUT = HIGH (1)

πŸ“ Sample Arduino Code:

int sensorPin = 8; // IR sensor output pin
int ledPin = 13; // LED to indicate object detection

void setup() {
pinMode(sensorPin, INPUT);
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
}

void loop() {
int sensorValue = digitalRead(sensorPin);

if (sensorValue == LOW) {
digitalWrite(ledPin, HIGH);
Serial.println(“Object Detected”);
} else {
digitalWrite(ledPin, LOW);
Serial.println(“No Object”);
}

delay(1000); // Delay for readability
}

πŸ“Ÿ Arduino Use Case

When connected to Arduino, the IR sensor can be used to:

  • Detect obstacles

  • Count objects

  • Trigger events like turning on an LED or buzzer

 

πŸ“ž For More Details & Project Support:

 

Power Integrated Solutions
Networks | Electronics | Home Automation | Water Automation | IoT | PLC | Embedded | DBMS

πŸ“ Location:
10A/3, Radhakrishnan Colony,
Sasthri Road, Tennur,
Tiruchirappalli, Tamil Nadu – 620017


πŸ“ View on Google Maps

πŸ“§ Email:

πŸ“± Phone / WhatsApp:
+91 76393 85448
+91 82488 85959

🌐 Let’s Build the Future with Innovation in Education & Technology!