Download Print this page

Advertisement

Quick Links

Documentation Center
RAK13002 Quick Start Guide
Prerequisite
What Do You Need?
Before going through each and every step on using the RAK13002 WisBlock module, make sure to prepare the
necessary items listed below:
Hardware
RAK13002 Wisblock IO Module
Your choice of
WisBlock Base
Your choice of
WisBlock Core
USB Cable
Li-Ion/LiPo battery (optional)
Solar charger (optional)
Software
Download and install
ArduinoIDE
To add the RAKwireless Core boards on your Arduino Boards Manager, install the
.
Product Configuration
Hardware Setup
The RAK13002 WisBlock IO Module is designed as an IO extension module that allows you to connect external
digital and analog modules to create a customized IoT solution. It supports two (2) I2C interfaces, two (2) UART
interfaces, one (1) SPI Interface, six (6) GPIOs, and two (2) ADC interfaces. For more information about
RAK13002, refer to the Datasheet.
The RAK13002 WisBlock IO Module can be mounted on the IO slot of the WisBlock Base board, as shown in
Figure 1. Also, always secure the connection of the WisBlock module by using compatible screws.
Assembling and Disassembling of WisBlock Modules
.
Figure 1: RAK13002 connection to WisBlock Base
RAKwireless Arduino BSP

Advertisement

loading
Need help?

Need help?

