Implementation of an ESP-32 Based Embedded System for Earthquake Detection Using an MPU-6050 Sensor
DOI:
https://doi.org/10.33387/protk.v13i3.12610Keywords:
ESP-32, MPU-6050 Sensor, Embedded System, Earthquake Detection, Early Warning SystemAbstract
Indonesia is a country that is highly vulnerable to earthquakes due to its location along active tectonic plate boundaries. The existing problem is the limited availability of earthquake detection systems capable of providing fast and real-time information and early warnings to the public. This study aims to design and implement an ESP-32 based embedded system for earthquake detection using the MPU-6050 sensor. The developed system utilizes the MPU-6050 sensor to detect vibration acceleration changes processed by the ESP-32 microcontroller, with monitoring results displayed through a web dashboard and sent via a Telegram Bot in real-time. The research methods include hardware design, software development, system reliability testing, and power consumption analysis. The results show that the system is capable of detecting normal, alert, and earthquake conditions based on total acceleration values. The alert condition is within the range of 10.5 m/s 2 < at ≤ 12.0 m/s 2 , while earthquake conditions occur when at > 12.0 m/s 2 . In addition, the system achieved an average value of 10.17 m/s 2 and a standard deviation of 0.0256 m/s 2 , indicating that the MPU-6050 sensor readings have very small data deviations. Therefore, the system is capable of providing real-time earthquake monitoring and early warning effectively.
Downloads
References
[1] I. P. Putra, W. Sarwa, and M. Sinambela, “Mitigasi Bencana Gempa Bumi dengan Integrasi Analisis Geofisika dan Data Mining,” vol. 3, no. 2, pp. 121–129, 2024.
[2] Y. Syafitri, B. Bahtiar, and L. A. Didik, “Analisis Pergeseran Lempeng Bumi Yang Meningkatkan Potensi Terjadinya Gempa Bumi Di Pulau Lombok,” Konstan - J. Fis. Dan Pendidik. Fis., vol. 4, no. 2, pp. 139–146, 2020, doi: 10.20414/konstan.v4i2.43.
[3] H. Sugiarto, “Dua Gempa Beruntun Guncang Wilayah Agam, Sumatera Barat,” Padang Ekspres Digital Media. Accessed: May 30, 2025. [Online]. Available: https://padek.jawapos.com/sumbar/2365887935/dua-gempa-beruntun-guncang-wilayah-agam-sumatera-barat
[4] D. Wahyuni, P. Keumala Intan, and N. Hendrastuti, “Analisis Seismotektonik dan Periode Ulang Gempa Bumi pada Wilayah Jawa Timur Menggunakan Relasi Gutenberg-Richter,” J. Mhs. Mat. Algebr., vol. 1, no. 1, pp. 22–32, 2020.
[5] Y. Sendjaja, Andiani, and D. Muslim, “Understanding Geological Hazards to Support Disaster Risk Assessment in Indonesia : Understanding Geological Hazards to Support Disaster Risk Assessment in Indonesia :,” vol. 1, no. 1, pp. 1–55, 2022.
[6] K. Cahyadi, S. Rahmadani, and A. D. Senoaji, “Triwikrama: Jurnal Ilmu Sosial,” vol. 5, no. 2, pp. 1–13, 2024.
[7] A. Solehandayani, S. A. Yunitasari, and R. Y. Maharani, “Titian : Jurnal Ilmu Humaniora Strategi Komunikasi Kebencanaan : Studi Kasus Gempa Bumi di Gunung Kidul Yogyakarta Agustus 2024 Titian : Jurnal Ilmu Humaniora,” vol. 08, no. 02, pp. 238–253, 2024.
[8] Arokhman, “Rancang Bangun Pendeteksi Getaran Gempa Bebasis Mikrokontroler Iot Arduino,” Cyber, Educ. Res., vol. 3, no. 1, pp. 788–792, 2023, doi: 10.58660/cer.v3i1.8.
[9] A. S. Chaithanya, D. Sindhuja, D. Bhavana, and P. Vennela, “Design and Interfacing of I2C Master with Register and LCD Slaves,” vol. 8958, no. 4, pp. 2355–2360, 2021, doi: 10.35940/ijeat.D7901.049420.
[10] C. M. Rosca and A. Stancu, “Earthquake Prediction and Alert System Using IoT Infrastructure and Cloud-Based Environmental Data Analysis,” Appl. Sci., vol. 14, no. 22, 2024, doi: 10.3390/app142210169.
[11] N. S. Bengi, S. Syamsul, and N. Nasri, “Prototype Sistem Pendeteksi Gempa Bumi Dan Peringatan Dini Berbasis Internet of Things,” J. TEKTRO, vol. 8, no. 1, pp. 138–144, 2024.
[12] M. Furqan and M. N. Shidqi, “Language Processing,” Walisongo J. Inf. Technol. Telegr. Menggunakan Nat. Lang. Process., vol. 5, no. 1, pp. 15–26, 2023.
[13] Y. Zhang, X. Hou, M. Miao, and H. Liu, “The Comparison of Experiments in Embedded System Course,” pp. 41–46.
[14] P. T. Wikantama, M. Bahalwan, and M. A. G. Akmal, “SIGEMPA : Sistem Peringatan Dini Gempa Bumi berbasis IoT dengan ESP32,” J. Tek. Mesin, Elektro dan Ilmu Komput., vol. 4, no. 1, pp. 63–70, 2024, doi: 10.55606/teknik.v4i1.2937.
[15] R. E. Nuryaningsih, “Design of Earthquake Detection Devices,” vol. 12, no. 2, pp. 143–148, 2025.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Jundi Abdillah

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Copyright & License
Copyright, licensing, and reuse terms for articles published in Protek: Jurnal Ilmiah Teknik Elektro
1. Copyright
Authors who publish in Protek: Jurnal Ilmiah Teknik Elektro retain the copyright of their work. Copyright of each article is vested exclusively in its authors.
2. License
Articles in Protek are published under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0). Anyone may share and adapt the work under the following terms:
3. Author's Warranties
By submitting a manuscript, the author warrants that the article:
- is original and has not been published before;
- contains no unlawful statements;
- does not infringe the rights of others;
- is subject to copyright vested exclusively in the author(s); and
- includes any necessary permissions to quote material from other sources.
4. User Rights
Under CC BY-NC-SA 4.0, users may copy, distribute, display, and perform the work for non-commercial purposes only. When distributing the work, users must give proper credit to the authors and to Protek as the original place of publication.
7. Royalties
The parties agree that no royalties or other fees are paid to the authors for publication. To the extent legally permissible, authors waive any claim to royalties for the publication of their article.
8. Miscellaneous
- Protek publishes the article in electronic form and makes it freely available to the public, without charge to readers.
- The editors may modify the article to conform to the journal's style, including punctuation, spelling, capitalization, referencing, and usage.
Questions about copyright or licensing can be sent to protek@unkhair.ac.id. See also the Open Access Policy and Publication Ethics.

