Analisis Perbandingan Kinerja Sensor Jarak HC-SR04 dan GP2Y0A21YK Dengan Menggunakan Thingspeak dan Wireshark

Iman Hedi Santoso, Arif Indra Irawan

Abstract


Until now, Internet of Things (IoT) is a very interesting topic to research. This is due to the wide role that IoT can play in human life. This study aims to compare the performance of two sensors in an IoT-based distance detection system with the focus of the parameters being tested: sensor readings, Qos of data transmission, and power requirements. The two sensors that are the subject of comparison are HC-SR04 and GP2YA21YK. As an analytical tool, this research uses two tools, namely Thingspeak and Wireshak. The performance test results show that in terms of accuracy in determining distance, the HC-SR04 has a much better performance than the GP2YA21YK. On HC SR04, the average reading error is 0.82 cm, while on GP2YA21YK it is 14.40 cm. Meanwhile, in terms of QoS parameters, the two sensor systems show almost commensurate performance, the packet loss is both 0%, the throughput value is 37.01 kbps on HC-SR04 and 38.12 kbps on GP2YA21YK. As for the delay, the HC-SR04 sensor gives a value of 33.55 ms, and on GP2YA21YK it is 26.1 ms. Furthermore, based on power requirements, sensor systems using the HC-SR04 consume 14.36% less power than the system that use GP2YA21YK. By referring to the results of measurements and visualizations using Wireshark and Thingspeak, it can be concluded that the distance detection system using the HC-SR04 sensor is better than the system with the GP2YA21YK.

Keywords


Internet of things; thingspeak; wireshark; sensor; distance

Full Text:

PDF

References


L. Atzori, A. Iera, and G. Morabito, “Understanding the Internet of Things: definition, potentials, and societal role of a fast evolving paradigm,” Ad Hoc Networks, vol. 56, pp. 122–140, 2017, doi: 10.1016/j.adhoc.2016.12.004.

S. Li, L. Da Xu, and S. Zhao, “The internet of things: a survey,” Inf. Syst. Front., vol. 17, no. 2, pp. 243–259, 2015, doi: 10.1007/s10796-014-9492-7.

A. Al-Fuqaha, M. Guizani, M. Mohammadi, M. Aledhari, and M. Ayyash, “Internet of things: A survey on enabling technologies, protocols, and applications,” IEEE Commun. Surv. tutorials, vol. 17, no. 4, pp. 2347–2376, 2015.

J. Gubbi, R. Buyya, S. Marusic, and M. Palaniswami, “Internet of Things (IoT): A vision, architectural elements, and future directions,” Futur. Gener. Comput. Syst., vol. 29, no. 7, pp. 1645–1660, 2013, doi: 10.1016/j.future.2013.01.010.

E. Sorongan, Q. Hidayati, and K. Priyono, “ThingSpeak sebagai Sistem Monitoring Tangki SPBU Berbasis Internet of Things,” JTERA (Jurnal Teknol. Rekayasa), vol. 3, no. 2, p. 219, 2018, doi: 10.31544/jtera.v3.i2.2018.219-224.

R. T. Yunardi, “Analisa Kinerja Sensor Inframerah dan Ultrasonik untuk Sistem Pengukuran Jarak pada Mobile Robot Inspection,” Setrum Sist. Kendali-Tenaga-elektronika-telekomunikasi-komputer, vol. 6, no. 1, p. 33, 2017, doi: 10.36055/setrum.v6i1.1583.

C. Acharya, and S. Kuzhalvaimozhi, "Irrigation and internet of things platform." Int. Res. J. Eng. Technol.(IRJET) 3, pp. 1643-1646, 2016.

S. Pasha, "ThingSpeak based sensing and monitoring system for IoT with Matlab Analysis." Int. J. New Technol. Res., vol. 2, no. 6, pp. 19–23, 2016.

S. Lee, H. Kim, D. K. Hong, and H. Ju, “Correlation analysis of MQTT loss and delay according to QoS level,” Int. Conf. Inf. Netw., no. January 2013, pp. 714–717, 2013, doi: 10.1109/ICOIN.2013.6496715.

thingspeak.com, “Learn More About ThingSpeak,” https://thingspeak.com, 2021. https://thingspeak.com/pages/learn_more.

L. Bock, Learn Wireshark: Confidently navigate the Wireshark interface and solve real-world networking problems. Packt Publishing Ltd, 2019.

Indoware, “Ultrasonic Ranging Module HC - SR04,” Datasheet, pp. 1–4, 2013, [Online]. Available: http://www.micropik.com/PDF/HCSR04.pdf.

L. M. Engineers, “How HC-SR04 Ultrasonic Sensor Works & Interface It With Arduino,” Last Minute Engineers, 2021. https://lastminuteengineers.com/arduino-sr04-ultrasonic-sensor-tutorial/ (accessed Jul. 28, 2021).

J. Taghipour, "The Effect of Filtering on Proximity Sensors." PhD diss., California State Polytechnic University, Pomona, 2018.

B. de Bakker, “How to use a SHARP GP2Y0A21YK0F IR Distance Sensor with Arduino,” Makerguides.com, 2019. https://www.makerguides.com/sharp-gp2y0a21yk0f-ir-distance-sensor-arduino-tutorial/ (accessed Jul. 28, 2021).

alldatasheet.com, “GP2Y Datasheet (PDF) - Sharp Electrionic Components,” alldatasheet.com, 2021. https://www.alldatasheet.com/datasheet-pdf/pdf/412635/SHARP/GP2Y0A21YK0F.html (accessed Jul. 28, 2021).

ITU-T, “G.1010: End-user multimedia QoS categories,” Int. Telecommun. Union, vol. 1010, 2001, [Online]. Available: http://scholar.google.com.au/scholar?hl=en&q=ITU-T+Recommendation+G.1010&btnG=&as_sdt=1,5&as_sdtp=#7.




DOI: https://doi.org/10.17529/jre.v18i1.23359

Article Metrics

Abstract view : 0 times
PDF - 0 times

Refbacks

  • There are currently no refbacks.


View My Stats

 

Creative Commons License

Jurnal Rekayasa Elektrika (JRE) is published under license of Creative Commons Attribution-ShareAlike 4.0 International License.