DSP BASED MEASURING LINE-SCAN CCD CAMERA

Similar documents
REMOTE-CONTROL MEASUREMENT SYSTEM BASED ON THE IEEE-488

Application Note: APP0002 Rev D. DLIS 2K/4K- Mode Programming Guide

FPGA-BASED DATA ACQUISITION SYSTEM WITH RS 232 INTERFACE

PSEC-4: Review of Architecture, etc. Eric Oberla 27-oct-2012

The Precision Simulation of the First Generation Matrix Converter M. Bednář

DYNAMIC ELECTRONIC SPECKLE PATTERN INTERFEROMETRY IN APPLICATION TO MEASURE OUT-OF-PLANE DISPLACEMENT

Development of a New TDC LSI and a VME Module

AC : DESIGN OF DATA ACQUISITION SYSTEM FOR COMPUTER ENGINEERING EDUCATION

REDUCTION OF PACKET LOSS BY OPTIMIZING THE ANTENNA SYSTEM AND LAYER 3 CODING

High-resolution CCD Camera. Model CS3920 PRODUCT SPECIFICATION

8254 is a programmable interval timer. Which is widely used in clock driven digital circuits. with out timer there will not be proper synchronization

COMBINING time-domain computation with imagesensing

NEMbox / NIMbox Programmable NIM Module

Reduction of Packet Loss by Optimizing the Antenna System and Layer 3 Coding

Implementation of High Speed Distributed Data Acquisition System

Lecture-55 System Interface:

Matrix Manipulation Using High Computing Field Programmable Gate Arrays

High speed CMOS image sensors Wim Wuyts Sr. Staff Applications Engineer Cypress Semiconductor Corporation Belgium Vision 2006

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an

Applied mechanics and applied technology in fuel injection pump bench. Rotational speed measurement system design based on CPLD

Teledyne Imaging Sensors SIDECAR ASIC Development Kit & Focal Plane Electronics

New low noise CCD cameras for "Pi of the Sky" project

HIGH-SPEED DATA ACQUISITION SYSTEM BASED ON DRS4 WAVEFORM DIGITIZATION

Design of a virtual logic analyzer based on FPGA

A 20 GSa/s 8b ADC with a 1 MB Memory in 0.18 µm CMOS

Device for Precise Packet Delay Measurement

Advanced NI-DAQmx Programming Techniques with LabVIEW

New CMOS and CCD Cameras for 2013

Microcontrollers. Principles and Applications. Ajit Pal +5 V 2K 8. 8 bit dip switch. P2 8 Reset switch Microcontroller AT89S52 100E +5 V. 2.

Schematic. A: Overview of the Integrated Detector Readout Electronics and DAQ-System. optical Gbit link. 1GB DDR Ram.

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

TRiCAM APPLICATIONS KEY FEATURES. Time Resolved intensified CAMera. TRiCAM 13001A01 31/10/2013

Detector R&D at the LCFI Collaboration

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Research of tooling test signal collection and analysis Guozhuang Liang 1, a, Xuan Chen 1,b,Yufeng Yao 2,c

STUDY OF SRAM AND ITS LOW POWER TECHNIQUES

Comparison between 3D Digital and Optical Microscopes for the Surface Measurement using Image Processing Techniques

PyLoN: Applications: Astronomy, Chemiluminescence, Bioluminescence, Phosphor Imaging, Ultra-low light Imaging and Spectroscopy.

2015 Paper E2.1: Digital Electronics II

The Platform Monitoring System for Wisdom shipyard Based on the CCD Sensor Su Wan Pan 1, Yuan jiang LI 2, Meng Chen 3 1 Undergraduate Student School

Question Bank Microprocessor and Microcontroller

Minimizes reflection losses from UV - IR; Optional AR coatings & wedge windows are available.

ETM-ASIC. Condensed Data Sheet

EXPERIMENTAL HIGH SPEED CMOS IMAGE SENSOR SYSTEM & APPLICATIONS

HIGH SPEED TDI EMBEDDED CCD IN CMOS SENSOR

