scieee AI-readable full text Open interactive document viewer

Optical inspection of electrical connectors in products for the automotive market

Figueiredo, Alexandre José Costa

Abstract

O mercado automóvel requer o controle de qualidade a 100% de todos os produtos. A inspeção ótica é o método preferencial para o controle de qualidade em fim de linha de produção porque é não destrutiva e tem tempos de ciclo baixos. Os produtos têm conetores elétricos com pinos metálicos que têm de ser verificados: posicionamento, integridade e coplanaridade. Muitos dos conectores estão integrados no interior de peças de plástico que também necessitam de ter a sua integridade analisada. Nesta dissertação são estudados diferentes métodos de perfilometria ótica, que permitam determinar a posição e/ou altura dos pinos, com uma tolerância de ±150 micrómetros. Entre as técnicas estudadas estão o uso de uma sonda confocal cromática, visão artificial com objetivas telecêntricas, fotografia computacional com formação de imagem plenótica, e o uso em simultâneo de estereoscopia e projeção de luz estruturada. Estas quatro técnicas foram testadas, tanto em Electrical Connector Units (ECU) como em Standard Connectors (SC), atendendo aos requisitos de cada tipo de conetor e às características de cada técnica. Para avaliar a aplicabilidade e sucesso de cada tecnologia, foram utilizadas medidas de capabilidade, o Cg e o Cgk. A sonda confocal cromática é apenas útil para medir a altura dos pinos dos ECU, e apresentou resultados razoáveis; a visão artificial com objetivas telecêntricas revelou-se excelente para determinar a posição dos pinos; a imagiologia plenótica demostrou ser o mais completo dos sistemas, visto ser o único capaz de fazer todas as análises necessárias, e com resultados interessantes; a estereoscopia com projeção de luz estruturada embora interessante para a análise da altura dos pinos, não apresenta valores aceitáveis para determinar as suas posições. Em suma, todas as técnicas analisadas têm os seus méritos, mas com uma tolerância tão apertada, não há apenas uma técnica que seja considerada superior em todos os aspetos às outras, sendo que a solução seria possivelmente a junção de duas das tecnologias disponíveis.

Full text

