Acoustic

This section will help us to review the Acoustic sensor AKU340. We are going to review how to initialized and read the sensor data.

AKU340 http://www.akustica.com/Files/Admin/PDFs/Datasheets/DS26 - 1.1a AKU340 Datasheet.pdf

Considerations

Before the interface BCDS_FEATURE_BSP_MIC_AKU340, which holds the functions to intialize and read data from the acoustic sensor, can be used it needs to be manually enabled within the configuration header file BCDS_HALConfig.h from the XDKs SDK. For that, please navigate to SDK > xdk110 > Common > config > Essentials > BCDS_HALConfig.h. Open up the header file and add

#define BCDS_FEATURE_BSP_MIC_AKU340 1

after

#define BCDS_FEATURE_BSP_LORA_RN2XX3 0

This will enable the compiler of the XDK-Workbench to find the implementation for the acoustic sensor, which is located in a predefine directory by

#define BCDS_FEATURE_BSP_MIC_AKU340 0

Last updated

Was this helpful?