INFN Padova INFN & University Milano

EASY-NIM 928 Suite. High Performance, Multi-Function Nuclear MCA/Counter/Timer/Rate Meter

CCS Technical Documentation NHL-2NA Series Transceivers. Camera Module

Prototyping NGC. First Light. PICNIC Array Image of ESO Messenger Front Page

DaqBoard/1000. Series 16-Bit, 200-kHz PCI Data Acquisition Boards

Mohammad Jafar Navabi Medtronic Microelectronics Center, Tempe, Arizona, USA

Digital Electronics 27. Digital System Design using PLDs

SPART - A Special Purpose Asynchronous Receiver/Transmitter

Computer Hardware Requirements for Real-Time Applications

Comparison of Special Methods with Commercial Products for Optical-based Measurement of Dimensions

0.1 Slow Monitoring and Recording System

I/O Systems (3): Clocks and Timers. CSE 2431: Introduction to Operating Systems

Design and Simulation of Temperature Data Acquisition System based on Proteus. Jinghui Su

Testing Gated Mode on Hybrid 4.1

Register Map and Descriptions

Design of Dual Port SDRAM Controller with Time Slot Register

CCD Acquisition Function

Topics. Interfacing chips

Analysis of Broadcast Authentication Mechanism in Selected Network Topologies

The Trigger-Time-Event System for the W7-X Experiment

Parallel Extraction Architecture for Information of Numerous Particles in Real-Time Image Measurement

M ICROSTAR LABORATORIES TM

Based on a Single Chip Microcomputer to Realize Electronic Clock Design and Analysis

PI-MAX 4: 1024i-RF. Compatible with Windows 8/7/XP, and Linux; Universal programming interfaces for easy custom programming.

END-TERM EXAMINATION

Application of High Speed Serial Data Transmission System in Remote Sensing Camera

DV887 (back illuminated)

A 3-SPEED STEPPER MOTOR

Implementation of 4K x 4K CCD Camera system. for. DFM Telescope

S100 Series. Compact Smart Camera. High Performance: Dual Core Cortex-A9 processor and Xilinx FPGA. acquisition and preprocessing

Embedded Power Supply Controller

Control & Interface Electronics. CCD Sensor

Microcontroller & Interfacing

FPGA Algorithm Development Using a Graphical Environment

C ELEMENTS LINEAR IMAGE SENSOR DATA SHEET

8085 Microprocessor Simulation Tool 8085 SimuKit

Real-time image processing and data communication for a 3-D measurement system.

CMOS sensors are coming at age

DS1104 R&D Controller Board Single-board PCI hardware for use in PCs Set of intelligent I/O on-board

THE ALFA TRIGGER SIMULATOR

Low Cost Multifunction I/O 100 ks/s, 12-Bit, 8 Analog Inputs

IEEE Proof Web Version

20 MHz/16-bit readout 61 fps rate at full-frame resolution. Use ROI/binning for hundreds of frames per second.

This set of Microprocessor Multiple Choice Questions & Answers (MCQs) focuses on PIO 8255 (Programmable Input Output Port).

XDAS-V3 1.6 mm pitch dual energy X-ray data acquisition system

ECONseries Low Cost USB DAQ

ECG (EKG) Primer Jingxi Zhang ABSTRACT

Hewlett-Packard HDCS-2000 CMOS Image Sensor Circuit Analysis

HPS128-LT-S Hybrid pyroelectric linear array with 128 responsive elements and integrated CMOS multiplexer

ECONseries Low Cost USB DAQ

Temperature measurement board, optically isolated, 16/8/4 channels for thermocouples, Pt100, RTD, 18-bit

Lecture-50 Intel 8255A: Programming and Operating Modes

Testing and Debugging

Marine Acoustic Acquisition System

Reconfigurable PLL for Digital System

Transcription:

