A A Low-Cost MQTT-Based IoT Framework for Real-Time Monitoring of Battery Energy Storage Systems
How to cite (JITCE) :
Electricity consumption continues to increase in line with population growth and the rising demand for energy. However, this trend is inversely proportional to the availability of electrical energy resources, particularly those supporting clean energy. One of the renewable energy sources is solar power generation, which utilizes solar radiation. In practice, solar power systems cannot operate optimally under cloudy conditions or during nighttime. Therefore, a Battery Energy Storage System (BESS) plays a crucial role in providing a reliable and continuous energy supply over a certain period. In addition, BESS requires proper monitoring to assess its operational condition. This study presents the development of an IoT-based real-time monitoring system for BESS using the MQTT communication protocol. An ESP32 module is employed as the internet gateway (publisher), while a cloud-based compute engine functions as the subscriber. The proposed system enables real-time monitoring of key parameters, including voltage, current, power, temperature, as well as battery charging and discharging states, which are stored and visualized in a cloud database. The results demonstrate that the developed prototype is capable of publishing and subscribing energy storage data effectively, with a sensor accuracy error of approximately 1%. The overall system achieves an average response time of 1.41 seconds, indicating reliable real-time performance.
[1] H. Lean and R. Smyth, “Co2 emissions, electricity consumption and output in asean,” Applied Energy, vol. 87, no. 6, pp. 1858–1864, 2010.
[2] M. Muchlis and A. D. Permana, “Proyeksi kebutuhan listrik pln tahun 2003 sd 2020,” Pengembangan Sistem Kelistrikan dalam Menunjang Pembangunan Nasional Jangka Panjang, Jakarta, 2003.
[3] I. Rahardjo and I. Fitriana, “Analisis potensi pembangkit listrik tenaga surya di indonesia,” Strategi Penyediaan Listrik Nasional Dalam Rangka Mengantisipasi Pemanfaatan PLTU Batubara Skala Kecil, PLTN, dan Energi Terbarukan, P3TKKE, BPPT, Januari, 2005.
[4] J. M. Ramadhan, “Pengembangan prototipe sistem monitoring kinerja untuk pembangkit listrik tenaga surya menggunakan protokol komunikasi mqtt berbasis internet of things,” Ph.D. dissertation, UIN Sunan Gunung Djati Bandung, 2021.
[5] F. Wijaya, “Design of fuzzy logic controller for charging system with temperature condition system in excavator,” in Proceedings of The Conference on Management and Engineering in Industry, vol. 1, no. 1, 2019, pp. 27–30.
[6] K. Friansa, I. N. Haq, B. M. Santi, D. Kurniadi, E. Leksono, and B. Yuliarto, “Development of battery monitoring system in smart microgrid based on internet of things (iot),” Procedia engineering, vol. 170, pp. 482–487, 2017.
[7] A. Adhikaree, T. Kim, J. Vagdoda, A. Ochoa, P. J. Hernandez, and Y. Lee, “Cloud-based battery condition monitoring platform for large-scale lithium-ion battery energy storage systems using internet-of-things (iot),” in 2017 IEEE Energy Conversion Congress and Exposition (ECCE). IEEE, 2017, pp. 1004–1009.
[8] P. K. Sutawan, I. N. S. Kumara, and W. Ariastina,, "Simulasi Sistem Kontrol Operasi On Grid serta Islanding Pembangkit Listrik Tenaga Surya Di Jurusan Teknik Elektro Universitas Udayana," Majalah Ilmiah Teknologi Elektro,, vol. 14, no. 2, pp. 57-63, 2015.
[9] R. Alfanz, H. Haryanto et al., “Rancang bangun penyedia energi listrik tenaga hibrida (plts-pltb-pln) untuk membantu pasokan listrik rumah tinggal,” Setrum: Sistem Kendali-Tenaga-elektronika-telekomunikasi-komputer, vol. 4, no. 2, pp. 78–86, 2016.
[10] J. E. Putro, C. R. Handoko, H. Widodo, M. B. Rahmat, and A. Z. Arfianto, “Pemanfaatan teknologi tenaga matahari sebagai sumber energi bagi petani 105 porang di magetan,” in Seminar MASTER PPNS, vol. 2, no. 1, 2017, pp. 177– 180.
[11] R. Muhida, “Pemograman praktis mikrokontroler menggunakan pic untuk aplikasi robot,” Malaysia: Universitas Malaysia, 2008.

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Please find the rights and licenses in the Journal of Information Technology and Computer Engineering (JITCE).
1. License
The non-commercial use of the article will be governed by the Creative Commons Attribution license as currently displayed on Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
2. Author(s)’ Warranties
The author(s) warrants that the article is original, written by stated author(s), has not been published before, contains no unlawful statements, does not infringe the rights of others, is subject to copyright that is vested exclusively in the author and free of any third party rights, and that any necessary permissions to quote from other sources have been obtained by the author(s).
3. User Rights
JITCE adopts the spirit of open access and open science, which disseminates articles published as free as possible under the Creative Commons license. JITCE permits users to copy, distribute, display, and perform the work for non-commercial purposes only. Users will also need to attribute authors and JITCE on distributing works in the journal.
4. Rights of Authors
Authors retain the following rights:
- Copyright, and other proprietary rights relating to the article, such as patent rights,
- the right to use the substance of the article in future own works, including lectures and books,
- the right to reproduce the article for own purposes,
- the right to self-archive the article.
- the right to enter into separate, additional contractual arrangements for the non-exclusive distribution of the article's published version (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal (Journal of Information Technology and Computer Engineering).
5. Co-Authorship
If the article was jointly prepared by other authors; upon submitting the article, the author is agreed on this form and warrants that he/she has been authorized by all co-authors on their behalf, and agrees to inform his/her co-authors. JITCE will be freed on any disputes that will occur regarding this issue.
7. Royalties
By submitting the articles, the authors agreed that no fees are payable from JITCE.
8. Miscellaneous
JITCE will publish the article (or have it published) in the journal if the article’s editorial process is successfully completed and JITCE or its sublicensee has become obligated to have the article published. JITCE may adjust the article to a style of punctuation, spelling, capitalization, referencing and usage that it deems appropriate. The author acknowledges that the article may be published so that it will be publicly accessible and such access will be free of charge for the readers.
