![](https://electroboat.in/uploads/media/2024/AI0074_1.jpg)
![](https://electroboat.in/media/image?path=uploads/media/2024/51PWiZcYOqL__AC_UF1000,1000_QL80_.jpg&width=620&quality=80)
![](https://electroboat.in/media/image?path=uploads/media/2024/IR-SENSOR.jpg&width=620&quality=80)
![](https://electroboat.in/media/image?path=uploads/media/2024/AI0074_1.jpg&width=175&quality=80)
![](https://electroboat.in/media/image?path=uploads/media/2024/51PWiZcYOqL__AC_UF1000,1000_QL80_.jpg&width=172&quality=80)
![](https://electroboat.in/media/image?path=uploads/media/2024/IR-SENSOR.jpg&width=172&quality=80)
![](https://electroboat.in/media/image?path=uploads/media/2024/AI0074_1.jpg&width=300&quality=80)
![](https://electroboat.in/media/image?path=uploads/media/2024/51PWiZcYOqL__AC_UF1000,1000_QL80_.jpg&width=300&quality=80)
![](https://electroboat.in/media/image?path=uploads/media/2024/IR-SENSOR.jpg&width=300&quality=80)
Infrared Obstacle Avoidance IR Sensor Module (Active Low)
An infrared sensor (IR sensor) is a radiation-sensitive optoelectronic component with a spectral sensitivity in the infrared wavelength range 780 nm … 50 µm. IR sensors are now widely used in motion detectors, which are used in building services to switch on lamps or in alarm systems to detect unwelcome guests.
₹ 24 ₹69
69
![](https://electroboat.in/assets/front_end/classic/images/cod_logo.png)
![](https://electroboat.in/assets/front_end/classic/images/cancelable.png)
![](https://electroboat.in/assets/front_end/classic/images/returnable.png)
Add FAQ
Connecting an IR (Infrared) sensor with an Arduino is a common task in various applications, such as obstacle detection, proximity sensing, and object counting. Here’s a step-by-step guide on how to connect and use an IR sensor with an Arduino Uno:
Components Needed:
- Arduino Uno
- IR sensor module (e.g., IR proximity sensor or IR obstacle avoidance sensor)
- Breadboard and jumper wires
IR Sensor Pinout:
IR sensors can vary in pin configuration depending on the module. However, most basic IR sensor modules have three pins:
- VCC: Power supply (typically +5V)
- GND: Ground (connect to Arduino GND)
- OUT: Signal output (digital or analog depending on the module)
Wiring Instructions:
-
Connect Power and Ground:
- VCC of the IR sensor to 5V on the Arduino.
- GND of the IR sensor to GND on the Arduino.
-
Connect Signal Output:
- OUT pin of the IR sensor to a digital input pin on the Arduino (e.g., digital pin 2).
-
IR sensor pinout
interfacing of ir sensor with arduino Example:
// Define the pin connected to the IR sensor
const int irSensorPin = 2;void setup() {
// Initialize serial communication
Serial.begin(9600);
// Set IR sensor pin as an input
pinMode(irSensorPin, INPUT);
}void loop() {
// Read the state of the IR sensor
int sensorValue = digitalRead(irSensorPin);
// Print the sensor value (HIGH or LOW) to Serial Monitor
Serial.print("IR Sensor Value: ");
Serial.println(sensorValue);
// Add a small delay to stabilize readings
delay(100);
}interfaceing diagram:
0 Reviews For this Product
![](https://electroboat.in/uploads/seller/electroboat_logo3.jpeg)