Comparison of Measurement Accuracy between Infrared and Ultrasonic Sensors for Collaborative Robot

Rudianto Rudianto, Kevin Ilham Apriandy, Choirun Nisa

Abstract


This study aims to compare the accuracy of two commonly used distance sensors in robotics systems, namely the ultrasonic sensor HC-SR04 and the infrared sensor Sharp GP2Y0A21YK0F, to support the development of collaborative robots (cobots) that require reliable navigation and object detection. The experiments were conducted in four stages: basic accuracy testing over a distance range of 5–50 cm with 2.5 cm intervals, testing under varying temperature and lighting conditions, accuracy testing on five types of reflective materials (metal, glass, wood, plastic, and fabric), and testing with varying object inclination angles of 0°, 15°, 30°, and 45°. The results indicate that the ultrasonic sensor demonstrates more stable performance and greater tolerance to environmental variations and inclination angles, with a maximum error of approximately 2.5 cm at a 45° angle. In contrast, the infrared sensor provides high accuracy at close ranges but is highly sensitive to lighting conditions and certain reflective materials, with errors reaching 8–10 cm for transparent or light-absorbing surfaces. These findings suggest that the ultrasonic sensor is more suitable for general use in cobots operating in dynamic environments, while the infrared sensor is best applied in controlled scenarios or as a complementary sensor. This research provides a foundation for selecting or combining distance sensors in the development of more accurate and efficient navigation and safety systems for collaborative robots.

Full Text:

PDF

References


R. C. B. Rego and R. S. Semente, “Presence Sensors: A Comparison Between the Ultrasonic and the Infrared in the Detection of People and Vehicles,” in Proc. 5th Brazilian Technology Symp. (BTSym 2019), Springer, 2020, pp. 605–616. [Online]. Available: https://doi.org/10.1007/978-3-030-57548-9_54

I. H. Santoso and A. I. Irawan, “Analisis Perbandingan Kinerja Sensor Jarak HC-SR04 dan GP2Y0A21YK Dengan Menggunakan Thingspeak dan Wireshark,” J. Rekayasa Elektrika, 2020. [Online]. Available: https://jurnal.unsyiah.ac.id/JRE

I. Hudati, E. S. A. Nugroho, and N. D. Resty, “Implementasi Filter Kalman pada Sensor Jarak Berbasis Ultrasonik,” JULIET: J. Listrik, Instrum., Elektron. Terap., 2020. [Online]. Available: https://jurnal.ugm.ac.id/juliet

E. Sze, D. Hindarto, I. K. A. Wirayasa, and Haryono, “Performance Comparison of Ultrasonic Sensor Accuracy in Measuring Distance,” Sinkron J. Penelit. Tek. Inform., vol. 6, no. 4, pp. 2556–2562, 2022. [Online]. Available: https://doi.org/10.33395/sinkron.v7i4.11883

S. Adarsh, S. M. Kaleemuddin, D. Bose, and K. I. Ramachandran, “Performance comparison of Infrared and Ultrasonic sensors for obstacles of different materials in vehicle/robot navigation applications,” IOP Conf. Ser. Mater. Sci. Eng., vol. 149, p. 012141, 2016. [Online]. Available: https://iopscience.iop.org/article/10.1088/1757-899X/149/1/012141

“Study Comparing Empirical Data on Sensors used to Measure Obstacle Distance,” Rev. Ingeniería, Univ. Distrital, 2021. [Online]. Available: https://revistas.udistrital.edu.co

A. Rahman, “Precision and Accuracy of Ultrasonic and Infrared Laser Time-of-Flight (ToF) IoT Sensors,” J. Inform. Telecommun. Eng., vol. 8, no. 2, 2025. [Online]. Available: https://doi.org/10.31289/jite.v8i2.13406

O. Okwuashi and D. N. Olayinka, “Determination of Electronic Distance Measurement Zero Error Using Kalman Filter,” Eur. Sci. J., vol. 10, no. 27, 2014. [Online]. Available: https://doi.org/10.19044/esj.2014.v10n27p%25p

A. N. Hana, S. Supriyadi, and A. Mukhtar, “Analisa Kinerja Sensor Inframerah Sharp GP2Y0A21 dan Ultrasonik HC-SR04: Konsep Deteksi Halangan pada Robot Otonom Berkaki Penyemprot Disinfektan,” Seminar Nasional UPGRIS, 2020. [Online]. Available: https://conference.upgris.ac.id

S. Adarsh, S. M. Kaleemuddin, D. Bose, and K. I. Ramachandran, “Performance comparison of Infrared and Ultrasonic sensors for obstacles of different materials in vehicle/robot navigation applications,” IOP Conf. Ser. Mater. Sci. Eng., vol. 149, p. 012141, 2016. [Online]. Available: https://iopscience.iop.org/article/10.1088/1757-899X/149/1/012141

M. A. Annabil, S. A. Nurazizah, Z. Khasanah, and R. A. Puspita, “Analisis Pengukuran Jarak Objek Dengan Sensor Ultrasonik (HC-SR04) untuk Berbagai Bentuk Objek,” J. Electron. Instrum. (UNEJ), 2024. [Online]. Available: https://journal.unej.ac.id/index.php/JEI/article/view/687

G. I. Gandha and D. Nurcipto, “The Performance Improvement of the Low-Cost Ultrasonic Range Finder (HC-SR04) Using Newton’s Polynomial Interpolation Algorithm,” INFOTEL, vol. 11, no. 4, pp. 108–113, 2019. [Online]. Available: https://ejournal.ittelkom-pwt.ac.id/index.php/infotel/article/view/456

Y. Afudin, “Analisis Komparasi Kinerja Sensor Infra Red Sharp GP2Y0A02YK0F dan Ultrasonic SparkFun HC-SR04 untuk Sistem Pengukuran Jarak pada Automatic Hand Washing Machine,” Institut Teknologi Kalimantan, Skripsi, 2022. [Online]. Available: https://repository.itk.ac.id

I. Anghel and C. Dumitescu, “Performance Comparison of Infrared and Ultrasonic Sensors in Distance Measuring,” J. Electr. Eng., Electron., Control Comput. Sci., 2018. [Online]. Available: https://jeeeccs.utcb.ro

H. Setiawan, A. Ma’arif, and M. Hamzah, “Distance Estimation on Ultrasonic Sensor Using Kalman Filter,” Buletin Ilmiah Sarjana Tek. Elektro, vol. 5, no. 2, 2023. [Online]. Available: https://doi.org/10.12928/biste.v5i2.8089




DOI: https://doi.org/10.31284/j.iptek.2026.v30i1.8488

Refbacks

  • There are currently no refbacks.


Indexed by:
SINTA logo Google Scholar logo Dimensions logo GARUDA logo Crossref logo Worldcat logo Base logo Scilit logo