Simple test application for the STMicroelectronics X-NUCLEO-CCA02M1 MEMS Microphones Expansion Board, built against mbed classic.

Dependencies:   X_NUCLEO_CCA02M1 mbed ST_Events-old

Fork of HelloWorld_CCA02M1_mbedOS by ST

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 classic 2.x.

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 the following:

  • Stereo@48KHz
  • Stereo@44.1KHz (default, CD audio quality)
  • Stereo@32KHz
  • Stereo@16KHz
  • Stereo@8KHz
  • Mono@48KHz
  • Mono@44.1KHz
  • Mono@32KHz
  • Mono@16KHz
  • Mono@8KHz

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 the Nucleo F4 Family only, please see the ST_I2S library compatibility for further information.
  • Please note that the main application makes use of the "events" library (i.e. the "ST_Events" library imported as "events" library), which is not included into the "mbed" library.
  • The application built against mbed OS 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.

Revisions of X_NUCLEO_CCA02M1.lib

Revision Date Message Actions
18:0d6b37356014 2018-12-12 Update with the new version of the library File  Diff  Annotate
16:8f0723e0df78 2017-07-12 Updating with the new version of the libraries. File  Diff  Annotate
15:bb5a3ba56e4c 2017-07-12 Updating with the new version of the libraries. File  Diff  Annotate
14:1c75aef4eb49 2017-07-10 Updating with the new libraries. File  Diff  Annotate
13:a839d868bc80 2017-07-10 Updating with the new libraries. File  Diff  Annotate
12:203c08553f4d 2017-05-05 Updating with the new version of the library. File  Diff  Annotate
11:e4e1ce8b3a26 2017-05-04 Enabled default configuration at 44.1 KHz (CD audio quality). File  Diff  Annotate
10:a175948482b2 2017-05-03 Updating with the version of the library. File  Diff  Annotate
9:a32bbaf64811 2017-05-03 Updating with the new version of the library. File  Diff  Annotate
8:0dcb2485700e 2017-05-02 Improve performance with a LUT (now default is stereo@32KHz). File  Diff  Annotate
7:760d8e527b67 2017-05-02 Supporting mono configurations with the use of the jumper. File  Diff  Annotate
6:da4d049dc016 2017-04-28 Updated with the new version of the library. File  Diff  Annotate
5:dfdd6207872b 2017-04-28 Updated with the new version of the library. File  Diff  Annotate
4:5b9695449408 2017-04-27 Update lib File  Diff  Annotate
3:be29c277325e 2017-04-27 Updated with the new version of the library. File  Diff  Annotate
2:c79c5ef2c6a9 2017-04-21 Updated with the new version of the library. File  Diff  Annotate
1:373c6af58108 2017-04-21 Updated with the new version of the library. File  Diff  Annotate
0:7d07f4df31e1 2017-04-21 Added files. File  Diff  Annotate