background image

Documentation Center

Figure 28: FC-28 Soil Moisture Hygrometer data logs

Last Updated: 

7/29/2022, 10:17:19 PM

Summary of Contents for WisBlock RAK13002

Page 1: ...AKwireless Arduino BSP 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 crea...

Page 2: ...screws Figure 2 RAK13002 assembly to WisBlock Base Disassembling The procedure in disassembling any type of WisBlock modules is the same 1 First remove the screws Figure 3 Removing screws from the Wis...

Page 3: ...and Example The RAK13002 module exposes the IO pins SPI I2C and UART communication ports You can use these ports to connect sensors or modules digital I O analog I O and slave devices These ports are...

Page 4: ...erates at 3 3 V Figure 6 Connecting the RAK13002 to the I2C backpack of a 16x2 LCD 1 You need to select first the WisBlock Core you have as shown in Figure 7 to Figure 9 Row Column Column 1 Column 2 C...

Page 5: ...Documentation Center Figure 7 Selecting RAK4631 as WisBlock Core Figure 8 Selecting RAK11200 as WisBlock Core...

Page 6: ...tch 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 After success...

Page 7: ...eter is how many columns are on your screen LiquidCrystal_I2C lcd 0x27 16 2 void setup lcd init initialize lcd screen lcd backlight turn on the backlight void loop start_display star delay 1000 wait f...

Page 8: ...w 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 Figure 13 RAK13002 EX...

Page 9: ...er void loop byte error address variable for error and I2C address int nDevices Serial println Scanning nDevices 0 for address 1 address 127 address The i2c_scanner uses the return value of the Wire e...

Page 10: ...PIO 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...

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: ...tate from the input pin int currentState the current reading from the input pin unsigned long pressedTime 0 unsigned long releasedTime 0 void setup Serial begin 9600 pinMode BUTTON_PIN INPUT_PULLUP vo...

Page 14: ...en 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...

Page 15: ...he 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 Figure 22...

Page 16: ...Documentation Center Figure 23 Selecting RAK4631 as WisBlock Core Figure 24 Selecting RAK11200 as WisBlock Core...

Page 17: ...in Figure 26 and Figure 27 Reading ADC pin on RAK13002 using Soil Moisture Sensor define SS WB_A0 Soil Moisture Sensor A0 to AIN0 of RAK13002 int sensor_value void setup Serial begin 9600 Setting up S...

Page 18: ...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...

Page 19: ...Documentation Center Figure 28 FC 28 Soil Moisture Hygrometer data logs Last Updated 7 29 2022 10 17 19 PM...

Page 20: ...e size 25X35 mm Specifications Overview Mounting The RAK13002 module can be mounted to the IO slot of the WisBlock Base board Figure 1 shows the mounting mechanism of the RAK13002 on a WisBlock Base m...

Page 21: ...Recommended Operating Conditions Mechanical Characteristics Board Dimensions Figure 3 shows the dimensions and the mechanic drawing of the RAK13002 module Figure 3 RAK13002 WisBlock Adaptor Module Mec...

Page 22: ...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...

Reviews: