How to make Automatic Plant Watering System using Arduino UNO and Soil Sensor || Techie Lagan
ฝัง
- เผยแพร่เมื่อ 28 เม.ย. 2024
- How to make Automatic Plant Watering System using Arduino UNO and Soil Sensor
Circuit Diagram - drive.google.com/file/d/1j3X4...
Arduino Code ( For Computer) - drive.google.com/file/d/1H0Dk...
Arduino Code ( For SmartPhone) - drive.google.com/file/d/1t4kA...
Hey guys,
In this video I have shown you that how you can make your own Automated Water Irrigation System for your small Garden or any Potted Plant using simple Arduino UNO Board ,a Soil Sensor and a 5 Volt Relay Module. I have also explained everything regarding Soil Moisture Sensor and Automatic Plant Watering System. This entire project is very simple and if you don’t even have little bit of knowledge about Arduino devices then also you can make this easily within 15 -20 minutes. This can be used for school and college minor projects.
For more watch the entire video carefully.
Materials Required :-
1. Arduino UNO - amzn.to/3I6u9uo
2. 5 Volt Relay Module - amzn.to/3MgP9NT
3. Water Pump and tube/pipe - amzn.to/3xxswQS
4. Soil Moisture Sensor - amzn.to/3uOWXjR
5. Jumper Wires - amzn.to/3LcBYhP
00:00 - Intro
00:11 - Materials Required
00:33 - Programming Arduino
00:52 - Connections
03:49 - Demonstration
05:06 - Outro
Products I use:
Laptop(HP pavillion 15): amzn.to/3LnHsFg
Keyboard: amzn.to/3Ko2Mt0
Gaming Mouse: amzn.to/3KkFRyI
Phone: amzn.to/38us6Ac
Maono AU-400 Lavalier Mic: amzn.to/3OCyPJd
Gaming Earphone(SpinBot BattleBudz) : amzn.to/3OFH07l
My social media links:-
Facebook Profile -
Instagram - / techielagan
------------------------------
Coco Islands by Scandinavianz / scandinavianz
Creative Commons - Attribution 3.0 Unported - CC BY 3.0
Free Download / Stream: bit.ly/3hEhxNp
Music promoted by Audio Library
• Coco Islands - Sc...
------------------------------
🎵 Track Info:
Title: Coco Islands by Scandinavianz
Genre and Mood: Dance & Electronic + Happy
---
🎧 Available on:
Spotify: spoti.fi/3B2SxHm
Deezer: deezer.com/us/track/1280369472
TH-cam:
• Scandinavianz - C...
SoundCloud: / . .
TH-cam Music:
• Scandinavianz - C...
---
😊 Contact the Artist:
Scandinavianz:
thescandinavianz@gmail.com
/ scandinavianz
deezer.com/us/artist/14992019
open.spotify.com/artist/4iZxN...
/ @scandinavianz
itunes.apple.com/us/artist/sc...
play.google.com/store/music/a...
/ thescandinavianz
/ scandinavianz
/ scandinavianz
---
===================================
Thanks For Watching
✅LIKE ✅SHARE ✅ COMMENTS✅ SUBSCRIBE
#TechieLagan #SoilSensor #SoilMoistureSensor #AutomaticPlantWateringSystem #ArduinoProject #HowtoMakeAutomaticPlantWaterngSystemUsingArduinoUNO #HowtoMakeAutomaticPlantWaterngSystemUsingArduinoUNOandSoilMoistureSensor #CreateWithCare - วิทยาศาสตร์และเทคโนโลยี
int water; //random variable
void setup() {
pinMode(3,OUTPUT); //output pin for relay board, this will sent signal to the relay
pinMode(6,INPUT); //input pin coming from soil sensor
}
void loop() {
water = digitalRead(6); // reading the coming signal from the soil sensor
if(water == HIGH) // if water level is full then cut the relay
{
digitalWrite(3,LOW); // low is to cut the relay
}
else
{
digitalWrite(3,HIGH); //high to continue proving signal and water supply
}
delay(400);
}
Sir ...I connected all and the motor is running...but when I put sensor in the mud or water motor also running it doesn't on or off ...what can I do for this problem plz solve this 🙏
@@khadizayesminnodi8786 I had this problem until I fixed the code
void setup() {
pinMode(3, OUTPUT); // output pin for relay board, this will send signal to the relay
pinMode(6, INPUT); // input pin coming from soil sensor
}
void loop() {
int water = digitalRead(6); // reading the signal coming from the soil sensor
if (water == HIGH) { // if water level is low (i.e., soil is dry) then turn on the relay
digitalWrite(3, HIGH); // high is to turn on the relay
} else { // if water level is high (i.e., soil is wet) then turn off the relay
digitalWrite(3, LOW); // low is to turn off the relay
}
delay(400);
}
Enter this code, most likely the problem will be solved
@@amirreza33 same issue is coming for me
@@chvinaykumar245 is it solved or not?
@@chvinaykumar245plz reply bro
Put a toilet cistern on wall when it needs filling it will do it as the float lowers & a 12vdc solenoid when the dirt become dry it switches on solenoid & allows water to flow from cistern down through solenoid make a ring with small 5-6mm poly garden hose & tee to connect to solenoid output drill some 1mm holes in underside of the poly tube ring (holes face down to soil) when soil becomes damp enough it switches water solenoid off until soil becomes dry again
This saved my semester. THANK YOU!!!!
Kaise banaya apne
I love you more than our university and the lectures😘🥺♥️♥️ also the uni guys
This is very easy to understand. Thank you very much 🙏🏾
😂
Kese banaya
Reply karo
Kese banaya
Thank you lagan , you're my savior
Thank you man , for you i could do my project for tecnology 😃❤
hi sir , can I use esp8266 for this project ?
Working perfectly fine. Thanks a lot ❤
Thank you soo much for your help 🙏🙏 👌
TOMORROW I HAVE MY SCIENCE EXHIBITION IN SCHOOL SO PLEASE A VIDEO ON HOW TO EXPLAIN THIS WITH DETAIL TO THE TEACHER TO THIS EXHIBITION
Can we connect a 16x2 i2c display with it.pls reply and suggest connection and code
Thanks bro this was helpful i am really happy 😊 Thanks 👍👍
Thanks broo. But I have one simple question can you explain me please. Question is solar powered smart Irrigation using IoT project title, which project is possible?? Please reply me 🥺
Thanks you My brother, You just saved my semester. (I'll be here supporting you)
hi. we're students too, could u help us out.
Very professional work, Thanks my friend ❤️❤️👌👌
why the coding cant'run? Is there a file that I need to upload in the arduino?
Hi just wondering if you have the schematic sketch for this product
That was so helpful and easy to understand
Thank you!!!
maybe for curry eaters
who asked
thanks bhaiya ye video mera kam aya
nice video, if there is a compeleted automatic drip irrigation kit with only quick-dial control, will be more helpful for family daily using?
I completed my project by seeing your video bro--------ilane recchipo bro
thanks for the video , it is working for me
Thank u very much, this is going to help me in my project
Glad I could help
Wow very good
Thank u so much for your support to complete this project this is so helpful thanks a lot☺️
Bro input me current kitna aur lga se dena h
Could please explain what is the 5V supply that you connected to the relay and the water pump? I don't understand. This is my first project like this. Thank you!!!
@@carinarus3671battery 9 volt
How can use this in multi plant pots? Example if I have 4plant pot then how?
La conexión del rele y el cable que adheriste al último, son para la fuente de 12v?
You save my exam
Very nice video
Loved it
U did really good it was awesome keep it up bro😊😁
Thanks..
@@TechieLagan can you help me
Hlo @@TechieLagan
Yes !!
Sir donwe have to give external supply to the relay and pump please replay
Keep it up bro👍🏻👍🏻🔥🔥
Thanks ....
if i want lcd display,how the connector?because my final project it same like this but its must add lcd.can you help me please
Very Helpful!! Worked for me. Thanks
Hi. Could you tell us how it worked for you? We did everything right but it still dosent work! :(
Hello, I have a queation aobut Soil Moisture Sensor, why my Soil Moisture Sensor touch the water but water pump won't stop? I also print the value of the moisture. the value is keep in value=0, is my moisture is broken?
sir thank you so much very nice explanation and implementation .This same project how we can implement in BLYNK???
Can we use pro mini arduiuno?
Excellent...I m completely novice. Can you help how does Arduino / programming etc work.
Hello, thanks for your tutorial, if I'm using a 12V power source and a 12V water pump, can I still use the 5V relay module?
Yes you can .
There is no problem.
@@TechieLagan and we dont need to use any transistors or resistors?
In relay NO and COM connected or NC and COM to motor ?
and motor needs to be in the water to rotate or for the test, will it rotate in the air too?
NO and COM.
No need to put it in water.....
@@TechieLagan Thank you sir ❤️❤️❤️❤️
sorry sir, can u help me, my relay just red LED is on, but the green one is no. and relay for pump is not working (even the sensor is wet or not wet). my coding exactly same just like the this youtube.
Because of you, my project was successful. Thank You very much for giving me this idea
Bro input pe supply kse aur kha se denge
Can you tell me more about this project?
Battery operator ?
the code is not working
If you're a student could u pls help us out.
?
hello! How could i add a hc-05 bluetooth module to this? what pins should i change and how would the new code look like?
Hello friend, thank you for the video. Can we submerge the sensor quite deep in the soil and wrap the sensor and the cable connection with electrical tape? Thank you for the kind response.
Yes
THANK YOU MAH FRIEND
Op bro 😀
Where did you connected realy module wires? mention clearly..Any other external connections are required to realy module??
Hi, any further enhancements can be made to this project? Please make a video if possible.
Sure, I will try to make it.
Very nice
2:48 you havent show that an extra power supply is needed??
What is that green wire you connect to the relay module
That is connected to the battery.
Sometimes the powersupply from the relay is not sufficient enough to power the motor pump. In that case, modify the following connection:
1) NO pin of relay-->one end of the motor pump
2) COM pin of relay--> -ve external power supply
3) Other end of motor pump --->+ve power supply.
Rest all the video is perfect!
Sir we hv uploaded the program but then we r not getting port for it .plz guide
I will replace this sensor wirh rtc ds3231 can you explane how to much ?
Bro can we put led in which will show moisture level and if pump on
Can you give me tha code
We have copy pasted the code and tried to upload the code but it shows that the upload is failed. Please help.
Do we need to connect the two end of the relay module with a battery?
up!
Could please explain what is the 5V supply that you connected to the relay and the water pump? I don't understand. This is my first project like this. Thank you!!!
It is a power bank . You can also use 9 volt battery instead of it.
@@TechieLagan So I have to cut the cable that goes in the power bank and connect the wires to the relay? Sorry if this is a stupid question but I's still trying to learn. Thank you!
Yes you have to cut the cable and do the connection.
And there is nothing wrong in asking questions whether it is small or big..
Infact I should be sorry for not being able to explain that part more elaboratly in the video....
@@TechieLagan Thank you so much! Have a great day!
My pleasure 🥰.
what can I use other than a 5 volt power supply as the connector of the 2 red and green wires that connects to the relay and motor?
U can use an old phone charger or a power bank or
A 9 volt battery .....
@@TechieLagan can you give me your phone number i need to your help
@@TechieLagan will arduino blast
No but if you provide more than 12 volts then there may b a little spark in the microprocessor and the whole Arduino may stop working.
Need drainage holes in that pot you’ll drown it & as for the sensor 2 separate stainless steel tube’s one either side of pot
please also tell how did u power the whole system? and where was the power lines connected
Yeah
Tanpa sensor pelembab, pake set waktu bisa gak min
Can i directly use a nine volt battery here?
How can we upload the code to arduino while uploading code it was showing programmer not responding how can we resolve it
Please can you tell me how can i know quantity of water in the soil
nice project ,but how do we give the power supply to the arduino and to the water pump at the same time? i mean like can we supply the power to the water pump from the board 5v pin ?
No I don't think it will be enough..
Instead of it you can use another 9 volt battery or like me you can use on powerbank. Cut the usb cable and connect the other end to the pump through the relay module..
Plz follow the circuit diagram for more details..
@@TechieLagan ok so i give the power to the water pump using the power bank but what about the arduino, how do we give the power to the arduino?
Bro have you connected red and green wire with 5volt battery. And is Arduino connect with a charger in plug
Please tell fast anyone
This was absolutely amazing! But can I connect a 12v pump? Just really need to know.
Yes you can !!
Thanks alot. Keep up the good work!
Hi Lagan bro, I am completely new to these circuity and all..
U said that we have to connect the relay to 5v power supply, as I am not able to find it..
Can I use 9v alkaline battery which i can connect with battery clip connector..??
yes you can use that
hi what libraries u used in arduiuno uno as i am gettting error mfor the arduino code
Where is the blue wire going from the Arduino in the demonstration?
Great
thankyou
Thank you so much
sir kindly tell me that in 2.46 where you connecting the other end of the green wire is that wire from battery
yes
sir, how can i upload the code from compute pls explain in detail i i dont know anyhting about coding
Sir where u connect the red and green wire in pump? please answer sir i am doing my school project
It is connected to a 9 volt battery or you can also use power bank
Can I add a LCD display for the moisture?
You can for that u have to use crystal lcd
i2c
Aap plz circuit pura bataya kare 2 chizen aapne kati hai relay coil se battery connect ki ya kuch aur dusri aapne program ko Arduino se connect kese kiya plz reply !!! Aapne programme compile to kiya but hamne kiya to no board found bata raha hai
can we use ultra sonic sensor instead of soil sensor
if yes then what is ardino code
please reply
How ultrasonic sensor can use
Can you help me,.my project did not cut off the sensor what should I do
I hope this message finds you well. FLow sensing is costly and trickey , I am are writing to provide you with information on the calibration and prediction of flow rate and the time required to dispense water under varying pressure conditions. This knowledge is essential for efficient water management and distribution in various applications.
Flow rate is a crucial parameter, and it is influenced by several factors, including the water source, pipeline type, and pressure control mechanisms in place. For consistency and reliability in maintaining pressure, there are options such as utilizing pumps, auto-filling overhead tanks, or employing devices like the Pressure Controllers.
To calculate the flow rate and the time needed to dispense 1000 liters of water with a pressure of 3 bar, we've collected the following data:
At 2 bar pressure, the tap dispenses 20 liters of water in 1 minute.
At 4 bar pressure, the tap dispenses 40 liters of water in 1 minute.
Let's begin by determining the flow rates at both 2 bar and 4 bar pressure:
Flow Rate at 2 bar pressure:
Flow rate = Volume / Time
Flow rate = 20 liters / 1 minute
Flow rate = 20 liters/minute
Flow Rate at 4 bar pressure:
Flow rate = 40 liters / 1 minute
Flow rate = 40 liters/minute
Now, we need to find the flow rate at 3 bar pressure. Given the flow rates at 2 bar and 4 bar, we can assume that the relationship between flow rate and pressure is linear. To estimate the flow rate at 3 bar pressure, we can use linear interpolation.
First, we calculate the flow rate increase per bar of pressure:
Flow rate increase per bar = (Flow rate at 4 bar - Flow rate at 2 bar) / (4 bar - 2 bar)
Flow rate increase per bar = (40 liters/minute - 20 liters/minute) / (4 bar - 2 bar)
Flow rate increase per bar = 20 liters/minute / 2 bar
Flow rate increase per bar = 10 liters/minute/bar
Now, we can find the flow rate at 3 bar:
Flow rate at 3 bar = Flow rate at 2 bar + (Flow rate increase per bar * (3 bar - 2 bar))
Flow rate at 3 bar = 20 liters/minute + (10 liters/minute/bar * (3 bar - 2 bar))
Flow rate at 3 bar = 20 liters/minute + (10 liters/minute)
Flow rate at 3 bar = 30 liters/minute
With a flow rate of 30 liters/minute at 3 bar pressure, we can calculate the time required to dispense 1000 liters of water:
Time = Volume / Flow rate
Time = 1000 liters / 30 liters/minute
Time = 33.33 minutes
In conclusion, it would take approximately 33.33 minutes to dispense 1000 liters of water at a pressure of 3 bar. This information is valuable for planning and optimizing water distribution processes in your specific application.
hello mate, can i connect the sensor to 5V pin instead of 3.3V pin, is it going to cause problem cuz i need to use the 3.3V pin for an esp8266
You can try that if it's working then well and good..
Hi Bro. When i connect pump motor to relay, arduino restarting yourself... Can you help ?
Will it work when connected to a laptop or need a power supply?
When I rotate the potentiometer both lights on the water sensor board start glowing and the green light on the relay is turned off is that ok?
Yes that is ok....
See your Arduino needs power supply and pump also needs power supply...so it depends on you how u r providing power to both...
@@TechieLagan Thanks alot for replying so fast I have few more questions
9V battery for both is okey ? or series 1.5V Cells in series or parallel ?
One 9 volt battery will be ok for both....
If you r doing it just for demonstration...
Or else you can use a power bank also...
The green wire and the red wire at the relay at the water pump you connected with what
It is connected with battery ( Power Bank)
For more clarity please refer to the circuit diagram!!
Bro can you help me
I am connecting the relay wire and the one motor wire to the battery the. Also the motor is not working
necesito ayuda
cual es la energia de la bomba o el rele?
Awesome
good one! but I made some changes in the code and in the system.
I replaced the pins and recoded them for the Arduino Nano microcontroller. I found that when the sensor was giving a low signal the relay (motor) went off. That makes no logical and practical point, when soil is already wet why would we want more water to be pumped into the soil? It should be another way around, which means when the soil is found dry by the sensor it should pump the water from the tank to the surface of the soil. For that, I simply changed the code from HIGH to LOW.
if(water == LOW) // Line number 9
Also, I directly connected the DC motor water pump to the pin instead of a relay. Using a relay would be overkill if I want to use it for just a small plant. Relay can be useful If I want to trigger a high voltage bigger AC motor with the same system. To maybe water a whole garden, a park, or a field of crops.
But very useful watching you in this video encouraged me to finish a project I was working on for more than 6 years from now. Thanks a lot. I made a video too, not a tutorial but of the functioning project. Though I have to think about giving power to the microcontroller, currently I used my battery bank. I'll try to make a permanent and durable setup.
could you tell me connection as you are saying I m interested to do this project
Can you plzz provide the code
can you please give the code??
please please...
Can you please provide code
I'm delighted to see the enthusiasm around the code modifications I made! To help everyone understand the changes, I've created a detailed video explaining the process. You can find the link to the code in the video description. Happy making, and thank you for your interest!
For the full tutorial, check out my TH-cam video: Click here
th-cam.com/video/Ct0QxOE1f1A/w-d-xo.html
@@shivanidubey1716
relay k sath batery connect krni hogi kia?
No light is on in relay please reply
sorry sir, is there a difference when connecting the cable to the relay module slot between the middle and left or middle and right?
Yes there is a difference, middle one is common pin and left or right may be NO and NC pin it may vary from module to module .
In this project you have to connect it to NO i.e Normally Open pin and common pin.
It may be written on the module or you can see it on the back of the relay module
For more details please Google it
Search for- "pins of a relay module"
Sir,could you please say that should i conmect any battery to the pump or relay module
You have to connect battery to the pump through the relay module
Just assume the relay module similar to a switch.
PLEASE MAKE A ANOTHER VIDEO
TO EXPLAN THE PROGRAM
no mobile application ? its not conected to cloud ?
Question about the water pump: When you connected it to a red cable, where did you draw electrical energy for it to work? Can you please answer it?
I have used an external power source (Power bank)
and Sorry for late reply.
Which external power source did u use can you pls give the connections for it.@@TechieLagan
hello sirr, is the code still available?
can we use this with Nodemcu esp8266 instead of Arduino uno?
Bro how it will be powered means does battery is needed?
Yes
Hello sir pls respond, why does my water pump not stop pumping water? Thanks