RAK18000 WisBlock PDM Stereo Microphone Module Quick Start Guide
The RAK18000 is based on two MP34DT06J microphone modules. The RAK18000 is a digital microphone module that is designed to detect sounds and to support left and right channels. It is also capable of changing microphone orientation on the left or right channel through the switch resistor.
Prerequisite
- Prepare a WisBlock Base with a sensor slot, a compatible WisBlock Core, and the RAK18000 module. Refer to the RAK18000 Installation Guide.
- Install the Arduino IDE and RAKwireless Arduino BSP to add the supported WisBlock Core boards to the Arduino Boards Manager.
- USB Cable
- Li-Ion/LiPo battery (optional)
- Solar charger (optional)
Initial Test of the RAK18000 WisBlock Module
-
This guide uses the RAK4631 WisBlock Core for the configuration example. You can also use the RAK11200 or RAK11310 WisBlock Core.
-
If you are using the RAK11200 as your WisBlock Core, configure the Boot0 pin correctly before uploading the code. Otherwise, the upload will fail. Refer to the RAK11200 Quick Start Guide for details.
-
Install the RAKwireless Arduino BSP for WisBlock by using the
package_rakwireless_index.jsonboard installation package. The WisBlock Core should now be available on the Arduino IDE. -
You need to select first the WisBlock Core you have.
Figure 1: Selecting RAK4631 as the WisBlock Core- The Basic Sample Code for RAK18000 in Github will work depending on your WisBlock Core.
Figure 1: Opening the RAK18000 example code for the RAK4631 WisBlock CoreIf you encounter errors when compiling the example sketch, check GitHub for updated sample code compatible with your WisBlock Core. For RAK4631, refer to the RAK18000 Sample Code for RAK4631.
- After opening the sample sketch, choose your WisBlock Core then select the right serial port and upload the code.
Figure 1: Selecting the correct Serial Port
Figure 1: Uploading the RAK18000 example code- When you successfully uploaded the example sketch, open the Serial Plotter of the Arduino IDE to see the sensor's reading logs. To test the sound detection, you can download a sound generating app on your smartphone and sweep frequencies from 1000 Hz to 10000 Hz. If you see the logs, then your RAK18000 is properly communicating to the WisBlock core.
Figure 1: RAK18000 audio data logsResources
- For the RAK11200 WisBlock Core, use the RAK18000 Sample Code for RAK11200 to read audio data from the RAK18000 stereo PDM microphones.
- For the RAK11310 WisBlock Core, use the RAK18000 Sample Code for RAK11310 to read audio data from the RAK18000 stereo PDM microphones.
