Creating a LabVIEW Sub VI for the INA219 Sensor for Detecting Extremely Low-Level Electrical Quantities

Authors

  • Abdulrahman B. Khudhair Department of Mechatronics Engineering / Al-Khwarizmi College of Engineering/ University of Baghdad/ Baghdad/ Iraq
  • Furat I. Hussein Department of Mechatronics Engineering / Al-Khwarizmi College of Engineering/ University of Baghdad/ Baghdad/ Iraq
  • Muhannad Ahmed Obeidi Form Advanced Manufacturing Research Centre/ School of Mechanical and Manufacturing Engineering/ Dublin City University/ Dublin/ Ireland

DOI:

https://doi.org/10.22153/kej.2023.05.001

Abstract

An impressed current cathodic protection system (ICCP) requires measurements of extremely low-level quantities of its electrical characteristics. The current experimental work utilized the Adafruit INA219 sensor module for acquiring the values for voltage, current, and power of a default load, which consumes quite low power and simulates an ICCP system. The main problem is the adaptation of the INA219 sensor to the LabVIEW environment due to the absence of the library of this sensor. This work is devoted to the adaptation of the Adafruit INA219 sensor module in the LabVIEW environment through creating, developing, and successfully testing a Sub VI to be ready for employment in an ICCP system. The sensor output was monitored with an Arduino Uno microcontroller and the LabVIEW Linx firmware toolkit. Pulse Width Modulation (PWM) technique, which ranges from 0% to 100%, was applied by the Arduino to supply the l298N voltage driver in order to regulate the voltage input to the load. A moving average filter was employed to measure the ripple voltage averaging, and a median filter was utilized to stabilize the readings. A passive low-pass filter circuit smoothed the PWM voltage before supplying the load. The results from the MATLAB-Simulink environment showed a cut-off frequency of 2.33 Hz, ripple voltage peak to peak was 41.1 mV and a settling time of 0.157 seconds. The calibrated results of the INA219 module sensor showed an absolute voltage inaccuracy of around 2.3% at full scale. In addition, an absolute error in the current of 2.2% at 25 mA shows a gradual increase as the current increases to 7% at 43 mA, while the highest absolute error for the full scale of power was at 5.8%. The obtained measurements were highly precise, and the values of the coefficient of variation were 0.36 %, 0.28% and 0.17% for the voltage, current, and power, respectively.

 

Downloads

Download data is not yet available.

Author Biography

  • Furat I. Hussein, Department of Mechatronics Engineering / Al-Khwarizmi College of Engineering/ University of Baghdad/ Baghdad/ Iraq

     

     

References

R. B. Northrop, INTRODUCTION TO INSTRUMENTATION AND MEASUREMENTS, 3rd ed., Broken Sound Parkway NW: Taylor & Francis Group, 2014.

J. M. Shah, R. Anand, S. Saini, R. Cyriac, D. Agonafer, P. Singh and M. Kaler, "DEVELOPMENT OF A TECHNIQUE TO MEASURE DELIQUESCENT RELATIVE HUMIDITY OF PARTICULATE CONTAMINANTS AND DETERMINATION OF THE OPERATING RELATIVE HUMIDITY OF A DATA CENTER," in Proceedings of the ASME 2019 International Technical Conference and Exhibition on Packaging and Integration of Electronic and Photonic Microsystems, Anaheim, CA, USA, 2019.

M. Nizam, H. Maghfiroh, A. Ubaidilah, I. and F. Adriyanto, "Constant current-fuzzy logic algorithm for lithium-ion battery charging," International Journal of Power Electronics and Drive Systems (IJPEDS), vol. 13, no. 2, pp. 926-937, June 2022.

W. Indrasari, R. Fahdiran, E. Budi, U. Umiatin and N. S. Yusuf, "Development of static solar panel equipped by an active reflector based on LDR sensors," in 5th International Seminar on Mathematics, Science, and Computer Science Education, Bandung, 2019.

Đ. Lazarević, M. Živković, Đ. Kocić and J. , "The Utilizing Hall Effect-Based Current Sensor ACS712 for TRUE RMS Current Measurement in Power Electronic Systems," vol. 72, no. 1, pp. 27-32, 2022.

N. Cameron, Electronics Projects with the ESP8266 and ESP32: Building Web Pages,Applications, and WiFi Enabled Devices, Edinburgh, UK: Apress, 2021.

K. AP, M. JK, I. KO, M. D and K. JG, "Current and voltage data logging from microbial fuel cells using arduino based sensors," International Journal of Robotics and Automation, vol. 7, no. 3, pp. 90-93, 5 November 2021.

M. Nizam, H. Maghfiroh, ,. F. N. Kuncoro and F. Adriyanto, "Dual Battery Control System of Lead Acid and Lithium Ferro Phosphate with Switching Technique," World Electric Vehicle Journal, vol. 12, no. 4, 1 January 2021.

H. Maghfiroh, J. T. Affandy, F. Adriyanto and M. Nizam, "Single Phase Inverter with Power Monitoring using Arduino," in 2nd International Conference on Science & Technology, Yogyakarta, 2020.

A. A. Musyafiq, N. A. Ilahi, R. P. Dewi and U. Barokah, "Simulation of Piko Hydro Power Generator Using Thread Turbine With 10-Watt Power," Journal of Telecommunication Network, vol. 12, no. 2, pp. 100-104, 2022.

S. H. Cheragee, N. Hassan, S. Ahammed, A. Z. Md and T. Islam, "A STUDY OF IOT BASED REAL-TIME SOLAR POWER REMOTE MONITORING SYSTEM," International Journal of Ambient Systems and Applications, vol. 9, no. 1, pp. 27-36, June 2021.

E. Wiyadi, A. Wati, Y. Hamzah and Y. , "Simple I-V acquisition module with high side current sensing principle for real time photovoltaic measurement," in International Seminar on Sensors, Instrumentation, Measurement and Metrology, Padang, 2020.

A. T. Nugraha, D. Priyambodo and S. T. Sanera, "Design A Battery Charger with Arduino Uno-Based for A Wind Energy Power Plant," Journal of Physical Science and Engineering, vol. 7, no. 1, pp. 23-38, 18 April 2022.

R. Singh, A. Gehlot, B. Singh and S. Choudhury, Arduino-Based Embedded Systems Interfacing, Simulation, and LabVIEW GUI, Broken Sound Parkway NW: Taylor & Francis Group, 2018.

Data sheet, INA219 Zerø-Drift, Bidirectional Current/Power Monitor With I2C Interface, Texas Instruments Incorporated, 2015.

W. H. Hayt Jr, J. E. Kemmerly and S. M. Durbin, ENGINEERING CIRCUIT ANALYSIS, 8 ed., New York: McGraw-Hill, 2012.

M. Mariappan, H. F. Shun and K. Muthukaruppan, "Electrical Consumer Panel with Automated Leakage Current Detector System," INTERNATIONAL JOURNAL OF INTEGRATED ENGINEERING, vol. 12, no. 2, pp. 46-54, 2020.

A. S. Merzah, M. H. Hafiz and S. k. Mohammed, "Corrosion control of Buried Low Carbon Steel Structure by Using Alteration Medias method," Al-Khwarizmi Engineering Journal vol. 10, no. 2, pp. 65-74, 2014.

Downloads

Published

2023-09-01

How to Cite

Creating a LabVIEW Sub VI for the INA219 Sensor for Detecting Extremely Low-Level Electrical Quantities. (2023). Al-Khwarizmi Engineering Journal, 19(3), 88-97. https://doi.org/10.22153/kej.2023.05.001

Publication Dates