Performance sensor analysis of HC-SR04 proximity sensor on distance measuring device with fuzzy logic method

Authors

  • M. Fakhrul Hirzii University of Mahkota Tricom Unggul, Indonesia
  • Sutrisno Arianto Pasaribu University of Mahkota Tricom Unggul, Indonesia
  • Puji Chairu Sabila Tjut Nyak Dhien University, Indonesia
  • Mhd. Reivan Parlindungan University of Mahkota Tricom Unggul, Indonesia

Keywords:

Ultrasonic Sensor, HC-SR04, Distance Measurement, Fuzzy Logic, Proximity Sensor

Abstract

The HC-Sr04 ultrasonic sensor (proximity sensor) is a widely used ultrasonic sensor, in addition to its affordable price also because of its easy use and easy installation. Ultrasonic sensors are electronic devices whose ability can convert from electrical energy into mechanical energy in the form of ultrasonic sound waves. HC-SR04 sensor is one of the ultrasonic sensors that is often used to monitor the distance of objects (objects) with sensors. This sensor consists of a series of ultrasonic transmitters called transmitters and ultrasonic receivers called receivers. The distance that can be handled ranges from 2 cm to 400 cm, with a precision level of 0.3 cm. The detection angle that can be handled is no more than 15°. The required current is not more than 2mA and the required voltage is +5V. The number of pins is 4. In this study, the authors used the fuzzy logic method to help classify the level of distance received by the sensor. Fuzzy logic is used because this method is able to determine the classification results of the received values, according to what is needed by the distance measuring device with this ultrasonic sensor.

References

A. D. Selbst, “Negligence and AI’s human users,” BUL Rev., vol. 100, p. 1315, 2020.

T. Bellet et al., “From semi to fully autonomous vehicles: New emerging risks and ethico-legal challenges for human-machine interactions,” Transp. Res. part F traffic Psychol. Behav., vol. 63, pp. 153–164, 2019.

A. Rosenberg, How history gets things wrong: The neuroscience of our addiction to stories. MIT Press, 2019.

A. Abanda, U. Mori, and J. A. Lozano, “A review on distance based time series classification,” Data Min. Knowl. Discov., vol. 33, no. 2, pp. 378–412, 2019.

K. Taunk, S. De, S. Verma, and A. Swetapadma, “A brief review of nearest neighbor algorithm for learning and classification,” in 2019 international conference on intelligent computing and control systems (ICCS), IEEE, 2019, pp. 1255–1260.

S. Meivel et al., “Mask detection and social distance identification using internet of things and faster R-CNN algorithm,” Comput. Intell. Neurosci., vol. 2022, 2022.

M. Simonson, S. M. Zvacek, and S. Smaldino, “Teaching and learning at a distance: Foundations of distance education 7th edition,” 2019.

M. M. Gabriel and K. P. Kuria, “Arduino uno, ultrasonic sensor HC-SR04 motion detector with display of distance in the LCD,” 2020.

L. Kleeman, “Ultrasonic sensors,” Control Mechatronics, pp. 21–26, 2018.

A. B. Balasubramanian, K. V Sastry, D. P. Magee, and D. G. Taylor, “Transmitter and Receiver Enhancements for Ultrasonic Distance Sensing Systems,” IEEE Sens. J., vol. 22, no. 11, pp. 10692–10698, 2022.

S. Kumar and H. Furuhashi, “Characteristics of an ultrasonic phased array transmitter in medium range,” Ultrasonics, vol. 82, pp. 331–335, 2018.

H. Purwanto, M. Riyadi, D. W. W. Astuti, and I. W. A. W. Kusuma, “Komparasi Sensor Ultrasonik Hc-Sr04 Dan Jsn-Sr04t Untuk Aplikasi Sistem Deteksi Ketinggian Air,” Simetris J. Tek. Mesin, Elektro dan Ilmu Komput., vol. 10, no. 2, pp. 717–724, 2019.

Z. Tong et al., “An ultrasonic proximity sensing skin for robot safety control by using piezoelectric micromachined ultrasonic transducers (PMUTs),” IEEE Sens. J., vol. 22, no. 18, pp. 17351–17361, 2021.

S. Ü. ERCAN and M. S. MOHAMMED, “Distance measurement and object detection system based on ultrasonic sensor and Xbee,” Düzce Üniversitesi Bilim ve Teknol. Derg., vol. 8, no. 2, pp. 1706–1719, 2020.

M. Toa and A. Whitehead, “Ultrasonic sensing basics,” Dallas: Texas Instruments, pp. 53–75, 2020.

A. U. Kulkarni, A. M. Potdar, S. Hegde, and V. P. Baligar, “Radar based object detector using ultrasonic sensor,” in 2019 1st International Conference on Advances in Information Technology (ICAIT), IEEE, 2019, pp. 204–209.

