ProteusElectronicsTalk to an engineer

Application noteReading dot-peened 2D codes on metal

The short answer

Use dark-field lighting: a low-angle ring light placed close to the part. The flat surface stays dark and every peened dot lights up.

Technique
Dark field
Bench render: dark field over the marked plate.Simulated camera view: the marked plate under dark field.
The setup on the lighting bench, with what the camera sees inset.

What the camera sees

Camera views come from the lighting bench, which simulates each light on the same part.

Try it on the benchRead the lighting guide

Simulated camera view: the marked plate under dark field.Simulated camera view: the marked plate under bright field.Bright fieldDark field
The same dot-peened code. In bright field the dots are grey pits on bright metal, mixed up with the brushing marks. In dark field the face goes dark and every dot lights up. Drag to compare.

The problem

Direct part marking (DPM) by dot peen puts a 2D code into the part as a pattern of small pits. There is no ink: the dots are the same material and colour as the surface around them. Under a ring light near the lens, the flat metal and the dots look almost the same, and machining marks or corrosion compete with the code.

Why it works

Light arriving at a low, grazing angle bounces off the flat surface and away from the lens, so the background looks dark. The walls of each pit face the light at a steeper angle and send part of it up into the camera. Each dot becomes a small bright point on a dark field, which a code reader can decode reliably.

cameralow-angle ringflat face: the light glances offand misses the lensa mark, an edgeor a burr sendslight up to the camera

How to set it up

  • Mount the ring close to the part, so its light skims the surface. A dark-field ring works at short working distances; raised too high, it turns back into a bright-field light.
  • Centre the code under the ring, so the dots are lit equally from every side.
  • On rough or heavily machined surfaces the texture also catches the light. Increase the diffusion, or try a dome light, which evens out the texture.
  • Laser-etched codes on smooth, flat metal change the finish rather than the shape, and often read better in bright field with a co-axial light.
  • Red light with a monochrome camera gives good contrast and, with a matching filter, is less affected by room light.

What usually goes wrong

  • The ring mounted at the lens instead of close to the part.
  • A curved part: on a shaft, a ring only skims part of the code. Use a bar light along the axis, or a dome.
  • Oil or coolant left on the part, which fills the dots and softens their edges.

Lights for this job

Tell us what you need to see.

Describe the part, the defect and the working distance. An engineer replies with the light, or designs one.

Talk to an engineersales@proteuselectronics.in