what is Photocell?

Understanding photocells and industrial photoelectric sensing

What is a photocell? From light-sensitive components to industrial sensors

A photocell responds to light, but the name alone does not tell you what kind of device you are looking at. In an electronics project it may mean a light-dependent resistor. On a production line, it often refers to a complete photoelectric sensor that detects a passing package or checks whether a part is present.

The distinction matters: a bare detector and an industrial sensor do not provide the same interface. Industrial photoelectric sensors combine optics, detection electronics and an output stage. A dusk-to-dawn lighting control monitors ambient illumination; a conveyor sensor watches for an object. Start with that distinction, rather than treating every product sold as a photocell as interchangeable.

How light becomes a machine signal

A typical photoelectric sensing system has an emitter, a receiver, signal-processing electronics and a control output. The target changes how much light reaches the receiver by blocking or reflecting the beam. The electronics then produce a signal that a PLC can use.

The source may be visible red light, infrared or another wavelength selected for the task. Many sensors pulse their emitter so the receiver can distinguish its own light from background illumination. This improves interference rejection; it does not make every sensor immune to direct sunlight or nearby optical devices.

Start with the beam path, not the housing

Through-beam: A separate transmitter faces a receiver across the detection area. An opaque object interrupts the beam. Through-beam sensing is relatively insensitive to an opaque target's surface colour, but requires mounting and electrical connections on both sides.

Retroreflective: The emitter and receiver share one housing, with a retroreflector opposite them. The target interrupts the returning beam. Retroreflective sensors are available with polarisation to help reject shiny target reflections. Transparent objects require a model designed and specified for that application.

Diffuse: The object itself returns light to the receiver, so no separate reflector is required. With conventional diffuse sensors, colour, finish and target angle can affect the usable range.

Background suppression: A diffuse sensor with background suppression (BGS) reduces detection of surfaces beyond a defined distance boundary. A sensitivity adjustment is not automatically background suppression. Also, a BGS presence detector does not necessarily provide the numerical reading available from a dedicated distance-measuring sensor.

Fibre-optic sensing: A fibre-optic sensor guides light between an amplifier and a compact sensing tip, making access to confined spaces easier. Laser, by contrast, describes the light source rather than the beam arrangement: laser sensors can use different sensing geometries.

Separate electrical compatibility from switching logic

PNP and NPN describe the electrical output. In a typical three-wire DC circuit, a PNP output supplies current towards the load from the positive rail; an NPN output provides a current path towards 0 V. Choosing between PNP and NPN therefore requires checking the PLC input circuit and its common connection. Matching supply voltages does not, by itself, establish compatibility.

Light-ON and Dark-ON describe the optical condition that activates the output. Light-ON operates when sufficient light reaches the receiver; Dark-ON operates when received light is interrupted or falls below the relevant threshold. An object normally removes light in a through-beam arrangement but returns light in a diffuse arrangement. Consequently, Light-ON does not universally mean “object present”. Interpret NO and NC using the manufacturer's operating chart.

Relay outputs must not be treated as interchangeable with transistor outputs. A two-wire sensor can also require a different connection from a three-wire model. Check supply limits, load current, leakage current and residual voltage. For cabled and connector versions, use the actual model's wiring diagram, not wire colour alone.

A low count rate can still produce pulses that are too short

Imagine small cartons travelling at 0.5 m/s. Each carton occupies 15 mm along the beam's crossing point, with a 35 mm gap before the next one. With a narrow, fully blocked beam and a Dark-ON output, the idealised active interval is 30 ms and the clear interval is 70 ms. Sensor delays are neglected for this calculation.

Approximate active time: t = target length / speed = 0.015 / 0.5 = 0.030 s
Target rate: f = speed / (target length + gap) = 0.5 / 0.050 = 10 Hz

Ten cartons per second may sound undemanding. However, an input filter that requires 40 ms of uninterrupted ON time would reject the 30 ms active pulse. The relevant question is not just the counting frequency, but whether the complete signal chain can capture both states. Include sensor turn-on and turn-off delays, beam size, input filtering and pulse capture in the assessment. These figures illustrate a timing check, not the rating of a particular sensor or PLC.

Selection checks that prevent avoidable problems

Describe the actual target first. Record transparency, surface finish, size, orientation, sensing distance and available mounting space. A range specified using a white reference target does not guarantee the same range on a black product. Compare sensor types by application requirements, not just housing dimensions or the largest distance printed in a catalogue.

Include the installation environment. Dust, condensation, vibration, strong ambient light and neighbouring emitters can reduce detection reliability. The IP protection rating matters, but it cannot prevent an optical loss caused by dirt sitting on the lens. Suitable sensor accessories, secure brackets and appropriate alignment are part of the installation.

Troubleshoot the optical and electrical paths separately. If the output indicator does not change as the target passes, investigate alignment, lens contamination, settings and the chosen sensing method. If the indicator changes but the PLC input does not, check output compatibility, the common terminal, wiring and input filtering. An illuminated indicator does not prove that the PLC receives a valid signal. Isolate power before changing connections and prevent unexpected machine movement.

The light-sensitive parts are a different classification

Photodiodes are semiconductor devices that produce photocurrent when they absorb suitable light. Their performance depends on the detector structure, operating conditions and readout circuit. A photodiode may be the receiving element inside a larger instrument, but the component alone is not a ready-to-connect industrial switch.

Phototransistors provide a light-dependent transistor current with internal current gain. They can be useful in optical detection circuits, but gain, response time and saturation all matter. Describing one as simply “more sensitive” does not establish whether it suits a particular measurement or switching task.

Photoresistors, or LDRs, change resistance with illumination; resistance normally falls as light increases. An LDR is a photoconductive device, not a separate, unrelated technology from a photoconductive cell. Our NTC, PTC and LDR comparison explains the distinction between light-sensitive and temperature-sensitive resistance. A basic LDR is not a calibrated lux meter, and its spectral response depends on its material.

Photovoltaic cells convert light energy into electrical energy. This is the principle behind solar photovoltaic technology. A solar cell and a package-detection sensor therefore have different purposes, connections and outputs, even though both interact with light.

Photomultiplier tubes are specialised detectors for very weak light. Inside a vacuum, electrons released by a photocathode are multiplied through successive dynodes and collected at the anode. These instruments belong to a different class from ordinary factory photocells. Likewise, “infrared detector” identifies a spectral region, not one universal detector construction.

When another technology makes more sense

Optical sensing is not automatically the best answer. An inductive sensor may suit short-range metal detection. An ultrasonic sensor may be worth evaluating for some transparent targets or changing optical properties, provided the target geometry is suitable. Our detection-method comparison helps frame that choice. No sensing principle wins in every application.

Personnel protection is a separate requirement. An ordinary workpiece sensor is not a substitute for a safety light curtain. Detecting a hand during a test does not demonstrate safe behaviour under faults. Protective applications require risk-assessed equipment and a validated safety system.

Technical references: OMRON: photoelectric sensing · Switching modes and response time · Adafruit: photoresistors · Hamamatsu: photomultipliers · PLC input compatibility · Safe use of sensors