Side-by-side comparison of photoelectric counting machine with infrared sensor array versus weight-based counting scale for pharmaceutical tablet and hardware parts packaging

Photoelectric Counting vs. Weight-Based Counting: Which Technology Is Right for Your Product?

The Three Ways to Count Products in Packaging

When you're specifying a counting system for a production line, you're essentially choosing between three fundamentally different approaches to the same problem: how do you know exactly how many pieces are in a container?

The three mainstream technologies each answer that question differently. Photoelectric counting uses a light curtain of infrared beams — each piece that passes through breaks a beam, and the PLC counts one unit. Weight-based counting takes a simpler mathematical approach: total batch weight ÷ known piece weight = count. Vision counting uses cameras and image processing software to identify and count individual pieces on a conveyor or in a tray.

Each has genuine strengths. Each has real blind spots. And the wrong choice doesn't just mean a suboptimal machine — it means miscounts, customer complaints, regulatory headaches, and production stops. So: what's the most accurate way to count tablets? And when it comes to photoelectric vs. weight-based counting, which is actually better? The honest answer is: it depends on your product. Let's break it down.

How Photoelectric Counting Actually Works (And Why It's the Gold Standard for Pharma)

The operating principle is elegantly simple. A light curtain — dozens of tightly spaced infrared beams — spans the width of each counting channel. As individual tablets, capsules, or hardware parts cascade through the channel in single-file flow, each piece momentarily interrupts one or more beams. That interruption triggers a signal to the PLC, which increments the count by one. No estimation, no averaging, no statistical inference — just a direct physical detection of each individual piece.

This is why photoelectric counting accuracy approaches 100% under normal conditions. The system counts objects, not proxies for objects. There's no calibration required for different product weights, no learning phase, and no moving parts in the sensor itself.

The one real vulnerability of photoelectric systems is dust. In pharmaceutical and nutraceutical environments, tablet coating powder and capsule fill residue gradually accumulate on sensor lenses. When dust builds up enough to partially block the infrared beam, you start getting false counts — the system registers a count when no piece passed through, or misses a piece because the beam was already partially attenuated. This is the #1 failure mode for standard photoelectric counters in production environments.

Keypack's proprietary anti-high-dust sensing technology addresses this directly. The dust-resistant counting technology uses signal filtering and sensor geometry designed to distinguish between the sharp, brief interruption caused by a passing tablet and the gradual, diffuse attenuation caused by dust accumulation. The result: accurate counting even in high-residue environments, with significantly reduced cleaning frequency. It's one of the reasons photoelectric counting has become the default choice for pharmaceutical and nutraceutical bottling lines.

For high-throughput pharma applications, the KB-32S 32-channel machine delivers up to 100 bottles/min with this dust-resistant architecture built in. Mid-volume operations often start with the 16-channel electronic counting machine at 70 bottles/min.

Weight-Based Counting: When Math Beats Optics

Weight-based counting doesn't look at pieces at all — it looks at mass. You establish the known weight of a single piece during setup, then weigh the total batch and divide. The count is a calculation, not a detection.

This approach has some genuine advantages that photoelectric systems can't match. It works on any product regardless of shape, color, or transparency. Transparent capsules that might challenge optical systems? No problem — weight doesn't care about optical properties. Oddly shaped fasteners that don't flow cleanly through a counting channel? Weight handles them fine. Dark-colored objects that absorb infrared light differently? Irrelevant to a scale.

Weight-based systems also have zero dust sensitivity — there are no optical components to contaminate. For bulk granule counting, large-batch hardware packaging, or any application where ±2–3% accuracy is acceptable, weight-based counting offers a lower equipment cost with solid reliability.

The critical limitation is piece weight variation. If individual tablets vary ±5% in weight — which is within acceptable pharmaceutical manufacturing tolerances for many products — the count error compounds directly. A target count of 100 tablets could yield anywhere from 95 to 105 pieces in the bottle. For regulated pharmaceutical products where piece-level accuracy is a compliance requirement, this is disqualifying. For bulk hardware fasteners where ±3 pieces in a bag of 100 is commercially acceptable, it may be perfectly fine.

The rule of thumb: weight-based counting works best when piece weight is tightly controlled, batch sizes are large, and the application can tolerate a small percentage error. Browse our weighing and filling equipment collection for weight-based options.

Vision Counting: The AI Alternative (And Its Real-World Limitations)

Vision counting systems use cameras — sometimes combined with AI image processing — to identify and count individual pieces as they move through the field of view. On paper, it sounds like the most sophisticated option. In practice, it comes with a set of constraints that limit its applicability in many production environments.

The genuine strengths of vision counting machines are real. A camera-based system can identify and reject damaged pieces, detect foreign objects, count mixed products in a single pass, and generate visual records for quality traceability. For premium pharmaceutical quality verification or mixed-kit assembly where visual inspection adds value beyond counting, vision systems earn their higher price tag.

But the limitations are equally real. Vision systems require consistent, controlled lighting — variations in ambient light affect accuracy. They need clean lens surfaces — dust, condensation, or product residue on the camera lens causes false negatives. Overlapping products confuse image processing algorithms. And for hardware parts with oil or metallic surface reflection, the camera sees glare and reflections rather than clean part boundaries, causing systematic miscounts. The AI counting system is only as good as the image it receives, and production environments are rarely as clean as a lab.

Technology Comparison at a Glance

Factor Photoelectric Weight-Based Vision
Accuracy ±0 (piece count) ±2–3% (weight-dependent) ±0–1%
Speed 10–100 bottles/min 20–80 packs/min 5–60 pieces/min
Handles dust Yes (anti-dust technology) Yes (no optics) No (lens contamination)
Handles oil/metal reflection Yes (shadow-based detection) Yes No (reflection errors)
Handles transparent products Yes Yes Challenging
Handles mixed products No Yes (if weights differ) Yes
Handles weight variation N/A Error-prone N/A
Equipment cost $$ $ $$$
Best for Pharma, nutra, hardware Bulk granules, fasteners Premium QC, mixed kits

This counting technology comparison covers the most common production scenarios, but edge cases exist. When in doubt, test your specific product on the equipment before committing.

The Industry-Specific Decision Matrix

General comparisons are useful. Product-specific decisions are better. Here's how the technology selection plays out across the most common applications.

Pharmaceutical tablets and capsules → Photoelectric. Regulatory compliance demands piece-level accuracy — ±2% is not acceptable when the label says 60 tablets. Anti-dust sensors handle the tablet powder environment that defeats standard optical systems. The 16–32 channel machines deliver pharma-grade throughput with GMP-compliant construction.

Nutraceutical softgels and supplements → Photoelectric (primary) or weight-based (secondary). Softgels are fragile — the flap-type dispensing mechanism in photoelectric machines releases counted batches without the impact that cracks softgel shells. For lower-cost supplements with wide weight tolerance and less regulatory scrutiny, weight-based counting offers a lower equipment investment. The 16-channel counting machine is the most common choice for mid-volume nutraceutical lines.

Hardware parts — screws, nuts, washers → Photoelectric with vibratory bowl feeding. Oil and metallic surface reflection don't affect shadow-based counting — the sensor detects the part's silhouette, not its surface. The KL-300K VFFS counting machine integrates photoelectric counting with form-fill-seal bagging in a single unit, handling 20–40 bags/min. The vibratory bowl feeder with counter handles orientation and singulation upstream.

Mixed hardware kits → Weight-based. When packing a kit containing 5 screws + 3 nuts + 2 washers, weight-based counting handles the mixed SKU in one weighing cycle. Photoelectric would require separate feeding tracks for each component — a more complex and expensive setup for kit assembly.

Transparent or oddly shaped products → Photoelectric or weight-based. Vision systems struggle with transparent capsules (the camera sees through them) and irregular shapes (the algorithm can't reliably define object boundaries). Photoelectric shadow detection works regardless of transparency. Weight-based works regardless of shape. Either is a better choice than vision for these product types.

The Hidden Cost of Choosing Wrong

Technology selection mistakes don't show up on the spec sheet — they show up on the production floor, usually within the first week of operation.

A nutraceutical startup selected a vision counting system for softgel bottling, attracted by the visual quality inspection capability. Within two hours of production, coating dust from the softgels had fogged the camera lens. The system began generating constant false rejects — flagging good bottles as underfilled because the obscured lens couldn't reliably count the softgels. Production stopped repeatedly for lens cleaning. After two weeks of troubleshooting, they switched to a photoelectric machine with anti-dust sensors. The problem disappeared immediately.

A hardware distributor used weight-based counting for a mixed fastener kit — 10 screws per bag. The setup worked fine during initial calibration with zinc-plated screws. When they switched to stainless steel screws of the same nominal size, the count went systematically wrong: stainless steel is denser than zinc-plated steel, so the same weight yielded fewer pieces than expected. The bags were consistently underfilled by 1–2 screws before anyone caught it. The lesson: weight-based counting requires re-calibration any time the material specification changes, even when the part looks identical.

The right technology choice is determined by your product's physical properties — not by the feature list on a brochure. Dust behavior, weight consistency, shape regularity, surface finish, and fragility all matter. Explore the full counting machine collection and the automatic counting packaging line options to see how different configurations address these variables.

Frequently Asked Questions

Q: Can I use one counting machine for both tablets and hardware parts?
A: Yes — photoelectric machines with quick-change vibratory bowl tooling switch between products in under 30 minutes. Stored parameter presets handle different target counts, speeds, and channel configurations without hardware changes. The 6BS semi-automatic machine is particularly popular for operations with frequent product changeovers.

Q: What's the payback period for upgrading from manual counting?
A: Typically 6–12 months. Two manual counters at $500/month each equals $12,000/year in labor cost alone — before accounting for error-related losses, rework, and customer complaints. A semi-automatic counting machine eliminates one counting position and reduces error rates to near zero, often paying back within a single production year.

Q: Do I need compressed air for a counting machine?
A: Fully automatic photoelectric machines require 0.5–0.6 MPa compressed air at approximately 4–5 L/min for the pneumatic dispensing and conveyor systems. Semi-automatic models like the 6BS typically do not require compressed air, making them easier to deploy in facilities without existing air infrastructure.

Q: Is photoelectric counting GMP compliant?
A: Yes. Keypack counting machines are constructed with 304 stainless steel contact surfaces, tool-free disassembly for cleaning and inspection, and PLC-based counting records that support audit trails. These features directly support GMP compliance requirements for pharmaceutical and nutraceutical manufacturing environments.


Not sure which counting technology fits your product? Send us your product samples — we'll test them on our equipment and give you a data-backed recommendation with accuracy reports.

Related Posts

How Electronic Counting Machines Work: From Photoelectric Sensor to Filled Bottle

The Core Problem Counting Machines Solve Picture a pharmaceutical factory floor: two workers, stacks of vitamin tablet bottles, and a daily target of 10,000...
Beitrag von KeypackIntelligent
Jun 08 2026

How to Reduce Packaging Line Changeover Time: A Practical Guide for Multi-SKU Manufacturers

If your packaging line runs more than two or three SKUs per day, changeover time is almost certainly your single largest source of lost...
Beitrag von KeypackIntelligent
Jun 07 2026

Linear Scale + VFFS Packaging Line: The Cost-Effective Automation Upgrade for Small Factories

The Small Factory Dilemma: Accuracy vs. Budget Picture a nut processing factory running 5,000 to 20,000 bags a day. The team knows the weights...
Beitrag von KeypackIntelligent
Jun 07 2026

Linear Scale Applications: Precision Weighing for Nuts, Hardware & Freeze-Dried Foods

Why Linear Scales Excel at Difficult Products Multihead weighers are workhorses — but they have well-documented limitations when it comes to fragile, sticky, and...
Beitrag von KeypackIntelligent
Jun 06 2026

Heat Sealing vs Ultrasonic Sealing vs Cold Sealing: Food Packaging Guide 2026

1. Introduction — Why Your Sealing Method Can Make or Break Your Line A $0.02 seal failure can cost thousands in product recalls. Sealing...
Beitrag von KeypackIntelligent
Jun 05 2026

Static Electricity in Bottle Packaging: Labeling & Filling Impact

Introduction: The Invisible Force Disrupting Your Packaging LineStatic electricity doesn't announce itself. There's no alarm, no visible defect at the moment it forms —...
Beitrag von KeypackIntelligent
Jun 04 2026

Why Round Bottles Are Hardest to Label: Accuracy Engineering

1. Why a Cylinder Is a Labeling NightmareFlat surfaces forgive mistakes. Curves do not. When a label meets a round bottle, three variables immediately...
Beitrag von KeypackIntelligent
Jun 03 2026