LoRaWAN Soil Moisture, Temperature sensor

50.82 Price including 21% VAT

Clear
SKU: PM-WCS-3-LW Category:

Description

The PM-WCS-3 family sensors is low-cost, accurate soil moisture sensor for monitoring water content, electrical conductivity and temperature of soil.

Features:

  • Dust and water proof, every sensor is tested by submerging it in to the water, battery box grade: IP65.
  • LoRaWAN class A device, may be activated with OTAA or ABP for any LoRaWAN network supporting EU868/US915/AU921.
  • Setup via USB CDC-ACM virtual COM port.
  • Android application for USB setup and free online monitoring via The Things Network gateways.
  • Demo Tinovi zerver.io cloud console for graphs and configurable event triggers

Power supply

Sensor consumes max 0.3 mA in sleep mode, 12 mA in active mode and 150 mA in transmitting mode. Recommended battery is 3.6v ER14505. Sensor also may be powered from any 5v Micro-USB power source. After power up sensors wait 10 seconds for USB configuration session connection from android application or USB CDC terminal, if none is connected sensors turns off USB hardware and starts normal operation.

Data output

Format what you are usually getting from LoRaWAN is hex string, which you have to convert to bytes.
Then data output is in binary format is total 9-byte long:

  1. 2-byte 16-bit signed integer (divide by 100) Dielectric permittivity (ε) (Temperature corrected) resolution: 0.1ε (avg.Tolerance 5%) and range 1 (air) to 80 (water)
  2. 2-byte 16-bit signed integer (divide by 100) Electrical Conductivity (dS/m) resolution: 0.01 mS/m (avg.Tolerance 20%)
  3. 2-byte 16-bit signed integer (divide by 100) Temperature (°C) resolution: 0.1°C and range: -20 to 60°C (avg.Tolerance 3%)
  4. 2-byte 16-bit signed integer Volumetric Water Content (%) resolution:1% and range: 0 – 100% VWC Note: VWC is calculated from dielectric permittivity by Topp equation (Topp et al, 1980): θ = 4.3 ⋅ 10−6ε3 − 0.00055ε2 + 0.0292ε − 0.053)
  5. 1-byte Battery voltage percent: measures battery voltage and calculates percentage from 2v to 5v; To calculate actual battery voltage use equition: 2+0.03(battery reading). for example if battery measurement shows 50% ,then actual voltage is 2+0.0350=3.5v resolution: 1% and range: 2v – 0% to 5v – 100%

Device configuration via command line

LoRaWAN configuration may be done via USB CDC-ACM virtual com port with 115200 baudrate. Before configuration you need to switch off device and then connect to usb port of your computer. On linux it will be detected as /dev/ttyACM0 .

For linux permission settings please consult.

On Linux you may use minicom utility to configure sensor.

For windows PuTTY may be used.

We recommend Android mobile application for sensor setup and data reading/storage described in chapter 5.1.

Table 3.1.1 LoRaWAN device configuration commands

Command    Response Explanation
int <val> OK Setup data sens interval in seconds
appeui <val> OK Sets Device EUI for OTAA activation.
deveui <val> OK Sets Application EUI for OTAA activation.
key <val> OK Sets App Key for OTAA activation.
addr <val> OK Sets Device Address for ABP activation.
nwks <val> OK Sets Network Session Key for ABP activation.
apps <val> OK Sets App Session Key for ABP activation.
check <0/1> OK 0-Disable/1-Enable OTAA link check mode EU868 (helps reconnect device on gateway outage)
info config vals print this parameter setup values.
ver <version> print device type and version number

LoRaWAN Downlink message to update data sending interval

Device supports LoRaWAN downlink message for device sleep time (data sending interval) adjustment. Message should contain 5 bytes, 1st byte is Ox01 and following 4 bytes is unsigned 32-bit integer time in seconds to sleep. For example sending HEX 010000000A will set interval to 10 seconds, but 0100000E10 will set interval to 3600 secs = 1 hour.

Sensor calibration via Android application

Get it on Google Play

  1. remove battery, attach to phone
  2. open application & wait for  USB connected status or connect
  3. go to SETTINGS tab,
  4. hold sensor in the air – click button AIR
  5. submerge sensor in the water or soil with water, click button WATER
  6. go to MAIN tab click read to test calibrated values
  7. To connect to LoRaWAN, disconnect from phone and connect to battery or any (other then android phone) Micro-USB power source.

Sensor Connection to LoRaWAN gateway

1. remove device battery prior to connecting device via Micro-USB to phone or another USB power source.