computing@tanet.edu.te.ua www.tanet.edu.te.ua/computing ISSN 1727-629 International Scientific Journal of Computing BASED MEASURING LINE-SCAN CAMERA Jan Fischer 1), Tomas Radil 2) Czech Technical University in Prague, Faculty of Electrical Engineering, Department of Measurement Technicka 2, 166 27 Prague 6, CZECH REPUBLIC http://measure.feld.cvut.cz/groups/videometry/ 1) fischer@fel.cvut.cz, http://measure.feld.cvut.cz/usr/staff/fischer/ 2) radilt1@fel.cvut.cz, http://measure.feld.cvut.cz/usr/doctoral/radil/ Abstract: A simple, flexible and programmable line-scan camera is presented in this paper. This camera is designed for measurement purposes such as dimension and position measurements. Camera enables implementation of various signal-processing algorithms as well as usage of various types of s. Keywords: -, line-scan camera, embedded signal processing 1. INTRODUCTION line-scan cameras are used in measurements e.g. for dimension measurement applications where the resolution (number of s) of cameras with area s is not sufficient and the whole image of the measured object is not required. Following figures show block diagrams of two common line-scan camera concepts: camera with analog output (Fig. 1) camera with digital output (Fig. 2) linear CDS Control logic Amplifier framegrabber In both cases the signal from the is in the camera only pre-processed using a sampler (CDS Correlated Double Sampler) and an amplifier or an ADC. The signal-processing and measurement algorithms are implemented in some external unit such as PC. Our goal was to develop a simple digital linescan camera for measurement purposes that could work without additional peripheries. Further we wanted the camera to be re-configurable so it would be easy to change the signal-processing algorithm. Easy application of various types of s was also required so it will be possible to use the most suitable for different tasks. 2. CAMERA CONCEPT DESCRIPTION Compared to the block diagram of a digital linescan camera in Fig. 2, a stand-alone solution must also implement a signal-processing block (Fig 3). Fig. 1 Block diagram of a common line-scan camera concept camera with analog output. FIFO Signal processing FIFO Interface PC linear Control logic linear Control logic Fig. 2 Block diagram of a common line-scan camera concept camera with digital output. Fig. 3 Block diagram of a stand-alone digital linescan camera. The signal-processing block can be of course implemented using an embedded PC but more 86

simple and cost effective solution was required. Also a more flexible solution of the control logic block than the conventional solution based on logic gates or programmable device such as CPLD or FPGA was wanted. This leads to a solution based on a single chip that would be able to perform all following tasks: generating control signals generating control signals for sampler and ADC storing measured data in memory performing various signal-processing algorithms Requirements mentioned above led to a solution based on a (Digital Signal Processor) see Fig. 4. Unlikely common applications, where the is used only for signal processing, in this application it also generates all necessary control signals and its internal data memory is used to store data before they are processed (no additional data memory, FIFO or dual-port RAM is therefore needed). The Analog Devices A-2184 (or alternatively A-2185) was used. Further simplification of the camera design was achieved by using a so-called signal processor (or Analog Front End) for s signal conditioning and digitising. The signal processor driver control register control RAM parallel interface PC's parallel port Signal processing serial interface RS 232 Linear Sensor module signal processor Signal processing module Timer Program memory Interface AUX outputs optically coupled I/O e.g. LED illuminator Fig. 4 Block diagram of the designed camera. contains a CDS (Correlated Double Sampler) sampling unit, a programmable amplifier, an offset correction DAC and an ADC. Namely the signal processor AD9814 was used. The camera is split into two modules (Fig. 4). The module contains the and control signals driver (if necessary). The signalprocessing module contains the rest of the necessary circuits: signal conditioning, control and communication circuits and the. Splitting the camera into two modules enables to use various s with one multipurpose data acquisition and processing module. When generating control signals the has only small computational power left to perform realtime signal processing. Most algorithms must therefore work offline after the whole image from the is acquired. This is only a small drawback since many applications and manufacturing processes allow to divide the measurement cycle into two steps: image acquisition, signal processing. 3. CONTROL SIGNAL GENARATING To enable easy reconfiguration of the camera, the control signals are generated entirely by program. This is a more flexible solution than having the control generator realised using a programmable logic device (CPLD or FPGA) or logic gates. Control signals are generated by writing proper combination of signal levels to a register ( control register in Fig. 4) mapped in the I/O space of the as an output port. The must generate all necessary signals needed to control the (Fig. 5) such as transfer gate pulse, shift register clock Φ CLK, charge detector reset and shutter gate pulse Φ SHUT (if the used has one). V OUT Q/U 1. 2. 3. SHUTTER DRAIN SHUTTER GATE PIXELS TRANSFER GATE SHIFT REGISTER N-1. N-2. N. Φ SHUT Φ CLK Fig. 5 Block diagram of a linear with its control signals. The program must also control the sampling of the s output signal V OUT using the signals CDSCLK1 and CDSCLK2 (Fig. 6) and the A/D conversion using the signal ADCCLK. The s internal timer is used to ensure constant integration time (i.e. constant period of signal ). This timer generates periodically 87

