Aquisição de sinais acústicos utilizando microfones MEMS digitais e plataforma embarcada Teensy (compatível com Arduino)

Acoustic signal acquisition using digital MEMS microphones and Teensy 4.0 microcontroller

Mello, F. R.
Fonseca, W. D’A.
Mareze, P. H.

Resumo

Devido ao seu pequeno tamanho e capacidade de montagem em placas de circuito impresso, microfones microeletro-mecânicos (MEMS) são amplamente utilizados em dispositivos como smartphones, laptops e aplicações IoT (Internet of Things). Recentemente, vêm ganhando espaço na indústria de instrumentação para acústica e áudio, tanto em aplicações com poucos sensores (um a quatro), quanto naquelas que envolvem um grande número de transdutores, como, por exemplo, no imageamento acústico (beamforming) e gravação imersiva (arranjo ambisonics). Sua vantagem consiste no preço e tamanho reduzidos, aliados a uma resposta em frequência adequada, relação sinal-ruído apropriada e alta padronização (de fabricação). Alguns modelos possuem saída digital, dispensando a necessidade de um conversor analógico-digital. Nesse caso, o sinal é transmitido por meio de um protocolo de comunicação e faz-se necessário um dispositivo capaz de se comunicar com o microfone e adquirir seus sinais. O presente trabalho tem como objetivo demonstrar os aspectos práticos acerca da aquisição dos sinais de um microfone MEMS digital por meio do microcontrolador Teensy. Ele é compatível com Arduino, possuindo a mesma lógica e linguagem de programação, facilitando a adaptação de projetos. Um breve histórico da tecnologia MEMS é apresentado, seguido por uma descrição dos protocolos de comunicação normalmente implementados nos microfones digitais. Na sequência, comenta-se sobre as características técnicas do Teensy 4.0, bem como as ferramentas de processamento de sinais de áudio presentes em sua biblioteca, apresentando um panorama dos tipos de objeto nela contidos. Por fim, é descrito o passo a passo de como configurar o Teensy 4.0 para realizar a aquisição de sinais de um microfone digital I2S (Inter-IC Sound) e transmiti-lo via USB para um computador. Com isso, pode-se plotar os dados ou tecer novos processamentos (como o cálculo do nível de pressão sonora, por exemplo).

Palavras-chaves:
tutorial
,
microfones I2S
,
processamento de sinais
,
filtros digitais
,
instrumentação.

Abstract

Due to their small size and surface-mounting capability, micro-electrical-mechanical (MEMS) microphones are widely present in gadgets like smartphones, laptops, and IoT (internet of things) applications. Recently, they have been conquering space in the audio and acoustics instrumentation industry, both in applications involving a few sensors (one to four) and in those that require a great number of transducers, such as acoustic imaging (beamforming) and immersive recording (ambisonics arrays). Their advantages are a low-cost and small size, adequate frequency response, and high manufacturing standardization. Some models have a digital output, dispensing the use of external analog-to-digital converters (ADC). In this case, the microphone signal is transmitted through a digital communication protocol, requiring a controller device for the data acquisition. This work aims to show how to acquire data from a digital MEMS microphone using the Teensy 4.0 microcontroller, an Arduino-compatible board. A brief historical background of the MEMS technology is shown, followed by a description of the communication protocols found in digital models. In the following, Teensy’s technical characteristics are detailed, focusing on its library for audio signal processing and providing a quick overview of its available tools. Finally, a tutorial explains how to configure Teensy to acquire signals from an I2S digital MEMS microphone and transmit it through USB to a computer, making it possible to plot the results and do further processing (such as sound pressure level calculations).

Keywords:
tutorial
,
I2S microphones
,
signal processing
,
digital filters
,
instrumentation.

Referências

