IR Proximity Sensor-Robocraze
IR Proximity Sensor-Robocraze
IR Proximity Sensor-Robocraze
IR Proximity Sensor-Robocraze
s

Robocraze BEST PRICE GUARANTEED

IR (Infrared) Obstacle Avoidance Sensor Module - Buy Online in India

IR (Infrared) Obstacle Avoidance Sensor Module

Rs. 26
Rs. 34
Rs. 26
Save Rs. 8
Incl. GST (No Hidden Charges) Found a better price?
Please hurry! Only 4793 left in stock
SKU: TIFSS0154
  • Detects objects within a range of 2cm to 30cm
  • Easy to set up and use for all skill levels
  • Onboard indicator shows when obstacles are detected
  • Adjustable range with a preset knob for precision
  • Ideal for IoT projects like smart homes and security systems
BEST COUPON
RC100
COPY CODE
When you shop for ₹ 2,500 required. Applicable at Checkout.
*Coupons are not applicable on Original Boards and Kits

Free shipping on Orders Above Rs 499/-

Technical Support & Easy Returns

Same Day Shipping

Earn RC Coins on Every Purchase

Cash on Delivery Available

Robocraze Academy Limited Time Offer Robocraze Academy Limited Time Offer
IR Proximity Sensor-Robocraze
IR (Infrared) Obstacle Avoidance Sensor Module
Rs. 34 Rs. 26

IR (Infrared) Obstacle Avoidance Sensor Module

Rs. 34 Rs. 26

IR Proximity Sensor

The IR Proximity Sensor has a distance range of 2cm to 30cm and it is ideal for obstacle detection, line tracking, and more.

It is designed for easy setup and has onboard detection indication to verify its status. A preset knob allows you to fine-tune the distance range for more accurate readings.

This IR Sensor is best for IoT projects, such as creating automatic sanitizer dispensers and home automation systems.

This infrared sensor is suitable for various applications in industrial, automotive, and consumer electronics settings. This sensor offers unbeatable value for money while ensuring optimal accuracy and efficiency in all your projects.

The detection range of the infrared proximity sensor can be adjusted by the potentiometer.

 

Read our blog proximity sensor working principle.

Enjoy our free shipping on orders above Rs 500/- within India.

Features:

  • Easy to assemble and use
  • Onboard detection indication
  • The effective distance range of 2cm to 30cm
  • A preset knob to fine-tune distance range
  • If there is an obstacle, the indicator lights on the circuit board.

Infrared Sensor Applications:

  • IP cameras
  • Alarm systems and other crime prevention devices
  • Battery-driven human presence sensors for IoT smart homes
  • IR sensors are also used in IR imaging devices, optical power meters, sorting devices, remote sensing, flame monitors, moisture analyzers, night vision devices, infrared astronomy, etc.

Infrared Sensor Diagram:

IR Proximity Sensor Circuit Diagram

The IR proximity sensor circuit diagram consists of the following components:

  • LM358 IC
  • Resistors in the kilo-ohm range
  • 2 pairs of IR transmitter and receiver
  • LED
  • Variable resistors

IR sensor pinout

IR Proximity Sensor Interfacing with Arduino - Wiring & Code Guide

IR Proximity Sensor Interfacing with Arduino Circuit Diagram

Wiring Guide

  • Connect the sensor’s VCC pin to the Arduino’s +5 V supply (or 3.3 V if your module supports it).
  • Connect the sensor’s GND pin to the Arduino’s ground (GND).
  • Connect the sensor’s OUT pin (digital output) to one of the Arduino digital input pins, e.g., D2.
  • Ensure the sensor has a common ground with the Arduino to avoid erratic behaviour.
  • Optionally: adjust the onboard potentiometer to set the detection distance (typically 2‑30 cm).

Arduino Code Example – Basic Detection

const int sensorPin = 2;      // sensor output pin
void setup() {
  Serial.begin(9600);
  pinMode(sensorPin, INPUT);
  Serial.println("IR Obstacle Sensor Test");
}
void loop() {
  int val = digitalRead(sensorPin);
  if (val == LOW) {
    Serial.println("Obstacle detected!");
  }
  else {
    Serial.println("Clear");
  }
  delay(500);
}

Arduino Code Example – LED Indicator

const int sensorPin = 2;      
const int ledPin    = 13;     // onboard LED on many Arduino boards

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

void loop() {
  int state = digitalRead(sensorPin);
  if (state == LOW) {
    digitalWrite(ledPin, HIGH);
    Serial.println("Obstacle!");
  } else {
    digitalWrite(ledPin, LOW);
    Serial.println("All clear");
  }
  delay(300);
}

Tips & Notes

  • The sensor output usually goes **LOW** when an obstacle is detected (and HIGH when clear) on typical modules.
  • Dark or non‑reflective surfaces may not trigger the sensor as reliably — aim for reflective surfaces for best results.
  • Adjust the onboard sensitivity potentiometer if detection is too close or too far.
  • Keep wiring short and solid to avoid noise; use shielded or twisted wires if needed in noisy environments.
  • If using the sensor in analogue mode (if applicable) you may read the analog output via A0 and use thresholds in code instead of simple HIGH/LOW.

IR vs Ultrasonic Sensors – Comparison

