Skip to content

Commit d78978c

Browse files
committed
LPWAN Irrigation System Using Arduino® Edge Control content update (images pass / source code updated)
1 parent 74fbc16 commit d78978c

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

content/hardware/05.pro-solutions/solutions-and-kits/edge-control/tutorials/03.smart-irrigation-system-v2/content.md

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: 'LoRaWAN® Irrigation System Using Arduino® Edge Control'
3-
description: "This application note describes how to control a four zones irrigation system using Edge Control and Arduino Cloud with LoRaWAN® connectivity."
2+
title: 'LPWAN Irrigation System Using Arduino® Edge Control'
3+
description: "This application note describes how to control a four zones irrigation system using Edge Control and Arduino Cloud with LoRa® connectivity."
44
difficulty: intermediate
55
tags:
66
- Irrigation System
@@ -10,7 +10,7 @@ tags:
1010
- Arduino Cloud
1111
- Agriculture
1212
- WisGate Lite
13-
- LoRaWAN®
13+
- LPWAN
1414
author: 'Christopher Mendez'
1515
libraries:
1616
- name: Arduino_EdgeControl
@@ -41,16 +41,16 @@ Smart farming techniques are being implemented more and more due to the importan
4141

4242
![Application Note Overview. Each pot represents one individual irrigation zone capable of watering a crop field](assets/Thumbnail.png)
4343

44-
Implementing traditional wired communication infrastructure in remote areas can be expensive and time-consuming. LoRaWAN®, being a wireless technology, provides a cost-effective alternative, as it requires minimal infrastructure setup, reducing installation and maintenance costs.
44+
Implementing traditional wired communication infrastructure in remote areas can be expensive and time-consuming. LoRa® technology, being a wireless technology, provides a cost-effective alternative, as it requires minimal infrastructure setup, reducing installation and maintenance costs.
4545

4646
Arduino has you covered in these scenarios with its Pro solutions, including products designed to work in remote environments, supplying their power from renewable sources, and providing long-distance connectivity and low power consumption.
4747

4848
## Goals
4949

50-
The goal of this application note is to showcase a LoRaWAN® farming irrigation system that can be implemented on real agriculture fields using a combination of an Edge Control, an MKR WAN 1310, and the Arduino Cloud. The project's objectives are the following:
50+
The goal of this application note is to showcase a LoRa® technology based farming irrigation system that can be implemented on real agriculture fields using a combination of an Edge Control, an MKR WAN 1310, and the Arduino Cloud. The project's objectives are the following:
5151

5252
- Independently control four irrigation zones using latching valves.
53-
- Leverage MKR WAN 1310 with LoRa® and a Wisgate (Lite or PRO) to communicate with Arduino Cloud.
53+
- Leverage MKR WAN 1310 with LoRa® technology and a Wisgate (Lite or PRO) to communicate with Arduino Cloud.
5454
- Monitor soil moisture and decide whether to irrigate based on it.
5555
- Display the soil humidity level on the Edge Control Enclosure kit LCD.
5656
- Manually activate irrigation through Enclosure Kit built-in push button.
@@ -134,7 +134,7 @@ The Edge Control is responsible for:
134134

135135
The MKR WAN 1310 is responsible for:
136136

137-
- Providing Cloud connectivity using LoRaWAN®.
137+
- Providing Cloud connectivity using LoRa® technology.
138138
- Reporting the values of the Edge Control sensors on the Cloud.
139139

140140
The communication between both devices is done leveraging the I2C communication protocol.
@@ -210,7 +210,7 @@ RunningMedian calibs{ calibsCount };
210210
211211
unsigned long previousMillis = 0; // will store last time the sensors were updated
212212
213-
const long interval = 180000; // interval of the LoRaWAN message (milliseconds)
213+
const long interval = 180000; // interval of the LoRa message (milliseconds)
214214
215215
// Variables for the water flow measurement
216216
volatile int irqCounts;
@@ -396,7 +396,7 @@ void loop() {
396396
The Edge Control will check the number of button taps for the valve's manual control and handle the right action to do through the use of a switch case statement.
397397
Then, it will read the watermark sensors and periodically measure the battery voltage.
398398

399-
Every 3 minutes, the Edge Control will request the MKR WAN to send a LoRaWAN® message updating the sensors values in the Cloud.
399+
Every 3 minutes, the Edge Control will request the MKR WAN to send a LoRa®-based network message updating the sensors values in the Cloud.
400400

401401
Finally, in the loop function, we will check the valves states to control them and keep track of their active time.
402402

@@ -411,7 +411,7 @@ There are three headers included in the project code that handles some helper fu
411411

412412
- `thingProperties.h` is automatically generated by the Arduino Cloud. However, if you are using an offline IDE, verify it is in the same directory as your sketch and includes all the Arduino Cloud variables.
413413
- `SensorValues.hpp` handles the shared variables between the Edge Control and the MKR WAN 1310 through I2C.
414-
- `arduino_secrets.h` includes the LoRaWAN® credentials of your device.
414+
- `arduino_secrets.h` includes the LoRa®-based network credentials of your device.
415415

416416
```arduino
417417
#include "arduino_secrets.h"
@@ -427,7 +427,7 @@ There are three headers included in the project code that handles some helper fu
427427
unsigned long previousMillis = 0;
428428
const long interval = 3*60000; //180 second interval (3 minutes)
429429
```
430-
We also define the I2C address of the MKR and the update interval for the LoRaWAN® messages. Due to the LoRaWAN® limitations, we shouldn't define "short" intervals.
430+
We also define the I2C address of the MKR and the update interval for the LoRa®-based network messages. Due to the LoRa technology limitations, we shouldn't define "short" intervals.
431431

432432
```arduino
433433
/**
@@ -521,15 +521,15 @@ The `uploadValues` function simply updates the Cloud variables with the ones rec
521521

522522
## Connectivity
523523

524-
![LoRaWAN® Gateways](assets/GATEWAY1.png)
524+
![LoRa® Gateways](assets/GATEWAY1.png)
525525

526-
This project is using LoRaWAN®, which stands for Long Range Wide Area Network, and it is a low-power wireless communication protocol designed for connecting battery-operated devices to the internet over long distances. If you want to learn more about LoRa® and LoRaWAN® check this [guide](https://docs.arduino.cc/learn/communication/lorawan-101).
526+
This project is using LoRa® technology, a long range wide area network protocol and it is a low-power wireless communication protocol designed for connecting battery-operated devices to the internet over long distances. If you want to learn more about LoRa technology, please check this [guide](https://docs.arduino.cc/learn/communication/lorawan-101).
527527

528528
The MKR WAN 1310 will be the **end-device** encharged of connecting to The Things Network (TTN), which is the network server supported by the Arduino Cloud. Learn how to connect the MKR WAN 1310 to TTN using this [guide](https://docs.arduino.cc/tutorials/mkr-wan-1310/the-things-network).
529529

530-
After following the guide you will get two important keys that will be needed for the LoRaWAN® connectivity `APP_EUI` and `APP_KEY`, define them in the `arduino_secrets.h` header of your MKR code.
530+
After following the guide you will get two important keys that will be needed for the LoRa® connectivity `APP_EUI` and `APP_KEY`, define them in the `arduino_secrets.h` header of your MKR code.
531531

532-
![LoRaWAN® network credentials](assets/CREDENTIALS.png)
532+
![LoRa®-based network credentials](assets/CREDENTIALS.png)
533533

534534
As a **gateway** we will be using the [WisGate Edge Lite 2](https://docs.arduino.cc/hardware/wisgate-edge-lite-2), which will provide long-range coverage and access to the network. Learn how to set up yours using this [guide](https://docs.arduino.cc/tutorials/wisgate-edge-lite-2/getting-started).
535535

@@ -569,11 +569,11 @@ Remember that the system is designed to be scalable; therefore, it is possible t
569569

570570
## Conclusion
571571

572-
In this application note, you have learned how to build a LoRaWAN® irrigation system to water your crops automatically or manually and monitor the crop's status remotely. Thanks to the soil moisture analysis, you can avoid irrigation when it's not necessary, saving water and avoiding over-irrigation or flooding problems.
572+
In this application note, you have learned how to build a LoRa® technology based irrigation system to water your crops automatically or manually and monitor the crop's status remotely. Thanks to the soil moisture analysis, you can avoid irrigation when it's not necessary, saving water and avoiding over-irrigation or flooding problems.
573573

574574
Arduino Edge Control allows you to easily implement this kind of agriculture systems ready for field deployment. Alongside MKR boards, it can get access to the network using the most suitable technology for your application.
575575

576-
In this project, LoRaWAN® was used leveraging its capabilities: this technology is perfect for remote deployments where there is no internet connection and for battery-powered devices because of its low energy consumption.
576+
In this project, LPWAN was used leveraging its capabilities: this technology is perfect for remote deployments where there is no internet connection and for battery-powered devices because of its low energy consumption.
577577

578578
Thanks to its capabilities of controlling different types of actuators and handling a vast variety of input sensors, the Edge Control is a great choice for developing robust and agriculture environment-proof solutions.
579579

@@ -585,3 +585,7 @@ We have a similar project using motorized ball valves, WiFi® connectivity and s
585585

586586
You can extend the capabilities of your Edge Control-based system by adding different connectivity options, leveraging the Arduino MKR family like WiFi®, GSM, RS-485 or Ethernet.
587587

588+
## Trademark Acknowledgments
589+
590+
- **LoRa®** is a registered trademark of Semtech Corporation.
591+

0 commit comments

Comments
 (0)