Troubleshooting
Old linear encoder read head: test before rebuilding
Short answer
Test the old read head on its own glass scale with a temporary spring-loaded fixture and an oscilloscope at the detector and cable nodes before designing electronics or machining a mount. The test settles the two facts that decide the rebuild: whether the output is analog sine quadrature or squared TTL, and how the spring wire holds the head on the glass. A working DRO counter and intact-looking glass prove nothing on their own.

On this page
You have a glass scale from a DRO maker that no longer exists, a read head whose carrier bracket and cable restraint are missing, and a display that counts when you drive it from a function generator. Before you design interpolation electronics or machine a new mount, put the head back on its own glass with a temporary spring-loaded fixture and an oscilloscope probe at the detector nodes and the cable. That one session settles the two facts that decide the whole rebuild: whether this head outputs analog sine quadrature or squared-up TTL, and how the leftover spring wire is meant to hold the head against the glass. The counting display and the intact-looking glass settle nothing.
What the earlier checks prove #
A working DRO and unbroken glass are prerequisites, not evidence. Keep the distinction straight:
| Check you can cite | What it proves | What it does not prove |
|---|---|---|
| Glass scale in one piece by eye | No cracks, no missing chunks | Pitch accuracy, cleanliness, the edge the spring preload rides |
| LEDs, a current-limiting resistor and photodetectors on the head board | The optical parts are present | That the LED chain or detectors still work; supply polarity |
| DRO counted up, down and reset from a function generator | The display's counting electronics work | Anything about the scale or the head |
| A remembered resolution of 0.0005 in | Nothing until measured | Pitch, interpolation ratio, calibration |
Everything in the right-hand column gets settled the same way: head on glass, power applied, scope on the signals.
The two facts that decide the rebuild #
Output type. Optical heads of this class form a Moire pattern from the scale onto photodetectors, and two channels come out about 90 degrees apart: quadrature. Some heads square those channels up on the board and send two 5 V TTL square waves down the cable; others pass the sine channels out for interpolation in the display. This decides your electronics. A TTL pair goes straight to a counter or DRO input; the signal levels and wiring for that route are covered in wiring a TTL quadrature encoder to drive encoder terminals.
Stable sine channels justify an instrumentation amplifier per channel feeding a converter, and either route can count one, two or all four edges of each cycle (x1, x2, x4 decoding), as explained in what encoder CPR means after 4x quadrature decoding. Measure both sides of any squaring stage on the board: a clean square wave at the cable says nothing about how linear the sine is upstream, and detector waveforms are not automatically clean enough to interpolate.
Mount compliance. In heads of this design the carrier bracket and cable restraint bolt solid to the machine, and the only coupling between carrier and sensor is the spring wire. The wire presses the head against the face and the edge of the glass while letting it float a little; some heads ride that contact on small bearings or sled blocks. That compliance is the design, not a shortcut: it holds the optical gap while tolerating small angular error between scale and carrier. A rebuilt mount that clamps the head rigidly will either load the glass or let the head wander off gap, so reproduce the float.
Trace the head before applying power #
Work from cheap to expensive, and trace before you power:
- Read the LED chain: emitters in series with the current-limiting resistor across the supply. The resistor value and the number of LEDs tell you what supply the head was built for; never guess polarity.
- Find the detector common and whether it shares a reference with the cable shield.
- Establish whether a squaring stage (comparators or a custom IC) sits between the detectors and the cable, and note where it takes power.
- Map each cable conductor to its board node. The old DRO connector is the best record of what the cable carried.
If the scale is still bolted to a machine axis, lock out the axis drive before any of this; a powered axis can traverse into your hands or the fixture.
Build the temporary compliant fixture #
- Constrain everything but travel: the fixture must stop lift, pitch and roll, leaving only translation along the scale free.
- Reproduce the preload with spring wire or a light spring, enough for face and edge contact, never enough to bow the glass.
- If the original bearings or sled blocks are gone, let the head ride a low-friction slider (PTFE or a small bearing) instead of scraping the board on glass.
- Strain-relieve the cable at the fixture so cable force cannot reach the head.
- Set two stops a known distance apart for the count check below, and keep the first travels short until the head cannot twist or lift.
Test sequence, detector nodes first #
- Power the head from a bench supply at the voltage your trace implies, current-limited, and confirm the LED chain draws the current the resistor sets.
- Put one scope channel on a detector node and the other on the matching cable conductor; repeat for the second channel pair.
- Slide the head slowly by hand and record: analog or switched at each node, amplitude and offset, whether the two channels sit about 90 degrees apart, and whether amplitude holds along the travel.
- Totalize one channel's cycles over the measured move between the stops; the worked example below turns that into pitch.
- With clean squared channels at the cable, connect to the DRO or a counter and check count direction and repeatability at the same stops in both directions.
- Repeat while watching the fixture: a signal dip that appears only when the head twists or lifts is a mount problem, not a fault in the head.
Worked example: pitch and sampling check on a 4 mm move with 1,000 counted cycles #
Inputs, with sources:
- Channel A total during the move: 1,000 cycles (example counter reading from step 4).
- Distance between the stops: 4.0 mm (example, set and checked with gauge blocks).
- Test pace: 25 mm in 5 s (an easy hand slide; example value).
- Planned converter: 14 bit at 100 kHz sampling (the oversampling route under evaluation).
The rules in words: pitch equals the move divided by the counted cycles; decoded resolution at x4 equals pitch divided by four; signal frequency equals slide speed divided by pitch; samples per cycle equal the sampling rate divided by the signal frequency.
Arithmetic:
- Pitch: 4.0 mm / 1,000 = 0.004 mm = 4 um per cycle.
- Decoded resolution at x4: 4 um / 4 = 1 um, the same class as the 1 um TTL scales made today for DROs, so the old scale is worth keeping.
- The remembered 0.0005 in equals 0.0005 x 25.4 mm = 0.0127 mm = 12.7 um; the measurement rules it out, which is why the recollection never feeds calibration.
- Slide speed: 25 mm / 5 s = 5 mm/s.
- Signal frequency: 5 mm/s / 0.004 mm = 1,250 Hz.
- Decoded count rate at x4: 1,250 x 4 = 5,000 counts per second.
- Sampling density: 100,000 / 1,250 = 80 samples per cycle.
Result: a 4 um pitch scale, 1 um decoded, and 80 samples per cycle at hand-slide pace.
Decision, with its threshold. Interpolating sine channels wants about 10 or more samples per cycle, a rule of thumb rather than a standard. At 100 kHz that caps the signal at 10 kHz, which on this pitch means 10,000 x 0.004 mm = 40 mm/s of traverse. Below 40 mm/s the oversampling plan holds and can buy extra resolution; above it, decode edges instead or raise the sampling rate. Mechanically, accept the rebuilt mount only when the counts at the stops repeat within 2 counts (2 um) in each direction.
The decision for each case #
- Clean squared channels at the cable, both live, amplitude steady, stops repeating within 2 counts: keep the head, rebuild only the carrier and cable restraint, and feed the DRO or a counter. If you would rather count in software at the machine, a DRO program on a fanless mini PC in the cabinet takes the same squared channels.
- Stable analog sine pairs at the detectors with no dips: build the instrumentation-amplifier route, and respect the speed ceiling worked out above; plan edge decoding for fast traverses.
- One channel dead, amplitude collapsing along the travel, or counts that still will not repeat once the fixture is right: the head or the glass is bad. Heads for long-discontinued scales are not sold separately, so replace the scale with a current unit of the same class instead of building electronics around a dead optical head.
- Dips only when the head moves on the fixture: fix the compliance and rerun before condemning anything; the cheapest cause is checked first.
Questions asked
Why does the head board carry three photosensors when the output has two channels?
The third detector usually reads a reference mark on the scale, producing one isolated burst per traverse to set a repeatable zero. Confirm by sliding the head slowly along the full length and watching the spare detector node for a single pulse that appears at only one place.
Can I do the first test with a multimeter instead of an oscilloscope?
Only partly. A meter on the LED chain confirms current flows, and a DC reading on a detector node may wiggle as you slide the head, but a meter cannot show the phase relationship, waveform shape or amplitude stability that decide between the TTL and analog routes. Get a two-channel scope before choosing electronics.
How do I set the bench supply for the first power-up?
Trace the LED chain first. Its current equals the supply voltage minus the total drop of the LEDs in series, divided by the current-limiting resistor's value, by Ohm's law. Set the supply to the voltage the head was built for, set its current limit a little above that calculated LED current, and stop if the current climbs on its own.
The glass has fingerprints and a small chip along one edge. Does that matter?
Clean the graduated face with isopropyl alcohol and a lint-free wipe before judging signals; oil films attenuate light and mimic a weak detector. A chipped edge matters mechanically because the spring preload rides that edge: relieve the fixture so contact lands on sound glass, or the head will lose gap on every pass.

