กลับไปหน้ารวมไฟล์
obstacle-detection-using-ir-sensor-905c87.md

Here is a simple project of an IR sensor using LM324 IC. The purpose of this circuit is to provide a visual indication by activating an LED whenever an object is placed in front of the IR LED and the photodiode. This circuit is really simple and is only using a few components like a battery, an IR LED, photodiode, LM324 op-amp IC, LED, and some discrete components. IR or infrared sensors are used in a lot of electronic devices nowadays like TV, DVD, and many other appliances.


🛠️ เจาะลึกเบื้องหลังการทำงาน (Deep Dive / Technical Analysis)

The IR Obstacle Sensor is the workhorse of industrial automation and DIY robotics. Unlike ultrasonic sensors that measure exact distances, IR sensors provide a blazing fast binary "Yes/No" response to whether an object is in front of them.

How Infrared Works

The sensor module has two main components:

  1. The Emitter: A clear LED that constantly blasts invisible Infrared light forward.
  2. The Receiver: A black photodiode.
  3. The Bounce: If there is no object, the light travels forward and dissipates. If an object is present, the IR light bounces off the object and hits the black receiver.
  4. The Output: An onboard LM393 chip immediately flips a digital pin LOW to alert the Arduino.

Necessary Parts

  • Arduino Uno/Nano: To read the digital output.
  • KY-032 / IR Obstacle Sensor Module: The detection unit.
  • LED or Buzzer: For immediate verification that an object was seen.

Limitations and Uses

IR sensors are heavily dependent on color. They easily detect white (reflective) objects up to 10cm away but will completely fail to detect "Vantablack" or very dark, matte objects because the light is absorbed. This exact principle is used in "Line Follower" robots to differentiate between the white floor and the black tape!

ข้อมูล Frontmatter ดั้งเดิม

title: "Obstacle Detection Using IR Sensor"
description: "IR sensor is used to detect objects. When an object is near the sensor, and led turns ON."
author: "hrsajjad844"
category: ""
tags:
  - "ir-sensor"
  - "led"
  - "obstacle-detector"
views: 15101
likes: 2
price: 1499
difficulty: "Intermediate"
components:
  - "1x IR Transceiver (Generic)"
  - "1x 5 mm LED: Red"
  - "1x Capacitor 100 µF"
  - "1x Arduino UNO"
  - "1x Jumper wires (generic)"
tools: []
apps: []
downloadableFiles:
  - "https://projects.arduinocontent.cc/aa5f3fb9-a486-40bd-a568-c70d6fbed814.ino"
documentationLinks: []
passwordHash: "fa7cfbb0e30ac6f842c7051077d2a3684c81eb88d1595ef270c80e8079b90985"
encryptedPayload: "U2FsdGVkX1/4NrTh30fn1czLVZvPRo3ollowJU6MhcTwdBEtOaybtmiUj2jJojC0MCFP6ERcaP6xa2JTc0yTNOeUekqMVxSKdHsM17vvtmnhOExoAE4t85m/NPs1YTEUFG5Sf+NX0suhNgwO3+byCodho0X8pzVoW/odhB3e/SU="
seoDescription: "Learn how to build Obstacle Detection using an IR Sensor. The LED turns on when an object is detected. Simple Arduino project for beginners."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/obstacle-detection-using-ir-sensor-905c87_cover.jpg"
lang: "en"