Skip to content

AgroSense LoRaWAN® Sensor Instruction Manual

22.jpg

Product link: AgroSense LoRaWAN® Sensor

Feature

  • Compatible with Worldwide LoRaWAN® Networks: Support the universal frequency plan from 863MHz ~928MHz;

  • Long Range: At least 2km in urban scenes and 5 km in line of sight scenes.

  • Battery& Working time: Sensor hardware& firmware detailed designed for power control, with 2 pcs common AAA battery, working time at least 2 years.

  • Simple to Use: Provides LoRaWAN® DEV EUI/ APP EUI/ APP Key, enabling users to finish configuration in a few steps.

  • Cost-effective: With Makerfabs’ strong ability on production, we make this product cost-effective to users, for mass implement in field applications such as farm/greenhouse, etc.

Product model:

  • Barometric Pressure BP.png

  • Light Intensity LI.png

  • Temperature & Humility TH.png

  • Industrial Temperature IT.png

  • Soil Moisture SM.png

  • Carbon Dioxide(CO2) CO2.png

Usage

Step1:Battery Installation Open the product case, and insert two AAA batteries into the battery compartment. Press button Useror RST, if the LED does not light up, please check if the battery is dead and needs to be replaced or if the battery is installed backward. If LED flashes then the device is successfully powered up.

13.jpg

Step2:Server Configuration

Ensure your gateway works fine, and connect AgroSense LoRaWAN® Sensor to the IoT Server.

Step3: wall-mounted use Tighten the screws on the four corners of the case after putting the cover on, Wall mounting the product for use. 3.jpg

TTN configuration

  • Open The Things Network and register an account.

  • Create new applications in the console image.png

  • Select the correct region (Europe is recommended) image.png image.png

  • Click "Create application". image.png

  • Enter your device name, and click "Register end device", choose "Enter end device specifics manually" image.png

  • Select the three options as shown in the image below. c48fdf613cf7b6d9c781555a7619a515.png

  • On the AgroSense LoRaWAN® Sensor label, you can get DVE EUI, APP EUI, APP KEY data. Enter them in "Provisioning information" correctly.

AgroSense LoRaWAN® Sensor label <--> Provisioning information
APP EUI <--> JoinEUI
DEV EUI <--> DevEUI
APP KEY <--> AppKey
  • Click on device you registered, you can see if the device is connected successfully image.png

  • Press AgroSense LoRaWAN® Sensor's Botton User and wait a few seconds after led flashes, if you find that led flashes a second time, it proves that the network connects successfully.

Configure the Decoder

Navigate to Payload formatters, select Formatter type to Custom Javasript formatter, Then select the type of product and copy the following code:

Agrosense-Decoder

Parsing data

After the TTN acquires the data, please parse the data according to the data format to obtain the sensor data.

AgroSense_Barometric Pressure Sensor

image.png bp_d.png

Example: 0x00, 0x02, 0x1C, 0x00, 0x9A, 0x7E, 0xAA, 0x00, 0x00

Data parsing:

  • Battery voltage is 2.8 V.

  • Atmospheric pressure is 101249.70 Pa

AgroSense_Light Intensity Sensor

image.png li_d.png

Example: 0x00, 0x03, 0x1D, 0x00, 0x00, 0x22, 0xD4, 0x00, 0x00

Data parsing:

  • Battery voltage is 2.9V.

  • Light Intensity is 89.16 lx

AgroSense_Air Temperature and Humidity Sensor

image.png th_d.png

Example: 0x00, 0x04, 0x1D, 0x01, 0x89, 0x00, 0xF8, 0x00, 0x00

Data parsing:

  • Battery voltage is 2.9V.

  • Humility is 39.3%

  • Temperature is 24.8 ℃.

AgroSense_RTD PT1000 Temperature Sensor

image.png itd.png

Example: 0x00, 0x03, 0x1D, 0x00, 0xB8, 0x00, 0x00, 0x00, 0x00

Data parsing:

  • Battery voltage is 2.9V.

  • Industrial Temperature is 18.4 ℃

AgroSense Soil Moisture Sensor

SM_DATA.png

Example: 0x00, 0x08, 0x05, 0xC7, 0x1E

Data parsing:

  • Soil ADC value is 1479.

  • Battery voltage is 3.0V.

AgroSense-carbon dioxide(CO2) sensor

wiki.png

Example: 0x00, 0x01, 0x28, 0x02, 0x06

Data parsing:

  • Battery voltage is 4.0V.

  • CO2 is 518 ppm

Data Parsing to ThingSpeak

1.1 Create a Channel: - Log in to ThingSpeak.
- Click on “My Channels”.
- Click on “+ New Channel”.
- Fill in the Channel name and field names (e.g., Field1: Temperature, Field2: Humidity).
- Click on “Save Channel”.

thingspeak1.png

1.2 Obtain the Write API Key:

  • Open the newly created Channel.
  • Click on the “API Keys” tab.
  • Copy the “Write API Key”.

thingspeak2.png

2.1 Configure Payload Formatter:

  • In the device details page, click on the “Payload Formatters” tab.
  • Click on the “Uplink” tab.
  • Select “Custom JavaScript Formatters”.
  • Write JavaScript code to parse the binary data sent from the device.

ttn1.png

2.2 Configure Webhooks:

  • In the application page, click on the “Integrations” tab.
  • Select “Webhooks”.
  • Click on “+ Add webhook”.
  • Choose the “ThingSpeak” template.
  • Fill in the following information: Webhook ID: Any unique ID. Channel ID: Your ThingSpeak Channel ID. API Key: Your ThingSpeak Write API Key.
  • Click on “Create ThingSpeak webhook”。

ttn2.png