本帖最后由 frankshen 于 2023-9-9 08:46 编辑
ST公司关于STM32的软件包 X-CUBE-MEMSMIC1 可实现4麦克风的声源定位,我已采购相关硬件:
包括STM32 Nucleo F401 底板, X-NUCLEO-CCA02M2 中间板 , STEVAL-MIC003V1 麦克风
我尝试进行调试, 但是输出的值不是定位结果
关于代码中的相关参数不会设置 #define TOP_LEFT_MIC 3 #define TOP_RIGHT_MIC 0 #define BOTTOM_LEFT_MIC 2 #define BOTTOM_RIGHT_MIC 1 #define SIDE 147 #define DIAGONAL 212
libSoundSourceLoc_Handler_Instance.channel_number = 4; libSoundSourceLoc_Handler_Instance.M12_distance = DIAGONAL; libSoundSourceLoc_Handler_Instance.M34_distance = DIAGONAL; libSoundSourceLoc_Handler_Instance.sampling_frequency = AUDIO_IN_SAMPLING_FREQUENCY; libSoundSourceLoc_Handler_Instance.algorithm = ACOUSTIC_SL_ALGORITHM_GCCP; libSoundSourceLoc_Handler_Instance.ptr_M1_channels = 4; libSoundSourceLoc_Handler_Instance.ptr_M2_channels = 4; libSoundSourceLoc_Handler_Instance.ptr_M3_channels = 4; libSoundSourceLoc_Handler_Instance.ptr_M4_channels = 4; libSoundSourceLoc_Handler_Instance.samples_to_process = 512;
故有偿请大神帮忙调试,指导完成声定位,我可将硬件寄去,调试完成后寄回即可
|