Close
0%
0%

Greenhouse Monitoring System - LoRa IoT

Monitoring parameters of Greenhouse located at remote location (with no Internet Connectivity), using LoRa IoT

Public Chat
Similar projects worth following
In modern Smart Greenhouse Systems - IoT based Monitoring solutions uses different wired or wireless technologies like Wi-Fi, Bluetooth, ZigBee, RF etc. for data communications. Cellular/GSM services also used for sending data to Internet cloud or any other distant monitoring locations.

But sometimes there may be areas where no signal/coverage of cellular services available. Now suppose, a farmer who has big cropland spread in multi-hectares. A big greenhouse is built in it. In such case use/installation of above wired/wireless technology infrastructure will not cost efficient. In this case use of LoRa wireless technology can play important role in communication.

Proposed Solution- Our Solution is for the areas where there is neither coverage of Cellular/GSM nor LoRaWAN IoT Networks like, Semtech, The Things Network etc. **Since our area has very poor connectivity of LoRaWAN Gateways, we will consider (Peer-To-Peer) Network scenario for implementation of project.

Greenhouse, also called glasshouse, building designed for the protection of tender or out-of-season plants against excessive cold or heat.

A greenhouse is a safe haven for plants. It reduces the accessibility of insects and animals that have the potential to damage or destroy your plants. Greenhouse environment reduces exposure to extreme weather conditions such as torrential rain and droughts.
pexels-mark-stebnicki-2886937.jpg
Greenhouse - Image Courtesy (pexels-mark-stebnicki)


The importance of greenhouses - Inadequate food supply due to high population growth is a global threat. Due to major issues like climate change soil erosion and biodiversity loss etc. Food production by conventional means is not sufficient. Therefore, agricultural production in a greenhouse with highly controlled environmental conditions is expected that the production contributes to a stable supply of agricultural commodities regardless of the weather.

Problem Statement -

In modern Smart Greenhouse Systems - IoT based Monitoring solutions uses different wired or wireless technologies like Wi-Fi, Bluetooth, ZigBee, RF etc. for data communications. Cellular/GSM services also used for sending data to Internet cloud or any other distant monitoring locations.

greenhouse_diagram.png
Avnet’s Smart Greenhouse Monitoring Solution (Image Courtesy Avnet, Inc)

But sometimes there may be areas where no signal/coverage of cellular services available. Now suppose, a farmer who has big cropland spread in multi-hectares. A big greenhouse is built in it. In such case use/installation of above wired/wireless technology infrastructure will not cost efficient. In this case use of LoRa wireless technology can play important role in communication.

But sometimes there may be areas where no signal/coverage of cellular services available. Now suppose, a farmer who has big cropland spread in multi-hectares. A big greenhouse is built in it. In such case use/installation of above wired/wireless technology infrastructure will not cost efficient. In this case use of LoRa wireless technology can play important role in communication.

There are several LoRaWAN based Smart Greenhouse monitoring services, provided by reputed companies. for example Seeed Studio's SenseCAP LoRaWAN Wireless Network Solution. and Laiwu Tropical Fruit Cultivation Project based on it. In these solutions subscription to LoRaWAN IoT Gateways and LoRaWAN IoT Networks is mandatory in order to get connected to global cloud.

Proposed Solution- Our Solution is for the areas where there is neither coverage of Cellular/GSM nor LoRaWAN IoT Networks like, Semtech, The Things Network etc. **Since our area has very poor connectivity of LoRaWAN Gateways, we will consider (Peer-To-Peer) Network scenario for implementation of our project as more sophisticated than LoRaWAN.

m2e-proj--scenario-2.png

Our solution is simple design of P2P LoRa Network which consist of one Node (End Node) deployed at Greenhouse which collect (Different sensors data) send it to another Node (Gateway) via LoRa. This DIY Gateway has same working principle as of professional LoRaWAN Gateways, which is to receive whatever (LoRa) data coming from End node and then connect it to mainstream IoT cloud/Internet.

m2e-proj--scenario-1.png
Project scenario - (areas where neither coverage of Cellular/GSM nor LoRaWAN IoT Networks)


Sometimes, where there is very low coverage of cellular services. like a remote villages in underdeveloped countries. Deploying IoT based solutions in a such areas is very challenging task. Here LoRa technology can play important role. Let me show you one scenario (Shown in above Image) which we can implement as solution using LoRa.

  • Suppose there is a farmer, who’s large agricultural land is in village or in area which comes in shadow "region C" (as shown in above image), means, area which have no connectivity of Wi-Fi, GSM, Cellular or Ethernet. This region can be 5 to 10 miles away from bigger cities or towns where good connectivity to internet is available. Now Suppose, there is a Green House in area...
Read more »

Portable Network Graphics (PNG) - 649.63 kB - 07/03/2023 at 15:23

Preview
Download

Portable Network Graphics (PNG) - 611.97 kB - 07/03/2023 at 15:23

Preview
Download

Portable Network Graphics (PNG) - 875.16 kB - 07/03/2023 at 15:23

Preview
Download

Portable Network Graphics (PNG) - 987.38 kB - 07/03/2023 at 15:23

Preview
Download

  • 1 × NodeMCU ESP8266 Breakout Board
  • 1 × Arduino UNO
  • 1 × Reyax RYLR998 LoRa Transceiver Module
  • 1 × DHT22 Temperature Sensor
  • 1 × Analog Soil Moisture Sensor

