2021-09-29 07:29 AM
Solved! Go to Solution.
2021-11-26 07:14 AM
Hi @Snara.2 ,
PCM data is defined by sample speed (8kHz in your case) and bit depth, for example 16 bits (or 12 bits for the ADC resolution). This means that, for a N.1 minute acquisition, you need 8kHz * 12bit * 60 sec = 5760 kbit = 720kByte.
The STM32L4R9 on the Sensortile.box has:
You might use the internal flash, but there is the concrete risk you'll saturate it.
So it's better you process your audio stream second by second, not minute by minute, at least if you want to do it in real-time. Otherwise you should find a memory for storage, such as a flash or the onboard SD card, but the processing will be no more in real-time.
-Eleon
2021-10-04 07:15 AM
Hi @Snara.2 ,
as reference code for the Sensortile.box, including the analog microphone MP23ABS1TR acquisition, you can refer to the FP-SNS-STBOX1 firmware function pack, and in particular, for example, to the SDDataLogRToS project in the \Projects folder. The TS922EIJT is just an opamp and doesn't need any calibration (you might tune the input resistors for the gain, but I suggest you not to do it), and the MP23ABS1TR is an analog microphone that just streams an analog output proportional to the input.
See also the UM2626.
-Eleon
2021-10-06 07:13 AM
Hi @Snara.2 ,
let me please know whether you have any further updates about this :)
-Eleon
2021-10-06 10:09 AM
@Eleon BORLINI Thanks for your reply. I have downloaded the details shared and I am working on it, If any struck up will contact you
2021-10-20 08:10 AM
hi @Eleon BORLINI I have tried that please let m eknow how shall I configure cube MX
2021-10-21 01:57 AM
Hi @Snara.2 ,
I believe you should start with the predefined peripherals configuration in CubeMX for the SensorTile.box. In particular:
The default configuration of ADC1 is without DMA. This ADC is dedicated to the analog microphone acquisition.
You can find the default clock tree configuration in the proper tab. The master clock is 120MHz. I would use this configuration.
The MP1 and MREF are analog DC signals that are used to center the offset level with the TS922EIJT preamplifier dynamics. This avoids the risk to have negative analogic signals.
The audio is managed by the SensorTile.box_audio.c functions that you can find in the \Drivers\BSP\SensorTile.box folder.
-Eleon
2021-11-17 06:48 AM
@Eleon BORLINI If I need to use 8Khz ,i.e High Quality Audio sampling how shall we do it , the clock freq for bus and main is 64 Mhz. If 1/8 KHz then it is 0.125msec
2021-11-26 07:14 AM
Hi @Snara.2 ,
PCM data is defined by sample speed (8kHz in your case) and bit depth, for example 16 bits (or 12 bits for the ADC resolution). This means that, for a N.1 minute acquisition, you need 8kHz * 12bit * 60 sec = 5760 kbit = 720kByte.
The STM32L4R9 on the Sensortile.box has:
You might use the internal flash, but there is the concrete risk you'll saturate it.
So it's better you process your audio stream second by second, not minute by minute, at least if you want to do it in real-time. Otherwise you should find a memory for storage, such as a flash or the onboard SD card, but the processing will be no more in real-time.
-Eleon
2021-12-16 12:40 AM
@Eleon BORLINI We have used DFSDM filter for ADC in this sample code and DAC_out1 and MRef configuration details are not available. Guide me
How to link DFSDM filter with ADC . Any document to connect and work and transfer to DMA
2021-12-20 02:05 AM
@Eleon BORLINI I have downloaded the this package. How shall I test it? I used ST BLE - Sensortile.Box is not detected.