2. in case you are setting your own configuration parameters from TTN or other LoRaWAN operators, input DeviceEUI, AppEUI, AppKey to device config app and click “SET” button for each value, then remove USB cable from device and reattach power source like battery or 5v USB supply to restart device. .

3. we included USB-OTG adapters for connection to android device, still you will require micro-usb charging cable for connection to device micro-usb connector (warning – battery should be removed while connecting to phone).

4. configuration app may be downloaded there

Demo Online Monitoring via Android application

Get it on Google Play

For LoRaWAN sensors data is streamed online via LoRaWAN gateways connected to TTN.

To enable online monitoring via your TTN connected gateway and Tinovi default App UID you should:

  • Click login in application main page, to signup with your google account.
  • Attach LoRaWAN sensor to phone’s USB OTG port, wait for status USB Connected and go to soil sensor application’s settings tab.
  • Click READ to read data from sensor or GENERATE button to generate new address data.
  • Input your device’s name without white spaces and click REGISTER OTAA button, to register device to cloud.
  • Your device should appear on main tabs sensor list. Chose your sensor in list to see data from sensor.

Soil Sensor Android application receives LoRaWAN sensors data via Tinovi zerver.io IoT cloud application. You may login to this dashboard tool using your google account and create nice dashboards to monitor your sensor data.

To connect to your TTN applicaiton:

  1. create new OTTA device within your applcaiton in TTN console, let TTN genrate DeviceEUI and AppKey:
  2. input from TTN DeviceEUI, AppEUI, AppKey: to device config app and click “SET” button for each value, then remove USB cable from phone.

Note: device are not connecting to LoRaWAN while in configuration mode, after configuration you need to disconnect from configuration app and reconnect to new power source like battery or external Micro USB power supply.

Note: after you connected to your own TTN application, data from device are not sent any more to our Android application via TTN, because we have no access to your application on TTN. So you have to create your own app integration with TTN.

TTN application payload format:

var bytesToInt = function(bytes) {

 var sign = bytes[0] & (1 << 7);

 var x = ((bytes[0] & 0xFF) << 8) | (bytes[1] & 0xFF);

 if (sign) {

    x = 0xFFFF0000 | x;

 }

 return x/100;

};

function Decoder(bytes, port) {

 var decoded = {};

 decoded.e25=bytesToInt(bytes.slice(0,2));

 decoded.ec=bytesToInt(bytes.slice(2,4));

 decoded.temp=bytesToInt(bytes.slice(4,6));

 decoded.vwc=bytesToInt(bytes.slice(6,8));

 decoded.bat=bytes[8];

 return decoded;

}

 

ANDROID APPLICATION

You may use any android phone supporting OTG host option to configure USB and LoRaWAN sensors.

For LoRaWAN sensors data is streamed online via LoRaWAN gateways connected to TTN.

To enable online monitoring you should:

  • Click login in application main page, to signup with your google account.
  • Attach LoRaWAN sensor to phone’s USB OTG port, wait for status USB Connected and go to soil sensor application’s settings tab.
  • Click READ to read address data from sensor.
  • Input your device’s name without white spaces and click REGISTER OTAA button, to register device to cloud.
  • Your device should appear on main tabs sensor list. Chose your sensor in list to see data from sensor.

Tinovi Soilsensor Android application receives LoRaWAN sensors data via https://zerver.io/graph IoT cloud application. You may login to this dashboard tool using your googles account and create nice dashboards to monitor your sensor data.

For USB sensor modification this application may be used as data logger, because it stores data readings to android flash memory and displays them to graphs. Data displayed in graphs may be copied to clipboard in CSV format and shared or saved to file.

Features
* Online LoRaWAN sensor monitoring via TTN connected gateways.
* Setup USB and LoRaWANTinovi soil sensors
* Write USB and LoRaWAN sensor data to phone memory
* View data on charts and export to CSV
* Source code is located there

Get it on Google Play

This android application allows easy to configure and monitor soil moisture sensors.

source code of mobile application is located on Github there.

!WARNING please remove device battery before attaching device to USB port for configuration. Leaving battery with attached USB power supply may damage battery or your device’s USB port.

!WARNING device waits for 10 seconds after power up for configuration terminal software connection. After terminal connection it remains in configuration mode until terminal software is disconnected.

!WARNING device joining mode OTAA or ABP is switched automatically on configuration when you setup OTAA or ABP parameter.

 

Additional information

Weight 0.3 kg
Dimensions 14 × 10 × 7 cm
LoRaWAN Frequency

EU868, US915, AU921