RAK5801 WisBlock 4-20mA Interface Module Quick Start Guide
Prerequisite
- Assemble the RAK5801 with a WisBlock Base and WisBlock Core by following the RAK5801 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)
Sensor Connection on RAK5801
This is just an example and illustration on how to use the RAK5801 for external analog sensors. There are two analog input (ADC) pins available on the RAK5801, you can use any of the ADC pins as long as your sensors operate at 3.3 V or 12 V with 4-20 mA operating current.
Figure 1: Connecting the RAK5801 to the SUP-P300 Hydraulic Pressure SensorIf you already installed the RAKwireless Arduino BSP, the WisBlock Core and example code should now be available on the Arduino IDE.
Software Configuration and Example
The RAK5801 module includes a 12 V voltage source which is controlled by the WisBlock Core module via IO1 (WB_IO1) of the WisBlock Base. This GPIO must be set to HIGH before sampling. The 12 V voltage source is designed to provide power supply to 4-20 mA sensors. The majority of 4-20 mA sensor works in the 9-24 V range. Before connecting a sensor to the RAK5801 module, you must be sure that the sensor can safely operate at 12 V.
For RAK5801, the accessible ADC pin assignments are defined as follows in the Arduino IDE:
WB_IO4for AIN0, ADC Input pinWB_A1for AIN1, ADC Input pin
- WB_IO4 for AIN0 only works for the RAK4631 core module.
- If you will be using the RAK11200 core module, there are few hardware modifications needed to configure. Check the Pin Definition section in the Datasheet.
The quick links that go directly to the software guide for the specific WisBlock Core module you use:
