addaScan home
Assessment
Application guide · Code reading and traceability

Reading through-hole codes on dark PCB material

By Frank GuoPublished Updated 4 min read

// The inspection task

A through-hole PCB code is read from the contrast created by its hole pattern. Backlighting can make that pattern visible, but only if the conveyor and supports leave the necessary optical path clear. A decoder cannot recover modules that a support rail consistently hides.

Application guide by addaScanCompare the inspection task, imaging conditions and validation steps with your own production line.

Inspection task
Through-hole PCB code reading
Decision focus
through-hole pcb code reading
Station planning
Diagnose obstruction, blur and blocked holes separately
Illustrative scenario
a code reads on the bench but fails in the conveyor
Application images

Lighting trials for through-hole codes on dark PCB

The application images show the physical product and imaging conditions. The engineering diagram below explains the inspection logic and recovery decisions.

Front-lighting trial. Application image from the initial lighting comparison.
Front-lighting trial

Application image from the initial lighting comparison.

Adjusted-lighting trial. Second selected lighting-comparison image; the text describes the further backlighting arrangement.
Adjusted-lighting trial

Second selected lighting-comparison image; the text describes the further backlighting arrangement.

Select an image to view it at full size.

Keep the light path clear through the PCB hole code

Swipe across the table to compare all columns →

Compare the options against the product and station requirements
ConditionApproach to evaluateSelection check
Ordinary front illuminationUse as a baseline image.Look for washed-out or low-contrast hole patterns.
Angled front lightEvaluate reflection reduction.Check whether all modules become distinguishable.
Added backlightEvaluate transmission through the code holes.Verify fixture clearance and moving-line exposure.

Diagnose obstruction, blur and blocked holes separately

Draw the camera, PCB, support and backlight in cross-section. Check the full allowed board position range against the support geometry. If a rail masks part of the code, change the inspection point or support arrangement. Confirm that the revised support still handles the board safely and repeatably.

Then test exposure against motion. Directional smearing of many hole edges suggests blur; a local filled-looking module may indicate a blocked hole or physical obstruction. More light can permit a shorter exposure, but must be evaluated for contrast and glare from adjacent structures. Use original-resolution crops to compare these effects instead of treating every no-read as the same tuning problem.

Schematic cross-section of a PCB hole code between a camera and backlight, showing an open support window and a support blocking some holes.
The required hole-code region needs a clear path from backlight to camera. Shorter exposure addresses motion blur; it cannot remove support obstruction.

On a small screen, scroll across the diagram to inspect the labels.

Worked example: a code reads on the bench but fails in the conveyor

In an illustrative setup, a stationary board over an open backlight produces a clear code. In the machine, the same section is dark because a support passes beneath it. Record an unusable-image result and correct the optical path. Lengthening exposure does not remove a solid obstruction.

After moving to a clear window, the code becomes visible but elongated at line speed. Adjust the lighting and exposure, then verify sharp modules during motion. If a particular hole remains blocked across sharp images, route the board to the agreed inspection or cleaning process and reread the same identified item. Finally validate the decoded identity against the production requirement. Store distinct no-image, unusable-image, no-decode and wrong-identity outcomes, and prevent any of them from inheriting the previous board's successful code.

Swipe across the table to compare all columns →

Evidence, decision and recovery for keep the backlight path open through the code
Observed evidenceInspection decisionAction and retained record
The same hole-code segment is dark wherever a conveyor support passes beneath it.Physical light-path obstruction.Retain the machine cross-section and image evidence, change support or inspection position and validate the entire allowed board placement range.
Many hole edges smear in the motion direction but become sharp when the board stops.Exposure-motion mismatch.Compare moving crops after lighting and exposure adjustment. Keep the qualified line condition with the recipe rather than relying on stationary reads.
A sharp complete image decodes but the returned board identity is not expected.Content or association failure rather than optical no-read.Hold the board, preserve the string and event, and reconcile the production requirement without reusing the previous board's value.

Challenge the physical presentation, not only the code samples

Test lateral drift over supports, board warp, start-stop motion, hole contamination and normal code-manufacturing variation. Confirm that the inspection event still matches the board at the release point after a stop.

A reader may be sufficient for identity if the holes are consistently visible. Additional camera logic is justified when board location, obstruction detection or other inspection features form part of the task. Code readability alone does not establish dimensional quality of every manufactured hole.

Swipe across the table to compare all columns →

Challenge samples and the evidence required before acceptance
ChallengeWhat to verify
Dark and reflective board variantsCheck the contrast of individual modules.
Board over the actual conveyorConfirm the backlight path is not blocked.
Motion at the required trigger pointMeasure no-reads under production exposure.
Damaged or partially blocked codeDefine the retry and hold policy.

PCB finishes and through-hole marks to test

Provide physical boards, marking geometry, transport details, access underneath the code and expected data format.

Use the barcode verification grading guide to develop the next step.

Define the wider inspection responsibility in dpm code reading.

Develop the related acceptance requirements with machine vision lighting.

Use the optical and recovery challenges above when applying the architecture choices in vision-system comparison guide.

Scope and budget

The vision system cost guide helps scope optical access, board guidance and the code-data interface for through-hole marks.

Testing and handover

Use the testing and handover process to test dark material variation and the action taken when the mark cannot be decoded.

// Based in Johannesburg · Serving South Africa

Assess your through-hole PCB code reads

Provide physical boards, marking geometry, transport details, access underneath the code and expected data format.