TC255P Minimal Head (A2016)

© 2004, 2005, 2008 Kevan Hashemi, alignment.hep.brandeis.edu

Contents

Description
Pin One
Versions
Image Geometry
Sensor Mounting
Electronics

Description

The TC255P Minimal Head (A2016) holds an TC255P image sensor and provides a connector through which the sensor may be controlled and read out. The A2016 allows us to do the following.

  1. Place a TC255P in tight spaces where its control electronics will not fit.
  2. Isolate the mechanics of the TC255P mount from the mechanics of the control electronics mount.
  3. Allow us to use the same control electronics in a variety of applications, each of which has a unique TC255P mount.

The TC255P is a CCD (charge-coupled device) in a 0.4" wide 8-pin DIP package. We control it with clock signals that switch between +2V and −11V. We power it with +12V. It produces a series of pixel intensities as an analog voltage that varies between roughly 10V for black and 9V for white. The connector provided by the A2016 is an eight-way 1-mm pitch flex connector for use with an 8-way 1-mm pitch flex cable. Inside an aluminum enclosure, we notice no degradation of image quality for flex cables up to 15 cm, and we are able to acquire images with 45-cm flex cables, which are the longest we have been able to buy.

We chose the pin-out of the eight-way flex connector so that plugging the flex cable in the wrong way around would cause no damage to either the TC255P or the control electronics.

The A2016 comes in many varieties, some of which we show in pictures below. Each connects to a larger circuit board from which it obtains power and clock signals, and to which it delivers the image pixels. The A2016 gives the image sensor mechanical isolation from the larger circuit that drives it, and therefore from the larger circuit's external power cable.

You may connect any of the A2016 minimal heads to any of our series of control circuits that provide an eight-way flex socket for a TC255P. Examples are the Inplane Sensor Head (A2036), Bar Head (A2044), Azimuthal BCAM Head (A2048), Proximity Camera Head (A2047), and Camera Head (A2056). All these control circuits are examples of LWDAQ (Long-Wire Data Acquisition) devices. We use them to obtain images with the help of a LWDAQ driver and our LWDAQ Software. For an introduction to the LWDAQ, see the LWDAQ User Manual.

Pin One

Determining Pin 1 on a TC255P package can be difficult. The markings on the package have changed over the years, and can be misleading. For a photograph of a TC255 showing the bond wires, see below. The only reliable way to find Pin 1 is to look through the glass and find the bond wires that connect the sensor's storage area to its pins. The image area is the rectangle above the rectangle with the bond wires. Pin 1 is the top-left pin when you hold the sensor with the storage area towards the bottom. Do not use the color of the image and storage areas as a clue to which is which. Use the bond wires. We once soldered 160 TC255Ps upside-down into A201601Ls because we believed the image area was the darker rectangle. But our new batch of TC255Ps had a dark storage area and a light-gray image area. The bond wires, however, are always on the storage area, and will always show you where Pin 1 is on the sensor. For a detailed drawing of the TC255P package, see here.

Versions

The following versions of the TC255P Minimal Head (A2016) exist. We describe each version by giving the location of the flex connector, J1, with respect to the image sensor. To define our directions: up, down, left, right, top, bottom, we look straight down at the image sensor, with Pin 1 of the package on the top-left. The top side of the PCB (printed circuit board) is the side upon which the image sensor is mounted. The bottom side is the other side of the PCB. The directions up, down, left, and right lie in the plane of the PCB. When we say the connector is oriented vertically, we mean the length of the connector is in the up-down direction. Horizontal (H) orientation puts the length of the connector in the left-right direction. Pin 1 of the flex connector might be marked on the top of bottom silk screen with a small 1 numeral, or it might not be so marked. But Pin 1 will always be distinguished from the other eight pins of the flex connector footprint by its square pad shape. Similarly, Pin 1 of the image sensor socket is square.

VersionJ1 Location and Orientation
Abottom-side, horizontal, pin-1 left, above sensor
Btop-side, horizontal, pin-1 right, below sensor
Cbottom-side, vertical, pin-1 down, centered on sensor
Dbottom-side, horizontal, pin-1 right, below sensor
Ltop-side, horizontal, pin-1 left, below sensor, mounting holes
Pbottom-side, vertical, pin-1 down, centered on sensor, reduced-size A2016C
Rtop-side, horizontal, pin-1 left, below sensor, mounting holes
Table: Versions of the TC255P Minimal Head (A2016)

On each version, the image sensor may be soldered directly to the board or plugged into a socket. Here are the A2016 assemblies, showing the flex connector orientation.


Figure: A2016P. J1 bottom-side, vertical, pin-1 down, center of sensor, reduced-size A2016C. Marked are (A) Pin 1 of the TC155P and (B) Pin 1 of the flex socket. The A2016P is used in Proximity Cameras and Inplane Sensor Heads.


