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/08.kits/maker/plant-watering-kit/tutorials/iot-smart-garden-setup-with-nanorp2040/content.md
**Water your plants from anywhere using the Arduino IoT Cloud**
25
16
26
17
Decorating your home with plants is an easy way to bring some life into your day-to-day. The only problem is - those plants need water to survive, and if you forget to pay attention to them for a while you may need to start over. So instead of staying ever vigilant, why not spend an afternoon creating a setup that will let you both monitor the amount of moisture in your plants soil, and water your plants from afar using the [Arduino IoT Cloud](https://docs.arduino.cc/cloud/iot-cloud)?
27
18
28
-
### In a Nutshell
19
+
In this tutorial we will learn how attaching an external relay to the Arduino Nano Screw Terminal Adapter lets you control circuits that are powered separately. We will be using a relay module attached to the Arduino Nano Screw Terminal Adapter to control a pump, providing water for one of our plants from the Arduino IoT Cloud thanks to the functionality of the Arduino Nano RP2040 Connect.
29
20
30
-
Attaching an external relay to the Arduino Nano Screw Terminal Adapter lets you control circuits that are powered separately. In this tutorial we will be using a relay module attached to the Arduino Nano Screw Terminal Adapter to control a pump, providing water for one of our plants from the Arduino IoT Cloud thanks to the functionality of the Arduino Nano RP2040 Connect.
* A few spare jumper cables just in case you need them.
54
51
55
-
56
-
### Learning Goals
57
-
58
-
* Introducing the Arduino IoT Cloud
59
-
* Introducing the Arduino IoT Remote app
60
-
* Managing sensors with the Arduino IoT Cloud
61
-
* Creating an Arduino IoT Cloud Dashboard
62
-
63
-
### Hardware & Circuit Assembly
52
+
## Hardware & Circuit Assembly
64
53
65
54
There are cases were multiple wires are going into the same screw terminal, you may find it easier to get them in at the same time if you twist them together before trying to insert them.
66
55
@@ -126,11 +115,15 @@ We recommend gathering the cables that will leave through the opening, and zip-t
126
115
127
116

128
117
129
-
### IoT Cloud Setup
130
-
118
+
## IoT Cloud Setup
131
119
If you are new to the Arduino IoT Cloud, check out our [Getting Started Guide](https://docs.arduino.cc/arduino-cloud/getting-started/iot-cloud-getting-started).
132
120
133
-
***Note: We also provide a template which you can use to get started without the need to configure the entire IoT Cloud setup manually. Click [here](https://create.arduino.cc/iot/templates/plant-watering-kit) to check out the IoT Cloud Template for an automated setup process.***
121
+
### Template
122
+
We also provide a template which you can use to get started without the need to configure the entire IoT Cloud setup manually. Check out [IoT Cloud Template](https://create.arduino.cc/iot/templates/plant-watering-kit) for an automated setup process.
Begin by navigating to the [Arduino IoT Cloud](https://create.arduino.cc/iot/things). You will need to have a registered account with Arduino to use it. Follow the steps below to set up the Arduino IoT Cloud.
136
129
@@ -140,15 +133,15 @@ Begin by navigating to the [Arduino IoT Cloud](https://create.arduino.cc/iot/thi
| waterTime | int | How long the pump should run (seconds) | Read & Write |
145
-
| moisture | int | Read moisture | Read Only |
146
139
147
140
**3.** Enter the credentials to your Wi-Fi network in the network section.
148
141
149
142
**4.** Your Thing overview should now look like the following:
150
143
151
-

144
+

152
145
153
146
**5.** Go to the sketch tab, and use the following code:
154
147
@@ -295,7 +288,7 @@ void onWaterTimeChange() {
295
288
296
289
**7.** Inside the dashboard view, click on **"Add"** then **"Things"** and select your Thing. This will generate a list of widgets and you can click on **"Create Widget"** to complete it. You should now see something similar to this dashboard:
Once you see the values changing, we know that the connection is successful, and we can monitor and interact with our device.
301
294
@@ -319,7 +312,7 @@ We have now assembled the hardware + configured the Arduino IoT Cloud, and we ar
319
312
320
313
Let's take a look at what our Smart Garden can do. To control it, we can either use the dashboard in the Arduino IoT Cloud, or the Arduino Remote app ([Playstore](https://play.google.com/store/apps/details?id=cc.arduino.cloudiot&hl=en&gl=US) / [Appstore](https://apps.apple.com/us/app/arduino-iot-cloud-remote/id1514358431)).
321
314
322
-

315
+

323
316
324
317
***In this dashboard, we have also added a chart widget to monitor the soil moisture over time.***
0 commit comments