Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use IR Break Beam Sensor: Examples, Pinouts, and Specs

Image of IR Break Beam Sensor
Cirkit Designer LogoDesign with IR Break Beam Sensor in Cirkit Designer

Introduction

The IR Break Beam Sensor by Adafruit Industries is a reliable and easy-to-use sensor that consists of an infrared (IR) emitter and a photodetector. The sensor works by emitting an invisible IR beam from the emitter to the detector. When an object interrupts this beam, the sensor detects the break and outputs a signal. This makes it ideal for applications requiring object detection, counting, or motion sensing.

Explore Projects Built with IR Break Beam Sensor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino-Based IR Break Beam Sensor with I2C LCD Display
Image of Break Beam Sensor Demo: A project utilizing IR Break Beam Sensor in a practical application
This circuit utilizes an Arduino UNO to monitor an IR Break Beam Sensor, which detects interruptions in a beam. When the beam is intact, the system displays 'Beam Intact' on a 16x2 I2C LCD, and when the beam is broken, it updates the display to show 'Beam Broken'. The circuit is designed for real-time monitoring of the beam status, providing immediate visual feedback.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered IR Sensor Alarm with LED Indicator and Buzzer
Image of PROJECT: A project utilizing IR Break Beam Sensor in a practical application
This circuit is a simple IR sensor-based alarm system. When the IR sensor detects an object, it triggers an OR gate, which in turn activates a buzzer and lights up an LED. The circuit is powered by a 9V battery and includes a rocker switch to control the power supply.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered IR Sensor Controlled Relay Module
Image of New: A project utilizing IR Break Beam Sensor in a practical application
This circuit uses an IR sensor to control a 1 Channel 5V Relay Module, which is powered by a 9V battery. The IR sensor detects an object and sends a signal to the relay module to switch its state, enabling or disabling the connected load.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered IR Sensor Controlled Motor with Relay
Image of Ir sensor car: A project utilizing IR Break Beam Sensor in a practical application
This circuit uses an IR sensor to control a motor via a 1-channel relay. The IR sensor detects an object and sends a signal to the relay, which then switches the motor on or off based on the sensor input. The entire system is powered by two 18650 Li-Ion batteries.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with IR Break Beam Sensor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Break Beam Sensor Demo: A project utilizing IR Break Beam Sensor in a practical application
Arduino-Based IR Break Beam Sensor with I2C LCD Display
This circuit utilizes an Arduino UNO to monitor an IR Break Beam Sensor, which detects interruptions in a beam. When the beam is intact, the system displays 'Beam Intact' on a 16x2 I2C LCD, and when the beam is broken, it updates the display to show 'Beam Broken'. The circuit is designed for real-time monitoring of the beam status, providing immediate visual feedback.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of PROJECT: A project utilizing IR Break Beam Sensor in a practical application
Battery-Powered IR Sensor Alarm with LED Indicator and Buzzer
This circuit is a simple IR sensor-based alarm system. When the IR sensor detects an object, it triggers an OR gate, which in turn activates a buzzer and lights up an LED. The circuit is powered by a 9V battery and includes a rocker switch to control the power supply.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of New: A project utilizing IR Break Beam Sensor in a practical application
Battery-Powered IR Sensor Controlled Relay Module
This circuit uses an IR sensor to control a 1 Channel 5V Relay Module, which is powered by a 9V battery. The IR sensor detects an object and sends a signal to the relay module to switch its state, enabling or disabling the connected load.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Ir sensor car: A project utilizing IR Break Beam Sensor in a practical application
Battery-Powered IR Sensor Controlled Motor with Relay
This circuit uses an IR sensor to control a motor via a 1-channel relay. The IR sensor detects an object and sends a signal to the relay, which then switches the motor on or off based on the sensor input. The entire system is powered by two 18650 Li-Ion batteries.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Object detection in conveyor belts or assembly lines
  • Entry/exit detection in doorways
  • Counting objects or people
  • Security systems and alarms
  • Robotics and automation systems

Technical Specifications