Figure: A2016L. J1 top-side, horizontal, pin-1 left, below sensor. Used in the Black Azimuthal BCAM.


Figure: A2016R. J1 top-side, horizontal, pin-1 right, below sensor. Used in the Blue Azimuthal BCAM.


Figure: A2016A. J1 bottom-side, horizontal, pin-1 left, above sensor.


Figure: A2016B. J1 top-side, horizontal, pin-1 right, below sensor.


Figure: A2016C. J1 bottom-side, vertical, pin-1 down, center of sensor. We replaced this version with the smaller and more versatile A2016P


Figure: A2016D. J1 bottom-side, horizontal, pin-1 right, below sensor.

To get an idea of the size of the heads, compare them to the 0.1-inch (2.5-mm) pitch of the pins on the sensor, or the 0.4-inch separation of the two rows. The flex cable conductors are on a 1-mm pitch.

Image Geometry

Here we present image coordinates and show how we translate between coordinates in an image on our computer screen to coordinates in the plane of an image sensor. Our discussion is not particular to the TC255P that mounts on the A2016, although we use the TC255P as our most prominent example of an image sensor.

The TC255P provides 243 rows of 324 light-sensitive pixels. Each pixel is 10 μm square. All LWDAQ drivers and TC255P devices acquire images from the TC255P in the same way. They create an image with 244 rows and 344 colums. The rows are numbered 0 to 243 and the columns are numbered 0 to 343. The top row is generated by the data acquisition syste, and used by the data acquisition software to store the image dimensions, its analysis boundaries, and other particulars of data acquisition, as we explain in Image Formats. The remaining 243 rows contain pixels from the TC255P image area. In each row, there are 324 light-sensitive pixels from the image area. These are the right-most 324 pixels. The first 6 pixels are dummy pixels generated by the LWDAQ driver. The next 2 pixels are dummy pixels generated in the TC255P. The next 12 pixels are black-level pixels from the image area. They are pixels covered by opaque aluminum. Thus all TC255P images obtained with the LWDAQ will have a black stripe 20 pixels wide on the left side.

If you hold the TC255P up so that pin one is on the top-left, you will see the image area as the top rectangle under the window. The LWDAQ reads out the bottom-left pixel in the image area first, and proceeds along the bottom row to the right. When it has read out the bottom row, it starts with the next row up, beginning with its left-most pixel. The last pixel the LWDAQ reads out is the top-left pixel in the image area.

The result of data acquisition from the TC255P is a gray-scale image. The LWDAQ software will display the image on our screen. All LWDAQ image analysis routines agree upon the definition of image coordinates, which we use to define points in the image and on the sensor. The image coordinate origin is the top-left corner of the top-left pixel in the image as it appears on our computer screen. But the top-left pixel in the image is the bottom-left pixel in the light-sensitive area on the sensor. The figure below attempts to show how image coordinates appear on the sensor and in the display.


Figure: Image Coordinates in Sensor and Image. The red arrow points to the origin of image coordinates on the sensor. Pin 1 of the sensor package is on the top-left. Whenever the long side of the sensor package is vertical and Pin 1 is on the top side, we say the sensor is upright. The A201601L shown in the figure is designed to hold the sensor upside-down, which explains why the silk screen letters are upside-down in the figure.

As you can see, image coordinates are right-handed on the sensor but left-handed in the image we create with our software. Suppose we place a lens in front of the image sensor and focus an image of an object upon the sensor surface. The image on the sensor is an inverted mirror-image of the object. But as we go from the sensor to the computer screen, we invert and reflect the image so that what we see on the screen is an upright and unreflected image of the object.

The way we remember our definition of image coordinates is as follows. We remember our definition of upright for our image sensor. In the case of the TC255P, the sensor is upright when the long side of its package is vertical and Pin 1 uppermost. We figure out simple optics that the image of an object on the sensor must be inverted and reflected. We remember that the image we obtain from a camera with an upright image sensor will be upright and unreflected. Now we draw pictures and arrive at a sketch like the one above.

Our image coodrinate origin is at the top-left corner of the top-left pixel in the screen image. This top-left pixel is not a pixel from the sensor. Indeed, the top row of any LWDAQ-generated image will be a dummy row used to store image meta-data. The fact that our origin pixel is not taken from the set of light-sensitive pixels does not detract from the value of our definition. The top-left edge of the top-left pixel is a definition that we can apply without ambiguity to any image, regardless of its dimensions or the size of its pixels. The TC255P pixels are 10 μm square and TC237B pixels are 7.4 μm square. A TC255P image sensor provides 243 rows of 324 active pixels. A TC237 provides 496 rows of 658 active pixels.

