Infrared Proximity Sensor

Description: 

Arduino infared proximity switch module is a reflection-type photoelectric sensor which integrates transmitting and receiving infared beams function. Infrared proximity switches work by sending out beams of invisible infrared light. A photodetector on the proximity switch detects any reflections of this light. These reflections allow infrared proximity switches to determine whether there is an object nearby.


The trigger distance can be anywhere between 30 - 800mm, by manual adjustment of the potentiometer in the sensor.

Technical parameters

  • Voltage :DC 5V
  • Current  :100mA
  • Type :DC 3 Wire NPN-NO (Normal Open)
  • Sensory Distance: 3-80 cm adjustable
  • Sensory distance regulator and output indicator light on product back
  • Control signal level:
  • High:2.3V≤Vin≤5V
  • Low:-0.3V≤Vin≤1.5V
  • Ambient temperature: -25 - 70 degree C
  • Guard mode: reverse polarity protection
  • Sensor dimension: 18mm diameter x 45mm length
  • Cable length: 180mm

Infrared schematic

Yellow/Black: Sensor output

Green/Blue : Ground

Red/Brown :     5V

Example code

int ledPin = 13; // choose pin for the LED
int inputPin = 2; // choose input pin (for Infrared sensor)
int val = 0; // variable for reading the pin status
void setup()
{
   pinMode(ledPin, OUTPUT); // declare LED as output
   pinMode(inputPin, INPUT); // declare Infrared sensor as input
}
void loop()
{
   val = digitalRead(inputPin); // read input value
   if (val == HIGH)
   { // check if the input is HIGH
      digitalWrite(ledPin, LOW); // turn LED OFF  
   }
   else
   {
      digitalWrite(ledPin, HIGH); // turn LED ON
   }
}

Image: 

Catalog: 

Price: $18.90
Zircon - This is a contributing Drupal Theme
WeebPal