I've been trying to build a cheap X-Y-Z table using mainly bits of old CD drives and printers I've got lying around. Since the printers already have a good single axis I would like to be able to, rather than having to buy a stepper motor and rebuild it, just repurpose the optical tabe the printer uses to keep track of the print head's position and keep the same DC motor. I've been able to extract the sensor the printer uses without damaging it or any part of the track, but I've been unable to find what the proper name of this sensor is, let alone documentation describing how to use it.

The sensor in question is in a black, plastic housing with a slit that the tape fits into. There are six pins on its underside that solder to the board, two of which come from something on top of the slit and four from something underneath. The black housing is labeled '6536' on top and '15' and 'DSO' underneath. My first guess is that the top is an LED while the bottom is a light sensor of some kind, but beyond basic checks (applying a weak current through the possible LED in either direction did not cause it to noticeably light up) I'm not sure how to get any more information out of it safely.

  • 3
    \$\begingroup\$ Optical encoder. \$\endgroup\$
    – Eugene Sh.
    Nov 25 '15 at 20:01
  • 1
    \$\begingroup\$ Back in the day when HP/Agilent/Avago were one, they sold not only affordable inkjets, but also the HEDS encoder systems. This was probably not a coincidence - I remember using salvaged deskjet parts as if they were undocumented members of that family. Originally deskjets used a rotary encoder on the X servomotor, later ones a linear strip stretched across the page. \$\endgroup\$ Nov 26 '15 at 1:30

It sounds to me like an optical encoder, which looks something like this:

enter image description here

One side is an infrared emitter (which is why you can't see it--Infrared light is not visible to the naked eye) and the other side is the infrared receiver. The tape has very small stripes on it, through which light cannot pass. When this stripe blocks the IR light from the emitter, the receiver does not see it. When the tape continues to move, the clear portion of the tape eventually passes through. The light is then seen by the IR receiver, and the circuit can tell that the tape has moved.

I would expect the two-lead part to be the emitter and the 4-lead part to be the receiver.

  • 1
    \$\begingroup\$ Your eye might not be able to see it, but a cell phone camera or webcam might. \$\endgroup\$ Nov 25 '15 at 20:08
  • \$\begingroup\$ Good point. Try filming it on a digital camera as you apply current. You should see it glow a bluish-purple color. \$\endgroup\$
    – DerStrom8
    Nov 25 '15 at 20:19
  • \$\begingroup\$ Could you please tell me where you found that image? I'm having trouble finding examples of encoders with four output wires from the receiver, so I'm not sure how to wire it correctly. \$\endgroup\$
    – P...
    Nov 26 '15 at 16:55
  • \$\begingroup\$ I actually just did a google image search for "Optical encoder". I expect yours works similar to this one (internal circuit shown on pg. 2): kodenshi.co.jp/products/pdf/sensor/encoder/KE-2_10.pdf If you can find the manufacturer and part number of the exact one you have, you will probably find better documentation on how to use it. \$\endgroup\$
    – DerStrom8
    Nov 26 '15 at 21:55
  • \$\begingroup\$ Although optical encoder is a correct answer, it is specifically a Quadrature Encoder \$\endgroup\$ Jul 26 '19 at 13:48

It's an optical encoder just like in the old mice with the steel ball. It will not only detect movement but also the direction. That detection is done with some silicon. And that is the reason for the six pins You have discovered. Two pins belong to an IR-led (more or less easy to be identified with a multimeter), four pins are for the receiver, Vcc, Vss, left and right info.

Please try http://reprap.org/wiki/Optical_encoders_01

There is info about how to identify which pin is what.


I see this is an old question, but I recently took apart an Avago optical encoder from an HP printer and can provide a photo of what is connected to the four pins mentioned in the question:

My first guess is that [...] the bottom is a light sensor of some kind."

integrated detector circuit

From the Avago AEDS-962x datasheet, here is the description:

As seen in Figure 1 ["AEDS-962x SERIES BLOCK DIAGRAM" below], the module contains a single Light Emitting Diode (LED) as its light source.

The light is collimated into a parallel beam by means of a single lens located directly over the LED. Opposite the emitter is the integrated detector circuit.

This IC consists of multiple sets of photodetectors and the signal processing circuitry necessary to produce the digital waveforms.

The codewheel/codestrip moves between the emitter and detector, causing the light beam to be interrupted by the pattern of spaces and bars on the codewheel/codestrip. The photodiodes which detect these interruptions are arranged in a pattern that corresponds to the radius and count density of the codewheel/codestrip. These detectors are also spaced such that a light period on one pair of detectors corresponds to a dark period on the adjacent pair of detectors. The photodiode outputs are fed through the signal processing circuitry. Two comparators receive these signals and produce the final outputs for channels A and B. Due to this integrated phasing technique, the output of channel A is in quadrature with channel B (90 degrees out of phase).

block diagram


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.