Skip to main content
Log in

Detection of printed circuit board faults with FPGA-based real-time image processing

  • Research
  • Published:
Iran Journal of Computer Science Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14

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

  1. 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

    Article  Google Scholar 

  2. 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

    Article  Google Scholar 

  3. 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

    Article  Google Scholar 

  4. 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

  5. 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).

  6. 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

  7. 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

    Article  Google Scholar 

  8. 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.

  9. 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

    Article  Google Scholar 

  10. 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

    Article  Google Scholar 

  11. 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

    Article  Google Scholar 

  12. 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

    Article  Google Scholar 

  13. 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

    Article  Google Scholar 

  14. 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).

  15. 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

    Article  Google Scholar 

  16. RapidTables. RGB to HSV color conversion, Retrieved August, 24, 2022, fromhttps://www.rapidtables. com/convert/color/rgb-to-hsv.html

Download references

Funding

This study was not funded.

Author information

Authors and Affiliations

Authors

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

Correspondence to Merve Aydın.

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.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

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

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s42044-023-00149-6

Keywords

Navigation