Next Article in Journal
Preliminary Study on Design of Elderly Seats Using Evaluation Grid Method: Assistive Cushions for Sitting and Standing Support
Previous Article in Journal
End-to-End Automation and Optimization of Assembly Line for Climate Control Units in Automotive Industry
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Low-Cost Device for Collecting Data from Acceleration Sensors †

Center of Competence “Smart Mechatronic, Eco- and Energy-Saving Systems and Technologies”, Technical University of Gabrovo, 5300 Gabrovo, Bulgaria
Presented at the International Conference on Electronics, Engineering Physics and Earth Science (EEPES 2025), Alexandroupolis, Greece, 18–20 June 2025.
Eng. Proc. 2025, 104(1), 10; https://doi.org/10.3390/engproc2025104010
Published: 25 August 2025

Abstract

This article presents the development of a device for collecting data from acceleration sensors. The developed device uses a 32-bit ESP32 microcontroller, which offers good computational capabilities and rich communication peripherals. The current work examines the structure of the developed system, as well as its operational algorithm. The text presents the main components of the device and the method used for data acquisition. Vibration data was collected using a digital accelerometer. The configuration and parameterization of the device were carried out via a JSON file, which controlled the number of measurements and the rate at which they were performed. The acquired data can be easily filtered and processed using mathematical software, allowing it to be presented in a format suitable for further use in machine learning algorithms and artificial neural networks. The developed solution represents a low-cost alternative to similar vibration data acquisition systems, enabling condition monitoring of various machine components and predictive maintenance at a low hardware cost.

1. Introduction

In modern industrial and manufacturing systems, the reliability and efficiency of machines and equipment are critical for maintaining process continuity and minimizing operational costs. One of the most important aspects of preventive diagnostics and maintenance is the monitoring of mechanical vibrations, which serve as key indicators of the health and operability of equipment. Measuring vibrations through accelerometric sensors is a vital tool, as it enables the early detection of anomalies related to wear, imbalance, performance changes, or other defects associated with technological equipment.
Accelerometric sensors convert mechanical oscillations into electrical signals that can be quantitatively analyzed. This enables precise determination of the frequency, amplitude, and waveform of the vibrations, which are directly related to the condition of machines [1]. For example, changes in the vibration spectrum can indicate bearing failures [2], as well as gear or motor rotor issues [3], long before critical damage occurs. In sectors such as energy, automotive and transportation [4,5], aviation, and heavy industry [6], this has direct impacts on safety, economic losses, and environmental footprint.
Furthermore, the use of accelerometric systems is especially valuable in the contexts of the Industrial Internet of Things (IIoT) and Industry 4.0 [7,8], as well as the ongoing digital transformations in industry, where sensor data is integrated into machine learning and predictive analytics systems. This allows not only for automated monitoring, but also for optimization of maintenance schedules, thereby reducing downtime and equipment repair costs.
The aim of this paper is to present the development of a low-cost system for collecting data from accelerometric sensors, built using affordable components, which allows data to be measured and recorded in files.

2. Block Diagram of the Device and Used Components

The device for collecting data from accelerometric sensors has the following block diagram—see Figure 1.
The main components include a 32-bit microcontroller ESP32 manufactured by Espressif Systems (Shanghai, China). It has sufficient memory, an SD card for data storage, a real-time clock to determine the start time of the measurements, and a power supply, necessary for the operation of the device. An external accelerometric sensor is connected to the device, which is mounted on the object where the vibrations would be measured and analyzed.

3. Schematic Diagram and Printed Circuit Board

The power supply of the developed system includes a switching regulator, LM2576 (Texas Instruments, Dallas, TX, USA), which provides a 5 V supply voltage to the board. In addition, a second regulator (LM1117, Texas Instruments, Dallas, TX, USA) supplies 3.3 V to the individual components that are connected to and communicate with the ESP32 microcontroller. Figure 2 shows the power supply schematic.
The core of the developed system is based on the ESP32-GATEWAY(Olimex, Plovdiv, Bulgaria), a development board by Olimex designed for IoT applications. This board utilizes the ESP32-WROOM microcontroller module by Espressif, which provides Wi-Fi and Bluetooth Low Energy (BLE) communication in the 2.4 GHz frequency range. Furthermore, the ESP32-GATEWAY supports wired Ethernet (100 Mbps), as well as USB communication, in addition to SPI and I2C interfaces. Figure 3 illustrates the ESP32-GATEWAY connection setup.
Since the ESP32 supports two I2C interface ports, the first port was connected to two connectors intended for use with vibration accelerometric sensors. The second I2C port was designated for connecting additional sensor modules. A specialized chip, the TCA9548, was connected to this port. It is an I2C multiplexer that allows up to eight external I2C devices to be connected. Figure 4 shows the connection of the multiplexer module.
Connected to the multiplexer chip was a real-time clock (RTC) of type MCP79410 produced by Microchip (Chandler, AZ, USA), which was used to determine the exact time when measurements started. Additionally, its data was used to generate uniquely named files. Figure 5 shows the RTC connection.
A temperature sensor was also installed on the board (see Figure 6) and used to determine the environmental conditions under which the measurements were taken using the developed system.
The device’s printed circuit board was designed to be two-layered, and special attention was given to minimizing the influence of electromagnetic interference on signal traces during its design. Figure 7 presents a view of the developed PCB.
The device was fully assembled (Figure 8), with all chips and connectors mounted. The development kit ESP32-GATEWAY was also mounted to the board using a specially designed attachment.