interrupts with a period equal to the period of the signal. generates the signal internally, only 14 instruction cycles are needed. V OUT FEEDTHROUGH 1 PIXEL READ OUT REFERENCE LEVEL SIGNAL LEVEL t CNTR = N Read-out one CDSCLK1 CDSCLK2 CNTR = CNTR-1 Fig. 6 Typical waveforms of the CDS sampling signals. In the timer interrupt service routine (see Fig. 7 for a routine flowchart valid for a without electronic shutter) the pulse is generated first and then the image from the s is read out. Finally, the acquired image is processed e.g. multiplicative error is corrected, positions of edges in the image are found, distance between edges is determined and so on. Timer Interrupt Service Routine Generate puls Image Readout Cycle Process Image return Fig. 7 Flowchart of the timer interrupt service routine ( without electronic shutter). From Fig. 7 follows a limitation of this concept. The shortest integration time must be longer then the time needed to perform image read-out and image processing. This limitation can be overcome by using a with an electronic shutter. Simplified flowchart of the image read out cycle is shown in Fig. 8. First the s loop counter register (CNTR) is loaded with the number of s s (N). Then the cycle of one- read-outs is performed. The number of instruction cycles needed to read out one of the depends on the number and required waveform of control signals. For example when using a Sony ILX53A in the mode with external reset signal it takes 17 instruction cycles to read out one (one instruction cycle of A-2184 with 2 MHz clock is 25 ns long) see Fig. 9. When using a Sony ILX551A, which CNTR=? Yes No Fig. 8 Flowchart of the image read-out cycle. Φ CLK ADCCLK CDSCLK1 CDSCLK2 read & store data from ADC 1 instruction cycle transfer gate control shift register clock charge detector reset A/D conversion clock sampling pulses (CDS) Fig. 9 Example of waveforms during one read-out ( Sony ILX53A). Thanks to s zero overhead feature the decrementation and testing of the register CNTR and the jump from the end of the loop to its beginning (Fig. 8) takes no instruction cycle. This feature simplifies the read-out cycle design. Complete image read-out cycle takes approx. 887 µs for ILX53A with 287 s and A-2184 with 25 ns instruction cycle. 4. CAMERA S INTERFACES Although the camera is designed as a stand-alone device, it has interfaces to communicate with PC as well as with manufacturing process (Fig. 4). The parallel interface working in the EPP (Enhanced Parallel Port) mode can be used for quick transmission of the whole image into a PC. E.g. algorithms can be then debugged and tested in the PC first and then implemented into the. The serial interface (RS232) is suitable for transmission of small amounts of data such as results of measurement. The camera is also equipped with two optically coupled inputs and one output and with an 8-bit general-purpose output port which can be used e.g. 88

