cancel
Showing results for 
Search instead for 
Did you mean: 

Sound Activated Program on STM32L053R8 using X-NUCLEO-CCA02M1 Expansion Board

philip239955_st
Associate
Posted on August 24, 2015 at 22:33

Hello,

I'm trying to write a program for the STM32L053R8 Nucleo board that can be activated using a clap or a similar loud noise. I am using the X-NUCLEO-CCA02M1 MEMS Microphone expansion board in order to pick up the sound but cannot figure out how to simply store the data from the microphone. I initialize the microphone using:

BSP_AUDIO_IN_Init(AUDIOFREQ_16K, 0, 2);
BSP_AUDIO_IN_Record(&audio_buff, 0);

however, once I start recording, it seems to lock up my entire program and I cannot seem to access the data on the audio buffer. Does anyone have any experience using this expansion board and could point me in the right direction? Is it even possible to do what I'm trying to do with this board? Thanks #stm32l053
0 REPLIES 0