RAK5811 WisBlock 0-5V Interface Module Quick Start Guide
Prerequisite
- Assemble the RAK5811 with a WisBlock Base and WisBlock Core by following the RAK5811 Installation Guide.
- Download and install the Arduino IDE, then add the RAKwireless Core boards by installing the RAKwireless Arduino BSP.
- USB Cable
- Li-Ion/LiPo battery (optional)
- Solar charger (optional)
PlatformIO
To use the WisBlock Core modules with PlatformIO, you need to install a small script named RAK_PATCH. The script can be installed on WisBlock Core RAK4631, RAK11200, and RAK11310. Install RAK_PATCH on PlatformIO.
RAK_PATCH script was tested only on Windows 10 and Ubuntu. In the case of the Raspberry PI 2040 platform update on PlatformIO, the RAK_PATH script must be executed again after the platform update.
Arduino Setup
The RAK5811 module includes a 12 V voltage source which is controlled by the WisBlock Core module via the Enable pin of the WisBlock Base. This GPIO must be set to HIGH before sampling. The 12 V voltage source is also designed to provide the power supply to the operational amplifier of the module. Before connecting a sensor to the RAK5811 module, you must be sure that the sensor can safely operate at 5 V.
Software Configuration and Example
The quick links that go directly to the software guide for the specific WisBlock Core module you use:
Resources
Examples
Use the following examples to read and process 0–5 V analog input signals through the RAK5811:
- For WisBlock Core RAK4630: Sample Code: RAK5811 0-5V
- For WisBlock Core RAK11200: Sample Code: RAK5811 0-5V
- For WisBlock Core RAK11310: Sample Code: RAK5811 0-5V
Complete solution for Water Level Monitoring
- For WisBlock Core RAK4630: Sample Code: Water Level Monitoring
- For WisBlock Core RAK11310: Sample Code: Water Level Monitoring
