'can we use stm32f7508_discovery_audio (.c / .h files) to do a sonometer?
I have an STM32F7508-DK and I use BSP Discovery.
The codec's called WM8994 and these are ST-MEMS type microphones.
On this board you can find 2 microphones, that I'm currently trying to use in order to do a sonometer.
I've searched throughout the example code files
We're using these 2 C functions that you can find below :
BSP_AUDIO_IN_Init(DEFAULT_AUDIO_IN_FREQ, DEFAULT_AUDIO_IN_BIT_RESOLUTION, DEFAULT_AUDIO_IN_CHANNEL_NBR);
BSP_AUDIO_IN_Record(tab, nb);
These are defined in the "stm32f508_discovery_audio.c" file, which is an example file of the things you can potentially do with the board.
You can find these files at STM github
I've already managed to receive data from the microphones, but I don't know how to treat it.
I would need some informations in order to do so :
the unit how to convert the received data in dB's
Can you thoroughly explain what this data is ?
I'm using uint16_t and int16_t structures to store the data. Am I doing something wrong ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
