RAK4631 WisBlock LoRaWAN Module Quick Start Guide
This guide introduces the RAK4631 WisBlock Core LoRaWAN Module and how to use it. RAK4631 consists of an nRF52840 MCU and an SX1262 LoRa chip making it ideal for various IoT projects.
Prerequisite
Before going through each and every step on using RAK4631 WisBlock Core, make sure to prepare the necessary items listed below:
Hardware
- RAK4631 WisBlock Core LoRaWAN Module
- Your choice of WisBlock Base
- Your choice of WisBlock Modules
- USB Cable
- Li-Ion/LiPo battery (optional)
- Solar charger (optional)
RAK4631 is also included in various WisBlock kits in the RAKwireless store:
- WisBlock Starter Kit - includes the RAK4631 with RAK5005-O WisBlock Base Board. This kit is ideal to get started immediately with WisBlock.
- WisBlock Kit - a Starter Kit with various WisBlock modules already included on the kit like sensors, IO, and other interfaces.
- WisBlock Connected Box - a WisBlock Kit but cheaper because some modules and peripherals are not included. Excluded parts are RAKBox-B5, RAK1921, RAKDAP1, electric screwdriver (manual is included), and battery holder.
- Helium Developer Kit - the WisBlock Kit for the Helium brand.
- Meshtatic Starter Kit - includes the RAK4631 with RAK19007 as its WisBlock Base Board.
Software
This software guide is only compatible with the RAK4631 Arduino BSP; it will not work with the RAK4631-R, but you can convert it to the RAK4631.
You can choose Arduino IDE or Platform IO in coding the RAK4631 WisBlock Core.
Programming RAK4631 via Arduino IDE:- Download and install the Arduino IDE.
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.
- To add the WisBlock Core boards on your Arduino board, you need to install the RAKwireless Arduino BSP. You can follow this complete guide on adding the BSP in Arduino IDE. You can also have a look at the RAKwireless Arduino BSP GitHub repository.
In Arduino IDE, once you installed the BSP, some examples for RAK4631 will be automatically included on the list of examples when you select WisBlock Core RAK4631 Board in the Board Manager.
Programming RAK4631 via Platform IO:Updated and complete WisBlock examples can be found in the WisBlock Examples repository which contains source codes that you can copy-paste and upload.
Aside from that, each WisBlock Modules has its own quick start guide to help you in your WisBlock journey.
Product Configuration
Hardware Setup
RAK4631 to WisBlock Base
The RAK4631 will not work without a WisBlock Base board. The WisBlock Base provides a USB connection for programming the RAK4631. It also provides a power source and various interfaces to RAK4631 so that it can be connected to other WisBlock modules via different module slots.
RAKwireless offers many WisBlock Base Boards compatible with WisBlock Core. It is highly recommended for you to look on these WisBlock Base boards to see what matches your requirements in terms of available module slots, power supply options, and overall size.
To illustrate, RAK4631 can be connected to RAK5005-O WisBlock Base, as shown in Figure 1.

There are few pins that are exposed on RAK5005-O, and you can easily use them via header pins. The labels are at the back, as shown in Figure 2.

More information can be found on the official documentation of the specific WisBlock Base you used in your project.
For RAK5005-O WisBlock Base with RAK4631 WisBlock Core, the accessible GPIO pins are defined as follows in the Arduino IDE and Platform IO:
WB_IO1
for IO1 pinWB_IO2
for IO2 pin (Also used to control the 3.3 V supply of some WisBlock Modules to achieve low-power IoT devices.)WB_A0
for AIN
There are usable LEDs as well that can be controlled by the RAK4631 on the WisBlock Base board:
LED_GREEN
LED_BLUE
UART1 and I2C_1 are also exposed on the header of the WisBlock Base board.
- RAK4631 has a native USB peripheral onboard (Serial), which is used for programming and Serial debugging and two usable hardware UART1 and UART2 (Serial 1 and Serial 2). UART1 is accessible to WisBlock Slot A, WisBlock IO slot, and the exposed header pins. UART2 is accessible only on the WisBlock IO slot.
- The I2C_1 header pins are as well shared to the WisBlock Base Slots A to D. The second I2C_2 is available only on the WisBlock IO slot.
RAK4631 to WisBlock Modules
RAK4631 WisBlock Core is designed to be interfaced with other WisBlock Modules like sensors, displays, and other interfaces. You need to connect these modules to the compatible slots on the WisBlock Base.
Each WisBlock Modules that will be used with RAK4631 WisBlock Core have a dedicated quick start guide you can follow on how to connect to the WisBlock Base.
Listed are the quick start guide of some WisBlock modules you can buy from our store:
The listed links are just examples. All WisBlock Modules have their own quick start guide that you can use as a reference to get started on specific modules.
Figure 3 shows an illustration on how you can combine various WisBlock Modules with the RAK4631 WisBlock Core via the WisBlock Base board.
