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
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!
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
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.
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 UA-cam video: Click here ua-cam.com/video/Ct0QxOE1f1A/v-deo.html @@shivanidubey1716
To modify your Arduino code to have a burst of 3 seconds followed by no output for 90 seconds, you can use the `millis()` function to track time. Here's an updated version of your code: ```cpp int water; // Random variable unsigned long previousMillis = 0; const long burstDuration = 3000; // 3 seconds const long pauseDuration = 90000; // 90 seconds void setup() { pinMode(3, OUTPUT); // Output pin for relay board pinMode(6, INPUT); // Input pin coming from soil sensor } void loop() { water = digitalRead(6); // Read the incoming signal from the soil sensor unsigned long currentMillis = millis(); if (currentMillis - previousMillis < burstDuration) { // Burst duration: 3 seconds if (water == HIGH) { digitalWrite(3, LOW); // Cut the relay } else { digitalWrite(3, HIGH); // Continue providing signal and water supply } } else { // Pause duration: 90 seconds digitalWrite(3, HIGH); // Ensure the relay is off during the pause if (currentMillis - previousMillis >= burstDuration + pauseDuration) { // Reset the timer when the pause duration is over previousMillis = currentMillis; } } delay(400); // Optional delay for stability } ``` This code will provide a burst of output for 3 seconds, followed by no output for 90 seconds, and then the cycle will repeat. The `millis()` function is used to keep track of time, and it compares the current time with the previous time to control the relay output accordingly.
Thank You Lagan By the way you did not send the link for getting the main control board ( through which the soil moisture sensor is connected to arduino board)
Sir can you please tell me is the green wire connected to the + of the battery or to the - of the battery and did you Connect the - ve of the pump with the relay N/O pin? Great video sir thank you very much
See the positive negative doesn't matter in the pump which is used in the video.. U just have to connect one wire of the pump directly to the battery and the other wire u have to connect it to the battery but through the relay module... The connection will be same as we do for connecting a switch to any simple circuit...
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.
would it be possible to add a LDR near the power supply so that it can also detect if theres light so it know not to water when it's night? I'm a beginner so i don't know much.
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..
based on the comment, it seems he connected it into another powerbank. but he also said we can use a 9v battery instead. ill try it out in a few hours and see if it works. if i remember myself commenting here then ill try to update you too 😅
If u r asking about how to upload the code then u have to use arduino ide which is a computer software but if you want to upload the code using your phone then you can watch this video - ua-cam.com/video/FU7PHi79Q2Q/v-deo.htmlsi=ZvTLGn5uPpdM95UZ or if you want to download and install the arduino ide then you can watch this video - ua-cam.com/video/oL23ZVML-Yw/v-deo.htmlsi=Zd-4QHSRdR_eJ8QC
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!!!
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 🥺
U can disconnect it from ur computer once ur programmme is uploaded .. But to keep it working u have to connect external power to it whether it is 9-12 volt source or power bank or directly connecting it to mobile charger adapter with that usb cable
Bro I have a request from you. I want the system to just work as yours but I just want an addition in the code to make it iot capable in which we can see the soil moisture level in percentage in our mobile using iot. Please help me by giving this new code to me. You can write it here by replying me. Great video sir. I subscribed liked and also shared your video
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?
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?
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..??
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.
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
@@TechieLagan hello ... thank you for ur reply...replay module , battery and pump connection can u tell me properly....bcoz for clg project I did this and connection with these only I did wrong....so can u tell me
This pump has to be submerged in the water right? I tried to transfer water from one cup to another cup while the pump is outside the cup. It doesn't work.
@@jumbo999614 You dont need submersible pump for that small work, just let the water bucket be little bit elevated and and provide outlet from the lower side to have water flow to pump through gravity, again make sure the flower pot is higher level than water supply to avoid free flow when pump is not running. That should work well for you.
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
This saved my semester. THANK YOU!!!!
Kaise banaya apne
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!
Can I use a 9v battery as the external power supply ?
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
Thank you lagan , you're my savior
This is very easy to understand. Thank you very much 🙏🏾
😂
Kese banaya
Reply karo
Kese banaya
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 UA-cam video: Click here
ua-cam.com/video/Ct0QxOE1f1A/v-deo.html
@@shivanidubey1716
I completed my project by seeing your video bro--------ilane recchipo bro
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.
?
Thanks bro this was helpful i am really happy 😊 Thanks 👍👍
To modify your Arduino code to have a burst of 3 seconds followed by no output for 90 seconds, you can use the `millis()` function to track time. Here's an updated version of your code:
```cpp
int water; // Random variable
unsigned long previousMillis = 0;
const long burstDuration = 3000; // 3 seconds
const long pauseDuration = 90000; // 90 seconds
void setup() {
pinMode(3, OUTPUT); // Output pin for relay board
pinMode(6, INPUT); // Input pin coming from soil sensor
}
void loop() {
water = digitalRead(6); // Read the incoming signal from the soil sensor
unsigned long currentMillis = millis();
if (currentMillis - previousMillis < burstDuration) {
// Burst duration: 3 seconds
if (water == HIGH) {
digitalWrite(3, LOW); // Cut the relay
} else {
digitalWrite(3, HIGH); // Continue providing signal and water supply
}
} else {
// Pause duration: 90 seconds
digitalWrite(3, HIGH); // Ensure the relay is off during the pause
if (currentMillis - previousMillis >= burstDuration + pauseDuration) {
// Reset the timer when the pause duration is over
previousMillis = currentMillis;
}
}
delay(400); // Optional delay for stability
}
```
This code will provide a burst of output for 3 seconds, followed by no output for 90 seconds, and then the cycle will repeat. The `millis()` function is used to keep track of time, and it compares the current time with the previous time to control the relay output accordingly.
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
Thank you so much..this helped me a lot.
I used Arduino UNO R4 Minina,and got the output.
My pleasure !! 🙏
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.
can u help!!
You save my exam
U did really good it was awesome keep it up bro😊😁
Thanks..
@@TechieLagan can you help me
Hlo @@TechieLagan
Yes !!
2:58 what is that 5 v power supply? Is it the battery you are talking about?
Yes
I have a 9 v battery is it OK?
Yes
Will it 9v dc pump work with this project with 9v non rechargeable battery? @@TechieLagan
@arsh_arora10 yes it will
I love you more than our university and the lectures😘🥺♥️♥️ also the uni guys
I made it and it was working fantastic😊🎉😮
kindly send me where you got the coomponets please and things need for this project pls
Product links are provided in the description of the video
Thank You Lagan
By the way you did not send the link for getting the main control board ( through which the soil moisture sensor is connected to arduino board)
Sir can you please tell me is the green wire connected to the + of the battery or to the - of the battery and did you Connect the - ve of the pump with the relay N/O pin?
Great video sir thank you very much
See the positive negative doesn't matter in the pump which is used in the video..
U just have to connect one wire of the pump directly to the battery and the other wire u have to connect it to the battery but through the relay module...
The connection will be same as we do for connecting a switch to any simple circuit...
Which battery bro
2:48 you havent show that an extra power supply is needed??
S bro what we can do for that
wdym i dont get it
Yeah..I didn't get it too
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!!
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!
Thank you man , for you i could do my project for tecnology 😃❤
sir kindly tell me that in 2.46 where you connecting the other end of the green wire is that wire from battery
yes
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! :(
thanks bhaiya ye video mera kam aya
Thank u very much, this is going to help me in my project
Glad I could help
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.
Bro have you connected red and green wire with 5volt battery. And is Arduino connect with a charger in plug
Please tell fast anyone
would it be possible to add a LDR near the power supply so that it can also detect if theres light so it know not to water when it's night? I'm a beginner so i don't know much.
but I need about the water is salty or normal can you make video
Working perfectly fine. Thanks a lot ❤
Cod working?
bagaimana jika si pompa air ini di sambungkan dengan adaptor 9v2a ke relay? bisa tidak
To use the system, do we always need to connect the arduino do the laptop, or just the fire time?
Can I use solar panel instead of batteries?
dhon banaiso vai sei hoise
Great job thank you sir
I just have a question does the arduino must be connected to the laptop or i can connect it to a battery ?
Yes, you can connect it to battery.
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?
Do we need to connect the two end of the relay module with a battery?
up!
I have a question. where does the green and red wire which you connected to the relay module will go?
based on the comment, it seems he connected it into another powerbank. but he also said we can use a 9v battery instead. ill try it out in a few hours and see if it works. if i remember myself commenting here then ill try to update you too 😅
to the battery
@@TechieLaganWhat is the battery like?
@dyaykaa9640 you can use 9 volt battery or power bank
What jumper wires did you used male to male or female to male or female to female??
Please reply!! 🙏
Male to female
@@TechieLagan thank you so much for your instant reply!!
It's my responsibility sir !!
To use the system, does the arduino always have to be plugged into the laptop or only the first time to add the code?
Are you using power supply for pump??
Yes
nice video, if there is a compeleted automatic drip irrigation kit with only quick-dial control, will be more helpful for family daily using?
Hello
May i know in what app we have to enter our program code
If u r asking about how to upload the code then u have to use arduino ide which is a computer software but if you want to upload the code using your phone then you can watch this video - ua-cam.com/video/FU7PHi79Q2Q/v-deo.htmlsi=ZvTLGn5uPpdM95UZ
or if you want to download and install the arduino ide then you can watch this video - ua-cam.com/video/oL23ZVML-Yw/v-deo.htmlsi=Zd-4QHSRdR_eJ8QC
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
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
Where did you connect those red and green wire please upload the picture of it
I think it's connected to a battery
Very professional work, Thanks my friend ❤️❤️👌👌
why the coding cant'run? Is there a file that I need to upload in the arduino?
If I use a 5v relay, a 5v water pump and a 9v power source, will it work?
yes it will work.
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 🥺
Please can you tell me how can i know quantity of water in the soil
do i need a battery to run the water pump?
Yes
Yes
is there a way where you can make a servo motor dispense water to the soil kinda like a sprinkler
How does it work and censoring...
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?
Thanks , the project works nicely
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
How much will it cost for the hardware components??
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.
Can I power up the Arduino with 9v battery and also can I use another 9v battery for relay
Yes you can ...
Thanks
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.
can we did not connect the Arduino with computer or phone during project?? Does it work without computer or phone connection??
Please reply
U can disconnect it from ur computer once ur programmme is uploaded ..
But to keep it working u have to connect external power to it whether it is 9-12 volt source or power bank or directly connecting it to mobile charger adapter with that usb cable
@@TechieLagan thank you ❤️
I think whater continues flowing due to communicating vessels principle.
Yes but it happens sometimes only
How many volts battery did u use? 3:45
9 volt
can I use a 6v power supply instead? Or will it damage anything?
your vidio help me for my project bro thakyou
What type of motor pump we use brother either dc or ac, please tell...
See with this relay you can use both....dc or ac only for demo I have used dc. You can use ac also but be careful..
It depends on your relay module
From where did u get the power to suck the water
from the battery
Sir in the place of Arduino we can use ESP8266 or not
Yes u can
Yes u can just include the necessary librarys
Bro I have a request from you.
I want the system to just work as yours but I just want an addition in the code to make it iot capable in which we can see the soil moisture level in percentage in our mobile using iot.
Please help me by giving this new code to me. You can write it here by replying me.
Great video sir. I subscribed liked and also shared your video
No mention about battery
sorry for that
@@TechieLagan voltage of the battery??
@@Threya127 Here i have used power Bank for the Arduino and 9 volt battery for the pump
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...
Sir where is the green and red wire connected to at the other endpoints? At 3:45
To a battery
@@TechieLagan Thank you! ❤❤❤
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?
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
can I use KY-019 5v relay module instead of what is used here in the video of 5v relay module?
I hope you’ll reply very soon. the deadline of our project is within this week Friday 😅
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
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
Where is the relay module wires connected other than motor?
I think a separate power source
relay k sath batery connect krni hogi kia?
thanks for the video , it is working for me
what is the other two wires read and green wires which u connected to relay module?? i didnt understand its connection
They are connected to the battery
@@TechieLagan hello ... thank you for ur reply...replay module , battery and pump connection can u tell me properly....bcoz for clg project I did this and connection with these only I did wrong....so can u tell me
@@Sandhya_96 please follow the circuit diagram....
Can i use arduino r3 smd instead of it
Please reply
I only have 3 days to submit my school project
Yes u can
sorry for late reply
How is the power given to relay and Uno board..You does not show what is connected to uno board..and is there any power given th the pump
Yes I used a power bank with usb to give power to the uno board...
And another battery to give power to the pump.
You can use a single power source but you have to give power supply to the uno board and pump separately.
can you explain me how your water pump is connected with which component ?
Water pump is directly connected to a battery and the relay is connected as a switch...
Is there no need of any resistors?
What about the power supply?? Will you please explain
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..
This pump has to be submerged in the water right? I tried to transfer water from one cup to another cup while the pump is outside the cup. It doesn't work.
Yes it has to be under water.
@@TechieLagan Is there other type of pump that can be used without need to be underwater?
Yes there are .....
You can search on the internet..
@@jumbo999614 You dont need submersible pump for that small work, just let the water bucket be little bit elevated and and provide outlet from the lower side to have water flow to pump through gravity, again make sure the flower pot is higher level than water supply to avoid free flow when pump is not running. That should work well for you.
bro where do the other end of the 2 wires that go in the relay model go?
Yes
is the sensor module has a led indicating its running?
what does the variable water indicate in this code?
Hi, thank you for this tutorial, this is very helpful. if i have to connect more sensors? can you please help with an updated schematic?
That red and green wire in the relay model should be connected or not?
ya it should be connected to the battery
@@TechieLaganwhich battery voltage
@@suryasplayz 3-9 volt
Where is the power came from? In the usb in Arduino or in the power in motor?
I have used a power bank .
You can also use 9 volt batteries.
What type of battery would i need to power up the pump?
9 volt battery will serve the purpose
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