for LED illuminator control that is necessary for some measurement methods. 5. CAMERA S APPLICATIONS The described camera was designed for both conventional and projection methods of measurement of position or dimension. In case of conventional methods [1] the camera is equipped with lens (Fig. 1). Fig. 12 Measurement set-up projection methods of measurement. To determine object s dimension the must first locate the position of edges in the acquired image (illumination profile) see Fig. 13. illuminance measured object lens camera Fig. 1 Measurement set-up conventional methods of measurement. For example the position of a measured object can be determined by calculating the center of mass of the image (Fig. 11): x N i= C = N i= 1 i y y () i 1 (1) () i where y(i) is the illuminance level of i-th. illuminance 1 5 1 117 119 121 123 1 Fig. 11 Measurement of position of a light track example of measured illumination profile. The projection (or so-called shadow ) methods of measurement [2] use a shadow projected by a measured object on a without lens (Fig. 12) to determine the object s dimension or position. light source measured object camera 1 5 3 6 9 1 18 21 Fig. 13 Dimension measurement using shadow projection - illumination profile. The edges are always few s wide (Fig. 14) so some edge-detecting algorithm must be used for precise edge position detection. illum. 1 5 13 131 132 133 Fig. 14 Dimension measurement using shadow projection detail of an edge in the illumination profile. The edge detection is usually done by comparing the illumination waveform with some threshold. To increase resolution of edge detection the interpolation between s is used. For example linear interpolation: x y yt y() i () i y( i 1) T = + i (2) where x T is edge position; y T is the threshold level; y(i) is the illuminance level of i-th. Both algorithms mentioned above require each approximately 21 µs of computational time when using a with 287 s and a with 25 ns instruction cycle. 6. CONCLUSION We designed and build a measuring digital linescan camera that enables implementation of 89

different measuring algorithms and methods. Camera is based on a. Unlikely common applications the in the camera performs not only the signal processing but also other tasks such as and ADC control and data storage. Using a single for multiple purposes simplifies the design and enables easy reconfiguration of the camera. Disadvantage is that most measuring algorithms can t be performed in real-time (during image acquisition) because the control consumes a significant amount of computational power of the. However, when fast scanning (short integration time) is not required, the computations can be performed in the interval between image read-out and end of scanning of next image. The designed camera has a modular structure so various types of s can be used with the same signal conditioning and control module. Several measuring algorithms were implemented in the camera, e.g. algorithm of dimension measurement using the projection method was implemented and tested on objects with diameters from 1 µm to 1 mm. The relative errors of measurement were in the range from.2 % to 2 % [3]. Resolution of measurement was 1 µm. 7. REFERENCES [1] F. Heijden. Image Based Measurement Systems. John Wiley & Sons. 1994. [2] P. Cielo, M. Dufour. Optical inspection in hostile industrial environments: Single vs. Imaging methods, Optomechanical and Electro- Optical Design of Industrial Systems, SPIE Vol. 959, 1988. pp. 87-116. [3] J. Fischer, V. Haasz, T. Radil. Simple Device for Small Dimension Measurement Using Sensor. 12 th IMEKO TC4 International Symposium 2, pp. 433-437. He is presently an assistant professor with Department of Measurement, Faculty of Electrical Engineering, CTU. His pedagogical activities include lectures on Optoelectronic s, Videometry, Contactless measurement, Microprocessor techniques. In his research work, he is concerned mainly with development of methods for image based measurement and application of s and sґ in the measuring instruments. Since 1982 to 1992 he joined the company for production of automation systems ZPA - Kosire as Guest Researcher in Department for development of systems based on optoelectronic s. Tomas Radil was born in Hradec Kralove, Czech Republic, on May 23 1977. He earned the master degree in 2 from Czech Technical University in Prague, Faculty of Electrical Engineering. He is presently a PhD student at Department of Measurement, Faculty of Electrical Engineering, Czech Technical University in Prague. His research interests include non-standard contact-less methods of dimension and position measurements using and CMOS s, applications of optoelectronic s and applications of digital signal processors (). 8. ACKNOWLEDGEMENT The results of the research project MSM 2115 Research of New Methods for Physical Quantities Measurement and Their Application in Instrumentation were used in this paper. Jan Fischer was born in Kolin, Czech Republic, in 1953. He received the Czech equivalents of the M.Sc. and Ph.D. degrees in Electrical engineering from the Czech Technical University (CTU), Prague, in 1977 and 1989, respectively. 9