Feature IR Proximity Sensor Ultrasonic Sensor
Detection Method Emits infrared light and measures reflection from nearby objects. Emits ultrasonic sound waves and measures time-of-flight to calculate distance.
Typical Range 2–30 cm (depends on module and potentiometer setting) 2 cm–4–5 m (depending on module like HC-SR04)
Accuracy Good for short distances, less accurate with dark/transparent surfaces. Moderate to high accuracy over longer distances, generally unaffected by color.
Surface Sensitivity Reflectivity matters; black/dark or transparent surfaces may be poorly detected. Works with almost any surface type; sound reflects reliably from most objects.
Response Speed Fast response, good for obstacle avoidance in robots at short range. Slower than IR; small delay due to sound travel, but good for medium distances.
Cost & Size Low cost, very compact, easy to integrate. Moderate cost, slightly larger, requires both transmitter and receiver elements.
Environment Limitations Sunlight or strong ambient IR light can interfere; close proximity required. Can be affected by soft materials (fabric, foam), or air turbulence; generally works well outdoors.
Best Use Case Short-range obstacle detection, line following, touchless buttons. Distance measurement, medium-range obstacle avoidance, level detection, robotics.

IR Proximity Sensor – Troubleshooting Tips

  • False Triggering: If the sensor triggers without any object present, check for reflective surfaces nearby. Highly reflective objects (mirrors, shiny metals) can cause false readings.
  • Sunlight Interference: Direct sunlight or strong IR sources may cause the sensor to behave erratically. Try shielding the sensor or repositioning it away from direct sunlight.
  • Wiring & Connections: Loose or long wires can introduce noise. Ensure solid, short connections between sensor and Arduino, and use proper grounding.
  • Adjust Sensitivity: Many IR modules have a potentiometer to adjust detection distance. Turn it carefully to reduce false triggers.
  • Surface Color & Material: Dark or transparent objects may not reflect IR well. Test with different materials if detection seems inconsistent.
  • Environment Check: Avoid placing the sensor near other IR emitters (remote controls, heaters) that may interfere with readings.
  • Power Supply Stability: Ensure a stable 5 V supply. Voltage fluctuations can cause inconsistent sensor behavior.

Package Includes:

  • 1 x IR Proximity Sensor

Specifications

Specification Details
Main Chip LM393
Operating Voltage 3.3 ~ 5 VDC
Distance Measuring Range 8 cm
Dimensions 48 x 14 x 8 mm
Weight 15 grams

1. How do I use an IR obstacle avoiding sensor with Arduino?

To use this IR obstacle avoiding sensor, connect its VCC, GND, and OUT pins to your Arduino. The Arduino serves as the microcontroller for your robot, reading the sensor's digital output. Your code can then use this signal to detect obstacles and trigger an avoidance maneuver.

2. How do I test an IR obstacle avoidance sensor module?

The simplest way to test your IR obstacle avoidance sensor module is to power it and wave an object in front to see if the onboard LED lights up. For a more definitive test, connect the IR module's output to a microcontroller and monitor the digital signal to confirm it is working correctly.

3. How can I make an obstacle avoidance sensor?

This IR module serves as the core component for creating your own DIY obstacle sensor. By connecting it to a microcontroller and writing a few lines of code to read its output, you create a complete obstacle avoidance sensor. It is then ready to be integrated into any project needing object detection.

4. How do I make an obstacle avoiding robot using a proximity sensor?

To build an obstacle avoiding robot, start by mounting this IR sensor on the front of its chassis. Connect the sensor's output to a digital input on your microcontroller. The code you write will read this proximity sensor's state and command the robot's motors to turn when an obstacle is detected.

5. How can I test my IR sensor for obstacle avoidance?

To test your IR sensor, connect it to a power source and a microcontroller. The best way to verify its function for obstacle avoidance is to monitor its digital output while placing an object at various distances. This confirms the IR module is reliably triggering when an object is within its detection range.

6. How can I combine ultrasonic and IR sensors for an obstacle avoiding robot?

For more robust navigation, you can combine ultrasonic and IR sensors. Connect both to your microcontroller, using the ultrasonic sensor for long-range detection and the IR sensor for close-range precision. This dual-sensor approach provides a more advanced collision avoidance system for your robot.

7. How do I make a robot using an ultrasonic sensor with IR for obstacle detection?

To build a robot with an ultrasonic sensor with IR, mount both sensors on its chassis to cover different angles and ranges. Wire both sensors' outputs to separate digital pins on your microcontroller. Your code can then process the inputs from both to create a more reliable obstacle avoidance system.

Shipping Policy

  • All orders confirmed before 3:00 PM IST are shipped the same day, barring rare pickup delays on holidays or disturbances.
  • Delivery time in Metro cities is 1–3 days; for other locations, it is 3–7 days. Delivery varies based on location and courier service.

Return & Refund Policy

  • Return window: 7 days from receipt unless stated otherwise.
  • No refunds or replacements after the return window.
  • Returns are accepted only for non-working or damaged products.
  • Initiate return requests via a Support ticket or contact us at +91-8123057137.
  • Refunds are processed within 3–4 working days after inspection and approval.

You May Also Like

Recently Viewed Products