A Proposed Approach to Utilizing Esp32 Microcontroller for Data Acquisition

被引:0
作者
Tran, Vy-Khang [1 ]
Thai, Bao-Toan [1 ]
Pham, Hai [1 ,2 ]
Nguyen, Van-Khan [3 ]
Nguyen, Van-Khanh [1 ]
机构
[1] Can Tho Univ, Coll Engn, Fac Automat Technol, 3-2 St, Can Tho 94100, Vietnam
[2] RMIT Univ, Sch Engn, Aerosp Engn & Aviat Discipline, La Trobe St, Melbourne, Vic 3000, Australia
[3] Can Tho Univ Technol, Coll Elect Engn Elect Telecommun, Dept Elect Engn & Energy, Nguyen Van Cu St, Can Tho 94100, Vietnam
来源
JOURNAL OF ENGINEERING AND TECHNOLOGICAL SCIENCES | 2024年 / 56卷 / 04期
关键词
data acquisition; digital filters; fast Fourier transforms; microcontroller; spectrogram; SYSTEM;
D O I
10.5614/j.eng.technol.sci.2024.56.4.4
中图分类号
T [工业技术];
学科分类号
08 ;
摘要
Accurate data acquisition is crucial in embedded systems. This study aimed to evaluate the data acquisition ability of the ESP32 Analog to Digital Converter (ADC) module when combined with the I2S module to collect high-frequency data. Sine waves at various frequencies and white noise were recorded in this mode. The recorded data were analyzed by the fast Fourier transform (FFT) to assess the accuracy of the recorded data and evaluate the generated noise. Digital filters are proposed to improve the quality of the collected signals. A 2D spectrogram imaging algorithm is proposed to convert the data to time-frequency domain images. The results showed that the ADC module could effectively collect signals at frequencies up to 96 kHz; frequency errors were proportional to the sampling rate, and the maximum was 79.6 Hz, equivalent to 0.38%. The execution time of the lowpass and highpass filters was about 6.83 ms and for the bandpass filter about 5.97 ms; the spectrogram imaging time was 40 ms; while the calculation time for an FFT transform was approximately 1.14 ms, which is appropriate for real-time running. These results are significant for data collection systems based on microcontrollers and are a premise for deploying TinML networks on embedded systems.
引用
收藏
页码:474 / 488
页数:15
相关论文
共 26 条
[1]  
Babiuch M, 2019, 2019 20TH INTERNATIONAL CARPATHIAN CONTROL CONFERENCE (ICCC), P88, DOI [10.1109/CarpathianCC.2019.8765944, 10.1109/carpathiancc.2019.8765944]
[2]   Data Acquisition, Analysis and Transmission Platform for a Pay-As-You-Drive System [J].
Boquete, Luciano ;
Manuel Rodriguez-Ascariz, Jose ;
Barea, Rafael ;
Cantos, Joaquin ;
Manuel Miguel-Jimenez, Juan ;
Ortega, Sergio .
SENSORS, 2010, 10 (06) :5395-5408
[3]  
Bosse G., 1951, Frequenz, V5, P279
[4]   AN ALGORITHM FOR MACHINE CALCULATION OF COMPLEX FOURIER SERIES [J].
COOLEY, JW ;
TUKEY, JW .
MATHEMATICS OF COMPUTATION, 1965, 19 (90) :297-&
[5]  
Espressif, 2023, Inter-IC Sound (I2S) - ESP-IDF Programming Guide latest documentation
[6]   A Low-Cost Data Acquisition System for Automobile Dynamics Applications [J].
Gonzalez, Alejandro ;
Luis Olazagoitia, Jose ;
Vinolas, Jordi .
SENSORS, 2018, 18 (02)
[7]  
Karjadi M., 2016, Int. J. Eng. Res. Sci, V2, P25
[8]  
Krotov A, 2022, Engineering Proceedings, V27, P23
[9]   A Low-Cost Multi-Sensor Data Acquisition System for Fault Detection in Fused Deposition Modelling [J].
Kumar, Satish ;
Kolekar, Tushar ;
Patil, Shruti ;
Bongale, Arunkumar ;
Kotecha, Ketan ;
Zaguia, Atef ;
Prakash, Chander .
SENSORS, 2022, 22 (02)
[10]   On-Device Training of Machine Learning Models on Microcontrollers with Federated Learning [J].
Llisterri Gimenez, Nil ;
Monfort Grau, Marc ;
Pueyo Centelles, Roger ;
Freitag, Felix .
ELECTRONICS, 2022, 11 (04)