4. Basic Operating Algorithm

The system’s operating algorithm (Figure 9) includes a sequence of steps in which the accelerometer is initialized, a file system is created on the SD card, and the system parameters are loaded. After this, the system enters a standby mode. Upon the press of a button by the user, the data measurement begins. The number of points to be measured and the time delay between two consecutive measurements are stored as parameters in a JSON configuration file. Based on this data, the system dynamically allocates a buffer in RAM memory, where the measurements are sequentially recorded. Once all the designated points are collected and the buffer is filled, data is saved to a .csv file on the SD card. This file has a unique name that includes the date and time of the measurements.

5. Device Functionality Testing

To test the functionality of the developed device, an accelerometer module was created, based on the LIS3DHTR accelerometer produced by STMicroelectronics (Geneva, Switzerland). The LIS3DHTR is a three-axis MEMS accelerometer with digital output, developed by STMicroelectronics. It is intended for applications requiring low power consumption and high performance. Its measurement ranges are ±2 g, ±4 g, ±8 g, or ±16 g, with a sensitivity of 64 mg. The accelerometer supports I2C and SPI digital interfaces; in our case, the I2C interface was used. LIS3DHTR is suitable for a wide range of applications, such as free-fall detection, single-/double-tap recognition, vibration monitoring and detection, etc. Figure 10 shows the developed accelerometer module.
Using the developed accelerometer module, data collection was performed. During the data collection process, the board’s configuration and operating modes were set through parameters specified in the JSON configuration file located on the SD card. The collected vibration data was stored in a separate .csv file for each measurement. Figure 11 shows the structure of such a file.
The collected data can easily be imported into specialized environments for processing, such as Matlab 2022a. Since the data from the accelerometer also contains noise, using a mathematical processing environment allows for noise filtering. Figure 12 shows changes in the accelerometer’s X-axis data with a moving average filter applied.
Using such mathematical environments, it is quick and easy to extract only the values or data segments of interest—those that carry important information from the measurement—as shown in Figure 13.
Based on the filtered data, more complex structures can be created—such as spectrograms—which visualize the signal’s frequency characteristics over time, as shown in Figure 14.
Spectrograms, in turn, can be used to train an artificial neural network to recognize specific characteristics in the signal. In this case, spectrograms can be treated as two-dimensional images that are fed into a standard convolutional neural network (CNN) for classification.

6. Conclusions

This study presents the design and implementation of a cost-effective data acquisition system for vibration monitoring, utilizing accelerometric sensors and a 32-bit ESP32 microcontroller. The proposed system offers a low-cost alternative to conventional vibration data acquisition solutions, which are essential for assessing the operational conditions of machinery and equipment.
The developed device can be deployed in various industrial and research applications, including predictive maintenance of rotating machinery like motors, pumps, and bearings, to detect early signs of wear or misalignment, and also for vibration analysis in engines, gearboxes, and other critical components of machines.
The acquired vibration data can be further processed using computational tools and used to train artificial neural networks. This enables the detection and classification of machine faults based on deviations in vibration patterns and also enhances predicative maintenance capabilities.

Funding

