Measurement of spring constant by means of Arduino: A STEM teaching proposal

Mustafa Erol, Yiğit Efe Navruz


This study advances a STEM teaching proposal and aims to determine spring constant of a spring pendulum by means of an Arduino microprocessor. The measurements are managed by simply letting the spring pendulum to oscillate freely and recording the distance perceived by the distance sensor-Arduino system as a function of time. The mean periods are estimated by using displacement-time plots of the harmonic motion and the results are used to estimate the spring constant. The spring constant is also determined conventionally by employing Hooke's law a number of times. The relative error rate between the two results is found to be about % 6.00 which is pretty acceptable. This approach is important in the sense that it is inexpensive and also encourages students to learn how to use the Arduino microprocessor. The approach adds to physics education efforts due to creating an enjoyable and beneficial teaching-learning environment.


Aalst, J. V. (2000). An introduction to physics education research. Canadian Journal of Physics, 78(1), 57-71.
Bao, L., & Koenig, K. (2019). Physics education research for 21 st century learning. Disciplinary and Interdisciplinary Science Education Research, 1(1), 1-12.
Buachoom, A., Thedsakhulwong, A., & Wuttiprom, S. (2019, November). An Arduino board with ultrasonic sensor investigation of simple harmonic motion. In Journal of Physics: Conference Series (Vol. 1380, No. 1, p. 012098). IOP Publishing.
Erol, M., & Oğur, M. (2023). Teaching large angle pendulum via Arduino based STEM education material. Physics Education, 58(4), 045001.
Çoban, A., & Erol, M. (2021). Teaching kinematics via Arduino based STEM education material. Physics Education, 57(1), 015010.
Çoban, A., & Çoban, N. (2020). Determining of the spring constant using Arduino. Physics Education, 55(6), 065028.
Chaudry, A. M. (2020). Using Arduino Uno microcontroller to create interest in physics. The Physics Teacher, 58(6), 418-421.
Dimas, A., Suparmi, A., Sarwanto, & Nugraha, D. A. (2018, September). Analysis multiple representation skills of high school students on simple harmonic motion. In AIP Conference Proceedings (Vol. 2014, No. 1, p. 020131). AIP Publishing LLC.
Erol, M., Hocaoğlu, K. & Kaya, A. (2020). Measurement of spring constants of various spring-mass systems by using smartphones: A teaching proposal. Momentum: Physics Education Journal, 1-10.
Galeriu, C., Edwards, S., & Esper, G. (2014). An Arduino investigation of simple harmonic motion. The Physics Teacher, 52(3), 157-159.
Janah, A. F., & Mindyarto, B. N. (2021, June). Developing four-tier diagnostic test to measure students’ misconceptions on simple harmonic motion material. In Journal of Physics: Conference Series (Vol. 1918, No. 5, p. 052050). IOP Publishing.
Kanim, S., & Cid, X. C. (2020). Demographics of physics education research. Physical Review Physics Education Research, 16(2), 020106.
Kääntä, L., Kasper, G., & Piirainen-Marsh, A. (2018). Explaining Hooke’s law: Definitional practices in a CLIL physics classroom. Applied Linguistics, 39(5), 694-717.
Kuhn, J., & Vogt, P. (2012). Analyzing spring pendulum phenomena with a smart-phone acceleration sensor. The Physics Teacher, 50(8), 504-505.
Martín-Ramos, P., da Silva, M. M. L., Lopes, M. J., & Silva, M. R. (2016, November). Student2student: Arduino project-based learning. In Proceedings of the Fourth International Conference on Technological Ecosystems for Enhancing Multiculturality (pp. 79-84).
Menezes de Souza Lima, F., Venceslau, G. M., & Nunes, E. D. R. (2002). A new Hooke’s law experiment. The Physics Teacher, 40(1), 35-36.
Nugraha, D. A., Cari, C., Suparmi, A., & Sunarno, W. (2019, December). Analysis of undergraduate student concept understanding-three-tier test: Simple harmonic motion on mass-spring system. In AIP Conference Proceedings (Vol. 2202, No. 1). AIP Publishing.
Park, J., & Huh, J. (2020). Hooke’s law experiment using an electronic speckle pattern interferometry. European Journal of Physics, 41(6), 065709.
Petry, C. A., Pacheco, F. S., Lohmann, D., Correa, G. A., & Moura, P. (2016, June). Project teaching beyond Physics: Integrating Arduino to the laboratory. In 2016 Technologies Applied to Electronics Teaching (TAEE) (pp. 1-6). IEEE.
Pili, U. (2018). A dynamic-based measurement of a spring constant with a smartphone light sensor. Physics Education, 53(3), 033002.
Serway, R. A., & Jewett, J. W. (2018). Physics for scientists and engineers. Cengage learning.
Somroob, S., & Wattanakasiwich, P. (2017, September). Investigating student understanding of simple harmonic motion. In Journal of Physics: Conference Series (Vol. 901, No. 1, p. 012123). IOP Publishing.
Tong-on, A., Saphet, P., & Thepnurat, M. (2017, September). Simple harmonics motion experiment based on LabVIEW interface for Arduino. In Journal of Physics: Conference Series (Vol. 901, No. 1, p. 012114). IOP Publishing.
Tumanggor, A. M. R., Supahar, S., Ringo, E. S., & Harliadi, M. D. (2020). Detecting students’ misconception in simple harmonic motion concepts using four-tier diagnostic test instruments. Jurnal Ilmiah Pendidikan Fisika Al-Biruni, 9(1), 21-31.
Wardani, F. (2020, April). An analysis of student’s concepts understanding about simple harmonic motion: Study in vocational high school. In Journal of Physics: Conference Series (Vol. 1511, No. 1, p. 012079). IOP Publishing.


Mustafa Erol (Primary Contact)
Yiğit Efe Navruz
Erol, M., & Navruz, Y. E. (2023). Measurement of spring constant by means of Arduino: A STEM teaching proposal. Momentum: Physics Education Journal, 7(2), 269–278.

Article Details