The Performance Improvement of the Low-Cost Ultrasonic Range Finder (HC-SR04) Using Newton's Polynomial Interpolation Algorithm

Main Article Content

Gutama Indra Gandha
Dedi Nurcipto


The ultrasonic range finder sensors are widely used sensor in many applications such as computer applications, general purpose applications, medical applications, automotive applications and industrial grade applications. The ultrasonic range finder sensor has many advantages. The advantages are easy to use, fast in measuring process, non-contact measurement and suitable for air and underwater environment. However, the ultrasonic range finder has deviation especially for low-cost sensor. It affects the accuracy level of the measurement result that performed by its sensor directly. The HC-SR04 categorized as a low-cost ultrasonic range finder sensor. This sensor has significant error level. The improvement of the accuracy level of this low-cost ultrasonic sensor is expected to this research. The Newton's polynomial interpolation algorithm has been used in this research to reduce the error during the measurement process. The implementation of Newton's polynomial interpolation has succeeded to improve the sensor accuracy. The MSE level of 29,96 is obtained without the Newton's Polynomial Interpolation implementation. The implementation of the Newton's Polynomial Interpolation algorithm has succeeded to increase the accuracy level of the sensor by 55,54%. It has been proofed by the decrease of MSE level by 13,32.


Download data is not yet available.

Article Details

How to Cite
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, Dec. 2019.


[1] V. A. Zhmud, N. O. Kondratiev, K. A. Kuznetsov, V. G. Trubin, and L. V. Dimitrov, "Application of ultrasonic sensor for measuring distances in robotics," J. Phys. Conf. Ser., vol. 1015, no. 3, 2018.

[2] M. Suleiman, G. I. Saidu, M. I. Ilyasu, O. A. Adeboye, and M. Hamza, "Ultrasonic Fluid Level Measuring Device," Int. J. Res. Sci., vol. 1, no. 1, p. 27, 2015.

[3] M. Kaur and J. Pal, "Distance Measurement of Object by Ultrasonic Sensor HC-SR04," IJSRD-International J. Sci. Res. Dev., vol. 3, no. 05, pp. 503-505, 2015.

[4] A. R. Patkar and P. P. Tasgaonkar, "Object recognition using horizontal array of ultrasonic sensors," Int. Conf. Commun. Signal Process. ICCSP 2016, pp. 983-986, 2016.

[5] A. Kalashnikov, O. S. Sonbul, and A. N. Kalashnikov, "Determining the operating distance of air ultrasound range finders : calculations and experiments DETERMINING THE OPERATING DISTANCE OF AIR ULTRASOUND RANGE FINDERS: CALCULATIONS AND EXPERIMENTS," Int. J. Comput., vol. 13, no. 2, pp. 125-131, 2014.

[6] T. Julian and K. Triyana, "Pengujian Akuisisi Data sENSOR Ultrasonik HC-SR04 dengan Mikrokontroler Atmega 8535 ( Testing Data Acquisition of Ultrasonic Sensor HC-SR04 using Atmega 8535 Microcontroller )," vol. 8535, pp. 35-40.

[7] C. H. Hsieh, S. Y. Hung, P. C. Huang, and C. W. Lan, "Adaptive polynomial interpolation for noise replacement," 2013 Int. Jt. Conf. Aware. Sci. Technol. Ubi-Media Comput. Can We Realiz. Aware. via Ubi-Media?, iCAST 2013 UMEDIA 2013, pp. 395-399, 2013.

[8] C.-H. Hsieh, S.-Y. Hung, C.-W. Lan, and P.-C. Huang, "Impulse Noise Removal Based on Grey Polynomial Interpolation," 2010 Seventh Int. Conf. Inf. Technol. New Gener., pp. 327-331, 2010.

[9] X. Zeng, P. Yang, and W. Niu, "Design of a filter based on polynomial interpolation and local fit," Proc. - 2009 Int. Forum Inf. Technol. Appl. IFITA 2009, vol. 3, pp. 630-634, 2009.

[10] Q. Cai and L. Song, "The Lagrange Interpolation Polynomial Algorithm Error Analysis," vol. 1, pp. 3719-3722, 2011.

[11] F.- Puspasari, I.- Fahrurrozi, T. P. Satya, G.- Setyawan, 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, p. 36, 2019.

[12] B. Liu, T. Han, and C. Zhang, "Error correction method for passive and wireless resonant SAW temperature sensor," IEEE Sens. J., vol. 15, no. 6, pp. 3608-3614, 2015.

[13] S. Pop, D. Pitica, and I. Ciascai, "Adaptive algorithm for error correction from sensor measurement," 2008 31st Int. Spring Semin. Electron. Technol. Reliab. Life-time Predict. ISSE 2008, pp. 373-378, 2008.

[14] X. Jiang and Y. Bao, "Nonlinear errors correction of pressure sensor based on BP neural network," 2009 Int. Work. Intell. Syst. Appl. ISA 2009, vol. 1, no. 2, pp. 2-5, 2009.

[15] L. Zhang, R. L. Wang, and K. K. Liu, "Study on errors correction of infrared methane sensor based on Support Vector Machines," 2009 2nd Int. Conf. Intell. Comput. Technol. Autom. ICICTA 2009, vol. 2, pp. 471-475, 2009.

[16] H. Gao, Z. Wang, and L. Zhang, "Gyro online correctionmethod based on Kalman filter and polynomial fitting," Proc. - 5th Int. Conf. Instrum. Meas. Comput. Commun. Control. IMCCC 2015, pp. 1144-1149, 2016.

[17] X. Yang, X. Meng, T. Jiang, and A. Husnain, "An error correction method based on polynomial fitting to improve the accuracy of the em indoor positioning system," Proc. - 2016 6th Int. Conf. Instrum. Meas. Comput. Commun. Control. IMCCC 2016, no. 3, pp. 932-935, 2016.

[18] L. Zhang, Y. Qin, and J. Zhang, "Study of polynomial curve fitting algorithm for outlier elimination," 2011 Int. Conf. Comput. Sci. Serv. Syst. CSSS 2011 - Proc., pp. 760-762, 2011.

[19] R. Srivastava and P. Srivastava, "Comparison of Lagrange's and Newton's interpolating polynomials," J. Exp. Sci., vol. 3, no. 1, pp. 1-4, 2012.

[20] E. Holst and P. Thyregod, "A statistical test for the mean squared error," J. Stat. Comput. Simul., vol. 63, no. 4, pp. 321-347, 1999.