Abstract
In the electronics industry, flawless manufacturing of printed circuit boards (PCBs) is essential for producing high-quality consumer electronics products. This paper presents a real-time image processing method that uses field programmable gate arrays (FPGAs) to detect missing components, which is a critical type of failure in surface mount devices (SMDs) on PCBs. FPGAs can perform multiple parallel operations on the same clock signal, allowing for real-time image processing through high-speed data transfer. The OV7670 image sensor is used to capture the PCB image. With the VHDL code embedded in the FPGA, a PCB image in RGB444 format and a size of 320 × 240 is taken from the sensor. During the image acquisition process, median and gaussian filters are used to remove noise components and improve image quality. Additionally, an LED lighting ring is used to further reduce noise components. User keys on the FPGA allow for filter selection, the selection of the number of filters, and the display of missing components on the VGA monitor. The missing component selection displays any missing components using soldered fields. This process aims to eliminate human error and achieve faultless production without manual inspection, saving time and reducing costs in the production process.
Similar content being viewed by others
Data availability
The datasets and codes generated during the current study are available from the corresponding author upon reasonable request.
References
Abd Al Rahman, M., Mousavi, A.: A review and analysis of automatic optical inspection and quality monitoring methods in the electronics industry. IEEE. Access. 8, 183192–183271 (2020). https://doi.org/10.1109/ACCESS.2020.3029127
Czimmermann, T., Ciuti, G., Milazzo, M., Chiurazzi, M., Roccella, S., Oddo, C.M., Dario, P.: Visual-based defect detection and classification approaches for industrial applications—A survey. Sensors 20(5), 1459 (2020). https://doi.org/10.3390/s20051459
Liu, Z., Qu, B.: Machine vision-based online detection of PCB defect. Microprocess. Microsyst. 82, 103807 (2021). https://doi.org/10.1016/j.micpro.2020.103807
Salunke Purva, A., Sherkar Shubhangi, N., Arya, C. S.: PCB (Printed Circuit Board) Fault Detection Using Machine Learning. Int. J. Comput. Sci. Mobile. Comput. 10(2):54–56 (2021). https://doi.org/10.47760/ijcsmc.2021.v10i02.008
Sunil, S. S., Ambadas, W. S., Gopinath, S. S., & Chinchole, M. G.: PCB fault detection using image processing in Matlab. IOSR. J. Eng. (IOSR JEN), ISSN: 2250-3021, 61–65 (2019).
Sipos, E., Ones, A., Groza, R.: Failure detection on PCBs: an image processing based approach. In 2019 IEEE 25th International Symposium for Design and Technology in Electronic Packaging (SIITME), (pp. 375–378). IEEE. (2019). https://doi.org/10.1109/SIITME47687.2019.8990713
Adibhatla, V.A., Chih, H.C., Hsu, C.C., Cheng, J., Abbod, M.F., Shieh, J.S.: Defect detection in printed circuit boards using you-only-look-once convolutional neural networks. Electronics 9(9), 1547 (2020). https://doi.org/10.3390/electronics9091547
Liu, X., Hu, J., Wang, H., Zhang, Z., Lu, X., Sheng, C., Nie, J.: Gaussian-IoU loss: Better learning for bounding box regression on PCB component detection. Expert. Syst. Appl. 190:116178 (2022). https://doi.org/10.1016/j.eswa.2021.116178.
Annaby, M.H., Fouda, Y.M., Rushdi, M.A.: Improved normalized cross-correlation for defect detection in printed-circuit boards. IEEE. Trans. Semicond. Manuf. 32(2), 199–211 (2019). https://doi.org/10.1109/TSM.2019.2911062
Wu, X., Zhang, Q., Wang, J., Yao, J., Guo, Y.: Multiple detection model fusion framework for printed circuit board defect detection. J. Shanghai Jiaotong Univ. (Sci.) (2022). https://doi.org/10.1007/s12204-022-2471-0
Huang, J.T., Ting, C.H.: Deep learning object detection applied to defect recognition of memory modules. Int. J. Adv. Manuf. Technol. 121(11–12), 8433–8445 (2022). https://doi.org/10.1007/s00170-022-09716-w
Yu, Z., Wu, Y., Wei, B., Ding, Z., Luo, F.: A lightweight and efficient model for surface tiny defect detection. Appl. Intellig. (2022). https://doi.org/10.1007/s10489-022-03633-x
Kim, J., Ko, J., Choi, H., Kim, H.: Printed circuit board defect detection using deep learning via a skip-connected convolutional autoencoder. Sensors 21(15), 4968 (2021). https://doi.org/10.3390/s21154968
Maraşlı, F., & Öztürk, S.: Görüntü İyileştirme ve Görüntü Onarma Teknikleriyle ile Yapılmış Uygulamalar. In II International Scientific and Vocational Studies Congress, Nevsehir, Turkey (2018).
Appiah, O., Asante, M., Hayfron-Acquah, J.B.: Improved approximated median filter algorithm for real-time computer vision applications. J. King. Saud. Univ. Comput. Inform. Sci. (2020). https://doi.org/10.1016/j.jksuci.2020.04.005
RapidTables. RGB to HSV color conversion, Retrieved August, 24, 2022, fromhttps://www.rapidtables. com/convert/color/rgb-to-hsv.html
Funding
This study was not funded.
Author information
Authors and Affiliations
Contributions
All authors contributed to the study’s conception and design. Material preparation, data collection, and analysis were performed by MA and FK. The first draft of the manuscript was written by MA and all authors commented on previous versions of the manuscript. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Conflict of interest
The authors declare that they have no conflict of interest.
Ethical approval
This article does not contain any studies with human participants or animals performed by any of the authors.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Aydın, M., Kaçar, F. Detection of printed circuit board faults with FPGA-based real-time image processing. Iran J Comput Sci 6, 419–430 (2023). https://doi.org/10.1007/s42044-023-00149-6
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s42044-023-00149-6