Below are the key technical details for the IR Break Beam Sensor:

Parameter Value
Operating Voltage 3.3V to 5V DC
Current Consumption ~20mA (emitter)
Detection Range Up to 50 cm (depending on alignment)
Output Signal Digital (Active Low)
Beam Wavelength 950 nm (infrared)
Response Time < 1 ms
Operating Temperature -25°C to 85°C

Pin Configuration and Descriptions

The IR Break Beam Sensor consists of two parts: the emitter and the receiver. Each part has two wires for connection.

Emitter

Wire Color Function
Red Power (VCC)
Black Ground (GND)

Receiver

Wire Color Function
Red Power (VCC)
Black Ground (GND)
Yellow Signal Output

Usage Instructions

How to Use the IR Break Beam Sensor in a Circuit

  1. Connect the Emitter:

    • Connect the red wire of the emitter to a 3.3V or 5V power source.
    • Connect the black wire of the emitter to ground (GND).
  2. Connect the Receiver:

    • Connect the red wire of the receiver to the same power source as the emitter.
    • Connect the black wire of the receiver to ground (GND).
    • Connect the yellow wire of the receiver to a digital input pin on your microcontroller or microprocessor.
  3. Operation:

    • When the IR beam is uninterrupted, the signal output (yellow wire) remains HIGH.
    • When the IR beam is broken, the signal output goes LOW.

Important Considerations and Best Practices

  • Alignment: Ensure the emitter and receiver are properly aligned for optimal performance. Misalignment can reduce the detection range or cause false readings.
  • Power Supply: Use a stable power supply to avoid fluctuations in the IR beam.
  • Interference: Avoid placing the sensor near strong light sources (e.g., sunlight) or reflective surfaces, as these can interfere with the IR beam.
  • Mounting: Secure the emitter and receiver firmly to prevent movement, which could disrupt alignment.

Example Code for Arduino UNO

Below is an example of how to use the IR Break Beam Sensor with an Arduino UNO:

// IR Break Beam Sensor Example Code
// This code detects when the IR beam is broken and prints a message to the Serial Monitor.

#define SENSOR_PIN 2  // Connect the yellow wire of the receiver to digital pin 2

void setup() {
  pinMode(SENSOR_PIN, INPUT);  // Set the sensor pin as an input
  Serial.begin(9600);          // Initialize serial communication at 9600 baud
}

void loop() {
  int sensorState = digitalRead(SENSOR_PIN);  // Read the sensor's output

  if (sensorState == LOW) {
    // If the beam is broken, the sensor output goes LOW
    Serial.println("Beam broken! Object detected.");
  } else {
    // If the beam is uninterrupted, the sensor output remains HIGH
    Serial.println("Beam intact.");
  }

  delay(100);  // Small delay to avoid flooding the Serial Monitor
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. The sensor is not detecting objects:

    • Solution: Check the alignment between the emitter and receiver. Ensure they are directly facing each other.
    • Solution: Verify that the power connections are correct and the voltage is within the specified range.
  2. False triggers or inconsistent readings:

    • Solution: Ensure there are no reflective surfaces or strong light sources near the sensor.
    • Solution: Use a stable power supply to avoid electrical noise.
  3. No output signal from the receiver:

    • Solution: Check the wiring connections, especially the yellow signal wire.
    • Solution: Confirm that the emitter is powered and emitting an IR beam (use a camera to check for IR light).

FAQs

Q: Can the detection range be adjusted?
A: The detection range is fixed, but you can improve performance by ensuring proper alignment and avoiding obstructions.

Q: Can I use this sensor outdoors?
A: Yes, but avoid direct sunlight or extreme weather conditions, as these can interfere with the IR beam.

Q: What happens if the emitter and receiver are too far apart?
A: The sensor may fail to detect the IR beam, resulting in false readings. Keep the distance within the specified range (up to 50 cm).

Q: Can I use multiple IR Break Beam Sensors in the same project?
A: Yes, but ensure each sensor pair is properly aligned and does not interfere with others.