Development Arduino Data Logger using INA219 Sensor for Battery Capacity Monitoring

Hollanda Arief Kusuma, Rifki Ariandhi, Septia Refly, Sapta Nugraha


A battery, also known as an accumulator, is an electrical cell that can reverse an electrochemical process with high efficiency. It is essential in the use of electrical systems as storage devices. It has two critical parameters: current and voltage. These parameters can affect the battery's behavior, which leads to battery usage. As a result, a battery monitoring instrument is required to monitor the battery's current and voltage while it is in use. The researchers designed a monitoring instrument with an Arduino Pro Mini 5V microcontroller as the main processor, INA219 as a current and voltage sensor, RTC DS3231 as a time reader, micro SD card module as a data logger, and OLED SH1106 to display the current, voltage, and time readings. The calibration of the INA219 sensor has a current reading accuracy of 91.43% and a voltage reading accuracy of 99.87%. RMSE was measured at 227.65 mA and 0.0146 V. The device was tested with a BSB DB 12-55Ah battery connected to 30W PJU lamps. In the results of this test, we experienced voltage drop and current ripple in the battery performance. The battery usage capacity was 49.71 Ah. Based on this research, the device built can monitor battery conditions.


Current; Voltage; Monitoring; INA219 sensor; Datalogger


M. Thowil Afif and I. Ayu Putri Pratiwi, “Analisis Perbandingan Baterai Lithium-Ion, Lithium-Polymer, Lead Acid dan Nickel-Metal Hydride pada Penggunaan Mobil Listrik - Review,” J. Rekayasa Mesin, vol. 6, no. 2, pp. 95–99, 2015, doi: 10.21776/ub.jrm.2015.006.02.1.

R. A. Hamzah, A. Rusdinar, and R. Nugraha, “Implementasi Sistem Monitoring dan Manajemen Baterai Pada Kendaraan Listrik,” e-Proceeding Eng., vol. 4, no. 2, pp. 1612–1619, 2017, [Online]. Available:

A. P. B. Segara, D. C. Riawan, and H. Suryoatmojo, “Monitoring Kinerja Baterai Berbasis Timbal untuk Sistem Photovoltaic,” J. Tek. Pomits, vol. 1, no. 1, pp. 1–6, 2013.

H. Suryawinata, D. Purwanti, and S. Sunardiyo, “Sistem Monitoring Pada Panel Surya Menggunakan Data Logger Berbasis Atmega 328 Dan Real Time Clock DS1307,” J. Tek. Elektro, vol. 9, no. 1, pp. 30–36, 2017.

H. Lu, D. Wu, and Y. Li, “The Design of Parameter Test System for Lithium Battery of Electric Vehicle Based on STM32 Single-Chip Microcomputer,” OALib, vol. 08, no. 12, pp. 1–9, 2021, doi: 10.4236/oalib.1108265.

T. Pangaribowo, W. M. Utomo, A. A. Bakar, and D. S. Khaerudini, “Battery charging and discharging control of a hybrid energy system using microcontroller,” Indones. J. Electr. Eng. Comput. Sci., vol. 17, no. 2, pp. 575–582, 2019, doi: 10.11591/ijeecs.v17.i2.pp575-582.

R. S. Sedha, Electronic Measurements and Instrumentation. S CHAND & Company Limited, 2013.

T. Chai and R. R. Draxler, “Root mean square error (RMSE) or mean absolute error (MAE)? -Arguments against avoiding RMSE in the literature,” Geosci. Model Dev., vol. 7, no. 3, pp. 1247–1250, 2014, doi: 10.5194/gmd-7-1247-2014.

R. Rynkiewicz, “Discharge and charge modeling of lead acid batteries,” in APEC’99. Fourteenth Annual Applied Power Electronics Conference and Exposition. 1999 Conference Proceedings (Cat. No. 99CH36285), 1999, vol. 2, pp. 707–710.

R. Lu, J. Lu, P. Liu, M. He, and J. Liu, “Design of the vrla battery real-time monitoring system based on wireless communication,” Sensors (Switzerland), vol. 20, no. 15, pp. 1–17, 2020, doi: 10.3390/s20154350.

T. Reddy, Linden’s Handbook of Batteries, 4th Edition, 4th Editio. New York: McGraw-Hill Education, 2010.



  • There are currently no refbacks.

Copyright (c) 2023 Jurnal Teknik Elektro dan Komputasi (ELKOM)

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

View My Status                                                                       Indexing Service



   Publisher :
   Jl. Karimata No. 49 Jember 68121 East Java
   Website :
   Email :

Editorial Address :
Electrical Engineering
Faculty of Engineering
Jl. Karimata No. 49 Jember 68121 East Java