We use ccd coordinates in our spot-finding routines, which we define in spot.pas. We use these routins to find light spots in BCAM images and wire silhouettes in WPS images. The routines determine the location of features in image coordinates, but they do not use units of pixel widths and pixel heights. When it comes to making practical use of a feature position, we always find that we need to know the location of the feature on the sensor. Our routines assume that all pixels are square, and they require that we specify the pixel width in microns. The routines return the position of features in microns from the origin of image coordinates as it appears on the sensor, with x and y defined as in the figure above. When a feature has an orientation, as does a wire silhouette, our routines specify the rotation in milliradians, with positive rotation when the feature rotates anti-clockwise with respect to the image.

When we are measuring the location of an large feature, such as a Rasnik Mask or a Stretched Wire, we tend to use the center of the image as a reference point for the measurement rather than the origin of image coordinates. Using the center of the image reduces the effect of errors in our rotation measurement upon our measurement of position. In TC255P images, our routines use the top-left edge of pixel 172 in the row 122 as the center. In units of pixels, the center is (172, 122). The TC255P has 10-micron square pixels, so in units of microns the center is at (1720, 1220). In units of millimeters, the center is at (1.720, 1.220). The following definition is from bcam.pas.


const
	bcam_ccd_center_x=1.720;{along ccd x-axis (mm)}
	bcam_ccd_center_y=1.220;{along ccd y-axis (mm)}

The Rasnik Instrument allows us to specify a variety of reference point. We can choose the origin of image coordinates, the default center of the image, or we can provide our own reference point in image coordinates with analysis_reference_x_um and analysis_reference_y_um. We specify the reference point in microns. We also specify the image pixel width and height with the single parameter analysis_pixel_size_um.

The WPS Instrument allows us to specify a reference y-coordinate at which we will determine the x-coordinate of the center of a wire silhouette. We specify the y-coordinate in microns with analysis_reference_um.

For a more detailed drawing of the TC255P package, which gives the location of the center of the image area with respect to the pins and package corners, see the package drawing.

Sensor Mounting

You may wish to glue the sensor to a post, and attach the A2016 from behind with a socket. This is what we did in our Proximity Cameras, as shown below. In this case, we found that we had to solder the CCD into the socket to make it secure.


Figure: A2016P soldered to TC255P.

When you solder the CCD into a socket, you do so one pin at a time. You heat the socket and pin together, and apply solder. You should see the solder flow down into the socket, giving you a shiny concave joint, as shown in the photograph above. Applying heat to the first pin can be tricky, because there is no other soldered pin holding the socket to the CCD. It's easy to push too hard on the iron and push the socket off.

Example: We glue the sensor into a cradle in an image sensor assembly, then solder the A2016C onto the sensor from behind. The flex connector is already soldered onto the circuit board. We connect the A2016 to an Inplane Sensor Head (A2036) with a six-inch flex cable. We connect the A2036 to a LWDAQ Driver (A2037), and retrieve images from the A2016 through the A2036. We transfer these images over the Internet and display them on our computer screen with the help of the LWDAQ Software.

We have tested the A2016 with flex cables up to 45-cm long. As the cable gets longer, electronic noise degrades the image. We notice no degradation of image quality for cables less than 10 cm.

Electronics

Note: All our schematics and Gerber files are distributed for free under the GNU General Public License.

The flex connector (J1) is a 1-mm flex cable socket. We buy ours from Digikey. Some sockets have contacts on one side, others have contacts on both sides. An example of a two-sided socket is the FH21-8S-1DSA from Hirose Electric Company. The flex cables we also get from Digi-Key. An example is They are made by Parlex Corp. The six-inch eight-way cable is Parlex part number 1.00MM-8-6-B. The table below gives the TC255P connections present on the pins of the eight-way socket. We chose the pin-out on the socket so that plugging the flex cable in the wrong way would not damage the image sensor or the control electronics.

SignalJ1 PinU1 PinFull Name
OUT34output
SAG46storage area gate
SRG85serial register gate
ABG28anti-blooming gate
+12V12drain voltage supply
0V53substrate voltage supply
IAG61,7image area gates
Table: Connections on the A2016, all versions.

The sensor (U1) can be soldered directly onto the printed circuit board, or inserted in a socket made out of two 4-way SIL (single-in-line) sockets. We have been unable to find 0.4-inch DIP sockets for the TC255P, so we make our own out of SIL sockets.

There are no components on the A2016 other than the sensor and a 8-way 1-mm flex cable socket.

Page 1: TC255 Socket

Here are the available printed circuit board layouts.

A201601 All Versions Traxmaker Files
A201601J
A201601L
A201601P
A201601R