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
+19-12Lines changed: 19 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ Now on to the circuit assembly! Begin by grabbing the Arduino Nano RP2040 Connec
61
61
62
62

63
63
64
-
Then find the relay module, and a grove cable. You will need to cut the grove cable in half to expose the copper cable inside so you can connect it to the Screw terminal adapter. Connect the wires from the grove cable to the Nano Screw Terminal Adapter as follows:
64
+
Then find the relay module, and a grove cable. You will need to cut the grove cable in half to expose the copper cable inside so you can connect it to the Nano Screw Terminal Adapter. Connect the wires from the grove cable to the Nano Screw Terminal Adapter as follows:
65
65
66
66
- Black wire (-) to GND pin.
67
67
- Red wire (+) to 3.3V pin.
@@ -76,14 +76,14 @@ Now let's wire up the submersible pump. This pump runs on 5V, and draws more cur
76
76
77
77
***Note: These types of subermisible pumps can easily break if they're run without being submersed in water. In this project, a faulty pump might have a short circuit, causing the board to reset as soon as the pump is engaged.***
78
78
79
-
Now find the LED Grove button and a Grove cable. This cable also needs to be cut to expose the copper wire inside. The wires from the grove cable should be connected as follows:
79
+
Now find the LED Grove button and a Grove cable. This cable also needs to be cut to expose the copper wire inside. The wires from the Grove cable should be connected as follows:
80
80
81
81
- Black wire (-) to GND pin.
82
82
- Red wire (+) to 3.3V pin.
83
83
- Yellow wire to D5 pin.
84
84
- White wire to D4 pin.
85
85
86
-

86
+

87
87
88
88
Find the open ended USB cable, this will be used both to power the board through it's Vin pin, and the pump through the relay. Connect the black wire to GND, and connect the red wire, together with a separate jumper cable, to Vin. The other jumper wire that you just connected should be wired to the other screw terminal connector on the Relay module.
89
89
@@ -95,7 +95,11 @@ If you find this step hard, you can also use one of the loose screw terminals pr
95
95
96
96
The USB-cable can then be plugged into any USB port, on a laptop, or in a wall-adapter, as long as it can provide at least 500 mA at 5V. Most wall-adapters meet these requirements, so don't worry too much about finding the right one.
97
97
98
-
Lastly, find the moisture sensor and a grove cable. Connect it to the Nano Screw Terminal Adapter as follows:
98
+
Lastly, find the moisture sensor and a Grove cable. Taking a closer look at the Grove cable you will see that one side is a 3 pin connector (this goes into the moisture sensor), while the other end is a 4 pin connector (this will be cut off in the next step, we won’t be needing that).
99
+
100
+
Now you will need to cut the Grove cable to expose the copper wire inside so you can connect it to the Nano Screw Terminal Adapter but be careful not to cut it too short at the side that goes into the moisture sensor (3 pin connector). We recommend cutting the cable close to the 4 pin connector giving you the maximum cable length. If needed you can always shorten the cable afterwards.
101
+
102
+
Connect it to the Nano Screw Terminal Adapter as follows:
99
103
100
104
- Black wire (-) to GND pin.
101
105
@@ -109,11 +113,11 @@ Lastly, find the moisture sensor and a grove cable. Connect it to the Nano Screw
109
113
110
114
The complete circuit should look something like this:
111
115
112
-

116
+

113
117
114
118
If you are using the 3D-printed enclosure we provide a 3D-model for, now is a good time to fit the components inside if you haven't already. Use the standoffs to click the components into place.
115
119
116
-
In the top-cover of the enclosure you will find a hole that will fit the LED-Button. Simply push the button into place, it might take a little force but it will firmly click into place.
120
+
In the top-cover of the enclosure you will find a hole that will fit the LED-button. Simply push the button into place, it might take a little force but it will firmly click into place.
117
121
118
122
We recommend gathering the cables that will leave through the opening, and zip-tying them to the bottom of the enclosure using the two slits in the bottom-plate, this way it stays organised and is a little bit easier to close.
119
123
@@ -127,7 +131,7 @@ To connect your board to the Arduino IoT Cloud, we will use the [Plant Watering
127
131
128
132
See the image below to understand how to set it up.
***This section is for you who want to set up the cloud manually. For easy setup, use the template provided (see section just above).***
@@ -147,7 +151,7 @@ Begin by navigating to the [Arduino IoT Cloud](https://create.arduino.cc/iot/thi
147
151
148
152
**4.** Your Thing overview should now look like the following:
149
153
150
-

154
+

151
155
152
156
**5.** Go to the sketch tab, and use the following code:
153
157
@@ -294,7 +298,7 @@ void onWaterTimeChange() {
294
298
295
299
**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.
300
304
@@ -310,15 +314,15 @@ We have now assembled the hardware + configured the Arduino IoT Cloud, and we ar
310
314
311
315
**2.** Place the moisture sensor into the soil of the plant.
312
316
313
-
**3.** Place the pump inside a water container. Attach the plastic pipe to the pump, and place the other end into the plant pot. Place the enclosure with your electronics next to the plant. Your setup could now look like this: 
317
+
**3.** Place the pump inside a water container. Attach the plastic pipe to the pump, and place the other end into the plant pot. Place the enclosure with your electronics next to the plant. Your setup could now look like this: 
314
318
315
319
**4.** Finally, plug in a USB adapter into the wall. This will now power the entire setup, which should now connect to the IoT Cloud, via your Wi-Fi network. And that is it, you now have a Smart Garden setup!
316
320
317
321
## Usage
318
322
319
323
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)).
320
324
321
-

325
+

322
326
323
327
***In this dashboard, we have also added a chart widget to monitor the soil moisture over time.***
324
328
@@ -337,6 +341,9 @@ Let's take a look at what our Smart Garden can do. To control it, we can either
337
341
With a smart garden setup, you can easily monitor the environment of your plant, and water it remotely. In this tutorial, we have gone through the basic elements needed for achieving just that: but there are more things you can do. Below is a list of some fun ideas that you can do with your plant:
338
342
339
343
-**Automatic watering** - instead of watering your plant remotely, you can also activate the pump automatically whenever moisture drops too low. We do however think it is more fun to control it from a phone, but the choice is yours.
344
+
340
345
-**Cooling/heating fan** - With some more work, you can connect a cooling/heating fan. This can help you bring the temperature to a perfect level (some plants like it cold, some hot).
346
+
341
347
-**Humidifier** - a humidifier is an awesome component that increases the humidity (a perfect combo if you also add a humidity sensor).
342
-
-**UV lights** - a UV light allows you to grow plants even when there's no natural sun light
348
+
349
+
-**UV lights** - a UV light allows you to grow plants even when there's no natural sun light.
0 commit comments