Do you have a question about the WisBlock RAK13002 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for RAK WisBlock RAK13002

  • Page 1 Documentation Center RAK13002 Quick Start Guide Prerequisite What Do You Need? Before going through each and every step on using the RAK13002 WisBlock module, make sure to prepare the necessary items listed below: Hardware RAK13002 Wisblock IO Module Your choice of WisBlock Base Your choice of WisBlock Core...
  • Page 2 Documentation Center Assembling As shown in Figure 2, the location for the IO slot is properly marked by silkscreen. Follow carefully the procedure defined in RAK5005-O module assembly/disassembly instructions to attach a WisBlock module. Once attached, carefully fix the module with three pieces of M1.2 x 3 mm screws. Figure 2: RAK13002 assembly to WisBlock Base Disassembling The procedure in disassembling any type of WisBlock modules is the same.
  • Page 3 Documentation Center Figure 5: Applying even forces on the proper location of a WisBlock module NOTE If you will connect other modules to the remaining WisBlock Base slots, check on the WisBlock Pin Mapper tool for possible conflicts. After all this setup, you can now connect the battery (optional) and USB cable to start programming your WisBlock Core.
  • Page 4 Documentation Center Row/Column Column 1 Column 2 Column 3 Column 4 Row 1 Row 2 Row 3 SCL1 TXD0 Row 4 SDA1 RXD0 Row 5 SCL2 TXD1 Row 6 SDA2 RXD1 Row 7 LED1 AIN0 Row 8 LED2 AIN1 I2C Connection on RAK13002 This is just an example and illustration on how to use the RAK13002 for external I2C sensors, modules, or devices.
  • Page 5 Documentation Center Figure 7: Selecting RAK4631 as WisBlock Core Figure 8: Selecting RAK11200 as WisBlock Core...
  • Page 6 Documentation Center Figure 9: Selecting RAK11300 as WisBlock Core 2. On the Arduino IDE, go to Sketch > Include Library > Manage Libraries. The Library Manager should open, then install the LiquidCrystal I2C library, as shown in Figure 10. Figure 10: Installing the LiquidCrystal I2C library 3.
  • Page 7 Documentation Center #include LiquidCrystal_I2C.h #include Wire.h //initialize the liquid crystal library //the first parameter is the I2C address //the second parameter is how many rows are on your screen //the third parameter is how many columns are on your screen LiquidCrystal_I2C lcd(0x27, 16, 2);...
  • Page 8 Documentation Center Figure 12: Uploading the sample code 5. When you successfully uploaded the sample code, you will now be able to see the "RAK13002 EXAMPLE" in your LCD screen, as shown in Figure 13, which means that the module is properly communicating with the WisBlock core using the I2C protocol.
  • Page 9 Documentation Center * Scan the I2C Address of your LCD using * this example code. Make sure your SDA and SCL * line is connected properly. * Follow the connection of LCD with I2C Backpack to RAK13002. #include <Wire.h> //include Wire.h library void setup() Wire.begin();...
  • Page 10 Documentation Center Figure 14: I2C address of your device GPIO Connection on RAK13002 This is just an example and illustration on how to use the GPIO pins of RAK13002 for external sensors, modules, or devices. There are six (6) GPIO pins available on the RAK13002. You can use any of the GPIO pins as long as your modules, sensors, or devices operate at 3.3 V.
  • Page 11 Documentation Center Figure 16: Selecting RAK4631 as WisBlock Core Figure 17: Selecting RAK11200 as WisBlock Core...
  • Page 12 Documentation Center Figure 18: Selecting RAK11300 as WisBlock Core 2. Copy the following sample code into your Arduino IDE:...
  • Page 13 Documentation Center * Reading Long Press and Short Press on a Button using RAK13002 // constants won't change. They're used here to set pin numbers: const int BUTTON_PIN WB_IO1; // the number of the pushbutton pin const int SHORT_PRESS_TIME 500; // 500 milliseconds // Variables will change: lastState...
  • Page 14 Documentation Center Figure 19: Selecting the correct port Figure 20: Uploading your code 4. When you successfully uploaded the sample code, open the Serial Monitor of the Arduino IDE to see the button's reading logs. Try pressing the button, and if you see the logs, as shown in Figure 21, then your module or sensor is properly communicating to the WisBlock core using the Digital Interface.
  • Page 15 Documentation Center Figure 21: Serial Monitor Output Analog Input (ADC) Connection on RAK13002 This is just an example and illustration on how to use the ADC pin of RAK13002 for external sensors, modules, or devices. There are two (2) ADC pins available on the RAK13002 that you can use as long as your modules, sensors, or devices operate at 3.3 V.
  • Page 16 Documentation Center Figure 23: Selecting RAK4631 as WisBlock Core Figure 24: Selecting RAK11200 as WisBlock Core...
  • Page 17 Documentation Center Figure 25: Selecting RAK11300 as WisBlock Core 2. Copy the following sample code into your Arduino IDE: * Reading ADC pin on RAK13002 * using Soil Moisture Sensor #define SS WB_A0 //Soil Moisture Sensor A0 to AIN0 of RAK13002 sensor_value;...
  • Page 18 Documentation Center Figure 26: Selecting the correct Serial Port Figure 27: Uploading the sample code 4. When you successfully uploaded the sample code, open the Serial Monitor of the Arduino IDE to see the module's reading logs. If you see the logs, as shown in Figure 28, then your module or sensor is properly communicating to the WisBlock core using the Analog Interface.
  • Page 19 Documentation Center Figure 28: FC-28 Soil Moisture Hygrometer data logs Last Updated: 7/29/2022, 10:17:19 PM...
  • Page 20: Overview Description

    Documentation Center RAK13002 WisBlock Adaptor Module Datasheet Overview Description The RAK13002 is a WisBlock Core adaptor module that can be mounted to the IO slot of the WisBlock Base board. This module exposed all WisBlock Core signals such as I2C, SPI, UART, GPIO, and ADC to standard 2.54 mm pitch pin header for easy integration of external components and devices.
  • Page 21: Electrical Characteristics

    Documentation Center Figure 2: RAK13002 WisBlock Adaptor Module Pinout Electrical Characteristics Recommended Operating Conditions Symbol Description Min. Nom. Max. Unit Power supply Mechanical Characteristics Board Dimensions Figure 3 shows the dimensions and the mechanic drawing of the RAK13002 module. Figure 3: RAK13002 WisBlock Adaptor Module Mechanic Drawing WisConnector PCB Layout...
  • Page 22 Documentation Center Figure 4: WisConnector PCB Footprint and Recommendations Schematic Diagram Adaptor Figure 5 shows the RAK13002 adaptor module schematic. VCC: 3.3 V power supply Figure 5: RAK13002 WisBlock Adaptor Schematic Last Updated: 6/14/2022, 8:07:39 AM...