Photon: Journal of Natural Sciences and Technology, 2023, 14. , 10-17 PHOTON Journal of Natural Sciences and Technology p-ISSN: 2087-393X | e-ISSN: 2579-5953 http://ejurnal. id/index. php/photon The Design and Construction of A Dynamic Multi-Sensor and Multi-Storage Data Logger for Weather Parameters Retno Tri Wahyuni*. Heri Subagiyo. Amirul Huda Electronics System Engineering Study Program. Politeknik Caltex Riau. Indonesia Received 11 October 2023 | Accepted 24 November 2023 | Published 30 November 2023 DOI: https://doi. org/10. 37859/jp. Keywords: Data logger. ESP32. Weather SD card. Database Abstract. The Data Logger is an electronic device designed to automatically and continuously store data. Data loggers are widely used in various fields, including the storage of weather parameter data. Generally, a data logger consists of sensor devices, a processor, and storage media. This paper discusses the design of a dynamic data logger that allows the selection of sensor input types and storage media such as an SD card or a cloud database. The data logger comprises hardware devices, including five weather parameter sensors, a processor and a communication module using ESP32, a timing system using RTC, and local storage media in the form of an SD card. Additionally, there is a computer-based user interface built using Visual Basic. The connection between the user interface application and the data logger hardware is established using serial Overall system testing results indicate that all features of the data logger system have operated well. *Corresponding author. E-mail address: retnotri@pcr. A2023 by The Author. Published by LPPM Universitas Muhammadiyah Riau This is an open access article under the CC BY-NC-SA license . ttps://creativecommons. org/licenses/by-nc-sa/4. Introduction A data logger is an electronic device designed to automatically store or record data from various measuring instruments over a specific period. The purpose of constructing a data logger is to achieve accurate data collection continuously without direct human intervention. Characteristics of a data logger include integrated sensors, an automatic data recording device, storage media, power supply systems, and interfaces for configuration. Additionally, data loggers are typically designed to be portable for easy transportation and relocation. The application of data loggers can be found in various fields, such as the environment, agriculture, industry, transportation, and so on. In the environmental sector, data loggers are utilized for observing environmental conditions both indoors and outdoors, as developed by Ali et al. and Bhadola et . , as well as weather observations (Mabrouki et al. , 2. Applications in agriculture can be encountered in works by Spinelli & Gottesman . and Curasi et al. This is followed by Irfan Bin Edi et al. and Yadav & Sakle . developing data loggers for observing variables in-vehicle systems. Meanwhile. Singh & Thakur . have developed data logger applications for energy generation, especially solar energy. One of the essential types of data is weather parameters. The benefits of this data are commonly used for weather forecasts, predicting suitable planting times, forecasting for initiating activities in mining, and many other applications. Some frequently observed weather parameters include temperature, humidity, light intensity, rainfall, wind direction, and wind speed. Weather parameter data is typically required in the form of daily, monthly, and yearly data. The Design and Construction. (Wahyuni et al. Data loggers use a microprocessor as the processing and control unit, internal memory for data storage, and one or more sensors to collect data. Generally, data loggers are devices powered by batteries as a power source. In short, a data logger is a microprocessor-based system equipped with memory, sensors, and a power source. With technological advancements, alongside being microprocessor-based, data loggers have also evolved to be based on microcontrollers, minicomputers, or even Field-Programmable Gate Arrays (FPGA). Computer-based data loggers, such as those built on the Raspberry platform, can be found in studies conducted by Pasquali et al. Clement et al. , and Bhadola et al. ATMegabased data loggers have been developed by Sadli, 92. , while Mahzan et al. Spinelli & Gottesman . Mabrouki et al. Matkar et al. , and Yadav & Sakle . have developed Arduino-based data loggers. If cost is a crucial factor in the development of a data logger, then choosing a microcontrollerbased platform is the most suitable option. Therefore, the development of low-cost data loggers often involves the use of microcontrollers or microcontroller system module boards, as seen in works by Ali et al. , . Spinelli & Gottesman . Bhadola et al. , and Yadav & Sakle . Data from sensors installed on the data logger is typically stored in a memory also integrated into the data logger, for example, using SD-card modules as in Bayhan et al. or, alternatively, it can be wirelessly transmitted to a database server either using specific network protocols or employing Internet of Things (IoT) technology, as demonstrated in Spinelli & Gottesman . Samkria et al. and Mabrouki et al. This paper will discuss the design of a low-cost dynamic data logger with multi-sensor and multistorage capabilities. The data logger is considered dynamic due to the configuration features for sensor and storage media selection. The configuration process is carried out through an interface built on a computer device. Available sensor types include temperature, humidity, light intensity, rainfall, wind speed, and wind direction. The storage media options include an SD card and cloud storage. The focus of this paper is on the design of the data logger system and the testing of its features, excluding sensor The Methods Dynamic data loggers with multi-sensors and multi-storage generally consist of sensor devices, a processor, a communication module, a data storage system, a timing system, a power supply system, and a computer-based interface application for configuration. The overall system block diagram can be viewed in Figure 1. Figure 1. Block diagram system of data logger In the data logger system, the sensor devices consist of five types: temperature and humidity sensors using DHT11, light intensity sensors using BH1750, rainfall sensors, and wind speed and direction sensors using a weather station kit from DFRobot. The processor used in the data logger system is an ESP32 module, which also functions as the communication module. The use of the ESP32 module impacts a more compact and portable design due to its small size. Through this ESP32 module, data can be sent to the database according to the configuration results. Furthermore, the timing system used is the DC3231 type RTC (Real-Time Cloc. The data storage device on the SD card utilizes the SD-MMC module. The connection between the hardware of the data logger and the computer-based user interface device is established through serial communication via the USB port. The schematic diagram of the electronic system of the data logger can be seen in Figure Meanwhile, the layout design of the connections in the data logger casing can be observed in Figure Figure 2. Schematic diagram. Figure 3. Design layout on the data logger module. In addition to hardware design, software design is also carried out. The presence of configuration features through the user interface of the computer device requires a specific technique to ensure that the processing performed by the processor aligns with the configuration results. The challenge faced is how to design the system in the user interface application built using Visual Basic so that it can connect with ESP32. Additionally, how to design ESP32 to read the configuration results performed through the user interface device. Data acquisition processing on the ESP32 processor is carried out after the configuration process is completed. The configuration results data from the user interface sent serially to ESP32 are stored in the EEPROM of the ESP32 module. After the data in the EEPROM is successfully read, the data acquisition process from the sensors is then carried out. The program flow on the ESP32 can be seen in Figure 4. Photon: Journal of Natural Sciences and Technology, 2023, 14. The Design and Construction. (Wahyuni et al. Figure 4. Flowchart ESP32. Result and Discussion The hardware display of the dynamic multi-sensor and multi-storage data logger can be seen in Figure In the image, you can observe the presence of input terminals and an SD card slot, which align with the design. The data logger is then connected to the sensor inputs, and configuration is carried out. Figure 1. Hardware of data logger. In the dynamic multi-sensor and multi-storage data logger, the first step is the configuration process on the user interface via a computer. The software used to build the user interface is Visual Basic. the user interface, there are several features, including the selection of sensor inputs, storage mode selection, and configuration of the connection to the database. The initial display on the user interface can be seen in Figure 6a. Communication Setting Connection Success Connection Pop Up Figure 2. Communication Setting Windows In the image, you can see the display of the process of setting the COM selection for connecting the computer to the ESP32. After running the application and connecting the computer and ESP32 via a USB cable, the connection setup process can begin. The steps involve pressing the "Cari Koneksi" (Search Connectio. After the COM text box is filled, it means that the COM on the ESP32 has been detected. The next process is to press the "Sambungkan" (Connec. button to establish the connection between the user interface application and the ESP32. When the connection process is successful, a pop-up display will appear, as shown in Figure 6b. Configuration Menu SD Card Saved Pop up Figure 3. Configuration Setting Window After a successful connection, the next step is to undergo the configuration process. The configuration process involves selecting the input sensors to be connected and the storage media. The configuration menu display can be seen in Figure 7a. In the configuration display, there will be 5 types Photon: Journal of Natural Sciences and Technology, 2023, 14. The Design and Construction. (Wahyuni et al. of input sensors and also data storage media in the form of SD card and Cloud. Sensor selection is done by checking the checkbox for the sensors to be used. After selecting the types of input sensors, the next process is to choose the storage media. If "SD card" is selected and then clicked on "Kirim" (Sen. , a pop-up like in Figure 7b will appear, indicating that the storage process will be carried out on the SD card, and the data will be saved in . csv format. Meanwhile, if "Cloud" is chosen, it will proceed to the "Setting Koneksi" (Connection Settin. with a display as shown in Figure 8a. In that menu, there are settings for SSID and password, as seen in Figure 8b. Both settings refer to the Wi-Fi network that will be used for sending data to the cloud. The existence of this menu makes the system more dynamic because it is not dependent on just one WiFi source. In addition to the connection settings, the next menu is "Setting Database," which involves entering the URL address of the database where the data will be stored. After the connection and database settings are complete, clicking the "Kirim" (Sen. menu will save the data to the database. The display of the data stored in the MySQL database can be seen in Figure 9. Setting Connection for Cloud Storage Menu Cloud Saved Pop Up Figure 4. Connection setting window. Figure 5. Data in database system. The results of testing the menus in "Setting Komunikasi" (Communication Settin. and "Konfigurasi" (Configuratio. menus show that all menus function properly. Challenges in the communication setting process usually only occur when the cable connecting the computer to the hardware is not perfectly connected. Meanwhile, issues experienced in the configuration menu typically arise when configuring connections due to Wi-Fi networks not being captured effectively. Conclusion Dynamic multi-sensor and multi-storage data loggers feature the selection of input sensors and data storage media. The selection process is carried out through a computer-based user interface. The challenges involved include designing the system in a user interface application built using Visual Basic to connect with the ESP32. Additionally, it is necessary to design the ESP32 to read the configuration results performed through the user interface. Communication between the computer-based user interface application and the ESP32 is conducted through serial communication. The overall testing results of the data logger indicate that all configuration features in the system have functioned properly. Acknowledgement Thank you to Politeknik Caltex Riau for providing funding assistance for the implementation of this research through the Internal Grant Research Scheme in 2023. References