A Low-Cost Embedded System for Sound Pressure Level Measurement
Abstract
This study presents the design and development of a low-cost embedded system for sound pressure level (SPL) measurement, utilizing the ESP32 microcontroller and the INMP411 microphone. Traditional sound level meters (SLMs), though widely used in acoustical engineering, are often costly and may not be easily accessible for smaller-scale applications or educational purposes. The goal of this research is to create an affordable, portable, and reliable SPL measurement system capable of providing accurate readings for a wide range of users, including students, environmental researchers, and professionals in the field. The proposed system is based on the ESP32 microcontroller, chosen for its processing capabilities, flexibility, and low cost. It is coupled with the INMP411 microphone, a cost-effective yet sensitive microphone, designed for use in acoustic measurement systems. This embedded system is capable of measuring SPL in real time, providing an accurate representation of acoustic environments. The core design includes a signal processing chain that captures sound pressure, processes the signal, and converts it into a digital value suitable for SPL calculation. In the first phase of the project, a comprehensive review of SPL measurement techniques was conducted. The significance of SPL measurements in various sectors such as environmental monitoring, noise control, and safety was discussed. Acoustic pressure, defined as the fluctuation in air pressure caused by sound waves, is explored in detail, along with the challenges associated with its measurement. Furthermore, the theory of SPL calculation is examined, focusing on the use of Root Mean Square (RMS) pressure and the logarithmic nature of SPL as expressed in decibels. The second phase of the research focused on the system's development, involving the integration of the ESP32 microcontroller with the INMP411 microphone and the necessary signal processing algorithms to calculate SPL. Fourier Transform techniques, particularly Fast Fourier Transform (FFT), were employed for frequency analysis, while A-weighting and C-weighting filters were implemented to adjust the measurements based on human hearing sensitivity. The system’s calibration was validated against a commercial SPL meter to assess accuracy and reliability. Additionally, a Graphical User Interface (GUI) was designed for real-time data visualization, providing users with an intuitive platform to control measurements and visualize SPL data in various frequency bands. This GUI also supports data logging and export features, allowing users to save and analyze measurements for further study. The system was extensively tested in both controlled laboratory conditions and real-world environments. The results demonstrated that the ESP32-based SPL measurement system offers a cost-effective and accurate solution, with performance comparable to traditional commercial systems. Furthermore, the system’s low power consumption and portability make it an ideal tool for field applications. This research highlights the potential for low-cost embedded systems to revolutionize the field of acoustical measurement by providing an accessible and user-friendly alternative to expensive commercial equipment. Future work will explore further optimization of the system, integration of additional features, and enhancements in calibration accuracy.