Simple test application for the STMicroelectronics X-NUCLEO-CCA02M1 MEMS Microphones Expansion Board, built against mbed OS.
Fork of HelloWorld_CCA02M1 by
Recording audio with the X-NUCLEO-CCA02M1 Expansion Board
This application provides a simple example of usage of the X-NUCLEO-CCA02M1 MEMS Microphones Expansion Board, built against mbed OS.
It shows how to record a 2-channel stereo signal as an array of PCM samples (16 bit/sample) that can be acquired through an audio SW like Audacity, for example.
Currently the configurations supported are the following:
- Stereo@44.1KHz (default, CD audio quality)
Mono configurations need a Jumper connecting PB_5 and PB_13 on the Morpho connector to properly work.
- This board can be currently used with the Nucleo F4 Family only, please see the ST_I2S library compatibility for further information.
- The application built against mbed classic 2.x can be found here.
Acquiring through the USB on Windows
In order to acquire the recorded PCM audio channel with an audio SW on a PC, please connect the expansion board to a USB port of the PC, and the Nucleo board to a USB power supply.
On Windows, click on the speaker icon on the bottom bar, select "Recording devices", "Microphone", "Properties", then click on the "Advanced" panel, and select "1/2 channels, 16 bit, 16/32KHz" according to board configuration.
Open your preferred audio SW, like "Audacity" for example, configure it to acquire a 2-channel stereo at 16KHz (for default configuration), and record.