t f a r D A302f Camera User’s Manual Document ID Number: DA039304 Revision Date: May 20, 2002 Subject to Change Without Notice © Basler Vision Technologies Basler Support Worldwide: Americas: +1-877-934-8472 vc.support.usa@baslerweb.com www.basler-vc.com Europe: +49-4102-463-500 vc.support.europe@baslerweb.com Asia: +65-425-0472 vc.support.asia@baslerweb.
For customers in the U.S.A. This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment. This equipment generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instruction manual, may cause harmful interference to radio communications.
DRAFT Table of Contents 1 Introduction 1.1 Camera Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 1.2 Performance Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 1.3 Environmental Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5 1.3.1 Temperature and Humidity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5 1.
DRAFT 3.10 Color Creation in the A302fc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-18 3.10.1 White Balance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-19 3.10.2 Using the A302fc in a Monochrome Mode . . . . . . . . . . . . . . . . . . . . . . . . 3-19 3.10.3 Integrated IR Cut Filter on C-Mount Equipped Cameras. . . . . . . . . . . . . . 3-19 3.11 Available Video Formats, Modes, & Frame Rates . . . . . . . . . . . . . . .
DRAFT Introduction 1 Introduction The BASLER A302f progressive scan camera is a versatile camera designed for industrial use. Superb image sensing features are combined with a robust, high precision housing. Important features are: • Compliant with the 1394 TA Digital Camera Specification (V 1.
Introduction DRAFT 1.2 Performance Specifications Specification A302f Sensor Type Sony ICX075AL/AK - 1/2 inch, HAD, interline transfer, progressive scan CCD Pixels 782 (H) x 582 (V) Pixel Size 8.3 (H) µm x 8.3 (V) µm Anti-Blooming 1:100 Dark Signal Non-uniformity ± 1 DN Photo Response Non-uniformity ± 5% Max.
DRAFT Introduction The spectral responsivity for monochrome cameras is shown in Figure 1-1. The graph includes lens characteristics and excludes light source characteristics. 1.0 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.
DRAFT Introduction The spectral responsivity for color cameras is shown in Figure 1-2. The graph includes lens characteristics and excludes light source characteristics 1 0.9 R B G 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 400 500 600 700 Wave Length [nm] Figure 1-2: Spectral Responsivity - Color Cameras * 1-4 Cameras equipped with a C-mount lens adapter contain an integrated IR cut filter.
DRAFT Introduction 1.3 Environmental Requirements 1.3.1 Temperature and Humidity Housing temperature during operation: 0° C … + 50° C (+ 32° F … +122° F) Humidity during operation: 20% … 80%, relative, non-condensing 1.3.2 Ventilation Allow sufficient air circulation around the camera to prevent internal heat build-up in your system and to keep the camera housing temperature below 50° C. Provide additional cooling such as fans or heat sinks if necessary.
Introduction 1-6 DRAFT BASLER A302f
DRAFT Camera Interface 2 Camera Interface 2.1 Connections 2.1.1 General Description The A302f is interfaced to external circuitry via an IEEE 1394 socket and a 9-pin micro-D plug located on the side of the housing. Figure 2-1 shows the location of the two connectors. There are also two status LEDs on the back of the camera. The LEDs indicate signal integrity and power OK (see Section 6.1).
DRAFT Camera Interface 2.1.2 Pin Assignments The IEEE 1394 socket is used to supply power to the camera and to interface video data and control signals. The pin assignments for the socket are shown in Table 2-1. Pin Signal Pin Signal 1 +12 VDC 4 TPB+ 2 DC Gnd 5 TPA- 3 TPB- 6 TPA+ Table 2-1: Pin Assignments for the IEEE 1394 Socket The 9-pin micro-D plug is used to interface the external trigger, integrate enabled, and trigger ready signals.
DRAFT Camera Interface 2.1.3 Connector Types The 6-pin connector on the camera is a standard IEEE-1394 socket. The 9-pin Micro-D plug is Molex Part Number 83611-9006 or the equivalent. 2.2 Video Data and Control Signals 2.2.1 Input Signals 2.2.1.1 ExTrig: Controls Exposure Start An external trigger (ExTrig) signal can be used to control the start of exposure. ExTrig can be a periodic or a non-periodic function.
DRAFT Camera Interface 2.2.2.3 Pixel Data Pixel data are transmitted as isochronous data packets according to version 1.20 of the “1394 based Digital Camera Specification” issued by the 1394 Trade Association. The first packet of each frame is identified by a 1 in the sync bit of the packet header. The video data for each pixel is output in an 8 bit format. Thus the range of intensity for each pixel includes 256 gray levels.
DRAFT Camera Interface 2.3 Camera Power Power must be supplied to the camera via the IEEE 1394 cable. The camera requires +12 VDC ± 10%. Maximum power consumption is 5.2 W for the A302f. Ripple must be less than 1%. 2.4 Status LEDs Green LED The green LED on the back of the camera is used to indicate whether power is being supplied to the camera. When the green LED is out, it means that no power is present. When the green LED is lit, it means that power is present.
Camera Interface 2-6 DRAFT BASLER A302f
DRAFT Operation and Features 3 Operation and Features 3.1 Functional Description The A302f area scan camera employs a CCD-sensor chip which provides features such as electronic exposure time control and anti-blooming. Normally, exposure time and charge readout are controlled by values transmitted to the camera’s control registers via the IEEE 1394 interface. Command registers are available to set exposure time and frame rate.
DRAFT Operation and Features CCD Sensor Vert. Shift Reg. ADC Pixels Vert. Shift Reg. Pixels Vert. Shift Reg. Pixels Vert. Shift Reg. Pixels VGC Horizontal Shift Register Figure 3-1: Sensor Architecture Microcontroller 1 Image Data Control: Shutter Binning AOI Gain Brtness.
DRAFT Operation and Features 3.2 Exposure Control 3.2.1 Setting the Exposure Time Exposure time is determined by the value stored in the SHUTTER control register. The value in the register can range from 0 to 4095 (0x000 to 0xFFF). The value in the register represents n in the equation: Exposure Time = (n + 1) x 20 µs. So, for example, if the value stored in the SHUTTER register is 100 (0x064), the exposure time will be (100 + 1) x 20 µs or 2020 µs.
Operation and Features DRAFT register (see Section 3.2.1). The start of exposure on the second and subsequent frames is automatically controlled by the camera. If the camera is operating in video Format 0, Format 1, or Format 2, the rate at which frames will be captured and transmitted is determined by the value stored in the CUR_V_FRM_RATE / REVISION control register.
DRAFT Operation and Features ExTrig/Multi-Shot Operation In ExTrig/Multi-shot operation, the camera exposes and transmits multiple frames. The number of frames that will be transmitted is determined by the value stored in the COUNT_NUMBER control register. To use this method of operation, follow this sequence: 1. Set the SHUTTER control register for your desired exposure time (See Section 3.2.1). 2.
DRAFT Operation and Features Assuming that these general guidelines are followed, the reaction of the camera to a rising external trigger signal will be one of two cases. In case one, the rising edge of ExTrig occurs when the camera is not transferring a captured frame from the sensor to the image buffer. In case two, the rising edge of ExTrig occurs when the camera is transferring a captured frame from the sensor to the image buffer.
DRAFT Operation and Features Case 2 - Exposure Start When the Camera is Transferring a Frame After each exposure is complete, there is a time period of 31.0 ms. during which the captured frame is transferred from the CCD sensor to the camera’s image buffer. If the ExTrig signal rises during this time period as shown in Figure 3-4: • The start of exposure will occur between 3 µs and 56 µs after the rise of ExTrig.
DRAFT Operation and Features 3.3 Trigger Ready Signal * The trigger ready signal is not defined in the 1394 Trade Association Digital Camera Specification. Trigger ready is a special feature of Basler cameras. One possible way to control the camera is to perform an image exposure followed by charge read out and frame transfer and to wait until frame transfer is complete before beginning the next exposure. This situation is illustrated in Figure 3-5.
DRAFT Operation and Features For better understanding of the use of trigger ready signal, consider an example. Assume that you will set the exposure time to 20 µs for every exposure and that you want to begin exposing as early as possible during transfer of the previous frame. In this case, the trigger ready signal will go high 20 µs before the earliest allowable end of exposure. This situation is illustrated in Figure 3-7.
Operation and Features DRAFT 3.4 Integrate Enabled Signal The Integrate Enabled (IntEn) signal goes high when exposure begins and goes low when exposure ends. This signal is especially useful when you are operating a system where either the camera or the object being imaged is movable. For example, assume that the camera is mounted on an arm mechanism and that the mechanism can be used to move the camera to view different portions of a product assembly.
DRAFT Operation and Features 3.6 Gain and Brightness The major components in the camera electronics include: a CCD sensor, a VGC (Variable Gain Control), and an ADC (Analog to Digital Converter). The pixels in the CCD sensor output voltage signals when they are exposed to light. These voltages are amplified by the VGC and transferred to the ADC which converts the voltages to digital output signals. Two parameters, gain and brightness are associated with the VGC.
Operation and Features DRAFT 3.6.1 Gain settings in more detail The output signals from the pixels in the CCD sensor normally range from 0 Volts when the pixels are exposed to no light to 0.375 Volts when they are exposed to bright light. Within that range, the sensor characteristics are linear. Saturation starts at 0.375 Volts. Further exposure results in a higher sensor output signal but linearity is no longer guaranteed. The default factory gain is set for an amplification factor of 5.33 (14.5 dB).
DRAFT Operation and Features 3.7 Area of Interest (AOI) The area of interest (AOI) feature allows you to specify a portion of the CCD array and during operation, only the pixel information from the specified portion of the array is transferred out of the camera. The area of interest is referenced to the top left corner of the CCD array. The top left corner is designated as column 0 and row 0 as shown in Figure 3-11.
Operation and Features * DRAFT On the A302fc color camera: the setting for Left must be 0 or an even number. the setting for Top must be 0 or an even number. the setting for Width must be an even number. the setting for Height must be an even number. On all cameras, the sum of the setting for Left plus the setting for Width must not exceed 782. On all cameras, the sum of the setting for Top plus the setting for Height must not exceed 582.
DRAFT Operation and Features 3.8 Test Images The test image mode is used to check the camera’s basic functionality and its ability to transmit an image via the video data cable. The test image mode can be used for service purposes and for failure diagnostics. In test mode, the image is generated with a software program and the camera’s digital devices and does not use the optics, CCD sensor, VGC, or ADC. Three different test images are available. Test images are an advanced feature.
Operation and Features DRAFT Test Image Two As shown in Figure 3-13, test image two consists of lines with several gray scale gradients ranging from 0 to 255. If the camera is operating at full 782 x 582 resolution when the test images are generated: • lines 1, 2, 3, and 4 start with a gray value of 0 for the first pixel, • lines 5, 6, 7, and 8 start with a gray value of 1 for the first pixel, • lines 9, 10, 11, and 12 start with a gray value of 2 on the first pixel, and so on.
DRAFT Operation and Features 3.9 Shading Correction in the A302fs In theory, when the camera captures an image of a uniform object, the values output from the pixels in the camera should be uniform. In practice, however, variations in optics and lighting can cause the camera output to be non-uniform even when the camera is viewing a uniform object.
DRAFT Operation and Features 3.10 Color Creation in the A302fc The CCD sensor used in the A302fc is equipped with an additive color separation filter known as a Bayer filter. With the Bayer filter, each individual pixel is covered by a micro-lens which allows light of only one color to strike the pixel. The pattern of the Bayer filter used in the A302fc is shown in Figure 3-14.
DRAFT Operation and Features Once the conversion to YUV is complete, pixels are transmitted from the camera in the YUV (4:2:2) format as defined in Section 2.1.3 Video Data Payload Structure in the 1394-based Digital Camera Specification Version 1.20. * The values for U and for V normally range from -128 to +128.
Operation and Features DRAFT 3.11 Available Video Formats, Modes, & Frame Rates 3.11.1 Standard Formats, Modes, and Frame Rates on the A302fs Monochrome Camera The following standard video formats, modes, and frame rates are available on the A302fs: Format_0, Mode_5, FrameRate_1 (Mono, 8 bits/pixel, 640 x 480 pixels at 3.75 fps) Format_0, Mode_5, FrameRate_2 (Mono, 8 bits/pixel, 640 x 480 pixels at 7.
DRAFT Operation and Features 3.11.3 Standard Formats, Modes, and Frame Rates on the A302fc Color Camera The following standard video formats, modes, and frame rates are available on the A302fc: Format_0, Mode_1, FrameRate_1 (YUV 4:2:2, 16 bits/pixel, 320 x 240 pixels at 3.75 fps) Format_0, Mode_1, FrameRate_2 (YUV 4:2:2, 16 bits/pixel, 320 x 240 pixels at 7.
Operation and Features DRAFT If you set the bytes per packet to a value lower than the maximum allowed, the camera will transmit frames at a lower rate. The rate is calculated by the formula: 1,000,000 µs Frames/Sec. = --------------------------------------------------------------------------Packets per Frame x 125 µs The value that appears in the UnitBytePerPacket field of the PACKET_PARA_INQ control register will show the minimum allowed setting for the bytes per packet.
DRAFT Configuring the Camera 4 Configuring the Camera The A302f is configured by setting status and control registers as described in version 1.20 of the “1394-Based Digital Camera Specification” issued by the 1394 Trade Association. (The specification is available at the 1394 Trade Association’s web site: www.1394ta.org.) If you are creating your own driver to operate the camera, Sections 4.1 through 4.
Configuring the Camera DRAFT 4.1 Block Read and Write Capabilities The camera supports block reads but not block writes. Block writes are rejected by the camera. * Do not block read registers that are not present. Use the inquiry registers to find out what registers are present and see the tables on the following pages which describe all implemented registers. 4.
DRAFT Configuring the Camera 4.4 Implemented Registers A list of all registers implemented in A302f appears below. The base address for all camera control registers is: Bus_ID, Node_ID, FFFF F0F0 0000 This address is contained in the configuration ROM in the camera unit directory. The offset field in each of the tables is the byte offset from the above base address.
DRAFT Configuring the Camera Inquiry Registers for Video Frame Rate and the Base Address of the Video Mode Command and Status Registers for the Scalable Image Size Format 4-4 Offset Name 200h V_RATE_INQ_0_0 (Format_0, Mode_0) 204h V_RATE_INQ_0_1 (Format_0, Mode_1) 208h V_RATE_INQ_0_2 (Format_0, Mode_2) 20Ch V_RATE_INQ_0_3 (Format_0, Mode_3) 210h V_RATE_INQ_0_4 (Format_0, Mode_4) 214h V_RATE_INQ_0_5 (Format_0, Mode_5) 218h ...
DRAFT Configuring the Camera Inquiry Register for Basic Functions Offset Name 400h BASIC_FUNC_INQ Notes Inquiry Registers for Feature Presence Offset Name 404h Feature_Hi_Inq 408h Feature_Lo_Inq 480h Advanced_Feature_Inq Notes Inquiry Registers for Feature Elements Offset Name 500h BRIGHTNESS_INQ 504h AUTO_EXPOSURE_INQ 508h SHARPNESS_INQ 50Ch WHITE_BAL_INQ 510h HUE_INQ 514h SATURATION_INQ 518h GAMMA_INQ 51Ch SHUTTER_INQ 520h GAIN_INQ 524h IRIS_INQ 528h FOCUS_INQ 52Ch
DRAFT Configuring the Camera Status and Control Registers for the Camera Offset Name Notes 600h CUR_V_FRAME_RATE 604h CUR_V_MODE 608h CUR_V_FORMAT 60Ch ISO_CHANNEL 610h Camera_Power 614h ISO_EN Continuous Shot 618h Memory_Save 61Ch One_Shot / Multi_Shot 620h Mem_Save_Ch Has no effect 624h Cur_Mem_Ch Has no effect Has no effect Has no effect Status and Control Registers for Features Offset Name Notes 800h BRIGHTNESS 804h AUTO_EXPOSURE Has no effect 808h SHARPNESS Has no
DRAFT Configuring the Camera Video Mode Control and Status Registers for Format_7 The base address for each Format_7, Mode_0 camera control register is: Bus_ID, Node_ID, FFFF F1F0 0000 This address is contained in the Format_7 section of the “Inquiry Registers for Video Frame Rate and Base Address of the Video Mode Command and Status Registers for the Scalable Image Size Format.” A register has been prepared for each video mode that is Format_7, Mode_x.
DRAFT Configuring the Camera 4.5 Advanced Features * The advanced features control and status registers are vendor unique and are subject to change. 4.5.1 Advanced Features Access Register The base address for the Advanced Features Access register is: Bus_ID, Node_ID, FFFF F2F0 0000 This address is contained in the Advanced_Feature_Inq register of the “Inquiry register for feature presence” section. The offset field in each of the tables is the byte offset from the above base address.
DRAFT Configuring the Camera Extended Versions Information Register Offset Name Field Bit Description 1014h EXTD_VERSIONS String (Read only) [n Bytes] An ASCII character string that includes the software version numbers for the camera. The length of this string field is equal to the number of quadlets given in the “Length” field of the Inquiry Register for Version Information (see page 4-8).
DRAFT Configuring the Camera Status and Control Register for Test Images This advanced features register can be used to control the operation of the camera’s test image feature (see Section 3.8). Offset 0098h 4-10 Name TEST_IMAGE Field Bit Description Presence_Inq (Read only) [0] Presence of this feature 0: N/A 1: Available --- [1..
DRAFT Configuring the Camera Shading Correction Advanced Feature Register The shading correction advanced feature register can be used to control the operation of the camera’s shading correction feature (see Section 3.9). Offset 0100h 0104h 0108h 010Ch 0110h ...
Configuring the Camera 4-12 DRAFT BASLER A302f
DRAFT Mechanical Considerations 5 Mechanical Considerations 5.1 Camera Dimensions The camera housing for the A302f is manufactured with high precision. Planar, parallel, and angular sides guarantee precise mounting with high repeatability. The A302f camera is equipped with four M4 mounting holes on the front and two M4 mounting holes on each side as indicated in Figure 5-1. Caution! ! BASLER A302f To avoid collecting dust on the sensor, mount a lens on the camera immediately after unpacking it.
Mechanical Considerations DRAFT PHOTO− SENSITIVE SURFACE OF CCD Figure 5-1: A302f Mechanical Dimensions (in mm) 5-2 BASLER A302f
DRAFT Mechanical Considerations 5.2 C-Mount Adapter Dimensions C-Mount Adapter on an A302fs C-Mount Adapter PHOTO− SENSITIVE SURFACE OF CCD Figure 5-2: C-Mount Adapter Dimensions (in mm) 5.
DRAFT Mechanical Considerations 5.4 Positioning Accuracy of the Sensor Chip On the A302f, the tolerance for the positioning of the sensor’s image area to the camera housing is ± 0.3mm in the horizontal and vertical directions. Rotational positioning accuracy is as shown in Figure 5-4. Reference position is the center of the camera housing.
DRAFT Troubleshooting 6 Troubleshooting 6.1 Fault Finding Using Camera LEDs 6.1.1 Yellow LED The A302f regularly performs self tests. Detected errors are signaled by blinking of the yellow LED on the back of the camera. The number of pulses indicate the detected error. If several error states are present, the yellow LED outputs the error codes in succession. See Table 6-1 for the description of the pulses. LED Camera Condition On Continuous The camera is OK.
Troubleshooting 6-2 DRAFT BASLER A302f
DRAFT Revision History Doc. ID Number Date Changes DA039301 6-Feb.-2001 Initial release. DA039302 18-Apr.-2001 Made numerous small changes to grammar and phrasing. Added connector information in Section 2.1.3. Added ripple specification to Table 1-1 and Section 2.3. Added Section 4.6 containing information about how to access firmware version numbers. DA039303 25-July-2001 Updated the camera model information in Section 1.1.
DRAFT ii BASLER A302f
DRAFT Index A I advanced features . . . . . . . . . . . . . . . . . . . . . . . . 4-8 advanced features access register . . . . . . . . . . . 4-8 anti-blooming . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 area of interest . . . . . . . . . . . . . . . . . . . . . . . . . 3-13 IEEE 1394 Device Information . . . . . . . . . . . . . . . 2-4 implemented registers . . . . . . . . . . . . . . . . . . . . . 4-3 input signals external trigger . . . . . . . . . . . . . . . . . . . . . . .
DRAFT shock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . spectral responsivity color cameras . . . . . . . . . . . . . . . . . . . . . . . . monochrome cameras . . . . . . . . . . . . . . . . . status LED green . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . yellow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 1-4 1-3 2-5 2-5 T temperature requirements . . . . . . . . . . . . . . . . . . 1-5 trigger ready signal . . . . . . . . . . . . . . . . . . . .