Desenvolvimento de um ambiente web inteligente para geração automática de código para ESP32 a partir de linguagem natural
Loading...
Date
Authors
Advisor(s)
Co-advisor(s)
Committee members
Souto, Eduardo James Pereira
Graduate program
Journal Title
Journal ISSN
Volume Title
Publisher
Access rights
DOI
Resumo (Portuguese)
Este projeto teve como foco o desenvolvimento de um ambiente de programação automatizado para o microcontrolador ESP32, com apoio de técnicas de Inteligência Artificial e de um backend em Django. A proposta buscou reduzir a barreira técnica enfrentada por iniciantes na área de sistemas embarcados, possibilitando a geração de código em C/C++ a partir de instruções em linguagem natural. O sistema foi estruturado de forma a iniciar uma conversa com o usuário, conduzida por um assistente conversacional baseado no modelo ChatGPT, adaptado para o domínio específico do ESP32. Embora a integração direta com o GPT personalizado da OpenAI não fosse possível por limitações da API, solucionou-se essa restrição com a incorporação do prompt do assistente no backend, garantindo que o modelo reproduzisse seu comportamento. Além da integração com a API da OpenAI, foi criado um mecanismo de fallback local que assegura a resiliência do sistema, gerando exemplos básicos quando não há chave válida ou créditos disponíveis. A arquitetura em Django permitiu a criação de uma interface web simples, responsiva e escalável, incluindo rotas REST, banco de dados para registro de interações e preparação para envio OTA (Over-The-Air). Do ponto de vista prático, o trabalho demonstra viabilidade técnica inicial, evidenciando que o protótipo desenvolvido sinaliza potencial para contribuir com a simplificação do acesso à programação embarcada e à utilização prática do microcontrolador ESP32 em contextos educacionais e de prototipagem rápida. O projeto indica caminhos promissores para discussões futuras sobre a integração da Inteligência Artificial como ferramenta de apoio no aprendizado de sistemas embarcados.
Abstract
This project focused on the development of an automated programming environment for the ESP32 microcontroller, supported by Artificial Intelligence techniques and a Django-based backend. The proposal aimed to reduce the technical barrier faced by beginners in the field of embedded systems, enabling the generation of C/C++ code from natural language instructions. The system was structured to initiate a conversation with the user, guided by a conversational assistant based on the ChatGPT model, adapted to the specific domain of the ESP32. Although direct integration with OpenAI’s custom model was not possible due to API limitations, this restriction was overcome by incorporating the assistant’s prompt into the backend, ensuring that the model reproduced its intended behavior. In addition to the integration with the OpenAI API, a local fallback mechanism was implemented to ensure system resilience, generating basic examples when no valid API key or credits are available. The Django architecture enabled the creation of a simple, responsive, and scalable web interface, including REST routes, a database for logging interactions, and preparation for OTA (Over-The-Air) deployment. From a practical standpoint, the work demonstrates initial technical feasibility, evidencing that the developed prototype signals potential to contribute to simplifying access to embedded programming and to the practical use of the ESP32 microcontroller in educational and rapid prototyping contexts. The project points to promising avenues for future discussions regarding the integration of Artificial Intelligence as a supporting tool for learning embedded systems.
Description
Controlled term
Sustainable Development Goals (SDG)
Citation
Collections
Endorsement
Review
Supplemented By
Referenced By
Creative Commons license
Except where otherwise noted, this item's license is described as Acesso Aberto

