Simple test application for the STMicroelectronics X-NUCLEO-CCA02M1 MEMS Microphones Expansion Board, built against mbed OS.
Dependencies: X_NUCLEO_CCA02M1
Fork of HelloWorld_CCA02M1 by
You are viewing an older revision! See the latest version
Homepage
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.
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.
Microphones configuration
Currently the configurations supported are:
- Stereo@48KHz
- Stereo@44.1KHz (default, CD audio quality)
- Stereo@32KHz
- Stereo@16KHz
- Mono@48KHz
- Mono@44.1KHz
- Mono@32KHz
- Mono@16KHz
Mono configurations need a Jumper connecting PB_5 and PB_13 on the Morpho connector to properly work.
Platform compatibility¶
- This board can be currently used with a Nucleo-F401RE board only and has been tested with the default configuration provided by this example.
- At the moment the application is compatible with mbedOS 5.x only, i.e. it cannot work with mbed 2 ("classic").
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.