RAK19001 WisBlock Dual IO Base Board Quick Start Guide
This guide introduces the RAK19001 WisBlock Base Board and how to use it.
Prerequisite
What Do You Need?
Before going through each and every step on using the RAK19001 WisBlock Base Board, make sure to prepare the necessary items listed below:
Hardware
- RAK19001 WisBlock Dual IO Base Board
- Your choice of WisBlock Core
- Your choice of WisBlock Modules. It is highly recommended to also check the dedicated quick start guide that you can follow on various WisBlock Modules. Each quick start guide of these modules contains the detailed steps on how to open the example codes and upload them to the WisBlock Core.
- Li-Ion/LiPo battery (optional)
- Solar charger (optional)
- Type-C USB cable for programming and debugging
Software
Based on the choice of the WisBlock Core, select a Development Environment:
Programming via Arduino IDE- RAKwireless BSP support for Arduino In Arduino IDE, once you installed the BSP, the examples for WisBlock Core will be automatically included on the list of examples.
Product Configuration
Overview
To give you a better understanding of how the WisBlock Base works, the block diagram RAK19001 is provided in this section.
Block Diagram
The block diagram shown in Figure 1 shows the internal architecture and external interfaces of the RAK19001 board.
The MCU in the WisBlock Core module offers the I2C, UART, and SPI data buses to the sensor and IO modules. Through these buses, the MCU can control and retrieve data from the sensors. The RAK19001 WisBlock Base board connects all these modules.
The RAK19001 is designed to be powered by either rechargeable or non-rechargeable battery. The rechargeable battery it supports is Li-Ion and provides the necessary charger IC on-board. The charger circuitry can be connected to a wall outlet charger through the Type-C USB connector or via the solar panel connector.
A high-efficiency step-down converter with a low quiescent current is used for generating 3.3 V. This 3.3 V power supply drives the consumption of the WisBlock Core module and the sensor modules.
3V3_S is another 3.3 V power supply, it can be controlled by the MCU to disconnect the power to the sensor and interface modules during idle periods. 3V3_S is controlled by an IO2 pin on the WisBlock Core board.
- Set IO2=1, 3V3_S is on.
- Set IO2=0, 3V3_S is off.
Hardware Setup
RAK19001 WisBlock Base Board Installation Guide
RAK19001 WisBlock Base Board is the main board that allows you to attach MCU, sensors, and IO modules through the standardized expansion connectors. These connectors provide a data bus interconnection between the modules attached to the RAK19001 Base Board.
This guide shows the details related to the installation of modules into the RAK19001 Base board.
Attaching a WisConnector
The WisConnector is the interface between the RAK19001 module and the WisBlock Core, Sensor, and IO modules. Before connecting these modules, read the following instructions:
This guide uses two arrows. Refer to Figure 2 for its representation.
- Align the connectors. Keep the header parallel and place it lightly in the corresponding lap joint of the socket.
- Fit the connector. Tilt one end of the connector (header) less than 20 degrees, while do not apply force during this process, gently place the other end in parallel.
- After the above alignment steps, the header and socket are matched but still not buckled.
- Apply forces evenly by pressing in parallel, then there will be a sound confirming the completion of the buckling.
- In the process of buckling and applying force, avoid the application of uneven force on both sides.
- When the buckling process is completed, check that the header and socket are kept in parallel.
- If after buckling, the header and socket are not in a parallel state (not fully assembled in one place), then press the even force on both sides of the long side to complete the correct buckling.
- When the aforementioned steps are not completed yet, do not apply force to buckle. Otherwise, there will be a risk to damage the connector. When the connector cannot be smoothly buckled down, repeat the alignment step.
Detaching a WisConnector
- To disconnect the header from the socket, pull out in parallel with even forces.
- Avoid pulling out the header asymmetrically in the long-side direction.
- The short-side of the connector can be pulled out asymmetrically, but apply the force vertically and avoid rotating the header.
- Avoid applying forces in a single corner.
Assembling a WisBlock Module
WisBlock Core
A WisBlock Core module is designed to be installed on the CPU slot of the RAK19001 Base Board. As shown in Figure 14, the location is properly marked by silkscreen. Follow carefully the procedure defined in attaching a WisConnector section in order to attach a Core module. Once attached, fix the module with one or more pieces of M1.2 x 3 mm screws depending on the WisBlock Core.
WisBlock Sensor
A WisBlock Sensor module is designed to be installed on the sensor slot of the RAK19001 Base Board. There are six (6) available sensor slots in the RAK19001 Base Board. As shown in Figure 15, the location of the slots is properly marked by silkscreen. Follow carefully the procedure of the section, attaching a WisConnector, to attach a WisBlock Sensor module. Once attached, fix the module with an M1.2 x 3 mm screw.
WisBlock IO
A WisBlock IO module is designed to be installed on the IO slot of the RAK19001 Base Board. There are two (2) IO slots in the RAK19001 Base Board. As shown in Figure 16, the location is properly marked by silkscreen. Follow carefully the procedure of the section, attaching a WisConnector, to attach a WisBlock IO module. Once attached, fix the module with three pieces of M1.2 x 3 mm screws.
Disassembling a WisBlock Module
- The procedure to disassemble any type of WisBlock modules is the same. As shown in Figure 17, first, remove the screws.
- Once the screws are removed, on the PCB of a WisBlock module, there is a silkscreen that shows the correct location where force can be applied. By applying even force under the marked area, the module can be detached from the Base Board. See Figure 18 and Figure 19.
Battery Selector
The RAK19001 supports both rechargeable and non-rechargeable batteries. You can also use this slide switch as a power on/off switch to disconnect the battery from the board.
Non-Rechargeable Battery
Various non-rechargeable batteries are supported by the RAK19001 as long as it is in the voltage range of 3.3 to 5.5 V. The onboard connector used on the non-rechargeable battery is FWF20009-S02S22W1B. The matching connector housing is FHG20005-S02M2W1B, and the connector tin-plate pin is FT20004-F2H.
Rechargeable Battery
RAK19001 can be powered by a rechargeable Li-Ion/LiPo battery via the dedicated connectors, as shown in Figure 22. The matching connector for the rechargeable battery wires is a JST PHR-2 2 mm pitch female. A cable assembly for the rechargeable battery connector is also available for purchase in RAK store.
- Battery can cause harm if not handled properly.
- Only 3.7-4.2 V Rechargeable LiPo batteries are supported. It is highly recommended not to use other types of batteries with the system unless you know what you are doing.
- Make sure the battery wires, both rechargeable and non-rechargeable, match the polarity on the RAK19001 board. Not all batteries have the same wiring.
Solar Panel Connection
The battery can be recharged, as well, via a small Solar Panel, as shown in Figure 23. The matching connector for the solar panel wires is an JST ZHR-2 1.5 mm pitch female. A cable assembly for the solar panel connector is also available for purchase in RAK store.
- Only 5 V solar panels are supported. Do not use 12 V solar panels. It will destroy the charging unit and eventually other electronic parts.
- The GND pin of the Solar Panel Connector is located on edge of the board. Make sure the solar panel wires match the polarity on the RAK19001 board.
Software Setup
The WisBlock Core is designed to be interfaced with other WisBlock Modules like sensors, displays, and other interfaces. To make useful devices, you need to upload a source code to the WisBlock Core. Before you continue, you should have already set up either an Arduino BSP or PlatformIO.
WisBlock Examples Repository
To quickly build your IoT device with less hassle, example codes for WisBlock Core are provided. You can access the codes on the WisBlock Example code repository. The example codes on folder common
are compatible with RAK4631, RAK11200, and RAK11310 WisBlock cores.