Photoelectric sensor

On this page 7

A photoelectric sensor is a non-contact device that detects the presence, absence or position of an object by emitting a light beam and evaluating the light that reaches its receiver. Among the sensors used in robotics and automated handling, it is one of the most common ways to confirm that a part has arrived, that a gripper holds a workpiece or that a robot cell is clear.

The sensor converts a change in received light intensity into a discrete switching output, so it answers a yes-or-no question quickly and reliably. Ranges reach from a few millimeters to more than 50 meters, depending on the sensing mode and the target.

How a photoelectric sensor detects objects

A photoelectric sensor detects objects by comparing the light arriving at a photodetector with a switching threshold. An emitter, usually an LED with red, infrared or blue light, or a laser diode, sends a beam toward the sensing area. A receiver with a photodiode or phototransistor measures how much light returns, and an evaluation circuit switches the output when the level crosses the threshold.

Most industrial sensors modulate the emitted light, pulsing it at a fixed frequency. The receiver responds only to light with that pattern, which gives strong immunity to ambient light from lamps, windows or welding. A hysteresis band between the switch-on and switch-off levels prevents chatter when a target sits near the threshold.

The table below summarizes the functional blocks inside a typical sensor.

BlockRoleTypical implementation
EmitterProduces the sensing beamRed LED, infrared LED or laser diode
OpticsShape and focus the beamLenses, apertures, polarizing filters
ReceiverConverts light into currentPhotodiode or phototransistor
Evaluation circuitDemodulates and compares with thresholdMicrocontroller or analog comparator
Output stageSignals the controllerPNP, NPN, relay or IO-Link
Functional blocks of a photoelectric sensor

Sensing modes and their ranges

Photoelectric sensors are classified mainly by sensing mode, which describes where the emitter, receiver and target sit relative to each other. The mode sets the achievable range, the reliability on difficult surfaces and the wiring effort.

Sensing modePrincipleTypical rangeMain strength
Through-beamSeparate emitter and receiver face each otherUp to about 50 m or moreHighest reliability and excess gain
RetroreflectiveBeam returns from a reflectorUp to about 15 mOne housing to wire
Polarized retroreflectivePolarizing filters reject shiny targetsUp to about 10 mWorks with glossy objects
DiffuseTarget itself reflects the lightAbout 10 mm to 2 mNo reflector needed
Background suppressionTriangulation sets a fixed sensing distanceAbout 20 mm to 2 mIgnores objects behind the target
Main sensing modes of photoelectric sensors

A key quantity across all modes is excess gain, the ratio of received light to the minimum light needed for switching. An excess gain of at least 2 to 3 in clean conditions and 10 or more in dusty or wet environments keeps the sensor reliable as lenses become dirty.

A photoelectric sensor belongs to a family of non-contact presence sensors, and choosing among them depends on target material, distance and environment. The comparison below places it next to its closest neighbors in a robot cell.

Sensor typeDetected propertyTypical rangeKey limitation
Photoelectric sensorLight interruption or reflectionMillimeters to tens of metersSensitive to dirt and transparency
Inductive sensorMetal in a magnetic fieldAbout 1 to 40 mmDetects metals only
Capacitive sensorChange in dielectric fieldAbout 1 to 30 mmAffected by humidity
Ultrasonic sensorEcho of sound pulsesAbout 30 mm to 8 mSlower, soft materials absorb sound
Time-of-flight sensorTravel time of lightCentimeters to tens of metersHigher cost, gives distance
Comparison with other presence sensors

The photoelectric principle offers the longest range among simple switching sensors and works on almost any opaque material. A LiDAR or depth camera uses related optics but produces distance data or point clouds rather than a single switching signal.

Applying photoelectric sensors in robot cells

In robotics, photoelectric sensors usually provide binary confirmations that tell the controller when to start or stop a motion. Typical tasks include detecting parts on a conveyor before a pick, verifying that a gripper is loaded, counting products and confirming that a fixture is empty.

Response time is a decisive parameter in these applications. Standard sensors switch in about 0.25 to 1 ms, and high-speed models reach tens of microseconds. With a conveyor moving at 1 m/s, a 1 ms response produces a position uncertainty of about 1 mm, which matters for synchronized picking.

TaskRecommended modeReason
Detecting boxes on a conveyorRetroreflectiveLong range, simple wiring
Checking a part in a gripperBackground suppressionIgnores the cell structure behind
Detecting clear bottlesClear-object retroreflectiveDetects small intensity drops
Shiny metal partsPolarized retroreflectiveRejects false reflections
Dusty palletizing areaThrough-beamHighest excess gain
Choosing a sensing mode for common robot tasks

Modern sensors increasingly use IO-Link, a point-to-point communication standard that transmits the switching state together with signal strength, contamination warnings and remote configuration. This supports predictive maintenance, since the controller can see excess gain falling long before the sensor fails.

Limitations, safety and common mistakes

A standard photoelectric sensor is not a safety device. Protecting people around a robot requires safety light curtains or safety laser scanners certified under IEC 61496 and integrated according to ISO 13849 or IEC 62061, with redundant channels and self-testing. Using an ordinary sensor for personnel protection is a serious design error.

  • Ignoring target color and gloss in diffuse mode, which shifts the effective range for dark or shiny parts.
  • Missing transparent objects, because glass and film pass most of the light.
  • Mutual interference between adjacent sensors facing each other without frequency separation.
  • Setting the threshold with no margin, so dust or condensation causes false switching within weeks.

Stripped to the essentials

A photoelectric sensor works like an electric eye. It shines a small beam of light and watches whether the light comes back or gets blocked.

When something passes through the beam or reflects it, the sensor flips a signal from off to on. A robot uses that signal to know that a part has arrived or that its gripper is holding something, without ever touching the object.

Where it is applied

A food packaging line uses a collaborative robot to place cartons into shipping cases. A retroreflective photoelectric sensor mounted 1.2 m across the conveyor detects each carton, and a background suppression sensor in the gripper confirms that the carton is held before the robot moves.

The conveyor runs at 0.5 m/s and the sensors respond within 0.5 ms, so the robot receives a trigger accurate to about 0.25 mm of carton travel. Through IO-Link, the controller reports when the excess gain of the conveyor sensor drops below 3 because of flour dust, and maintenance cleans the reflector during a planned stop. The cell runs with no missed picks over a full shift.