RAK12025 WisBlock Gyroscope Sensor Module Quick Start Guide
Prerequisite
-
Assemble the RAK12025 with a WisBlock Base and WisBlock Core by following the RAK12025 Installation Guide.
-
Download and install the Arduino IDE, then add the RAKwireless Core boards by installing the RAKwireless Arduino BSP.
-
USB Cable
Initial Test of the RAK12025 WisBlock Module
-
This guide uses the RAK4631 WisBlock Core to demonstrate the configuration process. You can also use the RAK11200 or RAK11310 as the WisBlock Core.
-
When using the RAK11200, configure the BOOT0 pin correctly before uploading the source code. Otherwise, the upload may fail. For detailed instructions, refer to the RAK11200 Quick Start Guide.
-
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 WisBlock Core- Copy the Basic Sample Code for RAK12025 in Github. You can open the example codes depending on your WisBlock Core.
If you experience any error in compiling the example sketch, check the updated code for your WisBlock Core Module that can be found on the RAK12025 WisBlock Example Code Repository. This sample code in Github will work on all WisBlock Core.
Figure 1: Copying the RAK12025 example code for RAK4631 WisBlock Core- Once the example code is copied, install the RAKwireless I3G4250D Gyroscope Library by clicking the red-highlighted link.
Figure 1: Installing the compatible library for RAK12025 Gyroscope Sensor Module
Figure 1: Successful installing the library for RAK12025 Gyroscope Sensor Module- After successful installation of the library, you can now select the right serial port and upload the code.
Figure 1: Selecting the correct serial port
Figure 1: Uploading the RAK12025 example code- When you have successfully uploaded the example sketch, open the serial monitor of the Arduino IDE to see the sensor's reading logs. If you see the logs, then your RAK12025 is communicating with the WisBlock core properly.
Figure 1: RAK12025 Gyroscope Sensor Module Data Logs