The Infrared Slotted Optical Optocoupler Module is a device that uses infrared light to transmit signals between two electrically isolated circuits. It consists of an infrared emitter (LED) and a photodetector (phototransistor) housed in a slotted enclosure. When an object passes through the slot, it interrupts the infrared light beam, causing a change in the output signal. This module is widely used for non-contact object detection, position sensing, and speed measurement in various applications.
The Infrared Slotted Optical Optocoupler Module has the following key specifications:
Parameter | Value |
---|---|
Operating Voltage | 3.3V to 5V |
Output Type | Digital (High/Low) |
Slot Width | 5mm |
Infrared Wavelength | 940nm |
Response Time | < 10µs |
Operating Temperature | -25°C to 85°C |
Dimensions | Varies by module (e.g., 32mm x 14mm) |
The module typically has 4 pins, as described in the table below:
Pin | Name | Description |
---|---|---|
1 | VCC | Power supply input (3.3V to 5V) |
2 | GND | Ground connection |
3 | OUT | Digital output signal (High when the slot is clear, Low when the beam is blocked) |
4 | EN (optional) | Enable pin (used to enable or disable the module, depending on the design) |
VCC
pin to a 3.3V or 5V power source and the GND
pin to the ground of your circuit.OUT
pin to a digital input pin of your microcontroller or other logic circuit.OUT
pin. It will output a HIGH signal when the slot is clear and a LOW signal when the beam is blocked.Below is an example of how to use the Infrared Slotted Optical Optocoupler Module with an Arduino UNO to detect objects passing through the slot.
VCC
pin of the module to the 5V pin of the Arduino.GND
pin of the module to the GND pin of the Arduino.OUT
pin of the module to digital pin 2 of the Arduino.// Infrared Slotted Optical Optocoupler Module Example
// This code reads the output of the module and prints the status to the Serial Monitor.
const int sensorPin = 2; // Pin connected to the OUT pin of the module
int sensorState = 0; // Variable to store the sensor state
void setup() {
pinMode(sensorPin, INPUT); // Set the sensor pin as input
Serial.begin(9600); // Initialize serial communication at 9600 baud
}
void loop() {
sensorState = digitalRead(sensorPin); // Read the sensor output
if (sensorState == HIGH) {
// If the slot is clear, the output is HIGH
Serial.println("Slot is clear");
} else {
// If the beam is blocked, the output is LOW
Serial.println("Beam is blocked");
}
delay(100); // Small delay to avoid flooding the Serial Monitor
}
No Output Signal
VCC
and GND
pins are properly connected.False Triggering
Slow Response
Output Always HIGH or LOW
Q: Can this module detect transparent objects?
A: No, the module is not suitable for detecting transparent objects, as they may not sufficiently block the infrared beam.
Q: What is the maximum detection speed?
A: The module has a response time of less than 10µs, making it suitable for high-speed applications.
Q: Can I use this module with a 3.3V microcontroller?
A: Yes, the module operates within a voltage range of 3.3V to 5V, making it compatible with 3.3V systems.
Q: How do I extend the detection range?
A: The detection range is fixed by the slot width. For longer ranges, consider using a reflective or through-beam optocoupler instead.