Paper 139
Paper 139
1 Introduction
A Smart Lab or intelligent laboratory is composed of integrated and automated
elements through communication protocols. IoT architecture allows remote mon-
itoring and control via smart devices. The IoT platform serves as the core of the
architecture, enabling management and processing of data generated by lab-
oratory devices and sensors. This platform may encompass functions such as
data storage, real-time monitoring, data analysis, device management, and data
visualization.
Advancements in IoT technology have facilitated the integration of electronic
devices for real-time system management and control. This study focuses on
applying these technologies in a laboratory setting, facilitating research and de-
velopment in the field of mechatronics. Implementing an IoT architecture in the
2 F. Author et al.
laboratory aims to optimize processes and provide a flexible platform for future
research. The ability to remotely monitor and control laboratory systems not
only enhances operational efficiency but also serves as a valuable educational
tool for students.
Currently, various electronic devices support automatic performance of daily
tasks, such as turning on lights via voice commands, allowing door access through
facial recognition or fingerprint scanning, or controlling room temperature with-
out manual intervention, all connected to the cloud.
However, limitations encountered in implementing a smart lab include device
compatibility, as not all components can be easily integrated with each other,
and the high cost of both hardware and advanced software. Security is a major
concern due to the vulnerability of IoT systems to cyberattacks, while connec-
tivity may be limited in areas with poor network infrastructure. Additionally,
interoperability between various systems and protocols can be complex due to
the lack of universal standards, which complicates the integration and efficient
operation of all laboratory components.
Specific challenges in implementing a smart lab include scalability, which
becomes more complicated as more devices and systems are added, and the need
to maintain optimal performance. Energy efficiency can be difficult to manage, as
deploying multiple devices could increase consumption if not properly controlled.
Regular maintenance and updating of hardware and software is essential but
can require significant resources. In addition, staff training is crucial to ensure
correct operation and maintenance of the systems. Latency and response times
must be managed to avoid affecting the performance of critical applications,
and managing large volumes of data represents a challenge in terms of storage,
processing and real-time analysis.
Implementing an IoT architecture in the laboratory not only enhances system
efficiency and control but also serves as a reference model for other laboratories
and industrial environments. This infrastructure enables real-time monitoring,
data collection, and decision-making based on accurate and up-to-date informa-
tion. Additionally, it fosters an interactive and practical learning environment
for mechatronics engineering students.
The significance of this project lies in its potential to enhance the quality of
research and education in mechatronics by providing an intelligent and connected
laboratory adaptable to evolving research and teaching needs.
In 2010, an intelligent laboratory system called Smartlab was created based
on mobile applications and IoT technologies. Its goal is to provide a practical
platform for university students learning IoT concepts and mobile applications.
This system has been implemented in several universities in China. The subsys-
tems include lighting, air conditioning, heating, audio/video, control switches,
and security. Students practice in an intelligent laboratory where the SmartLab
system installs and manages the many IoT nodes [1].
In January 2018, an intelligent laboratory system was inaugurated on the
CIT campus, based on IoT and mobile application technologies to monitor gen-
eral laboratory activities, including energy consumption, device utilization, and
Development of an IoT architecture for a Smart Lab 3
Implementing the intelligent laboratory based on IoT can improve the ef-
ficiency and accuracy of experiments and research processes in the laboratory.
For example, sensors can monitor environmental conditions and alert researchers
if there is a problem, reducing downtime and improving efficiency. Repetitive
and monotonous tasks can also be automated, allowing researchers to focus on
more important tasks. Additionally, real-time monitoring of safety conditions
can help prevent accidents and maintain a safe environment. Implementing this
laboratory will allow researchers to explore potential IoT applications, multidis-
ciplinary research, and device interaction with users [4].
With the appropriate equipment, environment, and courses, students can
study and practice in an intelligent laboratory. In a SmartLab, students have
the opportunity to learn and practice closely with the technology used in IoT,
gain basic knowledge, and become familiar with key IoT concepts [5].
In 2009, IoT became a fully implemented field in areas such as health, Smart
home, Smart city, automobiles, logistics, environment, pharmaceuticals, etc. [6].
As a concept, the Internet of Things is based on the interconnection of de-
vices with surrounding devices. The purpose is to communicate all these devices
with each other, making them smarter and more independent. Currently, plat-
forms like Arduino are prevalent in low-cost sensors. Of course, many companies
invest significant amounts of money and effort in developing devices and inno-
vation. Cisco, IBM, Intel, Google, Microsoft, etc. As high-speed devices emerge,
new communication standards are also adopted, and information is transferred
between them. Protocols such as WIFI, GSM, 6Lowpan, Bluetooth Ble, Zigbee,
and Z-Wave are the most used today [7].
In [8], Dr. Marco Márquez points out that laboratory experiences are clas-
sified depending on aspects such as teaching-learning, communications, or ex-
perimental. Depending on the aspects, the fundamental part of the problem is
considered, which can be remote control, didactic and management approach,
facilitating design.
There are many IoT platforms, each providing specific services linked to
the application and based on particular requirements. In a Smartlab, the IoT
network and nodes are the main physical part of the system, and the other
fundamental part is the configuration and management of areas, which is the
logical part of a Smartlab.
In [9], the authors fabricate a scale house using 3D printing. The selection of
sensors, actuators, and controllers is based on providing comfort and security to
users. Z-Wave and WIFI communication protocols are used, and a Raspberry Pi
3 board serves as the server for the control and monitoring program. Real-time
monitoring of the camera, temperature, light levels, and electrical consumption
is carried out. This is achieved through an interface developed using Home-
Assistant. From the application, there is the capability to control the switching
on and off of devices through commands, also facilitating this control via the
Alexa smart speaker.
The article details the advantage of using the Z-Wave wireless connection
protocol. This protocol allows the interconnection of up to 232 devices through
Development of an IoT architecture for a Smart Lab 5
2 Methods
The specific objectives of the IoT architecture in the laboratory are established,
considering the needs for physical adaptation, the devices to be integrated, and
the safety and performance standards. The requirements are defined, and the
phases range from planning to the final design.
Definition and planning of the IoT architecture structure. This stage involves
identifying system requirements, selecting suitable components, and designing
the network topology.
The black box scheme is used to present in a generalized manner the compo-
nents that make up the system, at the input the requirements to carry out the
process are listed and at the output the achieved objectives are listed as can be
seen in Figure 3.
Figure 4 shows in detail the elements that make up the system architecture.
Development of an IoT architecture for a Smart Lab 7
The WiFi network topology in a Smart Lab involves connecting multiple IoT
devices and sensors to a centralized network, allowing for efficient communica-
tion, control and monitoring. Figure 5 shows the WiFi network topology for the
Smart Lab and how it is integrated with various components.
2.3 Implementation
Integration of hardware and software systems, configuring sensors, actuators,
and communication protocols. The physical assembly of the devices and their
programming to operate in a coordinated manner is carried out.
Integration of hardware and software systems, configuration of sensors, ac-
tuators and communication protocols. The physical assembly of the devices and
their programming is carried out to operate in a coordinated manner. This sec-
tion presents the implemented IoT architecture as seen in Figure 6.
8 F. Author et al.
The implementation phase began with the installation of the Tuya brand
Smart Switch on-off switches as can be seen in Figure 7 for the on and off
control of two outlets.
Development of an IoT architecture for a Smart Lab 9
For the outlet in Figure 8 a Sonoff brand smart switch was used that, in
addition to on and off control, allows monitoring the voltage, current and power
consumption, parameters that will serve as a guide for the calculation of the
average consumption and the value estimated with reference to costs.
For the physical space seen in Figure 9, there is a single power point in the
area. There is no physical switch, therefore a two-channel TUYA Smart switch
was used to control light 3 and the extractor.
10 F. Author et al.
The selected blinds (See Figure 11) have a chain transmission system, it is
composed of an axle and a toothed wheel at the top, it acts as a driven wheel, the
YH002 curtain motor was installed, in which the blinds will be coupled. chain to
Development of an IoT architecture for a Smart Lab 11
the motor sprocket at the bottom and will act as a driving wheel in this way it
will depend on the direction of rotation of the motor to raise or lower the blind.
The integration of the devices used to control the systems was carried out
in the open source platform Home Assistant, Figure 12 shows the graphical
interface for monitoring, Figure 13 shows the control tab and adjacent to it.
an additional tab with a 3D view (Figure 14) of the environment allowing the
interface to be more intuitive depending on the user’s needs.
3 Results
– The device layer contains the implemented sensors: (2) WSD400B temper-
ature and humidity sensors with a tolerance of +/- 2°C and +/- 5% in
humidity, a C6N camera with a 2 Mpx CMOS image sensor, Sonoff Pow
R2 consumption meters, a 2-channel Smart touch Wi-Fi switch, (3) Tuya
WF-S1 smart Wi-Fi switches, (2) YH002 curtain motors.
– In the network layer, the communication protocol used is WI-FI.
– The service layer includes the platforms that enable data management on
the network.
Platforms such as Smart Life and eWelink are used for device integration
and control, and the Home Assistant platform for global space monitoring
and control.
– The application layer allows monitoring and control through an interface
(See HMI in Figure 15).
It consists of an API developed in App Inventor for controlling the door and
cabinet system and a Home Assistant API with a monitoring and control
interface for the remaining systems.
14 F. Author et al.
Twenty tests were conducted to measure the temperature and humidity in three
different zones of the laboratory area.
Table 1 shows the results obtained in the first zone of the laboratory.
Test Temperature (°C) Error Temp (°C) Humidity (%) Error Humidity (%)
1 22.5 0.2 45 0.5
2 22.7 -0.1 46 -0.3
3 22.6 0.3 47 0.4
4 22.8 -0.2 45 -0.2
5 22.4 0.1 46 0.3
6 22.9 -0.3 47 -0.4
7 22.5 0.2 45 0.2
8 22.7 -0.1 46 -0.5
9 22.6 0.3 47 0.4
10 22.8 -0.2 45 -0.3
11 22.4 0.1 46 0.2
12 22.9 -0.3 47 -0.2
13 22.5 0.2 45 0.5
14 22.7 -0.1 46 -0.3
15 22.6 0.3 47 0.4
16 22.8 -0.2 45 -0.2
17 22.4 0.1 46 0.3
18 22.9 -0.3 47 -0.4
19 22.5 0.2 45 0.2
20 22.7 -0.1 46 -0.5
Development of an IoT architecture for a Smart Lab 15
Table 2 shows the results obtained in the second zone of the laboratory.
Test Temperature (°C) Error Temp (°C) Humidity (%) Error Humidity (%)
1 23.1 0.1 50 0.3
2 23.3 -0.2 49 -0.4
3 23.2 0.2 51 0.2
4 23.4 -0.1 50 -0.3
5 23.0 0.3 49 0.4
6 23.5 -0.2 51 -0.2
7 23.1 0.1 50 0.3
8 23.3 -0.3 49 -0.5
9 23.2 0.2 51 0.2
10 23.4 -0.1 50 -0.4
11 23.0 0.3 49 0.3
12 23.5 -0.2 51 -0.3
13 23.1 0.1 50 0.4
14 23.3 -0.3 49 -0.2
15 23.2 0.2 51 0.3
16 23.4 -0.1 50 -0.4
17 23.0 0.3 49 0.2
18 23.5 -0.2 51 -0.3
19 23.1 0.1 50 0.4
20 23.3 -0.3 49 -0.2
Table 3 shows the results obtained in the third zone of the laboratory.
Test Temperature (°C) Error Temp (°C) Humidity (%) Error Humidity (%)
1 24.1 0.2 48 0.4
2 24.3 -0.1 47 -0.2
3 24.2 0.3 49 0.1
4 24.4 -0.3 48 -0.4
5 24.0 0.1 47 0.3
6 24.5 -0.2 49 -0.1
7 24.1 0.2 48 0.4
8 24.3 -0.1 47 -0.3
9 24.2 0.3 49 0.2
10 24.4 -0.2 48 -0.4
11 24.0 0.1 47 0.3
12 24.5 -0.3 49 -0.1
13 24.1 0.2 48 0.4
14 24.3 -0.1 47 -0.2
15 24.2 0.3 49 0.1
16 24.4 -0.2 48 -0.4
17 24.0 0.1 47 0.3
18 24.5 -0.3 49 -0.1
19 24.1 0.2 48 0.4
20 24.3 -0.1 47 -0.3
18 F. Author et al.
Where:
– ei : Measurement error
– n: Number of samples
– xi : Mean of errors
Table 4 shows the precision and accuracy of the temperature and humidity
sensors.
The load of these electrical outlet is varied, therefore the respective analysis
was carried out only when the device is in the off state. In the Table 6 we have
data with the values consumption when the device is turned off, it has a low
consumption that can be reflected monthly with an average of 0.77 cents of a
dollar, there is no previous record of consumption of conventional outlets. There
are 3 devices installed in the area, therefore there is an average total consumption
between these devices of $2.31 dollars.
Test Consumption Before (kWh) Consumption After (kWh) Savings (kWh) Savings (%)
1 1500 1300 200 13.33
2 1400 1250 150 10.71
3 1550 1350 200 12.90
4 1450 1280 170 11.72
5 1600 1400 200 12.50
6 1700 1450 250 14.71
7 1650 1380 270 16.36
8 1750 1500 250 14.29
9 1600 1400 200 12.50
10 1550 1350 200 12.90
11 1500 1300 200 13.33
12 1650 1450 200 12.12
4 Discussion
The implementation of an IoT architecture in a laboratory has demonstrated
significant improvements in operational efficiency and real-time system control.
The results obtained during validation tests indicate a considerable reduction
in energy consumption and an increase in automated monitoring and control
capabilities.
The integration of security systems, such as WiFi cameras and fingerprint access
controls, has enhanced the laboratory’s security. These systems allow constant
monitoring and access logging, which is crucial for protecting equipment and
information within the laboratory. Additionally, the capability to remotely con-
trol and monitor these systems adds an extra layer of security and convenience,
enabling more effective management of human and material resources.
The analysis of the response times of the various systems integrated into the
IoT architecture revealed that, on average, the response times were adequate
for the laboratory’s operational needs. For instance, the lighting and curtain
control systems showed response times of less than a second, which is optimal
for applications requiring quick and precise responses. This high reliability and
speed of response ensure that laboratory operations are not affected by delays
or system failures.
The implemented IoT architecture not only improves operational efficiency but
also provides an advanced educational platform for mechatronics students. This
infrastructure allows students to interact with cutting-edge technologies, learn
about IoT system management, and develop practical skills that are highly val-
ued in the job market. The opportunity to conduct hands-on practice in a real
environment with advanced technology better prepares students to face future
professional challenges.
5 Conclusion
References
1. Yin, H.: Smart Lab Technologies. In: Zhang, Y. (ed.) Handbook of Mo-
bile Teaching and Learning, pp. 999–1012. Springer, Berlin, Heidelberg (2015).
https://doi.org/10.1007/978-3-642-54146-9_24
2. Poongothai, M., Subramanian, P.M., Rajeswari, A.: Design and implementation
of IoT based smart laboratory. In: 2018 5th International Conference on Indus-
trial Engineering and Applications (ICIEA), pp. 169–173. IEEE, Singapore (2018).
https://doi.org/10.1109/IEA.2018.8387090
3. Borelli, E., Paolini, G., Antoniazzi, F., Barbiroli, M., Benassi, F., Chesani, F.,
Chiari, L., Fantini, M., Fuschini, F., Galassi, A., Giacobone, G.A., Imbesi, S., Lic-
ciardello, M., Loreti, D., Marchi, M., Masotti, D., Mello, P., Mellone, S., Mincolelli,
G., Raffaelli, C., Roffia, L., Salmon Cinotti, T., Tacconi, C., Tamburini, P., Zoli, M.,
Costanzo, A.: HABITAT: An IoT Solution for Independent Elderly. Sensors 19(5),
1258 (2019). https://doi.org/10.3390/s19051258
4. Lovelle, J.M.C., Molano, J.I.R., Marin, C.E.M.: INTRODUCCIÓN AL
INTERNET DE LAS COSAS. Redes de Ingeniería 6, 1–10 (2015).
https://doi.org/10.14483/2248762X.8505
5. Martínez, J.E.H., Sánchez, A.M., Román, D.E.L.: Impacto de la IoT en la educación.
Revista Iberoamericana de Tecnología en Educación y Educación en Tecnología 26,
47–56 (2019). https://doi.org/10.24215/18509959.26.e03
6. Hernández, B.A., Ortiz Galeano, D.P.: Análisis general del enfoque IOT en redes.
Editorial Universitaria San Mateo, Colombia (2019)
7. Gay Medina, J.F.: Análisis y despliegue de una plataforma IoT para el Smart Lab
del CEATIC. Universidad de Jaén, Spain (2018)
Development of an IoT architecture for a Smart Lab 25