You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/hardware/05.pro-solutions/solutions-and-kits/edge-control/tutorials/03.smart-irrigation-system-v2/content.md
+21-17Lines changed: 21 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
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."
4
4
difficulty: intermediate
5
5
tags:
6
6
- Irrigation System
@@ -10,7 +10,7 @@ tags:
10
10
- Arduino Cloud
11
11
- Agriculture
12
12
- WisGate Lite
13
-
- LoRaWAN®
13
+
- LPWAN
14
14
author: 'Christopher Mendez'
15
15
libraries:
16
16
- name: Arduino_EdgeControl
@@ -41,16 +41,16 @@ Smart farming techniques are being implemented more and more due to the importan
41
41
42
42

43
43
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.
45
45
46
46
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.
47
47
48
48
## Goals
49
49
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:
51
51
52
52
- 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.
54
54
- Monitor soil moisture and decide whether to irrigate based on it.
55
55
- Display the soil humidity level on the Edge Control Enclosure kit LCD.
56
56
- Manually activate irrigation through Enclosure Kit built-in push button.
@@ -134,7 +134,7 @@ The Edge Control is responsible for:
134
134
135
135
The MKR WAN 1310 is responsible for:
136
136
137
-
- Providing Cloud connectivity using LoRaWAN®.
137
+
- Providing Cloud connectivity using LoRa® technology.
138
138
- Reporting the values of the Edge Control sensors on the Cloud.
139
139
140
140
The communication between both devices is done leveraging the I2C communication protocol.
unsigned long previousMillis = 0; // will store last time the sensors were updated
212
212
213
-
const long interval = 180000; // interval of the LoRaWAN message (milliseconds)
213
+
const long interval = 180000; // interval of the LoRa message (milliseconds)
214
214
215
215
// Variables for the water flow measurement
216
216
volatile int irqCounts;
@@ -396,7 +396,7 @@ void loop() {
396
396
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.
397
397
Then, it will read the watermark sensors and periodically measure the battery voltage.
398
398
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.
400
400
401
401
Finally, in the loop function, we will check the valves states to control them and keep track of their active time.
402
402
@@ -411,7 +411,7 @@ There are three headers included in the project code that handles some helper fu
411
411
412
412
-`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.
413
413
-`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.
415
415
416
416
```arduino
417
417
#include "arduino_secrets.h"
@@ -427,7 +427,7 @@ There are three headers included in the project code that handles some helper fu
427
427
unsigned long previousMillis = 0;
428
428
const long interval = 3*60000; //180 second interval (3 minutes)
429
429
```
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.
431
431
432
432
```arduino
433
433
/**
@@ -521,15 +521,15 @@ The `uploadValues` function simply updates the Cloud variables with the ones rec
521
521
522
522
## Connectivity
523
523
524
-

524
+

525
525
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).
527
527
528
528
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).
529
529
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.
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).
535
535
@@ -569,11 +569,11 @@ Remember that the system is designed to be scalable; therefore, it is possible t
569
569
570
570
## Conclusion
571
571
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.
573
573
574
574
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.
575
575
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.
577
577
578
578
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.
579
579
@@ -585,3 +585,7 @@ We have a similar project using motorized ball valves, WiFi® connectivity and s
585
585
586
586
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.
587
587
588
+
## Trademark Acknowledgments
589
+
590
+
-**LoRa®** is a registered trademark of Semtech Corporation.
0 commit comments