Skip to content

Commit c7bb756

Browse files
committed
Split up the assembly process into steps.
1 parent 61f622a commit c7bb756

File tree

8 files changed

+27
-17
lines changed

8 files changed

+27
-17
lines changed
74 KB
Loading
77.8 KB
Loading
80.8 KB
Loading
84 KB
Loading
88.1 KB
Loading
91.3 KB
Loading
91.9 KB
Loading

content/hardware/08.kits/maker/plant-watering-kit/tutorials/iot-smart-garden-setup-with-nanorp2040/content.md

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -62,47 +62,57 @@ OR
6262

6363
### Hardware & Circuit Assembly
6464

65-
Begin by connecting the Nano RP2040 Connect board to the Nano Screw Terminal Adapter. Then connect the relay, the pump, the button, and most importantly the power cable to power the entire system. The screw terminals on the Adapter are great for sturdily attaching wires to your Arduino board without needing to solder, just feed the wires into the hole on the side and clamp it down by tightening the related screw.
66-
67-
Take the open ended USB cable and connect the positive wire (+) to the VIN pin and the negative wire (-) to GND. 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.
68-
69-
Next, take the pump and connect the negative wire (-) to GND on the Nano Screw Terminal Adapter and connect the positive wire (+) to one of the screw terminals in the relay module, it doesn't matter which one.
70-
71-
Now connect the other screw terminal on the relay module to the VIN pin.
72-
7365
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.
7466

7567
![Twisting cables together](assets/cabletwisting.gif)
7668

77-
In case you want to place your plant further away from the electronics, we've included a loose set of extra screw terminals, that you can use to add more length to your cables. Just use wire cutters to clip off as many as you need and screw down the cables you want to connect together.
69+
In case you want to place your plant further away from the electronics, we've included a loose set of extra screw terminals, that you can use to add more length to your cables. Just use wire cutters to clip off as many as you need and screw down the cables you want to connect together. These can also be used to join cables instead of twisting, if you find that easier.
70+
71+
Now on to the circuit assembly! Begin by grabbing the Arduino Nano RP2040 Connect board, and pushing it into place on the Nano Screw Terminal Adapter.
7872

79-
Plug an open ended grove cable into the port on the relay module, the **cable ends** should be wired as follows:
73+
![Nano mounted on the adapter](./assets/step1.png)
74+
75+
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:
8076

8177
- Black wire (-) to GND pin.
8278
- Red wire (+) to 3.3V pin.
8379
- Yellow wire to D6 pin.
8480

85-
The **grove button** should be wired as follows:
81+
![Relay and split open Grove cable](./assets/step2.png)
8682

87-
- Black wire (-) to GND pin.
8883

89-
- Red wire (+) to 3.3V pin.
84+
Now let's wire up the submersible pump. This pump runs on 5V, and draws more current than an Arduino board can provide, so it needs to be powered by the USB wall adapter. This is why we need a relay acting as a power switch that we control with software. Connect the black wire from the pump to GND, and the red wire to one of the screw terminal connectors on the relay.
9085

91-
- Yellow wire to D5 pin.
86+
![Pump connected](./assets/step3.png)
9287

88+
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:
89+
90+
- Black wire (-) to GND pin.
91+
- Red wire (+) to 3.3V pin.
92+
- Yellow wire to D5 pin.
9393
- White wire to D4 pin.
9494

95-
The **moisture sensor** should be wired as follows:
95+
![LED Grove Button connected](./assets/step4.png)
96+
97+
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.
98+
99+
If you find this step hard, you can also use one of the loose screw terminals provided in the kit to connect the red wire from the USB cable to two jumper cables.
100+
101+
![USB wall adapter powering the project](./assets/step5.png)
102+
103+
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.
104+
105+
Lastly, find the moisture sensor and a grove cable. Connect it to the Nano Screw Terminal Adapter as follows:
96106

97107
- Black wire (-) to GND pin.
98108

99109
- Red wire (+) to 3.3V pin.
100110

101111
- Yellow wire to A0 pin.
102112

103-
### Circuit
113+
![Moisture sensor](./assets/step6.png)
104114

105-
Below is the complete circuit for this setup.
115+
The complete circuit should look something like this:
106116

107117
![Circuit for this project.](assets/circuit.png)
108118

0 commit comments

Comments
 (0)