RAK1920 WisBlock Sensor Adapter Module Quick Start Guide
Prerequisite
- Assemble the RAK1920 with a WisBlock Base and WisBlock Core by following the RAK1920 Installation Guide.
- Download and install the Arduino IDE, then add the RAKwireless Core boards by installing the RAKwireless Arduino BSP.
- USB Cable
- Li-Ion/LiPo battery (optional)
- Solar charger (optional)
- Grove PIR Motion Sensor (AS312)
Software Configuration and Example
If you already installed the RAKwireless Arduino BSP, the WisBlock Core and example code should now be available on the Arduino IDE.
NOTE
- This guide uses the RAK4631 WisBlock Core to demonstrate the configuration and upload process. The example is also compatible with other WisBlock Cores, including the RAK11200 and RAK11310.
- When using the RAK11200 WisBlock WiFi Module, configure the BOOT0 pin properly before uploading the firmware. Incorrect BOOT0 configuration may cause the firmware upload to fail. For more information, refer to the RAK11200 Quick Start Guide.
- You need to select first the WisBlock Core you have.
Figure 1: Selecting RAK4631 as WisBlock Core- The Basic Sample Code for RAK1920 in Github will work on all WisBlock Core. You can open the the example codes depending on your WisBlock Core. For this guide we will be using Grove PIR AS312
Figure 1: Opening RAK1920 example code for RAK4631 WisBlock Core- Once the example code is open, you can now select the right serial port and upload the code.
Figure 1: Selecting the correct Serial Port
Figure 1: Uploading the RAK1920 example code- When you 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 RAK1920 is properly communicating to the WisBlock core.
Figure 1: RAK1920 sensor data logsResources
For all WisBlock Core modules, download the sample code for the RAK1920 module:
