Introduction: Easiest Arduino Smart Plant Watering
Last time we wrote intructable on how to make an automatic plant watering system with arduino and sensors, our article gained a lot of attention and great feedback.
Afterwards, we’ve been thinking how could we make it better. It seems as our office grown also the number of flower pots in the office grown as well, and we needed a better more friendly watering solution. We came up with easy-to-make solution that will let us water up to 4 plants with one node! That’s incredible. With the previous solution we could only water 3 and also we needed them to be located one next to the other, which made it less convenient.
Our Solution: Smart Pump Shield
We got frustrated with all the jumpers and prototype boards so we came up with idea to develop our own shield. The shield contains 5 relays – 4 for the water switching mechanism and another one for the water pump, it has dedicated Crowtail interfaces for our sensors which eliminate the need for jumpers and breadboards and make the kit easy and fun to use! You can also use it as normal without Crowtail connectors for other projects you might come with!
Step 1: Gathering the Parts
To Process this instructables we'll need to use “Crowtail smart pump kit” which the link to it can be found right
The Kit will include:
- x1 Crowtail Smart Pump Shield
- x1 Crowtail Water Pump
- x1 12V Adapter
- x1 one long water pipe (later we'll cut it to 6 pieces for our project)
You will also Need Crowduino Uno / Arduino Uno for the project
Why This Kit?
- Eliminate the need of breadboard and jumpers
- Less mess more productivity!
- Easy to use, just plug and play, anyone can do it!
- 12v connector for the pump and split into 5v for the arduino as well!
- Control up to 4 flowers at once with one shield!
Step 2: Uploading the Code to the Arduino Board
The next step will be uploading our code to the Arduino board,
we do it first because after connecting all the sensors and pumps it might get a little bit messy and difficult to connect, better do it now when you only have the board in your hand!
the code can be found at the bottom of this instructable, make sure that you choose Arduino Uno regarding the device you use (Arduino Or Crowduino Uno) in the ArduinoIDE.
If you are not familiar with Arduino, follow the following steps:
1. connect your Arduino board by USB to your computer
2. open Arduino IDE (if you don't have it, make sure to download it from their official website)
3. Open the project we gave at the bottom of the Instructable page
4. On top of the Arduino IDE choose "Tools > Board > Arduino UNO"
5. Click the V sign to verify the code and then right next to it the arrow-right button to push the code!
Step 3: Connecting the Shield to the Arduino Board
Easy as it sounds - the next step will be connecting our smart pump shield to the arduino board.
NOTE: When you putting them one on top the other and connecting them together, make sure to do it slowly and easily as the Smart pump shield pins might be a bit sensitive.
After putting them together - it should look exactly as the picture below
Step 4: Connecting the Pump and the Switch
The Next step will be connecting our 4 channels switch that will control the water direction and the pump,
Moving to the switch:
It's difficult to miss - the switch is the biggest interface on the shield. make sure you place it at the right direction and it should *click* Now we got both pump and the switch connected to the board successfully
We'll start from the water pump:
if you look closely at your board, there are 6 crowtail interfaces aligned one with each other, this is the sensors interfaces. next to that there is one small lonely interface, smaller than the other one's - that's the pump interface.
you'll know it's the right interface when it will fit - the pump is the smallest interface between them all.
Step 5: Connecting the Soil Moisture Sensors
The next step will be connecting the soil moisture sensors, we'll use this sensors to detect the soil level inside the plants and determine if they need water or not.
We'll connect it by using the 4 out of 6 Crowtail sensors interfaces, because we use 4/6 we can use the other two to give more advanced features to our project, few examples can be:
- adding light sensors to know if the plants get enough lights
- adding humidity sensor to detect if the humidity is alright
- temperature sensor to make sure it's not too hot or too cold
- rain sensor to detect if it's raining now and no need to water them and more ...
The order of the sensors is as following
- A0 - Flower number 1, in the switch it's the first one close to the water source interface
- A1 - Flower Number 2, in the switch it's the second one from the direction of the water source interface.
- A2 - Flower Number 3, in the switch it's the third one from the direction of the water source interface.
- A3 - Flower Number 4, in the switch it's the fourth one from the direction of the water source interface.
NOTE: Make sure it's correct else the pump will give water to the wrong flower!
Step 6: Connecting the Water Pipes
This step require to gather some scissors or knife.
we'll need to take the water pipe from the kit and cut it to 6 parts.
make sure the length is identical and better if the pipe that goes inside the water source (in our case it's a bottle of water) will be long enough to reach the water.
after we finish cutting it - it's time to connect them!
we'll connect 2 of them into our pump, one of the pump sides sucking the water while the other one pushing the water out. it might be confusing at first which one is which but if you look very very carefully on the pump it says "IN" and "OUT" the one that is "IN" should go to the water source while the one that is "OUT" should go to the switch.
After connecting the pump we'll need to wire it to our switch. the switch have 5 inputs. 4 of them are lined up, those are going directly to the flowers, the one that is on the left side, goes to the pump OUTPUT.
The switch works by closing a circuit at specific channel - it will let the water flow, if no circuit been closed, the water could not flow. we'll be opening the channels by the demand of the flowers to get water, that way - only the flowers that need in water, will get it.
Step 7: Powering It Up!
The Last step will be - Powering it up!
Now, this is one of the best features in our board. both the pump and the switch requires 12v input while the arduino can only stand 5v, so instead of supplying different power supplies to the arduino, the pump and the switch we made our shield to split the power between the arduino and the other devices. that way - the arduino will get 5v while the pump and the switch will get 12v.
NOTE: When connecting the power supply, make sure to connect it into the shield board and NOT the arduino. there is NO need in two power supplies as the shield will give power to the arduino as well.
We hope you find this instructable useful, easy and fun! we worked hard to make the most simple yet powerful kit, you can use the smart shield not only for this projects but for others too! let us know what will you make and the way you use our kit.
ArtūrsG5 made it!
We have a be nice policy.
Please be positive and constructive.
hi.great kit. but how can i modify the code so that the values from the sensors are displayed on a 16x2 LCD with I2C ? many thanks
How do you attach the pump shield to the Crowtail Uno? Are there certain pins which must enter other pins?
Or is there a video availabke?