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 ST Expansion SW Team

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 that can be acquired through an audio SW like Audacity, for example.

Microphones configuration

Currently the only configuration supported is 2-channel stereo at 16KHz, with in fact only one microphone acquiring audio data while the other being silent.

Platform compatibility

  • This board can be currently used with a Nucleo-F401RE board only and has been tested with the default configuration provided by the HelloWorld_CCA02M1 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 "2 channels, 16 bit, 16KHz".
Open your preferred audio SW, like "Audacity" for example, configure it to acquire a 2-channel stereo at 16KHz, and record.
Only one channel will be recorded, while the other will remain silent.


All wikipages