Applications

Encoder PCB Assembly

Short answer. An encoder board is an optical assembly with a PCB inside it. The electronics are simple; the difficulty is that a light source, a coded disc and a photodetector array have to hold their relative position to tens of microns, and the board is the thing that fixes that position. The drive side of the interface is a different problem, covered in servo drive PCBA.

Two sides of the same cable

An encoder and a drive talk over the same four or six wires, and it is easy to read one page and assume it covers the other. It does not. The drive has to receive a differential signal that has crossed a cable in a cabinet full of switching noise, and it protects itself with termination, common-mode chokes and isolation. The encoder has to generate that signal from an optical front end, and it has to do so inside a housing the size of a film canister.

This page is about the generating side. What matters there is alignment, contamination and the thermal behaviour of a board that is bonded to a metal housing and rotates with the shaft on some designs.

Alignment is a mechanical tolerance, expressed on the board

The light source, the disc and the receiver array form a three-body stack. The board locates the source and the array; the disc is located by the shaft. Any error in the board's own datum - the distance between the source and the array, the flatness of the board under reflow, the position of the alignment pins - appears as a phase error in the output.

In practice this means the board is designed around a fixture, not around the panel. Alignment holes are non-plated and used as datums, not as vias. The array is placed with the same pick-and-place nozzle and the same vision system as the rest of the board, but the placement file references the datum holes rather than the board edge, because the edge is routed and the holes are drilled.

The differential pair has to survive the connector

RS-422 and its variants run at 100 Ohm differential. The pair is routed as a pair from the driver to the connector, and the connector is chosen for the impedance it presents rather than for its pin count. A pair that is perfect for 30 mm and then splits around a mounting hole is not a 100 Ohm pair at the frequencies that matter.

Two details come up on almost every encoder layout. The return path of the pair is the plane underneath it, and that plane must not be cut by a slot for an isolation barrier or a mounting hole. And the common-mode choke, if there is one, sits before the connector so that what leaves the board is already filtered.

Contamination and heat inside a sealed housing

An encoder housing is not hermetic. It breathes as it warms and cools, and whatever is in the air ends up on the disc and on the detector. Flux residue from the assembly process is a particular problem because it is inside the housing from the first day.

Boards for this application are cleaned after reflow, and the coating is applied so that it does not cover the optical path. We mask the emitter and detector windows, the alignment features and any optical reference surface. Where the housing is bonded to the board, the bond line is kept away from the optical cavity, because a bead of adhesive that outgasses onto the disc is a permanent and unrecoverable fault.

What is being controlledBoard feature that controls itHow it is verified
Phase error between channelsDatum holes and array placement relative to themModule-level test with a reference disc
Signal integrity over the cable100 Ohm pair, unbroken return plane, connector choiceEye diagram at the connector, or a time-domain check
Optical contaminationPost-reflow cleaning plus masked coatingVisual under magnification before housing
Thermal drift of the emitterEmitter driven from a current source, not a voltageOutput stability over a warm-up run
Mechanical run-outBoard flatness and housing bond lineAssembly check on the customer's fixture

Test at the module, not at the panel. A flying-probe or ICT test on the bare board cannot see an alignment error, because the error only exists once the optics are in place. Encoder boards are usually tested in a fixture that reproduces the housing datum, and the pass criterion is an output pattern rather than a set of net resistances. If that fixture is the customer's, we ask for it or for its drawing before the first build.

The impedance side of this problem is covered in RF PCBA assembly, which deals with controlled-impedance traces that have to survive the assembly process rather than only the layout tool.

Send the stack-up, the BOM and the test requirements.

DFM notes come back before the quotation is fixed. Write to alden@kilandu.com or WhatsApp +86 198 6673 0897.