Wish List 0

Infrared Obstacle Avoidance Ir Sensor Module

Rs. 23.00 Rs. 27.00

-Infrared Obstacle Avoidance IR Sensor Module (Active Low) has a pair of infrared transmitting and receiving tubes.
-When the transmitted mild waves are contemplated again, the reflected IR waves might be obtained by using the receiver tube.
-The onboard comparator circuitry does the processing and the green indicator LED comes to life.
-To recognize sensor operating click on here

-The module functions a three cord interface with Vcc, GND and an OUTPUT pin on its tail.
-It works first-rate with three.3 to 5V stages.
-Upon difficulty/reflectance, the output pin offers out a digital signal (a low-stage sign).
-The onboard preset helps to great-music the variety of operation, the powerful distance range is 2cm to 80cm.

Features:
1. Easy to assemble and use
2. Onboard detection indication
3. The effective distance range of 2cm to 80cm
4. A preset knob to fine-tune distance range
5. If there is an obstacle, the indicator lights on the circuit board.


SPECIFICATIONS:

-Easy to assemble and use

-Onboard detection indication

-The effective distance range of 2cm to 80cm

-A preset knob to fine-tune distance range

-If there is an obstacle, the indicator lights on the circuit board.

OVERVIEW:

-Detection distance: 2 ~ 30cm

-Detection angle: 35 °

-Comparator chip: LM393

-3mm screw holes for easy mounting

PACKAGE INCLUDES:

1 PCS x Infrared Obstacle Avoidance Ir Sensor Module


//SOURCE CODE TAKEN FROM BELOW LINK

//https://www.codeproject.com/articles/1109511/ir-obstacle-sensor-with-arduino

int LED = 13; // Use the onboard Uno LED

int obstaclePin = 7;  // This is our input pin

int hasObstacle = HIGH;  // HIGH MEANS NO OBSTACLE


void setup() {

  pinMode(LED, OUTPUT);

  pinMode(obstaclePin, INPUT);

  Serial.begin(9600);  

}

void loop() {

  hasObstacle = digitalRead(obstaclePin); //Reads the output of the obstacle sensor from the 7th PIN of the Digital section of the arduino

  if (hasObstacle == LOW) //LOW means something is ahead, so illuminates the 13th Port connected LED

  {

    Serial.println("Stop something is ahead!!");

    digitalWrite(LED, HIGH);//Illuminates the 13th Port LED

  }

  else

  {

    Serial.println("Path is clear");

    digitalWrite(LED, LOW);

  }

  delay(200);

}

15 days

Write a review

Please login or register to review