Implementation of microservices in IoT projects with Arduino

Main Article Content

Marco Antonio Celis Crisostomo
Francisco Miguel Hernández López
Jorge Alberto Cárdenas Magaña
Emmanuel Vega Negrete

Abstract

This article focuses on the implementation of a system to send and receive data using an Arduino MEGA and an Ethernet Shield, with an emphasis on communication with a microservices-based API. The relevance of this study lies in the growing demand for accessible technological solutions for automation and education, allowing the integration of low-cost systems with modern data management tools. The objective is to provide a detailed description of the components and configurations required to establish this communication, offering practical examples of the most common HTTP services: GET, POST, PUT, and DELETE. For the creation of the microservices, a MAMP server is used, and PHP is programmed using the Slim Framework. A comprehensive explanation is provided on how to implement each of these methods in Arduino projects, accompanied by code examples and practical demonstrations that facilitate understanding and application in various contexts. The results obtained demonstrate the viability of this technology in educational and automation projects, highlighting the effectiveness of combining Arduino with microservices for real-time data management. In conclusion, the combination of Arduino and microservices presents itself as an effective and adaptable solution for implementing technological projects in educational and automation contexts, offering a robust and efficient alternative for data handling.

Article Details

Section
Scientific Paper

References

J. P. Tovar Soto, J. D. l. S. Solórzano Suárez, A. Badillo Rodríguez, and G. O. Rodríguez Cainaba, “Internet de las cosas aplicado a la agricultura: estado actual,” Lámpsakos, no. 22, pp. 86–105, Nov. 2019. [Online]. Available: https://doi.org/10.21501/21454086.3253

B. A. Quintana G., V. R. Pereira Poveda, and C. N. Vega S., “Automatización en el hogar: un proceso de diseño para viviendas de interés social,” Revista Escuela de Administración de Negocios, no. 78, pp. 108–121, Jul. 2015. [Online]. Available: https://doi.org/10.21158/01208160.n78.2015.1193

C. A. Laura Mamani, “Pruebas de software para microservicios,” Innovación y Software, vol. 4, no. 1, pp. 151–160, Mar. 2023. [Online]. Available: http://dx.doi.org/10.48168/innosoft.s11.a86

P. Gutiérrez Prada, G. B. De Corso-Sicilia, and W. G. Jiménez-Barbosa, “Impacto social del internet de las cosas (IdC): una reflexión conceptual,” Jangwa Pana, vol. 21, no. 3, pp. 254–270, Nov. 2022. [Online]. Available: https://doi.org/10.21676/16574923.4719

L. G. V. Molina and C. O. G. Molina, “Utilización de sensores iot para la automatización de sistemas de riego,” Dominio de las Ciencias, vol. 9, no. 4, pp. 1731–1748, 2023. [Online]. Available: https://upsalesiana.ec/ing34ar1r5

L. García, L. Parra, J. M. Jimenez, J. Lloret, and P. Lorenz, “Iot-based smart irrigation systems: An overview on the recent trends on sensors and iot systems for irrigation in precision agriculture,” Sensors, vol. 20, no. 4, p. 1042, Feb. 2020. [Online]. Available: https://doi.org/10.3390/s20041042

S. K. Mousavi, A. Ghaffari, S. Besharat, and H. Afshari, “Improving the security of internet of things using cryptographic algorithms: a case of smart irrigation systems,” Journal of Ambient Intelligence and Humanized Computing, vol. 12, no. 2, pp. 2033–2051, Jul. 2020. [Online]. Available: https://doi.org/10.1007/s12652-020-02303-5

B. Parvathi Sangeetha, N. Kumar, A. P. Ambalgi, S. L. Abdul Haleem, K. Thilagam, and P. Vijayakumar, “Iot based smart irrigation management system for environmental sustainability in india,” Sustainable Energy Technologies and Assessments, vol. 52, p. 101973, Aug. 2022. [Online]. Available: https://doi.org/10.1016/j.seta.2022.101973

J. Yang, A. Sharma, and R. Kumar, “Iot-based framework for smart agriculture,” International Journal of Agricultural and Environmental Information Systems, vol. 12, no. 2, pp. 1–14, Apr. 2021. [Online]. Available: http://doi.org/10.4018/ijaeis.20210401.oa1

J. Ruan, Y. Wang, F. T. S. Chan, X. Hu, M. Zhao, F. Zhu, B. Shi, Y. Shi, and F. Lin, “A life cycle framework of green iot-based agriculture and its finance, operation, and management issues,” IEEE Communications Magazine, vol. 57, no. 3, pp. 90–96, Mar. 2019. [Online]. Available: http://doi.org/10.1109/mcom.2019.1800332

J. M. Talavera, L. E. Tobón, J. A. Gómez, M. A. Culman, J. M. Aranda, D. T. Parra, L. A. Quiroz, A. Hoyos, and L. E. Garreta, “Review of iot applications in agroindustrial and environmental fields,” Computers and Electronics in Agriculture, vol. 142, pp. 283–297, Nov. 2017. [Online]. Available: http://doi.org/10.1016/j.compag.2017.09.015

R. Kumar, R. Mishra, H. P. Gupta, and T. Dutta, “Smart sensing for agriculture: Applications, advancements, and challenges,” IEEE Consumer Electronics Magazine, vol. 10, no. 4, pp. 51–56, Jul. 2021. [Online]. Available: https://doi.org/10.1109/MCE.2021.3049623

M. S. Farooq, S. Riaz, A. Abid, T. Umer, and Y. B. Zikria, “Role of iot technology in agriculture: A systematic literature review,” Electronics, vol. 9, no. 2, p. 319, Feb. 2020. [Online]. Available: http://doi.org/10.3390/electronics9020319

V. K. Patil, A. Jadhav, S. Gavhane, and V. Kapare, “Iot based real time soil nutrients detection,” in 2021 International Conference on Emerging Smart Computing and Informatics (ESCI). IEEE, Mar. 2021, pp. 737–742. [Online]. Available: http://doi.org/10.1109/esci50559.2021.9396860

Visual Studio Code. (2024) Your code editor. redefined with ai. Visual Studio Code. [Online]. Available: https://upsalesiana.ec/ing34ar1r15

Postman. (2024) Ai is powered by apis. apis are powered by postman. Postman. Inc. [Online]. Available: https://upsalesiana.ec/ing34ar1r16

Arduino. (2024) Arduino ide 2.3.4. Arduino. [Online]. Available: https://upsalesiana.ec/ing34ar1r17

MAMP. (2024) Mamp pro & mampyour web development tool. MAMP GmbH. [Online]. Available: https://upsalesiana.ec/ing34ar1r18

Fritzing. (2024) Fritzing home page. Fritzing Electronics Made Easy. Fritzing Electronics Made Easy. [Online]. Available: https://upsalesiana.ec/ing34ar1r19

Draw.io. (2024) Diagrams on line. J Graph. Ltd. [Online]. Available:https://upsalesiana.ec/ing34ar1r20