GenAI as an IoT programming assistant: a case study on automated debugging for air quality monitoring systems

Steven Imanel Bawole, Handri Santoso

Abstract


The rapid expansion of internet of things (IoT) technology has necessitated the development of user-friendly programming solutions for non–experts. While generative artificial intelligence (GenAI) offers the potential to democratize code development, its ability to assist in the intricate task of automated debugging, particularly regarding hardware integration remains a critical area of research. A design research approach was employed, employing a structured four – phase workflow: error analysis, diagnostic execution through prompting, iterative solution analysis, and functional verification. The methodology was applied to an experimental case study involving an air quality (AQ) monitoring system. The study tested the artificial intelligence (AI)’s capacity to debug C++ code intended for the Arduino integrated development environment (IDE). Gemini AI successfully identified and resolved three critical logic errors arising from mismanaged MQ135 calibration variables, incorrect loop sequencing, and data desynchronization between the organic light emitting diode (OLED) display and the internal status logic. GenAI proved effective as a programming assistant for resolving bugs in IoT applications. However, effective debugging still depends on well-structured prompts and a basic understanding of the underlying IoT hardware.

Keywords


automated debugging; Gemini artificial intelligence; generative artificial intelligence; internet of things; programming assistant;

Full Text:

PDF


DOI: http://doi.org/10.12928/telkomnika.v24i4.27707

Refbacks

  • There are currently no refbacks.


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

TELKOMNIKA Telecommunication, Computing, Electronics and Control
ISSN: 1693-6930, e-ISSN: 2302-9293
Universitas Ahmad Dahlan, 4th Campus
Jl. Ringroad Selatan, Kragilan, Tamanan, Banguntapan, Bantul, Yogyakarta, Indonesia 55191
Phone: +62 (274) 563515, 511830, 379418, 371120
Fax: +62 274 564604

View TELKOMNIKA Stats