RAK18003 with RAK18030 Quick Start Guide
RAK18003 is an interposer module, part of the WisBlock Audio Series. Its design allows multiple WisBlock Audio modules to be used together on a single IO slot. It consists of two IO expanders (TPT29555-TS5R), one signal switch (5223YWQ10/TR), and connectors where other WisBlock Audio modules can be interfaced. It also has a usable TF card slot. RAK18003 module can be used with RAK18030 PDM Microphone.
Prerequisite
- Assemble the RAK18003 with a WisBlock Base and WisBlock Core by following the RAK18003 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)
RAK18030 with RAK18003 Sample Code Test
- To test the RAK18003 (Audio Interposer) with RAK4631 (WisBlock Core) and RAK18030 (PDM Microphone).
Figure 1: Assembling together the RAK4631, RAK18030, and RAK18003- Then 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.
Figure 1: Arduino IDE- Install the latest RAKwireless Audio Library using the Library Manager of Arduino IDE.
Figure 1: RAKwireless Audio Library
Figure 1: RAKwireless Audio Library- Open the sample code for RAK18003.
Figure 1: Selecting the sample code for RAK18003
Figure 1: Sample code for RAK18003The example codes of RAKwireless Audio Library are compatible with specific WisBlock Core. You have to select the correct WisBlock Core based on what core you used in your application.
- Select the RAK4631 board and its serial port.
Figure 1: Selecting RAK4631 board as the WisBlock Core
Figure 1: Selecting the serial port of RAK4631 WisBlock Core- Upload the code.
Figure 1: Uploading the RAK18030 code
Figure 1: Uploading the RAK18030 codeIf you experience any error in compiling the example sketch, check the updated example code for your WisBlock Core Module that can be found on the RAKwireless Audio Library.
- When you successfully uploaded the sample code, 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 starting from 1000 Hz to 10000 Hz. If you see the logs, then your RAK18030 and RAK18003 are communicating to the WisBlock core.
Figure 1: Sample code successfully uploaded to RAK4631
Figure 1: Opening the Serial Plotter
Figure 1: FFT Plot of 10kHz sample signalIf there is no serial plot graph shown in Arduino 2.0.x, you can try the serial plotter of the legacy Arduino 1.8.x IDE.