L. Capineri and A. Bulletti, “Ultrasonic guided-waves sensors and integrated structural health monitoring systems for impact detection and localization: A review,” Sensors, vol. 21, no. 9, p. 2929, 2021.

T. N. Arifin, G. F. Pratiwi, and A. Janrafsasih, “Sensor Ultrasonik Sebagai Sensor Jarak,” J. Tera, vol. 2, no. 2, pp. 55–62, 2022.

T. H. Nasution, E. C. Siagian, and K. Tanjung, “Design of river height and speed monitoring system by using Arduino,” in IOP Conference Series: Materials Science and Engineering, IOP Publishing, 2018, p. 12031.

L. P. Hapsari, R. P. Pasaribu, and I. Anjani, “The Use of An Arduino Uno Ultrasonic Sensor in Desalination Equipment’s Water Filling Control,” Circuit J. Ilm. Pendidik. Tek. Elektro, vol. 7, no. 2, pp. 164–172, 2023.

T. Gluck, M. Kravchik, S. Chocron, Y. Elovici, and A. Shabtai, “Spoofing attack on ultrasonic distance sensors using a continuous signal,” Sensors, vol. 20, no. 21, p. 6157, 2020.

L. Zhu, J. Suomalainen, J. Liu, J. Hyyppä, H. Kaartinen, and H. Haggren, “A review: Remote sensing sensors,” Multi-purposeful Appl. geospatial data, pp. 19–42, 2018.

T. P. Satya, M. R. Al Fauzan, and E. M. D. Admoko, “Sensor ultrasonik HCSR04 berbasis arduino due untuk sistem monitoring ketinggian,” J. Fis. Dan Apl., vol. 15, no. 2, pp. 36–39, 2019.

D. A. Gunastuti, A. Sunardi, and D. E. Putra, “Design of Arduino based android controllable lawn mower,” in AIP Conference Proceedings, AIP Publishing, 2023.

S. Takkar, M. Rakhra, A. Ratnani, D. S. Protyay, P. Pandey, and M. Arora, “Advanced ATM security system using Arduino Uno,” in 2021 9th International Conference on Reliability, Infocom Technologies and Optimization (Trends and Future Directions)(ICRITO), IEEE, 2021, pp. 1–5.

M. Bogdan, “„Monitoring and Alarming the Level of Liquid in a Tank”,” in Proceedings of the 13th International Conference on Virtual Learning ICVL, 2018, pp. 319–323.

M. S. Anwar, “Simulasi Sensor Ultrasonik (HC-SR04) Sebagai Pemandu Parkir Otomatis Berbasis Logika Fuzzy,” SinarFe7, vol. 4, no. 1, pp. 434–436, 2021.

C. Dumitrescu, P. Ciotirnae, and C. Vizitiu, “Fuzzy logic for intelligent control system using soft computing applications,” Sensors, vol. 21, no. 8, p. 2617, 2021.

K. Lamamra, F. Batat, and F. Mokhtari, “A new technique with improved control quality of nonlinear systems using an optimized fuzzy logic controller,” Expert Syst. Appl., vol. 145, p. 113148, 2020.

G. Ramesh, J. Logeshwaran, and K. Rajkumar, “The smart construction for image preprocessing of mobile robotic systems using neuro fuzzy logical system approach,” NeuroQuantology, vol. 20, no. 10, pp. 6354–6367, 2022.

J. Deng and Y. Deng, “Information volume of fuzzy membership function,” Int. J. Comput. Commun. Control, vol. 16, no. 1, 2021.

K. Ullah, T. Mahmood, Z. Ali, and N. Jan, “On some distance measures of complex Pythagorean fuzzy sets and their applications in pattern recognition,” Complex Intell. Syst., vol. 6, pp. 15–27, 2020.

Y. Liu, C. M. Eckert, and C. Earl, “A review of fuzzy AHP methods for decision-making with subjective judgements,” Expert Syst. Appl., vol. 161, p. 113738, 2020.

Y. Pan, L. Zhang, Z. Li, and L. Ding, “Improved fuzzy Bayesian network-based risk analysis with interval-valued fuzzy sets and D–S evidence theory,” IEEE Trans. Fuzzy Syst., vol. 28, no. 9, pp. 2063–2077, 2019.

K. Ramkumar et al., “Efficient routing mechanism for neighbour selection using fuzzy logic in wireless sensor network,” Comput. Electr. Eng., vol. 94, p. 107365, 2021.

Z. Budiarso and A. Prihandono, “Implementasi Sensor Ultrasonik Untuk Mengukur Panjang Gelombang Suara Berbasis Mikrokontroler,” Dinamik, vol. 20, no. 2, 2015.

