IR Infrared 2 - 20cm Obstacle Detaction Sensor Module FC-51

  • Was  RM8.00 
  • RM4.00

  • Product Code: fc-51
  • Availability: In Stock

The basic concept of IR(infrared) obstacle detection is to transmit the IR signal(radiation) in a direction and  a signal is received  at the IR receiver when the IR radiation bounces back from a surface of the object.

 

Features:

  • There is an obstacle, the green indicator light on the circuit board
  • Digital output signal
  • Detection distance: 2 ~ 20cm
  • Detection angle: 35 ° Degree
  • Comparator chip: LM393
  • Adjustable detection distance range via potentiometer:
    • Clockwise: Increase detection distance
    • Counter-clockwise: Reduce detection distance

 

Specifications:

  • Working voltage: 3 - 5V DC
  • Output type: Digital switching output (0 and 1)
  • 3mm screw holes for easy mounting
  • Board size: 3.2 x 1.4cm

 

Pin, Control Indicator Description
Vcc 3.3 to 5 Vdc Supply Input
Gnd Ground Input
Out Output that goes low when obstacle is in range
Power LED Illuminates when power is applied
Obstacle LED Illuminates when obstacle is detected
Distance Adjust Adjust detection distance. CCW decreases distance.
CW increases distance.
IR Emitter Infrared emitter LED
IR Receiver Infrared receiver that receives signal transmitted by Infrared emitter.

 

Connect Detection Module to Arduino  (Henry's Bench)

// IR Obstacle Collision Detection Module

int LED = 13; // Use the onboard Uno LED
int isObstaclePin = 7; // This is our input pin
int isObstacle = HIGH; // HIGH MEANS NO OBSTACLE

void setup() {
    pinMode(LED, OUTPUT);
    pinMode(isObstaclePin, INPUT);
    Serial.begin(9600);
}

void loop() {
    isObstacle = digitalRead(isObstaclePin);
    if (isObstacle == LOW) {
        Serial.println("OBSTACLE!!, OBSTACLE!!");
        digitalWrite(LED, HIGH);
    } else {
        Serial.println("clear");
        digitalWrite(LED, LOW);
    }
    delay(200);
}

Move your hand towards the IR LEDs.  As you near them, the Output LED on the module and the LED for pin 13 on your Arduino will illuminate.  Open your serial monitor and vary the distance of your hand while viewing the serial monitor. The output should show "Clear" to "OBSTACLE!!, OBSTACLE!!".

Write a review

Note: HTML is not translated!
    Bad           Good

 

Related Products

Tags: IR Infrared