[1] Malcovati, P. e Baschirotto, A. The evolution of integrated interfaces for MEMS microphones. Micromachines, 9(7):1–20, n. 323, 2018. ISSN 2072-666X. doi: 10.3390/mi9070323.
[2] Gfai Tech GmbH. Microphone Arrays for Different Applications. Online, 2022. Disponível em: https: //www.gfaitech.com/products/acoustic-camera/mic rophone-arrays. Accesso em junho de 2022.
[3] CAE Software & Systems. Acoustic Camera – Microphone Arrays for Beamforming. Online, 2022. Disponível em: https://www.cae-systems.de/en. Accesso em junho de 2022.
[4] Zylia. Zylia ZM-1 microphone. Online, 2022. Disponível em: https://www.zylia.co/zylia-zm-1- microphone.html. Acesso em junho de 2022.
[5] Mello, Felipe Ramos; Fonseca, William D’Andrea e Mareze, Paulo Henrique. MEMS digital microphone and Arduino compatible microcontroller: an embedded system for noise monitoring. Em 50th International Congress and Exposition on Noise Control Engineering – Internoise 2021, págs. 1–12, Washington, DC, USA, Aug. 2021. doi: 10.3397/IN-2021-2557. Disponível em: https://bit.ly/MEMS-int2021.
[6] Mello, Felipe Ramos; Fonseca, William D’Andrea e Mareze, Paulo Henrique. Autonomous noise monitoring system based on digital MEMS microphones: development of a smartphone application for remote communication. Em 51th International Congress and Exposition on Noise Control Engineering – Internoise 2022, págs. 1–12, Glasgow, Scotland, UK, Aug. 2022.
[7] Svantek. Noise Monitoring Station Class 1 SV 307A. Online, 2022. Disponível em: https://svantek.com/pr oducts/sv-307a-noise-monitoring-station. Acesso em junho de 2022.
[8] Smith, Charles S. Piezoresistance Effect in Germanium and Silicon. Physical Review, 94(1):42–49, Apr 1954. ISSN 1536-6065. doi: 10.1103/physrev.94.42.
[9] Paul, William e Pearson, G. L. Pressure Dependence of the Resistivity of Silicon. Physical Review, 98(6):1755–1757, Jun 1955. ISSN 1536-6065. doi: 10.1103/physrev.98.1755.
[10] Pfann, W. G. e Thurston, R. N. Semiconducting Stress Transducers Utilizing the Transverse and Shear Piezoresistance Effects. Journal of Applied Physics, 32(10):2008–2019, Oct 1961. ISSN 1089-7550. doi: 10.1063/1.1728280.
[11] Tufte, O. N.; Chapman, P.W. e Long, Donald. Silicon Diffused-Element Piezoresistive Diaphragms. Journal of Applied Physics, 33(11):3322–3327, Nov 1962. ISSN 1089-7550. doi: 10.1063/1.1931164.
[12] Bogue, Robert. MEMS sensors: past, present and future. Sensor Review, 27(1):7–13, Jan 2007. ISSN 0260-2288. doi: 10.1108/02602280710729068.
[13] Elko, GaryW. e Harney, Kieran P. A history of consumer microphones: the electret condenser microphone meets micro-electrical-mechanical-systems. Acoustics Today, 5(2):4–13, Abril 2009. ISSN 1557-0215. Disponível em: https://acousticstoday.org/issues/20 09AT/Apr2009/#p=1.
[14] Zawawi, Siti Aisyah; Hamzah, Azrul Azlan; Majlis, Burhanuddin Yeop e Mohd-Yasin, Faisal. A review of MEMS capacitive microphones. Micromachines, 11(5):484(1–26), May 2020. ISSN 2072-666X. doi: 10.3390/mi11050484.
[15] Sessler, Gerhard M. Silicon Microphones. Journal of the Audio Engineering Society (JAES), 44(1/2):16–22, Fevereiro 1996. ISSN 1549-4950. Disponível em: https://www.aes.org/e-lib/browse.cfm?elib=7916.
[16] Scheeper, P.R.; Donk, A.G.H.; Olthuis,W. e Bergveld, P. A review of silicon microphones. Sensors and Actuators A: Physical, 44(1):1–11, Jul 1994. ISSN 0924-4247. doi: 10.1016/0924-4247(94)00790-x.
[17] Suvanto, Mikko. The MEMS microphone book. 1a ed. Kangasala, Finland: MOSOMIC, 2022. ISBN 978- 9529456604. Disponível em: http://www.mosomic. com/thememsmicrophonebook.
[18] Wong, George S. K. e Embleton, Tony F. W. AIP Handbook of Condenser Microphones — Theory, Calibration, and Measurements. New York, NY, USA: AIP Press, 1995. ISBN 1-56396-284-5.
[19] Silva, Lúcia Corrêa. Caracterização de microfones MEMS analógicos. Trabalho de conclusão de curso (monografia), Engenharia Acústica, Universidade Federal de Santa Maria, Santa Maria, RS, Brasil, julho 2018. doi: 10.13140/RG.2.2.25995.64808.
[20] Djurek, Ivan; Grubesa, Tomislav e Orlic, Niksa. Measurements of analog MEMS microphones. Em Ivši´c, Branimir; Petrovi´c, Goran e Dadi´c, Martin, editores, 2019 2nd International Colloquium on Smart Grid Metrology (SMAGRIMET), volume 2, págs. 1–4, Split, Croácia, apr 2019. University of Zagreb, Faculty of Electrical Engineering and Computing, IEEE. doi: 10.23919/smagrimet.2019.8720378.
[21] Lewis, Jerad. Analog and Digital MEMS Microphone Design Considerations, 2013. Analog Devices, Technical Article (MS-2472).
[22] Knowles. Sisonic design guide, 2017. Application Note (AN24).
[23] Pflug, Patrick e Krischker, Detlef. Aspects of the use of MEMS microphones in phased array systems. Em 46th International Congress and Exposition on Noise Control Engineering – Internoise 2017, págs. 1–11, Hong Kong, China, Aug. 2017. Disponível em: http://bit.ly/int2017-mems-array.
[24] Alsina-Pagès, Rosa Maria; Hervás, Marcos; Duboc, Leticia e Carbassa, Jordi. Design of a Low-Cost Configurable Acoustic Sensor for the Rapid Development of Sound Recognition Applications. Electronics, 9(7):1155(1–20), Jul 2020. ISSN 2079-9292. doi: 10.3390/electronics9071155.
[25] Fonseca, William D’Andrea; Mello, Felipe Ramos; Carvalho, Davi Rocha; Mareze, Paulo Henrique e Silva, Olavo M. Measurement of car cabin binaural impulse responses and auralization via convolution. Em 2021 Immersive and 3D Audio: from Architecture to Automotive (I3DA), págs. 1–13, Bologna, Italy, 2021. IEEE. doi: 10.1109/I3DA48870.2021.9610834.
[26] AN4426 – Tutorial for MEMS mirophones. Application Note 4426, STMicroelectronics, Fevereiro 2017. Disponível em: https://www.st.com/resource/en/a pplication_note/dm00103199-tutorial-for-memsmicrophones- stmicroelectronics.pdf
[27] Philips Semiconductors. I2S Bus Specification (Revised), 1996.
[28] Kite, Thomas. Understanding PDM Digital Audio. Application note, Audio Precision, Beaverton, Oregon, Fevereiro 2012. Disponível em: https: //www.ap.com/download/understanding-pdmdigital- audio-2/
[29] MEMSensing Microsystems. MSM261S4030H0 – I2S digital output MEMS mic. with multi modes (datasheet), v 1.4, 2015.
[30] PJRC – P. J. Stoffregen. Teensy 4.0 Development Board, Teensy Audio Library, Audio System Design Tool, & Creating New Audio Objects, 2021. Disponível em: https://www.pjrc.com
[31] Dietrich, Pascal; Guski, Martin; Pollow, Martin; Müller-Trapet, Markus; Masiero, Bruno; Scharrer, Roman e Vorländer, Michael. ITA-Toolbox – An Open Source Matlab Toolbox for Acousticians. Em Proceedings of the 38th German Annual Conference for Acoustics DAGA 2012 in Darmstadt, número 38, págs. 151–152, 2012. Disponível em: https://pub.degaakustik. de/DAGA_2012/data/articles/000164.pdf
[32] Müller, Swen e Massarani, Paulo. Transfer-Function Measurement with Sweeps – Director’s cut including previously unreleased material and some corrections. Journal of the Audio Engineering Society (JAES), 49 (6):443–471, Jun 2001. ISSN 1549-4950.
Publicado em:
01/09/2022