P. C. Pandey and M. Pandey, “Highlighting the role of agriculture and geospatial technology in food security and sustainable development goals,” Sustain. Dev., vol. 31, no. 5, pp. 3175–3195, 2023.

R. B. Shapiro, L. Z. Cashore, and W. S. Yuan, “Deep Learning for Ensuring Food Security in Agriculture: An In-Depth Exploration of Innovations and Challenges,” J. Comput. Sci. Res., vol. 1, no. 3, pp. 64–70, 2023.

J. Zhao, X. Han, M. Ouyang, and A. F. Burke, “Specialized deep neural networks for battery health prognostics: Opportunities and challenges,” J. Energy Chem., 2023.

H. Mishra and D. Mishra, “Artificial Intelligence and Machine Learning in Agriculture: Transforming Farming Systems,” Res. Trends Agric. Sci., vol. 1, pp. 1–16, 2023.

S. Samsudin, M. Ikhsan, and M. J. Ritonga, “Penerapan Logika Fuzzy Pada Sistem Peringatan Jarak Aman Sepeda Motor Berbasis Mikrokontroler,” J. Resist. (Rekayasa Sist. Komputer), vol. 3, no. 2, pp. 114–119, 2020.

A. Kadir, Pemrograman arduino dan processing. Elex Media Komputindo, 2017.

N. Fatima, P. Saxena, and M. Gupta, “Integration of multi access edge computing with unmanned aerial vehicles: Current techniques, open issues and research directions,” Phys. Commun., vol. 52, p. 101641, 2022.

P. Ramesh, S. Sudheera, and D. V. Reddy, “Distance measurement using ultrasonic sensor and Arduino,” J. Adv. Res. Technol. Manag. Sci., vol. 3, no. 2, 2021.

A. Yudhana, J. Rahmayanti, S. A. Akbar, S. Mukhopadhyay, and I. R. Karas, “Modification of manual raindrops type observatory ombrometer with ultrasonic sensor HC-SR04,” Int. J. Adv. Comput. Sci. Appl., vol. 10, no. 12, 2019.

K. Muhammad et al., “Fuzzy logic in surveillance big video data analysis: comprehensive review, challenges, and research directions,” ACM Comput. Surv., vol. 54, no. 3, pp. 1–33, 2021.

J. T. Starczewski, P. Goetzen, and C. Napoli, “Triangular fuzzy-rough set based fuzzification of fuzzy rule-based systems,” J. Artif. Intell. Soft Comput. Res., vol. 10, no. 4, pp. 271–285, 2020.

M. H. Azam, M. H. Hasan, S. Hassan, and S. J. Abdulkadir, “A novel approach to generate type-1 fuzzy triangular and trapezoidal membership functions to improve the classification accuracy,” Symmetry (Basel)., vol. 13, no. 10, p. 1932, 2021.

C. Saridakis, G. Zaefarian, P. Ganotakis, and S. Angelidou, “A step-by-step guide of (fuzzy set) qualitative comparative analysis: From theory to practice via an implementation in a B2B context,” Ind. Mark. Manag., vol. 107, pp. 92–107, 2022.

M. Dermawan and S. Meliala, “Design Traffic Light of HCSR04 Sensor Fuzzy Logic Method Based on Arduino Mega 2560,” Int. J. Eng. Sci. Inf. Technol., vol. 2, no. 4, pp. 133–143, 2022.

S. Batubara, E. Hariyanto, S. Wahyuni, I. Sulistianingsih, and N. Mayasari, “Application of Mamdani and Sugeno Fuzzy Toward Ready-Mix Concrete Quality Control,” in Journal of Physics: Conference Series, IOP Publishing, 2019, p. 12061.

M. J. Ritonga, “Sistem Peringatan Jarak Aman Sepeda Motor Menggunakan Sensor Ultrasonik Dengan Metode Fuzzy Logic Berbasis Mikrokontroler.” Universitas Islam Negeri Sumatera Utara, 2019.

A. Arya and S. P. Yadav, “Development of intuitionistic fuzzy data envelopment analysis models and intuitionistic fuzzy input–output targets,” Soft Comput., vol. 23, no. 18, pp. 8975–8993, 2019.

D. A. Insantama and B. Suprianto, “Rancang bangun kendali level air otomatis pada tangki dengan servo valve berbasis fuzzy logic controller menggunakan arduino,” J. Tek. Elektro, vol. 8, no. 1, 2019.

Downloads

Published

2023-07-30

How to Cite

Hirzii, M. F., Pasaribu, S. A., Sabila, P. C., & Parlindungan, M. R. (2023). Performance sensor analysis of HC-SR04 proximity sensor on distance measuring device with fuzzy logic method. Journal of Computer Science and Research (JoCoSiR), 1(3), 92–97. Retrieved from http://journal.aptikomsumut.org/index.php/jocosir/article/view/25

Most read articles by the same author(s)