Authenticated WiFi-Based Wireless Data Transmission from Multiple Sensors Through a Laboratory Stand Based on Collaboration Between ATMEGA2560 and ESP32 Microcontrollers


  • Mostafa Abotaleb PhD Student at The Doctoral School of Gdynia Maritime University



Data Authentication, WiFi, WebSerial, ESP32, Arduino Mega 2560, Python, Websockets


The use of wireless technology in the field of instrumentation is rapidly expanding due to many reasons such as lower installation and commissioning cost than those incurred by wired technologies and a higher level of security provided by authenticated encrypted data transaction, in addition to a decreased level of system complicity, manifested in eliminating or limiting the need for cabling or its accessories. This article will discuss a proposed technique to perform authenticated wireless WiFi data transmission from multiple sensors to the control station depending on a laboratory stand  for the purpose of analysing the principle of coexistence between wireless technologies dedicated to industrial automation, such as wireless HART, and general purpose technologies, such as WiFi and Bluetooth Low Energy BLE.


Al Kala, M.O., Seidman, S., Quang, J., 2018, An Outlook on Wireless Coexistence with Focus on Medical Devices, IEEE Electromagnetic Compatibility Magazine, vol. 7, no. 3, pp. 60–64.

Arduino Forum, 2017, Why Is Using Delay Bad?­lay-bad/465334/1 (11.04.2023).

Arduino References, 2019, Communication Function: Serial,­guage/fun­ctions/communication/serial/ (11.04.2023).

Arduino References, 2021, Datatypes: Stringobject String(),­guage/variables/data-types/stringobject/ (11.04.2023).

Arduino References, 2022, Time Function Millis(),­guage/functions/time/millis/ (11.04.2023).

Arduino, 2023, Arduino® MEGA 2560 Rev3Product Refrence Manual, SKU: A00067,­~cmaj/­SM_2st/­arduino-mega2560_R3-datasheet.pdf (12.04.2023).

Cura, M.G., 2020, Industrial Arduino Millis () vs Delay (), Boot & Work Corp. S.L., (11.04.2023).

DelCastillo, G., 2021, Python Websocket Server,­torial­Files/tree/master/Misc/WebSockets (11.04.2023).

Espressif Systems, 2023, Arduino-ESP32 Release 2.0.6.

Gomaa, R., 2020, Coexistence Study of 2.4 GHZ Wireless Technologies for Nuclear and Radiological Applications, International Journal of Engineering Research & Technology (IJERT), vol. 9, no. 8.

Joseph, J., 2022, ESP32 Timers & Timer Interrupts, (11.04.2023),

LaSorte, N.J., Seidman, S., Quang, J., 2016, Experimental Method for Evaluating Wireless Coexistence of Wi-Fi Medical Devices, Biomedical Instrumentation and Technology, vol. 50(s6), pp. 18–25.

Liang, O., 2013, Arduino Timer and Interrupt Tutorial, tutorial /#:~:text=On%20the%20Arduino% 20Mega%20we,and%2013%3A%20­controlled%20by%20Timer0 (11.04.2023),

Pepperl+Fuchs, 2015, WHA-BLT-F9D0-N-A0 BULLET Wireless HART Adapter Instruction Manual, ?v=20230403152657 (12.04.2023).

Randomnerdtutorials, January 2020a, ESP32 Client-Server Wi-Fi Communication Between Two Boards, (12.04.2023).

Randomnerdtutorials, January 2020b, Getting Started with ESP-NOW (ESP32 with Arduino IDE), (12.04.2023).

Randomnerdtutorials, November 2020, ESP-MESH with ESP32 and ESP8266: Getting Started (PainlessMesh Library),­less­mesh/ (12.04.2023).

Randomnerdtutorials, February 2021, ESP32 Useful Wi-Fi Library Functions (Arduino IDE), (11.04.2023).

Randomnerdtutorials, August 2021, ESP32 WebSerial: Web-based Remote Serial Monitor, (11.04.2023).

Santos, R., 2015, Why You Shouldn’t Always Use the Arduino Delay Function, (11.04.2023).

Sharma, A., 2021, WebSerial: Remote Serial Monitor for ESP8266 and ESP32,­ayushsharma82/WebSerial (11.04.2023).

Solomon, B., 2019, ESP32: Async IO in Python: A Complete Walkthrough, https://realpython.­com/async-io-python/ (11.04.2023).

Stoffregen, P., 2015, TimerOne Modified Library, (11.04.2023).

Techtutorialsx, 2022, ESP32: WebSerial Console Over Soft AP,­

esp32-web­serial-console-over-soft-ap/ (11.04.2023).

Toptechboy, 2018, Lesson 30: Advanced Software Interrupt Techniques for Reading Serial Data with Arduino, (11.04.2023).




How to Cite

Abotaleb, M. (2023). Authenticated WiFi-Based Wireless Data Transmission from Multiple Sensors Through a Laboratory Stand Based on Collaboration Between ATMEGA2560 and ESP32 Microcontrollers. Scientific Journal of Gdynia Maritime University, (127), 27–41.