University of Minho School of Engineering Alexandre José Costa Figueiredo Optical Inspection of Electrical Connectors in Products for the Automotive Market December 2021 UMinho | 2021 Alexandre José Costa Figueiredo Optical Inspection of Electrical Connectors in Products for the Automotive Market Alexandre José Costa Figueiredo Optical Inspection of Electrical Connectors in Products for the Automotive Market Masters Dissertation Integrated Masters in Physics Engineering Devices, Microsystems and Nanotechnologies Work carried out under the guidance of Professor Doctor Eduardo Jorge Nunes Pereira University of Minho School of Engineering December 2021 ii DIREITOS DE AUTOR E CONDIÇÕES DE UTILIZAÇÃO DO TRABALHO POR TERCEIROS Este é um trabalho académico que pode ser utilizado por terceiros desde que respeitadas as regras e boas práticas internacionalmente aceites, no que concerne aos direitos de autor e direitos conexos. Assim, o presente trabalho pode ser utilizado nos termos previstos na licença abaixo indicada. Caso o utilizador necessite de permissão para poder fazer um uso do trabalho em condições não previstas no licenciamento indicado, deverá contactar o autor, através do RepositóriUM da Universidade do Minho. Atribuição-NãoComercial-CompartilhaIgual CC BY-NC-SA https://creativecommons.org/licenses/by-nc-sa/4.0/ iii Agradecimentos A presente dissertação, embora esteja apenas em meu nome, não seria possível sem o auxílio, carinho e dedicação de várias pessoas, às quais deixo aqui o meu mais sincero agradecimento. Em primeiro, sou eternamente grato aos meus pais, pois sem os seus esforços não teria a oportunidade deste percurso académico. Estiveram sempre presentes e acompanharam-me, não só nesta jornada, mas em todas da minha vida, e ensinaram-me a dar e ser sempre o melhor de mim. Ao meu irmão Afonso, que mesmo ainda em tenra idade, já muito “sabe e opina”, deixo aqui o meu apreço, por nos relembrar da felicidade das pequenas coisas e trazer alegria em tantos momentos à nossa casa. A eles, o meu muito obrigado! Diz se que é em momentos mais difíceis que as pessoas que mais se importam connosco aparecem, porém há algumas pessoas que são já constantes da vida, e “teimam” por ficar. À minha Ticha, por todo o carinho, conforto, dedicação e acima de tudo pela presença contínua, o meu muito obrigado! Sou muito grato ao Professor Doutor Eduardo Pereira por ter partilhado comigo esta etapa académica e o seu conhecimento, por toda a ajuda no desenvolvimento desta dissertação, por todo o feedback e pelo estímulo do meu interesse na área de ótica. O meu muito obrigado! Muito do trabalho aqui apresentado não seria possível sem o estágio curricular na Bosch, que me permitiu crescer, não só como profissional mas bem como pessoa. A toda a atual equipa do CoC Testing de Braga, deixo aqui o meu enorme apreço por tão bem me acolherem! Agradeço, de forma muito especial, ao Filipe Silva, meu mentor na empresa, por toda a orientação, feedback muito construtivo e estimulo persistente para a evolução, e ao João Paulo Silva, pela partilha constante de conhecimento e auxílio sempre pronto para a resolução de dificuldades. O meu muito obrigado! Por fim, mas de igual valor, deixo um enorme obrigado a todas as pessoas, que mesmo não estando aqui referenciadas de forma singular, contribuíram, de uma ou outra forma, para esta etapa tão importante da minha vida. O meu muito obrigado! iv STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the University of Minho. v Inspeção Ótica de Conetores Elétricos em Produtos para o Mercado Automóvel Resumo O mercado automóvel requer o controle de qualidade a 100% de todos os produtos. A inspeção ótica é o método preferencial para o controle de qualidade em fim de linha de produção porque é não destrutiva e tem tempos de ciclo baixos. Os produtos têm conetores elétricos com pinos metálicos que têm de ser verificados: posicionamento, integridade e coplanaridade. Muitos dos conectores estão integrados no interior de peças de plástico que também necessitam de ter a sua integridade analisada. Nesta dissertação são estudados diferentes métodos de perfilometria ótica, que permitam determinar a posição e/ou altura dos pinos, com uma tolerância de ±150 micrómetros. Entre as técnicas estudadas estão o uso de uma sonda confocal cromática, visão artificial com objetivas telecêntricas, fotografia computacional com formação de imagem plenótica, e o uso em simultâneo de estereoscopia e projeção de luz estruturada. Estas quatro técnicas foram testadas, tanto em Electrical Connector Units (ECU) como em Standard Connectors (SC), atendendo aos requisitos de cada tipo de conetor e às características de cada técnica. Para avaliar a aplicabilidade e sucesso de cada tecnologia, foram utilizadas medidas de capabilidade, o Cg e o Cgk . A sonda confocal cromática é apenas útil para medir a altura dos pinos dos ECU, e apresentou resultados razoáveis; a visão artificial com objetivas telecêntricas revelou-se excelente para determinar a posição dos pinos; a imagiologia plenótica demostrou ser o mais completo dos sistemas, visto ser o único capaz de fazer todas as análises necessárias, e com resultados interessantes; a estereoscopia com projeção de luz estruturada embora interessante para a análise da altura dos pinos, não apresenta valores aceitáveis para determinar as suas posições. Em suma, todas as técnicas analisadas têm os seus méritos, mas com uma tolerância tão apertada, não há apenas uma técnica que seja considerada superior em todos os aspetos às outras, sendo que a solução seria possivelmente a junção de duas das tecnologias disponíveis. Palavras Chave: Inspeção Ótica Automática; Sonda Confocal Cromática; Objetivas Telecêntricas; Imagiologia Plenótica; Estereoscopia vi Optical Inspection of Electrical Connectors in Products for the Automotive Market Abstract The automobile market requires 100% quality control of all products. Optical inspection is the preferred method for end-of-line quality control because it is non-destructive and has low cycle times. The products have electrical connectors with metal pins that must be checked: positioning, integrity and coplanarity. Many of the connectors are integrated into plastic parts that also need to have their integrity analyzed. In this dissertation, different optical profilometry methods are studied to determine the position and/or height of the pins, with a tolerance of 150 micrometers. Among the studied techniques are the use of a chromatic confocal probe, artificial vision with telecentric objectives, computational photography with plenoptic image formation, and the simultaneous use of stereoscopy and structured light projection. These four techniques were tested, both in Electrical Connector Units (ECU) and in Standard Connectors (SC), meeting the requirements of each type of connector and the characteristics of each technique. To assess the applicability and success of each technology, capability measures, Cg and Cgk were used. The chromatic confocal probe is only useful for measuring the height of the ECU pins, and has shown reasonable results; the artificial vision with telecentric objectives proved to be excellent for determining the position of the pins; plenoptic imaging has proved to be the most complete of the systems, since it is the only one capable of perform all the necessary analyses, and with interesting results; stereoscopy with structured light projection, although interesting for the analysis of the height of the pins, does not present acceptable values to determine their positions. In short, all the techniques analyzed have their merits, but with such a tight tolerance, there is not a single technique that is considered superior, in every aspect, to others, and the solution would possibly be to merge two of the available technologies. Keywords: Automatic Optical Inspection; Chromatic Confocal probe; Telecentric Objectives; Plenoptic Imaging; Stereoscopy vii Contents Introduction........................................................................................................................... 1 1.1 Connector Inspection ............................................................................................. 2 1.2 Dissertation Overview ............................................................................................. 4 Literature Review .................................................................................................................. 5 2.1 Concepts Review ......................................................................................................... 7 2.1.1 Geometrical Optics .................................................................................................................. 7 2.1.2 Interferometry .......................................................................................................................... 8 2.1.2.1 Interfering waves ............................................................................................................. 8 2.1.2.2 Coherence ..................................................................................................................... 10 2.1.2.3 Optical Setup ................................................................................................................. 12 2.1.2 Optical Specification .............................................................................................................. 13 2.2 Technologies State of the Art ..................................................................................... 15 2.2.1 Point Scan ............................................................................................................................. 15 2.2.1.1 Contact Methods ........................................................................................................... 15 2.2.1.2 Chromatic Confocal ....................................................................................................... 17 2.2.2 Line Scan .............................................................................................................................. 19 2.2.2.1 OCT ............................................................................................................................... 19 2.2.2.2 Laser Profilometry .......................................................................................................... 20 2.2.3 Area Scan .............................................................................................................................. 21 2.3.3.1 White Light Interferometry .............................................................................................. 21 2.2.3.2 Stereo Vision System ..................................................................................................... 24 2.2.3.3 Optics ............................................................................................................................ 25 viii 2.2.3.3.1 Telecentric Optics ................................................................................................... 27 2.2.3.3.2 Plenoptic Imaging ................................................................................................... 32 2.3 Capability Measurements .......................................................................................... 39 Results and Discussions ...................................................................................................... 40 3.1 Chromatic Confocal ................................................................................................... 40 3.1.1 First Practical Experiment ...................................................................................................... 42 3.1.2 Second Practical Experiment .................................................................................................. 45 3.2 Telecentric Optics ...................................................................................................... 49 3.2.1 Connector Inspection Machine Prototype ................................................................................ 50 3.2.1.1 Camera ......................................................................................................................... 51 3.2.1.2 Lens .............................................................................................................................. 52 3.2.1.3 Illumination ................................................................................................................... 52 3.2.1.4 Machine Vision Software ................................................................................................ 55 3.3 Plenoptic Imaging ...................................................................................................... 59 3.3.1 Initial Testing ......................................................................................................................... 60 3.3.2 Testing Different Algorithms ................................................................................................... 62 3.3.3 Siemens Star as Device Under Test ........................................................................................ 65 3.3.4 Testing Different Objectives .................................................................................................... 68 3.3.5 Lens Calibration for Depth Estimation .................................................................................... 70 3.4 Stereoscopic Imaging with Pattern Light Projection ................................................... 73 3.4.1 How the device works ............................................................................................................ 73 3.4.2 Testing on a Calibration Plate ................................................................................................. 75 3.4.3 Testing on real connectors ..................................................................................................... 78 xv List of Tables Table 1 - Specifications of various Chromatic Confocal sensors................................................................ 19 Table 2 - Different models and its specifications available from (Heliotis AG, 2017). ................................. 24 Table 3 - Values of the measurements of the pin in the same point. ......................................................... 48 Table 4 - Mean Values for the 4 conditions under study. Values in millimeters. ........................................ 67 Table 5 - Standard Deviation Values for the 4 conditions under study. Values in millimeters. .................... 67 xvi List of Abbreviatures AFM – Atomic Force Microscopy AIAG – Automotive Industry Action Group AOI – Automatic Optical Inspection BDE – Best Depth Estimation BrgP – Bosch Braga Plant CCD – Charged-Couple Device Cg – Potential Capability Index Cgk – Critical Capability Index CMM – Coordinate Measure Machine CNC – Computer Numerical Control CoC – Centre of Competence DUT – Device Under Test ECU – Electrical Connector Unit FOV – Field of View LED – Light Emitting Diode MLA – Micro Lens Array OCAI – Optical Calibration, Alignment and Inspection OCT – Optical Coherence Tomography OPD – Optical Path Difference PDF – Probability Density Function xvii PoE – Power over Ethernet ROI – Region Of Interest SC – Standard Connector SLD – Super Luminescent Diode SLM – Structure Light Modulator STM - Scanning Tunneling Microscope VD – Virtual Depth WLI – White Light Interferometry 1 Chapter 1 Introduction The growth of a knowledge-based economy has reinforced the need for strategic partnerships that go past the traditional funding of research projects. With that in mind, there was a surge of partnerships between Industry and Universities. Such collaboration has numerous benefits. For the Academic side, it is a way to apply the knowledge and validate theories. For the students, it is an opportunity for training and skill development. For the Industry, it is a chance to apply state of the art technology developed by the academic side, in order to reduce cycle times and costs overall. For society in general, the creation of such workforce and technological advance resulting from those partnerships, will lead to an economical growth. This thesis is a product of one of those partnerships. It is the result of the association of the optics group from the Physics Department of University of Minho and the Center of Competence (CoC) for Testing from Bosch Car Multimedia, S.A. in Braga (BrgP). The OCAI (Optical Calibration, Alignment and Inspection) project, where the dissertation is inserted, is part of Factory of Future, the third partnership between the two aforementioned entities. The main objective of the R&D Factory of Future program consists in generating advanced knowledge and technology in Portugal in the area of new technologies for manufacturing, which will be the basis of innovative solutions worldwide for the future of industrial manufacturing for the automotive industry. One of the objectives of the OCAI project is to develop cost effective innovative Automatic Optical Inspection (AOI) procedures for end-of-line quality control of electric connectors, integrated in a multitude of Bosch Car Multimedia products manufactured in the Bosch Braga plant. These connectors are usually integrated in the interior of plastic parts, leading to occlusion for laser scanning and stereoscopic cameras, and need to be verified for geometric integrity and co-planarity, with a tolerance of about ±150 micrometers. Even though these collaborations can sometimes be complex and difficult to coordinate, the benefits outweigh the disadvantages and the success of the project between Bosch and University of Minho is a testament to this. 2 1.1 Connector Inspection According to a recent study by Global Market Insights, Inc., the global connector market size is projected to cross the USD 75 Billion by 2026 (Ankit Gupta, 2020). This rise of market value is driven by the evergrowing requirement for fiber optic connectors. The automotive market is also a major customer for electrical connectors as with the increase of sensors, cameras and other electronic systems on newly developed vehicles the demand for connectors in each car has also increased. Besides the automotive connectors produced by Bosch, a big part of the products in the catalog of BrgP also have connectors, that can be damaged during the assembling or test process. Therefore, like most of industrialized products, an end-of- line inspection is needed to guarantee the quality of the product. This master thesis has the goal to test, compare and validate different technologies to fulfill the task of connector inspection. Figure 1 - Example of Electrical Connector Unit. In the technical drawing it is shown that the size is 11.1 cm x 7.1 cm. Not all the connectors are the same. During the development of this thesis, two different types of connectors were analyzed. The first kind, the Electrical Connectors Units (ECU), produced by Bosch, and the second kind, Standard Connectors (SC), are the most common. ECU connectors, represented in Figure 1 are usually bigger than SC, Figure 2. This size difference can be observed in Figure 3, where both type of connectors are presented side by side. This difference will influence the technologies applied to each kind of connector. The ±150 micrometers tolerance is originated in the ECU analysis. In fact, for SC there is no defined value for tolerance, but in some cases those values are specified by the supplier. 3 Figure 2 - Example of two different SC: Fakra (top) and HSD (bottom) and commonly associated defects. There are a few aspects related to the optical connector inspection. One important task is pin inspection, which involves various evaluations: presence of the pin, height of the pin (most suited to ECU analysis) and position of the pins according to a certain reference. The primary objective is to measure the latter two features with a ±150 micrometers tolerance. This is not an easy task, not only because of the tight tolerance, but due to the chosen reference. Ideally, the reference to measure the XY position of a pin would be the center of the connector, determined using the walls. But, since the walls are majorly formed by malleable polymers, they are easily deformed when subjected to forces, or thermal variations. These variations in the reference point can be enough to surpass the value of the previously mentioned tolerance. Figure 3 - Size comparation between an ECU (left) and a SC (right). 4 Another relevant point to the analysis of the connector is to verify not only the integrity of the exterior plastic case, but also if the connector being inspected matches the one intended. Occasionally, a swap of the connectors can occur, and that error must be identified at the end-of-line inspection, using the color and shape of the plastic case, with the help of machine vision. 1.2 Dissertation Overview Since this dissertation has the goal to test and compare different technologies, one must start by understanding how those technologies work. Chapter 2 presents the state of the art of a range of different technologies with applicability to connector inspection, followed in Chapter 3 by the tests and results achieved for a number of those technologies. 5 Chapter 2 Literature Review At the naked eye, a surface that looks flat may not always be as smooth as it seems. The family of profilometers is a set of meteorological measurement devices that are used in the determination of the roughness of a surface, waviness and height histogram, scratch and crack analysis, and paint and coating characterization. Using dedicated software tools, one can make a 3D reconstruction of the subject. For that to be possible, all the dimensions of the Device Under Test (DUT) must be known. Inside the family of profilometers, there are technologies that are limited to measurements in a single plane (XY plane), and therefore are used to determinate those coordinates. On the contrary, some technologies are incapable, or just unpractical to that same type of measurements, and therefore are used to find the depth of the DUT. To have a full 3D model, it is possible to combine one of each type of technologies, or then use instead a third type that can by its own give all the information on the three dimensions (Toru Yoshizawa, 2015). A surface profilometer uses a high-precision data acquisition equipment to measure the different features on a given scale. A surface profilometer may either be contact or contactless. Contact based profilometers, as the name implies, need to make physical contact with the surface, normally using a sensitive stylus, which runs across the area under test. This method can register the deformation and the fluctuations of the surface through the variance of the stylus position. The non-contact methods for surface profilometry are, generally, a range of optical acquisition methodologies that obtain the surface information by emitting a light and then analyzing the emitted, reflected or scattered light. In a general way, the non-contact methods for profilometry are preferred over the ones that require contact because of the low invasiveness and improved measurements speeds. Having in mind that the objective of this dissertation is to test and compare different technologies and evaluate those same technologies in the application of connector inspection, one must first understand how those techniques work. This theoretical study of the state of the art is presented in this Chapter 2 . Figure 6 4 presents the technologies under study, which are sorted by different methods: contact or contactless, visual perception and type of scan. To provide a better reading and comprehensive experience to the reader, a guideline must be provided. Having that in mind, in Sub-chapter 2.1 some useful concepts will be reviewed. Sub-chapter 2.2 is where the review of technologies is done, sorted by type of scan: it starts with Point Scan methods, followed by the ones under Line Scan, and ends with the methods based on Area Scan. To finish this Chapter 2 the measures of capability are presented, which evaluates the applicability of the technology to the problem, according to Bosch standards (Robert Bosch GmbH, 2019). Figure 4 - Representational scheme of different technologies (Toru Yoshizawa, 2015) (Vision Doctor, s.d.) (Paschotta, s.d.) (Kerwien, 2014). 7 2.1 Concepts Review 2.1.1 Geometrical Optics Inside Geometrical optics is the study of light as a ray. The reason why we use rays is that, like other successful models in physics, rays are crucial to our thinking, notwithstanding their shortcomings. The ray is a model that works well in some cases but fails to describe other situations, and it is valid only when the characteristic dimensions of the object being analyzed is much larger than the wavelength of the light source. In those occasions where this model fails, light can be thought about as scalar waves or electromagnetic waves, depending of the phenomena under consideration. One instance where the ray is widely used is to explain and describe the object-image relation. Given an object and an optical system, one can describe the properties of the formed image, like its position, size and orientation, using the ray model. A schematic of this method, known as thin-lens model, is represented in Figure 5. Figure 5 - Image formation principles under ray optics, paraxial model and thin lens model (three successive approximations). Considering an object P, the respective image, as imaged through a lens L of focal length F, is P’. Knowing the position, size and orientation of the object, there are three rules to follow to know the same properties of the image formed. First: Rays parallel to the optical axis, when passing through the lens L, will 14 Figure 11 - Different concepts for specify an equipment. The Working Distance (or Clearance Distance) is the minimum distance that an object must be away from the sensor in order to be correctly scanned and measured. If the DUT is closer than this minimum distance, the resulting data will be incomplete, and in the worst case, incorrect. The Working Range (or Measurement Range) is the difference, in vertical distance, between the minimum distance that can be measured i.e. the clearance distance, and the farthest point that the sensor can measure. Points outside the measurement range will most likely, not be measured, depending on the technology used. The Field of View (FOV) is the measure of the area in the XY plane, inside the measurement range, that the device can measure. The field of view can have different aspects: it can be a cone, a trapezium or even a cylinder. Understanding these concepts will be useful to better comprehend some technologies described in Sub-Chapter 2.2 . 15 2.2 Technologies State of the Art 2.2.1 Point Scan 2.2.1.1 Contact Methods The first tunnel effect microscope (STM – Scanning Tunneling Microscope) was developed by Roher and Binning in 1982 (G. Binnig, 1982). This enabled the non-destructive study of surfaces with an atom resolution, never seen before. The technique relies on the sweeping of a surface in parallel lines with the probe, that then would come together to form the topographic image of the sample. The sensor, or stylus, was revolutionary due to its dimension and construction. This system was the precursor of the more recent Atomic Force Microscopes (AFM), that are now used in most of surface investigation laboratories. Electrical tunneling is a quantum effect that allows a current of electrons to occur between two surfaces really close to each other. The space between the two surfaces is considered a potential barrier, and the smaller the thickness (in the Angstroms scale), the bigger is the probability of the electron to cross it. This invention would lead to winning the Nobel Prize in the field of Physics by Roher and Binning in 1986. Much like the STM working method, in the AFM a sharp tip, like the ones in Figure 12, is rasterscanned over a surface using a feedback loop to adjust parameters needed to image a surface, but instead of using the quantum effect of tunneling, it uses atomic forces to map the tip-sample interaction, that can be almost any type of force interaction – van der Waals, electrical, magnetic, thermal. 16 Figure 12 - Figure 6 - This image shows eight sharp tips of NASA's Phoenix Mars Lander's Atomic Force Microscope, or AFM. The AFM is part of Phoenix's Microscopy, Electrochemistry, and Conductivity Analyzer, or MECA (NASA, s.d.). AFM has two operating modes: a contact mode, and a vibrating mode. The contact mode is more suited for measuring interatomic forces (Å), and the stylus is kept at with a regular force, changing its position when in contact with the surface. In the tapping or vibrating mode, the stylus oscillates at around 105 Hz close to the surface. This is more appropriate to soft surfaces, since the contact is not constant, and for long range forces, such as van der Waals and electrostatic forces (NanoScience Instruments, s.d.). Figure 13 - Force-distance curve for Atomic Force Microscopes, where by Hooke's Law F=-kZ, F is the force, k the stiffness of the lever and Z the distance the lever is bent. 17 Atomic Force Microscopy is a well know and developed approach to the problem of profilometry, being used and continuously developed over the last 50 years. Although it has an incredible resolution and repeatability, it is not suitable for including in the production lines of BrgP, either by the impracticality of being a contact method or by the relatively long measuring times. Figure 14 - Working method of an AFM. A laser, pointed to the tip, is used to track movements. The alternative to mechanical profilometers, are the non-contact techniques, which rely mostly on optical methods, also known as optical surface profilometers. 2.2.1.2 Chromatic Confocal Both Bosch and University of Minho already possess some experience with optical inspection technologies on connector inspection applications, one of them being the chromatic confocal technology. Chromatic confocal probes are single point optical sensor built around a confocal coaxial setting that use chromatic dispersion and decoding to obtain the distance to the surface. Chromatic confocal probes can measure on, and through, transparent material, detect interfaces between materials and calculate thickness. Figure 15 presents the most usual arrangement of a chromatic conformal imaging setup. The working principle is as it follows: when the point of focus is above (8) or below the surface being measured (7), the reflected light does not pass through the detector (3) pin-hole, leading to a detected intensity close to zero. In the other case, if the probe is on focus, meaning that the focal point is lying exactly on top of the surface (9), the reflected light will pass through the pinhole, causing a peak on the detector (Stil, SAS). 18 Figure 15 - Most usual implementation for Chromatic Confocal systems (Toru Yoshizawa, 2015). The chromatic confocal probe is different from a usual imaging confocal microscope because the objective is replaced by a chromatic objective (5), that causes chromatic dispersion, and the photodetector by a spectrometer (3), which will decode the reflected light. In most practical cases, the chromatic dispersion is something to avoid, since it generates different focal points for each different wavelength. However, in the case of chromatic confocal imaging probes, the chromatism present in the optical axis is used as a spaced-coding method, that associates a different wavelength to different depths. STL SA, a manufacturer of these sensors, describes them as having an excellent spatial resolution regardless of ambient illumination and as being independent of the type of material in analysis, since it can work on transparent and opaque, specular or diffusing, polished or not materials. Also, the use of white light source and not of a coherent source (laser) completely eliminates all difficulties associated with speckle. Table 1 presents some specifications of chromatic confocal sensors available now in the market (Stil, SAS). 19 Table 1 - Specifications of various Chromatic Confocal sensors. Chapter 3.1 describes all experiments done and results achieved in the context of this dissertation. 2.2.2 Line Scan 2.2.2.1 OCT The OCT, Optical Coherence Tomography, is part of the Low Coherence Interferometry family. It has a working principle similar to White Light Interferometry but uses near-infrared light instead of the white light source. These relatively long wavelengths will penetrate the scattering medium. However, it can be used in a more “standard” way, using only the reflections. It is a noninvasive, interferometric technique that provides real-time 3D images with micrometer resolution and depth penetration that can range from some millimeters to a few centimeters, depending on the technique employed and the material under study. As with WLI, this technique also has long cycle time when inspecting large areas, that being one of the limiting factors. Both technologies are good alternatives to analyze small parts, in a non-invasive and nondestructive way, due to the great resolution they can achieve. However, they turn out to not be applicable to the connector inspection requirements, mostly due to the long cycle time (Nélida A. Russo, 2020). A few measurements were done using an OCT, like the ones presented in Figure 16. These results were useful to compare with other technologies, and also to verify the correspondent results, as a groundtruth reference. 20 Figure 16 - Pin of an ECU scanned by an OCT: front view (left) and side view (right) (Thorlabs, 2017). 2.2.2.2 Laser Profilometry The technique of triangulation is commonly used for determining spatial relations. This technique is widely used in diverse areas as cartography and the GPS (Global Positioning System). It can also be used to scan a surface, with the help of a Laser. Laser profilometry uses the principle of triangulation, where the laser point is projected on the DUT, and then observed (through a lens) by a sensor (Bradshaw, 1999). This Laser Triangulation technique can operate in two different ways: as Point Scan, where, as mentioned above, only a point is projected and observed; and a Line Scan, where a line is projected instead. In both configurations, a mechanical scan is needed to obtain a 3D measurement. This second method can be achieved by replacing the laser point generator with a laser line generator. These two different methods are represented in Figure 17. 21 Figure 17 - Laser Triangulation, using Point Scan (left) and Line Scan (right) (Bradshaw, 1999). In terms of sensors to scan a line, multiple sensors, stacked in top of each other, are required to measure the signal. But, it is often simpler, and cheaper, to replace the photo-sensors with a camera. The light quantity distribution of the reflected beam from the object is analyzed and the camera detects the pixel with the laser peak value (Tomasz GIESKO). Usually, laser sensors are characterized by the resolution given in the micrometer scaler, but, for shorter ranges, these laser triangulation techniques are capable of sub-micron resolution. The Line Scan is more suited to our purposes, since the scan of the full DUT is required. The Point Scan technique would be possible, but the time and effort to scan the whole connector, point-by-point, would be just unpractical. 2.2.3 Area Scan 2.3.3.1 White Light Interferometry Even though Interferometry can be used to scan a large area, White Light Interferometry (WLI), the technology studied in this dissertation, is more suited to perform scans in a smaller scale. Profilers based on white light interference (WLI) use broadband illumination, instead of coherent light, commonly used in classical interferometers, and work just like an array of optical focused sensors where each point of focused interference signal determines the profile. This method is well known by now and is widely used for measuring surfaces in a variety of subjects. It is known to have a good vertical resolution, being that in limit cases it can reach 300 picometers (Paschotta, s.d.). A typical setup for this technique consists in a light source, a couple of lenses, a camera, and an interferometer, as shown in the Figure 18. The Michelson interferometer is the most used, but other solutions 22 are also possible. The light source is typically a light emitting diode (LED), incandescent lamp or a super luminescent diode (SLD). The camera works as the detector at the output of the interferometer. The distance between the mirror and the beam splitter must be equal to the distance between the beam splitter and the reference plane. To measure an object, it is necessary to move it along the optical axis in order to have its surface cross the reference. The light coming from the surface of the object will be superimposed with the light coming from the reference mirror, forming the white-light interference meaning that, if a surface point crosses the reference plane, the maximum interference will occur in the corresponding pixel of the camera. This means that to perform a measurement of a DUT in depth there is the need to move, either the DUT itself, the reference mirror, or the whole interferometer (Karthick Sathiamoorthy, 2010). Figure 18 - Typical setup of a white light interferometer (Pavel Pavliček, 2019). The usual light source used for this method falls within the visible spectrum (wavelengths between 380 and 750 nm), a low temporal coherence due to the wide wavelength bandwidth, and low spatial coherence due to it not being considered a single point light source. 23 Figure 19 - Example of measurement with WLI technology. It is noticeable a loss of signal in the edges of the largest pin (marked with red circles). The different wavelengths from the light source are mutually incoherent, and the superposition of fringes for different wavelengths will create white light fringes. If we have a monochromatic detector, it will observe the sum of all fringe intensities. The fringe where the maximum is located, which is where the greatest contrast is encountered, corresponds to the zero optical path difference (OPD). Away from that position, the observed intensities sum quickly falls as seen in the figure, and that is why the fringes are said to be localized (Schmit J., 2019). The most important fact to know about WLI for topography is that the fringes are localized and can only be found near the zero OPD location, which occurs in the optimal focus position on the sample. Bosch Car Multimedia S.A. (Portugal), namely the current CoC Testing department, had already the opportunity to test WLI technology in the past, in the context of connector inspection. From this experience, some system limitations were found. One of these drawbacks is the loss of signal at the edges of the pins, as seen in Figure 19. This limitation does not allow the use of the edge of the pins to find its XY position. Also, the cycle time and the total cost of the equipment were restrictions found by the team (Heliotis AG, 2017). 30 If we now consider an object that was displaced from the nominal focus position, then the transmitted rays will no longer meet the original image plane, meaning that, if the image sensor stayed in the same plane, the image formed will be somewhat blurred, but its height will not change. The magnification of the recorded image is fixed, and the correct object size can be determined (Thorlabs, n.d.). Figure 24 – Object-space telecentric lens. Stop is placed at the image side of the lens. Object-space telecentric systems are usually used at close finite conjugates. The maximum object size is limited to approximately the radius of the objective lens due to vignetting considerations. Image-space telecentric lenses Contrary to the object-space, the image-space telecentric imaging system has the exit pupil set at infinity. Again, the easiest way to make this system is to place a stop aperture, but this time before the lens, in the front focal plane. The result is that the position of the image is independent of the chosen position of an image sensor; the drawback is that the resulting image will be blurred if the sensor is outside the focus. 31 Figure 25 - Image Space telecentric lens. Stop is placed at the object side of the lens. Double-sided telecentric system When both previously mentioned methods are combined, lenses with bi-telecentry can be designed. That, however, is only possible with afocal optical systems. In this case, the stop is located at the common focal point, so that the chief ray is parallel to the optical axis both in the object space as well as in the image space. Since the ray bundle is centered on the chief ray, this condition guarantees that height of the spot forming the image is independent of axial object shift or image plane shift. Figure 26 - Double-sided telecentric lens. Telecentric optics does have its limitations. To be completely effective, there is some loss of light due to larger f-numbers, and the lens system does need to be larger than the part under inspection. However, with the great majority of precision metrology applications being the inspection of small part areas or features, telecentric optics has become a commonly used tool today. 32 To summarize the advantages and disadvantages of telecentric optics, one can say that, as positive points, this technology presents constant magnification, reduction of the fall-off of relative illumination from the optical axis to the borders of the image, no image distortion, no perspective errors, and no geometrical position uncertainty due to lighting. But, as main drawbacks, this kind of optics present a large f-number, which will lead to less light in the formed image, and the fact that the optic (usually) needs to be larger than the DUT (Opto Engineering, n.d.). 2.2.3.3.2 Plenoptic Imaging The world around us is rich in information, and our eyes are capable of capturing a great amount of that information. For a long time, humans tried, through different ways, to capture and represent what our eyes see, being with paintings or sculptures. The first appearance of the photographic camera, commonly attributed to Joseph Nicéphore Niépce around 1825 (Masoner, 2019), was a big step towards the complete representation of a real scene. With such a device, with a single press of a button (not so simple in the first generations), one can perfectly capture the moment. The photographic camera turned out to be such a useful and popular device that nowadays we all carry a descendent of that device in our pockets. The act of taking a picture is, nowadays, very simple: a number of settings are locked in by the photographer (or automatically chosen by the equipment), like the aperture, the exposure time and focus plane, and with the press of a button, the image is taken. If the result is not the desired one, then a new photo can be taken. That is where the plenoptic camera comes in. The first person to propose the concept of a light field camera, commonly known as plenoptic camera, was the Franco-Luxembourgish physicist Gabriel Lippmann, around 1908 under the title “ La photographie integrale ” (Lippmann, 1908). While the normal 2-D camera only record the intensity of light on the image sensor, plenoptic cameras have the ability to capture the complete 4D light field. Plenoptic Function and Lightfield 33 The plenoptic function, first described by Bergen and Anderson in 1991 (Edward H. Adelson, 1991), is set to describe the intensity of each light ray in the world as a function of wavelength, time, visual angle and viewing position. The word plenoptic its roots in the terms plen- (plenus) and opti- (optos), which means full and view/eye, respectively. Every single light ray in the space can be parameterized by a position with three dimensions, and a visual angle in two dimensions. If we add the time and wavelength, we get a total of seven dimensions (7D). The images and videos we see daily are just two-dimensional (2D) or threedimensional (3D) special cases of the 7D plenoptic function. If we could capture this 7D function with a sufficiently high sample rate, we would be able, theoretically, to reconstruct views in any position and any time. One possible representation of the plenoptic function is l(x, y, z, θ, ϕ, λ, τ). In this notation, the position of the light ray is described in Cartesian coordinates (x, y, z), the direction is parameterized by the spherical coordinates (θ,ϕ), and λ and τ denote the wavelength and time, respectively (S.C., 2014). Figure 27 - Representation of a plenoptic function, as seen by a human eye. If we assume a static scene, and that the wavelength is sampled using RGB channels, we can remove both λ and τ dependencies. Furthermore, in the free space, light rays have constant radiance along their path. In this case, we can reduce the 7D plenoptic function to 4D function, called light field. 34 There are several ways to capture a light field. It can be done with a “normal” 2D camera, if it is moved around the static object we are trying to capture, like it was done by M. Levoy and J. Shade in 1999 (Marc Levoy, 2000), when they scanned Michelangelo’s statue. Other way to do it is using an array of cameras, all capturing a scene simultaneously. The third way consists in using a micro array of lens between the camera sensor and the main lens. This is the concept behind hand-held light field cameras. Raytrix Camera The first hand-held light field camera was developed by Ren Ng, during his PhD research in 2005 (Ng, 2006). He combined the idea of software refocus with the concept of light field camera. With his idea, he founded, in the following years, Refocus Imaging , which would later turn into Lytro , the first producer of consumer light field cameras, in 2012. The first commercially available plenoptic camera was manufactured by Raytrix , in 2010. The Raytrix R11 used a 35 mm CCD sensor, with 40 000 microlenses and an effective resolution of 3 Megapixels. The product was targeted at industry and research sectors, and pricing was reportedly in the range of 20,000 to 30,000 Euros (LightField Forum, n.d.). Micro Lens Array Hand-held plenoptic cameras work using a Micro Lens Array, that allows it to capture the 4D light field with a 2D image. The ray of light leaves the source, goes through the main lens, and then into the MLA, arriving at the sensor the multiple result images. Another possible configuration is to use the MLA in front of the mains lens. The MLA, derived from the Hartman-Shackman wavefront sensor (RP Photonics, n.d.), can have different arrangements. Two of the most common are the orthogonal configuration, and the hexagonal configuration. The hexagonal is usually preferred over other formations, because it provides a better coverage over the image plane, leaving smaller gaps between lenses. 35 Figure 28 - Two conventional arrangements for MLA: orthogonal (a) and hexagonal (b). In the first generation of plenoptic cameras, the focal length for MLA is equal to the distance from the MLA to the image sensor. Each of these micro-lenses will contribute with one-pixel value in the final image, meaning that the final image resolution is dictated by the number of micro-lenses, causing a rendered image with low resolution. This implementation has the advantage of requiring low computational power. This way is conceivable to manufacture compact cameras with built in rendering capabilities (Cunha, 2015). Figure 29 - Arrangement of an MLA with three different kind of lenses. To solve the low-resolution issue, and to better use the available resources, the Plenoptic 2.0 concept was presented by Georgiev (Todor Georgiev, 2009).The main difference from the standard plenoptic camera is that the MLA is placed after the point where the image is formed. Another improvement proposed by Georgiev was to introduce, in the MLA, three types of lenses, each with a different focal length. This 36 implementation allows for a better resolution, and a larger depth of field. The fact that each micro-lens type has a different focal length, means that different ranges will be in focus i.e. far away planes will be in focus in one type of lenses, while closer planes will be in focus in another type of lenses. In Figure 30 shows that, while some micro-lenses are in focus, others are not. Figure 30 - Example of an image with a MLA with different focal lengths: in some lenses, the text is in focus, while in others it is out of focus. One advantage that plenoptic cameras have, when comparing to a stereo camera system is the reduction of occlusion. When a stereo camera system is pointed at an object with big differences in height, some parts of the objects will only be visible to one of the cameras, and occlusion will occur. But, if a plenoptic camera is used instead, the same object will, most likely, not be a problem, since we no longer have only a pair of objectives, but we have a large number of lenses, closely spaced to each other. This way, if some feature of the DUT is occluded to some lenses, it will be visible to others. Figure 31 - Situation where occlusion can occur: case of a Stereo Camera System (left) and a Plenoptic Camera (right) (Perwass, 2014). 37 Image Formation in a Plenoptic Camera Plenoptic imaging uses, as a starting point, the thin lens imaging model. The transition between a thin lens and an optical system it is very straight forward. It can be used the exact same model as the thin lens in an optical system, and the transition required no approximation, physical or mathematical, besides the already present paraxial aproximation. Figure 32 - Image formation: from the Thin Lens model to an Optical System. 1 𝑠+ 1 𝑠′ = 1 𝑓 (6) The equation and scheme above describe the image formation in a “normal 2D” camera. Like it was said before, the Plenoptic 2.0 introduced the MLA between the main lens and the camera sensor. So, instead of recording the only image originated from the main lens, each of the micro-lenses will intercept the rays, and will provide different images in the sensor plane. 38 Figure 33 - Multiple image formation, due to the presence of the MLA in front of the imaging sensor. The plenoptic camera, alongside doing what a “normal 2D camera” does, it is also capable of providing depth information. There are two steps required for this technology to provide a depth estimation of the object: Estimation of Virtual Depth (VD) followed by a mapping of VD’s into real world distances. Virtual Depth is the ratio of the distance between the MLA plane and the back principal plane ( a ), and the distance between the MLA and the sensor ( b). Due to the presence of the MLA, each point of the object is represented by (at least) three images in the sensor. Then, from the difference of the same point in the three images, by standard triangulation one can estimate where the object would be. This process of VD estimation is, therefore, dependent of the system being able to identify the same point in the three images, which means that the Plenoptic technique requires good contrast. For technical reasons, VD as a minimum value of 2. The second step is then to map the VD calculated in the previous step into distance in the object space. This means that, for each optical system used in a Plenoptic camera, there needs to be a calibration file. 39 2.3 Capability Measurements To ensure the capability of measurement of a given measuring system there are specific tools and procedures that can be used. Those procedures are documented in the Booklet 10 from BCM (Robert Bosch GmbH, 2019) and comply with the requirements according to AIAG (Automotive Industry Action Group) Measurement System Analysis, as explained in the literature “Process Capability Analysis” (Polhemus, 2018). The Capability Index , Cg , and the Critical Capability Index, Cgk , will be the indicators that will classify a measurement system as capable or not capable, according to Procedure 1 of Booklet 10. This Procedure requires that a characteristic has a lower and upper limiting value (LSL and USL), so that the tolerance (T=USL-LSL) is defined. The standard requires that each characteristic is measured 50 times on a reference sample but in special and documented cases 25 measurements could also be accepted. Then, the Cg value can be calculated using Eq. (7) , and Cgk using Eq. (8) , where s is the standard deviation of the measured values, 𝑥 is the mean value of those same measurements, and 𝑥𝑚denotates the known value of the reference sample. This reference value is measured using an alternative and precise instrument, like a Coordinate Measuring Machine (CMM). Following Bosch standards, for a measurement system to be considered capable of performing a measure, both Cg and Cgk must be equal or greater than 1.33 (Robert Bosch GmbH, 2019). 𝐶𝑔= 0.2 × 𝑇 6 × 𝑠 , 𝐶𝑔 ≥ 1.33 (7) 𝐶𝑔𝑘 = 0.1 ×𝑇−|𝑥−𝑥𝑚| 3×𝑠 , 𝐶𝑔𝑘 ≥ 1.33 (8) 46 Figure 41 - Representation of an Electrical Connector Unit. In this experiment, the same exact points of the pin and the base were measured 50 times, to do the capability measurements, performing a scan transversal to the pin, as shown in the representative Figure 42 (a).The pin profile shown in Figure 43 corresponds to a 2.5mm section of the connector. For these measurements, the optical pen was set with a frequency of 100 Hz, to utilize the full range of the pen, and the axis moved at 0.5 mm/s. Figure 42 - Representation of the scans performed on the ECU. (a) (b) (c) 47 In order to evaluate the height of the pin, some data processing was needed to split the values of the pin itself, and the base of the connector. The pin is characterized by values above 10200 µm and the base is drafted with all the values below 1500 µm, as explained in Figure 43 (these values represent the distance to the optical pen itself). Unwanted reflections occurred constantly, in the transitions from the base of the connector to the top of the pin, and are represented by values that either are zero, or some random peak, like the ones presented in Figure 43. These values were excluded and were not used to calculate either the base of the connector or the top of the pin. Figure 43 - Explanation on how the data is treated to identify the data points from the pin and from the base. Having measured 50 time the same points, both from the pin and base, an average was calculated to estimate the value of the height of the pin, knowing that this value is the subtraction of the mean value of the tip of the pin and the mean value of the base. The results are presented in Table 3. Good value of Cg (>1.33) was achieved, with a tolerance of ±150 µm, even though the base of the connector presented more deviation, due to its roughness. 48 Table 3 - Values of the measurements of the pin in the same point. Knowing that the system has capability when analyzing the same point, the next step was to perform the same measurements in different points of the pin, slightly separated from each other. First, 5 different points were measured 50 times, covering a 2 millimeters range in the pin top, as shown in the representative Figure 44. Figure 44 - Profile of the pin achieved by measuring the same points (red points) 50 times across a 2 mm range. Again, for each of the individual section measured, the measurements of height achieved good values of Cg. All these points, representative of the pin height, measured inside a 2 millimeters range on the top of the pin, had a maximum variation between themselves of around 150 micrometers. This is a large value, since it is half of our tolerance of 300 micrometers. So, to confirm these variations, the top of the pin was measured again. This time only a 1 millimeter range was measured, with 0.1 millimeters steps, so we would have more points, close to each other, to compare. 9300 9350 9400 9450 9500 9550 9600 9650 Height (μm) Pin Positions from 0 mm to 2 mm, 0.5 mm steps Pin Profile –2 mm 49 The same good values of capability were achieved on these singular points. But now we can observe that, for two adjacent points a variation of 90 micrometers is present. Figure 45 - Profile of the pin achieved by measuring the same points (red points) 50 times across a 1 mm range. From these experiments with the Chromatic Confocal technology, we can infer some conclusions about its application to the connector analysis problematic: even though that for measuring the exact same point, good values of capability are achieved, if a slightly separated point (0.1 millimeters spacing used in the experiment) is measured instead, that can mean a 90 micrometers variation. This kind of variations presented by the Chromatic Confocal technology were not in line with the measures performed by the OCT equipment. So, if we cannot guarantee that the exact same point is being measured, Chromatic Confocal technology will present low capability. 3.2 Telecentric Optics Telecentric lenses were an important point of study during the internship at Bosch, due to its applicability for connector inspection. Since this kind of lenses do not cause perspective error or image distortions there will be no geometrical position uncertainty, which is ideal for maximum accuracy when measuring the positions of pins. In fact, the first prototype of the connector inspection machine consisted in a camera with a telecentric lens and different illuminations. 9500 9520 9540 9560 9580 9600 9620 9640 9660 Height (µm) Pin positions from 0 mm to 1 mm, 0.1 mm steps Pin Profile –1mm 50 Figure 46 - Example of the small working range presented by Telecentric Optics. Though the pins are in focus, the back of the connector is not. A drawback of telecentric lenses is the small working range, as one can observe in Figure 46. 3.2.1 Connector Inspection Machine Prototype This first machine prototype has the main goal of optical connector inspection, including all the major factors on evaluating the DUT, being the pins position, its height, the integrity of the whole connector, or if its color and housing shape matches the one intended. This machine has, as main focus, the analysis of SC since those were the connectors present in the target DUT, but all the process was done having ECU in mind. Thus, the height of the pins is not a major task in this development, since that characteristic is not usually evaluated in SC. Our initial prototype machine has, on the hardware level, 3 essential components: the camera, the lens and an illuminator. Each of these components is chosen to guarantee the best results, according to the characteristics of the DUT. 51 Figure 47 – First Connector Inspection Machine Prototype for SCU Analysis: Camera, Telecentric Lens and Flat Dome. 3.2.1.1 Camera The camera that was chosen for this project is a Manta G-1236 1.1” from Allied Vision. It is a 12 Megapixel color camera, with a pixel size of 3.45 x 3.45 (µm) and a sensing area of 14.2 x 10.4 (mm). This is a PoE (Power over Ethernet) camera which means it can be connected to a computer via Ethernet port, requiring no external power source. Besides all the technical factors, the choice of this camera is also the result of the experience of Bosch with Allied Vision cameras, that are widely used in BrgP facilities. 52 3.2.1.2 Lens For the first prototype, two telecentric lenses were tested, a DTCM111-64H-AL and a DTCM111-48- AL, both from Vico Imaging (Vico Imaging, n.d.). The main difference between the two is the Field of View one has a 49 x 36 (mm) FOV, while the other has a 35 x 27 (mm) FOV. One of the contributing factors to the choice of lens is that the FOV must be bigger than the area under inspection. If we go for the bigger lens, we gain on the FOV but we lose on resolution, so there is always a commitment to be made. 3.2.1.3 Illumination Like every other optical testing setup, illumination is a big part of the arrangement and can make or break every system. For this prototype we tested a few different illuminators: a dome, a flat dome, a dark field, an adjustable dark field and a structured light illuminator. Both the Dome and the Flat Dome can easily provide a uniform illumination on the DUT, but they will have different use scenarios. Compared to the Flat Dome, the Dome can provide a higher contrast on the DUT, as presented in Figure 48, which will improve the image quality and make it easier for the software. On the other hand, the Flat Dome is more practical, and can be easier to integrate into a machine due to its compact size and rectangular shape. Some products will not fit into the Dome due to its dimensions. This can almost always be fixed, by custom-making a Dome, which can lead to an increase of the total cost of the machine. Another advantage of the Flat Dome is the possibility to use polarized light, which, with the correct setup, can help to reduce the specular reflections. 53 Figure 48 – Flat Dome (left), Dome (right) Figure 49 - Two HSD Connectors: on the left, image with Dome; on the right, image with Flat Dome For the Dark Field to be useful, it must be placed extremely close to the DUT, in the order of a few millimeters, which in some cases can be a problem. For those situations, an adjustable Dark Field illuminator can be used. The main difference is that the emitted light angle can be adjustable, which allows us to place the illuminator farther away from the DUT. Of course that if the emitting angle is increased too much, the illuminator will stop producing the high contrast. 54 Figure 50 - Example of the Dark Field illuminator: a ring of blue LEDs, with a low emitting angle. Most of the times, these illuminators cannot provide enough illumination for the analysis of the whole connector, so a second shot with another illuminator must be taken, which will increase the running time. Figure 51 - Connector under Dark Field illumination (blue, on the left); Dark Field adjusted with around 20 degree angle (red, on the right). A Structured Light was also tested. The one used for the prototype is an EFFI-Lase-PSV V2, with a Cross mask that can project a grid. It is mainly used for Electrical Connector Units, and not so much for Standard Connector Units, due to the size of the pins, and is especially useful on ECUs to define and find a 55 reference point other than a pin. Running this light for too long uninterruptedly causes fluctuations in brightness which have a negative impact in the consistency of the measurements. Therefore, the light was turned on and off for each measurement. Figure 52 - Two different connectors under Structured Light Illumination, with a grid pattern projected. 3.2.1.4 Machine Vision Software To analyze the images resulting from telecentric optics, and to perform measurements, it is needed a machine vision software. For this prototype, there were two options for the software, but the one tested the most by me was Sherlock by Teledyne DALSA. The interface of the software is presented in Figure 53. In this software, one can acquire images directly from the camera and create a recipe (called an Investigation , in the context of this software) to process them, in order to obtain the required values: number of pins, position of the pins in relation to a reference, color and shape of the connector, and to evaluate the integrity of it. There are several different ways to implement the process for these measurements, using the array of tools available in the software. These tools can be separated in two groups: Pre-processing, which will apply different filters in the image, or, in some way, alternate the image; and Algorithms, which do not alternate the image but will output the actual results needed. Using a subset of these two different tools, the images can be processed, and the analysis can be done. 62 3.3.2 Testing Different Algorithms As mentioned before, for the plenoptic technique to output “real world” measurement distances, a conversion from dimensionless Virtual Depth must occur. For that, there are different algorithms available, and some of them are provided by Raytrix. The RXLive software also gives the user the option to perform Pre and Post Processing in the image. So, in the following tests both of those factors were tested. To do that both an ECU and a SC were used. The results of these experiments are presented in ANNEX A . To make this comparation, the first step was to compare the two algorithms available, Depth Path and Raycast, both without any Pre or Post Processing. The Depth Path algorithm is the more consistent, see in Figure 59, as it presents a more smooth and uniform curve. Also, the shape of the values in VD is transcribed to the Elevation from Reference graphic. This behavior is consistent across the multiple measures presented in ANNEX A. These results indicate that, between these two options, the Depth Path is more suited for the purpose. 63 Figure 59 - Histograms of the two algorithms under test (probability estimated as PDF): Depth Path and Raycast, applied to a SC. Having this result, the choice was to keep testing the Depth Path algorithm. The next step was to choose a set of Pre and Post Processing functions, apply them to the images, and compare the results with the ones without Pre and Post Processing. This comparison is presented in Figure 60. As one can see, the 64 shape of the curves is similar, but the one with Pre and Post Processing is smoother. Another point to notice is that there is a clear shift in the values. This indicates that, Pre and Post Processing must be used with caution, since it can lead to unwanted changes in values. Figure 60 - Comparison between images with and without Pre and Post Processing, using Depth Path algorithm. With these results, it seems that with no Pre and Post Processing, the Depth Path algorithm is more suited for the application, and the choice of Pre and Post Processing functions can influence the results in a negative or positive way. This will be confirmed in the next sub-chapter. 65 3.3.3 Siemens Star as Device Under Test For these next tests, the ECU and SC were substituted by a Siemens Star. It consists in a pattern of dark “spokes” on a white background, that radiate from the center. In concept, these spokes become narrower as they come close to the center, and they only touch each other in that point. Since the main objective is to test the technology, this pattern is a good target since it provides enough contrast in the stripes and it can be settled at a known distance. With this setup, the histograms like the one presented in Figure 60 should approximate a single vertical bar. The narrower the bar, the better the results. Figure 61 - Siemens Star The software presented, as an option for Pre and Post Processing, a set of functions and value called Best Depth Estimation (BDE). Attracted by the suggestive name, this was the set tested. And so, for these trials using the Siemens Star as DUT, four different conditions were compared: BDE with Depth Path; BDE with Raycast; No Pre and No Post Processing with Depth Path; and No Pre and No Post Processing with Raycast. These measurements can be found in ANNEX B . In this setup, the Siemens Star was placed in a micrometric linear vertical stage, parallel to the lens. From the results presented both in Figure 62 and ANNEX B , the more evident observation is that when there is No Pre and No Post Processing, the histogram is wider and not as tall, when comparing with 66 the results from BDE. In this aspect, the BDE results are better. The Mean Values and the Standard Deviations were also computed for each of the 4 conditions, and can be found in Table 4 and Table 5, respectively. As stated in Table 4, the mean values in all 4 conditions are similar. But the values for the standard deviation is a different case. Both algorithms, when using BDE, perform much better than without it, presenting lower standard deviation. The highest standard deviation is shown by Raycast without Pre and Post Processing (confirming the results from 3.3.2), and the lowest is presented by Raycast again, but with BDE. So, from this experiment, we can infer that, to obtain the lowest standard deviation, we should use Raycast with BDE, and it will not lead to shifts in values, as the one presented in Figure 60. Figure 62 - Histograms of the Siemens Star, under 4 conditions: (a) BDE with Depth Path; (b) BDE with Raycast; (c) No Pre and No Post Processing with Depth Path; and (d) No Pre and No Post Processing with Raycast (a) (b) (c) (d) 67 Objective Minimum Mean Value (mm) Maximum Mean Value (mm) BDE Depth Path 0.58 20.40 BDE Raycast 0.46 20.40 NONO Depth Path 0.82 19.85 NONO Raycast 0.74 20.80 Table 4 - Mean Values for the 4 conditions under study. Values in millimeters. Objective Mean Standard Deviation (mm) Minimum Standard Deviation (mm) Maximum Standard Deviation (mm) BDE Depth Path 0.63 0.36 1.05 BDE Raycast 0.36 0.31 0.48 NONO Depth Path 1.77 0.72 3.14 NONO Raycast 2.73 2.10 3.19 Table 5 - Standard Deviation Values for the 4 conditions under study. Values in millimeters. Even though the Raycast algorithm, with BDE Pre and Post Processing presents a low standard deviation, it is not low enough when the tolerance is ±150 µm. This value seems even worst knowing that these measurements were performed using a target with well-defined contours and good contrast. 68 3.3.4 Testing Different Objectives Having the last paragraph in mind, and given that the values obtained were not good enough, the immediate modification to increase axial resolution (thus decreasing the tolerance for axial depth estimation) is to use a higher focal length. That alteration occurred through the objective. Besides the precalibrated 50mm Ricoh objective, two more were tested: an 75 mm Double Gauss and a Telecentric. To test these objectives, and having in mind the previous results, the Raycast with BDE was used. These results are available in ANNEX C . The results of this comparison between objectives is, in short, represented by the graphic in Figure 63, and is a critical result for this technology. For the same distance, the Double Gauss lens presents the higher variation, which will lead to an increased resolution (making better use of the VD range). This does not come without a cost: increasing the resolution, through a higher focal length, will be traded by vertical working range. Figure 63 - Comparison between lenses: 75 mm Double Gauss, standard 50mm Ricoh and Telecentric. The histograms from the Telecentric lens starts as tall and narrow as the other objectives, but when increasing the turns, meaning higher VD, it quickly falls, and the histogram becomes wide, as the one presented in Figure 64, which means high standard deviation. This means that the Telecentric objective, although still possible to use with a Plenoptic Camera, gives much poorer results. This may be an expected 69 result, since telecentric imaging is optically designed to minimize differences in perspectives, which is the feature used for plenoptic depth estimation. Figure 64 - Histogram of Telecentric Objective (using Raycast with BDE). On the other hand, the Double Gauss 75 mm lens presents the sharpest and tallest histograms, as one my expect by the higher focal length. In fact, the histogram from Figure 65 is the closest from the ideal that was achieved. This indicates that this objective may have the potential to achieve the resolution necessary for the specifications. 70 Figure 65 - Histogram of Double Gauss Objective (using Raycast with BDE). One may ask why all the results presented in section 3.3.4 are expressed in VD. The reason is because there are no calibration files, both for the Double Gauss and Telecentric lens. The calibration is needed in order to convert VD values into “real world” values. This process of calibrating an objective for the Raytrix camera was performed during the last Innovation Project between University of Minho and Bosch, and it will be repeated for the current one. 3.3.5 Lens Calibration for Depth Estimation As explained in 2.2.3.3.2 Plenoptic Imaging uses the VD in order to estimate depth values. But, to convert the VD into real world values, it is needed a calibration file. The 50 mm lens was calibrated by Raytrix, but for the 75 mm Double Gauss there was no such file. The process to obtain a calibration file is far from trivial, but fortunately, the team already had already validated this process (Silva., Nunes-Pereira, & Forte, 2019), and was now a matter of replicating the work with the different optical objective 71 Figure 66 - Principal planes for the plenoptic model. To obtain this calibration, a relation between VD and S’ must be found. Having the relations of the Erro! Fonte de referência não encontrada., and the equations 1 𝑆+ 1 𝑆′= 1 𝑓, and 𝑉𝐷 = 𝑎 𝑏, one finds that 𝑉𝐷 = 𝑆′ 𝑏− 𝑑 𝑏 (9) Figure 67 - Relation between VD and real distance for the 75 mm DG lens. 78 using an average of the points of interest. The results of this measurements can be found in ANNEX E1 . In short, both Cg and Cgk presented good values, ranging from 5.19 to 20.07, meaning that, following Bosch norms for Measurement and Test Processes (Robert Bosch GmbH, 2019), this device has capability to perform the analysis along the Z axis, for a 300 micrometers tolerance (which is the value we are trying to achieve for Electrical Connector Units). Figure 74 – Section of the Calibration Plate, containing 2 pins, and the respective graph of heights. To assess the performance of the Gocator 3506 on the XY plane, was used the Surface Hole tool, that, as the name implies, will find holes or any shape that resembles a hole, and return various information about it, like the value of the radius or the X and Y positions. First, to test if the system has repeatability, the holes were measured 25 times each, the values of X and Y were obtained, and the Cg was calculated. Again, those values, available in ANNEX E2 , were all above 1.33, meaning that repeatability was achieved for the tolerance of 300 micrometers. Next, the value of the distance from the center of each hole to the center of the central hole was calculated using the prior points. The goal was to compare with the known vales from the calibration plate. Again, all the distances were repeatable, but when comparing with the real physical distance, they did not 79 match. When applying the Cgk formula, most of the results presented a negative value ( ANNEX E3 ), when it should be above 1.33 to be acceptable. 3.4.3 Testing on real connectors The next steps were to try to apply the same techniques to real connectors, both Electrical Connector Units and Standard Connectors. The results were mixed, more on the negative side. Scanning an ECU was not much different from scanning the calibration plate, since the pins resemble each other. So, the results from an ECU are, in every way, similar to the ones from the calibration plate. Figure 76 presents the result of such scan. In order to obtain the scan with good results, there was the need to apply some filters, like Space Filling and Smoothing , as presented in Figure 75. Even then, some pins (e .g. the DI), presented some noise, that does not correspond to the actual values. To calculate the height of the pins, a similar technique as the one used in the calibration plate can be used, as demonstrated in Figure 77 . Figure 75 - Filters available, applied to the direct measurands. 80 Figure 76 – Result of a scan of an ECU (left) and the real connector (right). Figure 77 – Section across the 3 bottom pins of the connector (left) and the correspondent heights graph (right) Scanning a SC proved to be a much harder task. Both the size and the shape of the pin, alongside with some unwanted reflections presented in some connectors caused trouble to correctly measure an SC. As one can observe in Figure 78 and Figure 79, it is hard to identify the pins because of all the noise. Different filters like the ones mentioned above were applied, alongside with others such as Median , but with close to no improvement on the results. These difficulties can be attributed to the shape and size of the pins, as the outer plastic case is perfectly represented into the 3D scan. 81 Figure 78 – HSD connector 3D scan (left), the center metal ring with pins (middle) and the real connector (right). Figure 79 – 3D scan of a typical SC connector (left), the center metal ring with the pin (middle) and the real connector (right) Aside from the problems when trying to find pins, other issues raised when analyzing both types of connectors. The implementation of a solid enough job (name of a recipe in the Gocator software) proved to be hard. Using the Part Detection or the Model features often caused the found model to be in different positions from the one trained, or even failed to find the same part that was used to train the model. This means that if we cannot guarantee that the part is placed in the same position, it can be hard to perform accurate measurements. So, as a conclusion for the analysis of this equipment, when using a Calibration Plate, it was proven that the Gocator 3506 has the capability to perform the height measurements, but the same did not prove true for the measurements in the XY plane, where it failed when performing the Cgk capability test. For real connectors, the sizes and different shapes of the pins caused many complications, and alongside with the difficulties to create a robust job , it is possible that the Gocator 3506 is not ready yet to be integrated in the prototype of the connector inspection machine, for the Pin Inspection task. However, the device can be a 82 possible solution for the connector integrity evaluation, since it can provide a real 3D view of features of larger sizes. 83 Chapter 4 Conclusion The summary of the technologies studied during this Dissertation is presented in Figure 80, as a comparison between techniques. In order to better evaluate each technology, the tasks were separated, because a technique may be the best to acquire the position of the pin, but completely fail to determine the color of the connector, per example. Also, there is the separation between ECU and SC, due to the different characteristics and requirements of each type of connector. Chromatic Confocal technology proved to be capable of accurately measure heights, according to Bosch standards. But it also suffers greatly with light scattering and unwanted reflections, making it hard to analyze the resulting data. Also, it fails in every other task other than measure the height of the pins in an ECU. It is not applicable in SC since the pins are, most of times, too small. And there is a strict correlation between the number of pins analyzed and the cycle time, being this technique based on a Point Scan. However, it is a possible solution to complement the gaps of Telecentric Lenses. The use of telecentric optics for connector inspection is a viable option, mostly for determining the position of the pins. Having a good resolution and no distortion errors caused by the lenses will lead to good results. The fact that one can chose the size of FOV and adapt it to the connector in mind is an advantage, comparing with other technologies. From experience, not all connectors are as easy to analyze, with telecentric lenses, due to the lack of contrast between the connector protective plastic and the background, for example. But these difficulties can be overcome using different sources of illumination, changing the focal point of the system or even using polarization. The more obvious down point for this technology is that, from the way that it was implemented, the height of the pins cannot be determined. So, to offer a complete analysis of the connector, telecentric lenses could be paired with a technique like laser profilometry or chromatic confocal. 84 The pairing of Stereoscopic Imaging with Pattern Light Projection, implemented in the Gocator 3506 device, has the potential to be a solution for the connector analysis problematic , since it provides XY coordinates to analyze the position of the pins, a 2D shot that allows to evaluate if the protective plastic case of the connector is damaged and the presence of unwanted features, and offers a cloud point of heights, failing only to analyze the color of the connector. But, in the way that the device is implemented, it is still not possible to do these analyses with the targeted resolution. The detection of pins can be unreliable due to the presence of noise, mostly in SC, making it hard to industrialize the process. But even in the analysis of the position of pins in an ECU, the capability measurements were not satisfactory for the connector inspection process. The height analysis, when the pins can be found, presented motivating results, making this an interesting device to keep studying and improve. At last, the Plenoptic Imaging technique, which has proven to be an all-in-one solution. It is a technology not widely used in the industry, but with potential to be applied in more AOI processes. It allows us to join both 2D (working as a “normal” camera) and 3D (using the plenoptic depth estimation). Most like Telecentric Optics, with the Plenoptic Imaging technique, one can change the lens to fit the necessary. Yet, its much difficult with light field imaging, since the plenoptic depth estimation requires a calibrated lens. Based on the experience, the computational processing necessary to estimate depths is sensitive to several computational artifacts, so, even if the plenoptic total focus image is able to locate the features, the depth estimation algorithm may fail. The 50mm Ricoh precalibrated lens did not provide axial or depth resolution compatible with Bosch standards. However, the higher focal length 75 mm Double Gauss lens seemed to accomplish the task, result that still need to be proven with a different lens, that matches the aperture of the MLA. This gain on the resolution came at the cost of axial working range, which is a relation hard to balance. To complement the work developed during this Dissertation, there are a few tests that I would like to perform. First, and more obvious, to complete the calibration of the 75 mm Double Gauss lens, in the context of Plenoptic Imaging, and perform capability measurements with that setup. It would be interesting to quantify the relation between axial resolution and working range. Second, I would like to apply a Laser Profilometer to connector analysis, giving that it is a Line Scan, meaning that would not be as time consuming as the Chromatic Confocal technology, and I am expecting similar results. Third and last, It would be interesting to 85 scan the Calibration Plate, referred in 3.4.2, with all the technologies available, making the results of the comparation much more objective. 86 Figure 80 - Summary of the technologies studied during this Dissertation. Position Height Axial Range Position Height Axial Range A Very Good/Good [1] - Depends on size of pin (smaller pins are harder to inspect) B Satisfactory [2] - Lack of a stable reference negatively impacts inspection C Mediocre [3] - Color cameras only D Insufficient [4] - Ghost points can have a negative impact F Failure [5] - Shows potential, needs further analysis - Not Evaluated [6] - Varies with focal length/FOV ⊗Not Applicable [7] - Based on 50mm focal lens TBD To Be Determined [8] - Possible but unreliable and slow [9] - Depends on number of pins A A A[1][2] ⊗ B B Housing Coding # PINs ? ⊗ ⊗ A A/B (?) Lateral Resolution TBD [6] A Axial Resolution 100-150um [6,7] A/B (?) Lateral Resolution TBD [6] A Axial Resolution 100-150um [6,7] ECU PIN ? ⊗ PIN A/B (?) min. 30mm [7] A/B (?) min. 30mm [7] B D[1][4] ⊗ C A[3] B A A A C A D[1][4] B B[5] ? ? Color Cycle Time SC Chromatic Confocal Imaging with Telecentric Lens D[9] F[8] B ⊗ ⊗ ⊗ ⊗ ⊗ ⊗ A[1][2] 1. Interesting technology to pair with a Telecentric Lens application 2. Applicable to ECUs with a lower amount of pins Plenoptic Light Field Imaging Stereoscopic Imaging with Structured Light Summary of Conclusions Advantages Disadvantages 1. Good axial resolution 1. Requires additional equipment for inspection of pin position 2. Highly susceptable to light scattering and vibrations 3. Cycle time greatly depends on number of pins 1. Extremely good at inspection pin position 2. Could be paired with Stereoscopic Imaging, Laser Profilometry and Chromatic Confocal to provide 3D data 1. No parallax error 2. Selectable FOV 3. Low Cost 4. Flexibility of lighting setup 1. Requires additional equipment for height measurements Very Good/Good overall performance (based on all factors) Minimizes impact of optical oclusion The balance between axial resolution & FOV/ /lateral resolution is difficult to achieve 1. Although it is a 2.5D solution performance of pin position inspection is not good 2. Interesting results for height measurement, further analysis required 1. 2.5D solution 2. Good axial resolution 1. Difficulty analyzing smaller pins 2. Compromise between FOV and cycle time 3. Poor lateral resolution 87 94 ANNEX B 1. Depth Path with BDE 95 2. Raycast with BDE 96 3. Depth Path without BDE 97 4. Raycast without BDE 98 5. Graphics for Mean values and Standard Deviations 99 Heights of the pins Nominal Values: 1 and 3: 10 mm 2 and 4: 8 mm Values Measured by the Manufacturer: 1: 10.100 mm 2: 8.054 mm 3: 10.098 mm 4: 8.047 mm ANNEX D Calibration Plate Measurements Distances from each hole to the central hole. Nominal Values: 1C, 3C, 6C, 8C: 11.314 mm 2C, 4C, 5C, 7C: 8 mm Values Measured by the Manufacturer: 1C: 11.229 mm 2C: 7.949 mm 3C: 11.308 mm 4C: 7.938 mm 5C: 8.051 mm 6C: 11.204 mm 7C: 8.027 mm 8C: 11.426 mm 100 ANNEX E1 Cg and Cgk evaluations for the height of the Calibration Plate pins Tolerance 300 micrometers StdDev 1.925590638 1.28543524 0.498260864 0.96802168 Cg 5.193211788 7.77946621 20.06980824 10.33034715 Min 8056 10096 8039 10074 Max 8063 10102 8041 10080 Average 8060.145833 10098.8125 8040.208333 10078.02083 Range 7 6 2 6 Cgk 4.129324651 7.47152901 15.52622665 3.450622902 Nominal 8054 10100 8047 10098 101 ANNEX E2 Cg evaluations for the XY position of the Calibration Plate holes Central Hole Hole 1 Hole 2 Hole 3 XX YY XX YY XX YY XX YY StdDev 2.12264 4.538546 2.480645 3.046309 2.912044 3.989185 2.25424 4.870483 Average -1523.12 4585.04 6993.08 12571.8 -1053.8 12599.92 -8918.28 12549.72 Min -1527 4575 6987 12566 -1059 12592 -8922 12541 Max -1518 4593 6997 12578 -1046 12606 -8915 12561 Range 9 18 10 12 13 14 7 20 Tolerance 300 micrometers Cg 4.711115 2.20334 4.03120 3.28266 3.43401 2.50677 4.43608 2.05318 Hole 4 Hole 5 Hole 6 Hole 7 XX YY XX YY XX YY XX YY StdDev 2.17402 3.297029 1.203993 2.6533 1.273735 2.297825 4.088227 6.845027 Average 6896.56 4710.64 -9004.52 4744.6 6954.76 -3366.2 -1040.08 -3297.16 Min 6890 4701 -9007 4739 6953 -3370 -1046 -3308 Max 6900 4717 -9002 4749 6957 -3361 -1033 -3288 Range 10 16 5 10 4 9 13 20 Tolerance 300 micrometers Cg 4.59975 3.03303 8.30569 3.7688 7.85092 4.35194 2.44604 1.46091 102 ANNEX E3 Cg and Cgk evaluations for the distances from each hole to the central one Hole 1 Hole 2 Hole 3 StdDev 2.505083221 4.013310279 3.531556243 Average 11682.32101 8034.86678 10870.29961 Min 11676.74514 8026.655156 10863.76864 Max 11687.23415 8040.86519 10877.70307 Range 10.48900947 14.21003335 13.93442928 Nominal 11426 8027 11204 Tolerance 300 micrometers Cg 3.99188335 2.491708666 2.831612839 Cgk -30.11490252 1.838317864 -28.66539712 Hole 4 Hole 5 Hole 6 Hole 7 StdDev 2.180582559 1.235084526 1.805522446 6.619492942 Average 8424.589189 7479.353961 11621.80964 7891.198083 Min 8417.988477 7476.865252 11616.97035 7882.121098 Max 8428.097353 7481.908914 11625.31247 7901.714561 Range 10.10887643 5.043661945 8.342123773 19.593463 Nominal 8051 7938 11308 7949 Tolerance 300 micrometers Cg 4.585930469 8.096611845 5.538563101 1.510689729 Cgk -52.52253771 -115.6860199 -52.39658723 -1.400002358