RAK3312 WisBlock LoRaWAN + BLE + WiFi Module Quick Start Guide
Prerequisites
Before going through each step in using the RAK3312 WisBlock Core, make sure to prepare the necessary items listed below:
Hardware
- RAK3312 WisDuo LPWAN+BLE+WiFi Module
- Computer
- Your choice of WisBlock Base
- Your choice of WisBlock Modules
- USB Cable
- Li-Ion/LiPo battery (optional)
- Solar charger (optional)
Software
- Download and install the Arduino IDE.
- Install the Espressif ESP32 BSP in Arduino following the guide Installing Arduino-ESP32 support.
The RAK3312 is supported by the official Espressif BSP as RAKwireless RAK3112 board.
If you are using Windows 10. Do NOT install the Arduino IDE from the Microsoft App Store. Instead, install the original Arduino IDE from the Arduino official website. The Arduino app from the Microsoft App Store has problems using third-party Board Support Packages.
Using the RAK3312 with PlatformIO
Solution to use the RAK3312 with the ESP32 platform in PlatformIO (temporary)
To use the RAK3312 with PlatformIO and the ESP32 platform, a custom project structure is required. This includes an additional folder in the project folder and some extra entries in the platformio.ini file of the project.
- Download the folder rakwireless from our GitHub repo
- Copy this folder into your project folder.
Your project folder should look like this:
Figure 1: RAK3312 Board definition in PlatformIO project folder- Add the following entries to the platformio.ini file of your project:
[platformio]
default_envs = rak3112
description = RAK3312
boards_dir = rakwireless/boards
[env:rak3112]
framework = arduino
platform = platformio/espressif32
board = rak3112
build_flags = -I rakwireless/variants/rak3112
boards_dir = rakwireless/boardstells PlatformIO where to find additional boards for the ESP32 platform.board = rak3112tells PlatformIO to use the custom board rak3112 from the additional boards folder.build_flags = -I rakwireless/variants/rak3112tells PlatformIO where to findpins_arduino.handvariant.hfiles for the board RAK3312.
Keep these entries in the platformio.ini file and add your other definitions, e.g. lib_deps or additional build_flags.