This research was funded by the European Regional Development Fund within the OP “Research, Innovation and Digitalization Programme for Intelligent Transformation 2021–2027”, Project No. BG16RFPR002-1.014-0005 Center of Competence “Smart Mechatronics, Eco- and Energy Saving Systems and Technologies”.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Dataset available on request from the author.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Romanssini, M.; de Aguirre, P.C.C.; Compassi-Severo, L.; Girardi, A.G. A Review on Vibration Monitoring Techniques for Predictive Maintenance of Rotating Machinery. Eng 2023, 4, 1797–1817. [Google Scholar] [CrossRef]
  2. Talmoudi, S.; Kanada, T.; Hirata, Y. Tracking and Visualizing Signs of Degradation for Early Failure Prediction of Rolling Bearings. J. Robot. Mechatron. 2021, 33, 629–642. [Google Scholar] [CrossRef]
  3. Mey, O.; Neudeck, W.; Schneider, A.; Enge-Rosenblatt, O. Machine learning-based unbalance detection of a rotating shaft using vibration data. In Proceedings of the 2020 25th IEEE International Conference on Emerging Technologies and Factory Automation (ETFA), Vienna, Austria, 8–11 September 2020; pp. 1610–1617. [Google Scholar] [CrossRef]
  4. Bogrek, A.; Sumbul, H. Development of driver analysis system to improve driving comfort and to reduce mechanical abrasion in vehicles. Tek. Bilim. Derg. 2019, 9, 9–14. [Google Scholar] [CrossRef]
  5. Alisjahbana, I. Using In-Service Train Vibration for Detecting Railway Maintenance Needs. arXiv 2024, arXiv:2405.09560. [Google Scholar]
  6. Böğrek, A.; Sümbül, H. A novel engine vibration measurement system based on the MEMS sensor. Int. J. Automot. Sci. Technol. 2022, 6, 357–363. [Google Scholar] [CrossRef]
  7. Vasilache, A.; Nitzsche, S.; Floegel, D.; Schuermann, T.; von Dosky, S.; Bierweiler, T.; Becker, J. Low-Power Vibration-Based Predictive Maintenance for Industry 4.0 Using Neural Networks: A Survey. arXiv 2024, arXiv:2408.00516. [Google Scholar]
  8. Ganga, D.; Ramachandran, V. IoT-based vibration analytics of electrical machines. IEEE Internet Things J. 2018, 5, 4538–4549. [Google Scholar] [CrossRef]
Figure 1. Block diagram of the device.
Figure 1. Block diagram of the device.
Engproc 104 00010 g001
Figure 2. Power supply of the system.
Figure 2. Power supply of the system.
Engproc 104 00010 g002
Figure 3. ESP32-GATEWAY connection.
Figure 3. ESP32-GATEWAY connection.
Engproc 104 00010 g003
Figure 4. Specialized I2C multiplexer.
Figure 4. Specialized I2C multiplexer.
Engproc 104 00010 g004
Figure 5. Real-time clock MCP79410.
Figure 5. Real-time clock MCP79410.
Engproc 104 00010 g005
Figure 6. I2C-based temperature sensor TCN75.
Figure 6. I2C-based temperature sensor TCN75.
Engproc 104 00010 g006
Figure 7. Printed circuit board of the device.
Figure 7. Printed circuit board of the device.
Engproc 104 00010 g007
Figure 8. General view of the developed system.
Figure 8. General view of the developed system.
Engproc 104 00010 g008
Figure 9. General view of the operating algorithm.
Figure 9. General view of the operating algorithm.
Engproc 104 00010 g009
Figure 10. Accelerometer module.
Figure 10. Accelerometer module.
Engproc 104 00010 g010
Figure 11. Structure of the .csv file.
Figure 11. Structure of the .csv file.
Engproc 104 00010 g011
Figure 12. Filtered data.
Figure 12. Filtered data.
Engproc 104 00010 g012
Figure 13. Extracting specific segments from the collected data.
Figure 13. Extracting specific segments from the collected data.
Engproc 104 00010 g013
Figure 14. Spectrogram of a signal from the accelerometer module.
Figure 14. Spectrogram of a signal from the accelerometer module.
Engproc 104 00010 g014
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ivanov, S. Low-Cost Device for Collecting Data from Acceleration Sensors. Eng. Proc. 2025, 104, 10. https://doi.org/10.3390/engproc2025104010

AMA Style

Ivanov S. Low-Cost Device for Collecting Data from Acceleration Sensors. Engineering Proceedings. 2025; 104(1):10. https://doi.org/10.3390/engproc2025104010

Chicago/Turabian Style

Ivanov, Stefan. 2025. "Low-Cost Device for Collecting Data from Acceleration Sensors" Engineering Proceedings 104, no. 1: 10. https://doi.org/10.3390/engproc2025104010

APA Style

Ivanov, S. (2025). Low-Cost Device for Collecting Data from Acceleration Sensors. Engineering Proceedings, 104(1), 10. https://doi.org/10.3390/engproc2025104010

Article Metrics

Back to TopTop