View all 8 components

  • Log-2 (Demo)

    make2xplore07/03/2023 at 15:48 0 comments

    In demo - We have also tested transmission range/coverage for RYLR998. We kept the transmitter section at fixed location and, moved the receiver away for distance of 1-6 Kilometers.

    In ideal open space, (Line of sight) we got good reception of LoRa almost upto 6 to 7 Kilometers.

  • Log-1

    make2xplore07/03/2023 at 15:46 0 comments

    Added Project details - Problem Statement, Components, Functional Block Diagram, Schematics, Hardware setup, Software Setup, GitHub Repo.

    Check out our detailed review video, in which we have explicated detailed review of these amazing LoRa Transceiver Module. RYLR998, Manufactured by the ReyaxTechnology. We have seen its unboxing, Features, specifications, Datasheets, AT commands configuration guide, and, We have also seen demo of serial configuration of these boards via AT commands.

View all 2 project logs

  • 1
    All Instructions

    Project scenario - With Components

    m2e-proj--scenario-4.png
    Project scenario - With Components

    Here is the pictorial representation of the project assembly. There will be a Transmitter and Receiver sections.

    • In transmitter part, we will connect Node MCU ESP8266, to LoRa Module RYLR998 through serial interfacing.
    • And On receiver side, another ESP8266 is connected with Reyax LoRa module. Which will act as a LoRa Receiver or Gateway.
    • Here transmitter side sends these environmental parameters readings to receiver through LoRa. At regular interval of time.
    • The receiver or Gateway receives those readings and upload it to cloud. Which then can be accessed by farmer from his cellphone or PC. So he can monitor the greenhouse.
    • Also, at greenhouse, we will implement some basic level automation for irrigation system. Therefore, As soon as soil moisture level falls below certain level, Water pump will get start, and, It will circulate water to the plants.
    • All this communication of LoRa, can be achieved using LoRa transceiver Module RYLR998.
    m2e-proj-block-dia-2.png
    Project - Functional Block Diagram
  • 2
    Hardware -1

    Hardware overview -

    Getting started with RYLR998 module. This module is a UART Interface enabled 868/915 MHz LoRa, with Antenna Transceiver module. You can know more about this module and download the datasheets from its Product Page.

    m2e-proj-RYLR998.png

    How to configure/Program -

    There are two main ways to utilize the RYLR998 module.

    • First is, interfacing it with USB to Serial TTL adapter module, then connect it to PC via USB and control by AT commands. You can use any serial communication software to send AT commands and read data from the boards.
    make2explore-RYLR998-serial.png

    • Then second method is connecting RYLR998 to another mainboard via UART and control by AT commands. For example, connect RYLR998 to Arduino Uno via UART, and send AT commands and read data from Arduino Uno through Arduino IDE’s serial monitor.
    make2explore-RYLR998-serial-res.png

    You can refer AT commands Guide given by Reyax for more details about command sequence to configure this LoRa module.

    image.png

    This document of AT commands Guide also have detailed explanation of each command. Like following SEND command, used to send the data from transmitter to receiver

    image.png

    In above sequence of using AT Commands, Network ID is important command, which Set the network ID for the given device. As we seen earlier that we are going to program our Project in P2P LoRa networking mode. For that we have to set same Network ID of both [Transmitter and Receiver(Gateway) device]. Please refer following figure for more details

    m2e-proj--P2P.png

    You can see here, in this diagram. There are two different LoRa networks. Network 1, and, Network 2.

    • Each node in Network should have unique Address.
    • Nodes with same Network ID’s, can talk to each other.
    • Also, Lora frequency band should be correct, as per standard frequency for respective country, or region.

  • 3
    Hardware-2
    Lora-bands-IN868-b.png

    • Here, please note that, you have to set the Lora frequency or band, as per your country and region. As we are testing it in India, we have set it as Standard IN865 band. likewise, you have to set it as per your countries LoRa Standard allocated by LoRa Alliance.
    • **Here, very IMP, note that, Nodes from different networks, means, with different Network ID’s, can not communicate with each other.
    • So, In this project, we have configured both transmitter and receiver with same frequency band, same Network ID, and, different addresses.
    • Therefore, we can say, for proper LoRa communication between two nodes, LoRa trans receiver device should be configured with these three parameters. As shown in above image. i.e. Band, Network ID and, Device Address on Network.
    RYLR998-CS2.png

    • Hence in Code, Before starting communication between two LoRa nodes, we need to run specificsequence of commandsto configure RYLR998 Module in LoRa Transmitter and LoRa Receiver Modes.
    RYLR998-CS.png

    • Then at receiver, you have to run +RCV command if you want to show the receive data actively on terminal window. (Optional step)
    image.png

    • You can use.readString(); to save the received data into string variable, like shown in code snippet of receiver node, as following

View all 4 instructions

Enjoy this project?

Share

Discussions

make2xplore wrote 07/03/2023 at 15:49 point

Future Experiments -

Currently Transmitter node is only programmed to act as a sender, so it only gather all parameters and send to receiver node(Gateway) via LoRa. But it can also enhanced to work in Ping-pong mode (Full Duplex mode), means It can transmit data as well as receives some command to control the environment. If this is possible then we can tweak with the existing edge level automation, configuration, can add notification systems and so on.

Credits -

Thank you Reyax Technology, for supporting this project with hardware. Furthermore we'd like to thanks to all the peoples, websites and entities who helped us (directly/indirectly) in this project.

Suggestions about Project design, Circuits, source code modifications, Optimization, Errors/Bugs findings and queries are most welcomed.

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates