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

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.

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.
  • 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.

Changes

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