Sensores Ópticos

Promoções

Produtos visualizados

Obstacle Sensor Ver maior

Obstacle Sensor

BE15000201

Novo produto

Obstacle 

Mais detalhes

9,67 € com IVA

Adicionar à Lista de desejos

Mais informação

IR Obstacle Detection Module Pin Outs

The drawing and table below identify the function of module pin outs, controls and indicators.

 

Arduino IR Collision Detection Module Pin Outs

 

Pin, Control IndicatorDescription
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.

 

Arduino IR Obstacle Collision Module Tutorial

 

Connect the Arduino to the Detection Module

Use the picture below.  It only requires three wires.

 

IR Collision Detection Module Arduino Tutorial Hook Up

Code:

// IR Obstacle Collision Detection Module
// Henry's Bench

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);
}

 

Test the Tutorial Sketch

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 look like the picture below:

 

IR Obstacle Detection Module Arduino Tutorial Output

  

The light sensor module have strong adaptable to the environment, having a pair of infrared transmitter and receiver, transmitter launch a certain frequency infrared, when meet obstacle in the detection direction, the infrared receiver is reflected back by the receiver tube, after processing through the comparator circuit, the green indicator light will illuminate while the signal output interface output digital signal (a low-level signal) can be adjusted via potentiometer knob detection distance, the effective distance range 2 ~ 30cm, working voltage is 3.3V-5V.

The detection range of the sensor can be adjusted by the potentiometer, with little interference, easy to assemble, easy to use features, can be widely used robot obstacle avoidance, obstacle avoidance car assembly line count and black-and-white line tracking and many other occasions.

Parameter:

When the module detects an obstacle in front of the signal, the circuit board green indicator light levels while continuing output low signal OUT port, the module detects the distance 2 ~ 30cm, detection angle 35 °, the distance can detect potential control to adjust, adjust potentiometer clockwise, the detection distance increases; counterclockwise adjustment potentiometer, detection distance decreases.


the sensor active infrared reflection detection, target reflectivity and shape of the detection distance of the key. The minimum detection distance which black and white max; small area of the object distance is small, a large area from the Grand.


the sensor module output port OUT can be directly connected with the microcontroller IO port can also be driven directly to a 5V relay;

Connection: VCC-VCC; GND-GND; OUT-IO


The comparator using LM393, job stability, can be 3-5V DC power supply for the module. When the power is turned on, the red power indicator light;

With 3mm screw holes for easy mounting, installation;


The circuit board size: 3.1CM * 1.4CM, each module in the delivery has threshold comparator voltage adjustable via potentiometer, special circumstances, please do not adjust the potentiometer.
Interface:

VCC external 3.3V-5V voltage (5v microcontroller and can be directly connected to 3.3v MCU);


GND an external GND;


OUT small board digital output interfaces (0 and 1);

Acessórios

Clientes que compraram este produto também compraram: