Automatic Plant Watering System using Arduino & Soil Moisture Sensor | LCD display [with CODE]
ฝัง
- เผยแพร่เมื่อ 8 ก.พ. 2025
- Part-38
In this video we have shown how to male Automatic Plant watering System with Soil moisture sensor, Relay module and LCD to display the status. Hope you guys like it
-*-*-*-*-*-*-*--*-*-*-*-*-
Code and Circuit: forms.gle/dse4...
Download Liquid crystal I2C library: drive.google.c...
How to add libraries in Arduino: • How to add new librari...
-*-*-*-*-*-*-*-*-*-
Previous Tutorials🔻
Soil Moisture Sensor Basics: • Soil Moisture sensor w...
Relay Module Basics: • Relay module with Ardu...
*-*-*-*-*-*-*-*-*-*-*-*
Product Links:
Buy components for best price,
Arduino Uno: www.flyrobo.in...
Soil moisture sensor: www.flyrobo.in...
Relay Module: www.flyrobo.in...
LCD Module with I2c interface: www.flyrobo.in...
5v Water pump: www.flyrobo.in...
OR
Arduino Uno : amzn.to/3PqSME5
Soil moisture sensor : amzn.to/3Oz5LnY
Relay Module: amzn.to/3aKGkia
LCD Module with I2c interface :amzn.to/46i1Thn
5v Water pump: amzn.to/3vW2M1Y
Wire and Breadboard: amzn.to/3UIk2lR
*-*-*-*-*-*-*-*-*-*-*-*
Follow us on Instagram :
/ tech_at_home
Like us on Facebook :
/ tech-at-home. .
#soilmoisture #arduinotutorials #techathome #servomotors #arduinoprojects #arduinoprojects #arduinoprogramming #engineeringprojects #wateringplants #waterpump #irrigationsystems #automaticwateringsystem
Thanks for watching!
*Like Share and Subscribe
Hello, it is truly an amazing work and explanation. However, aside from dry, medium, and wet, the LCD also displays dryium and wetium eventhough we did not put it on the code. What appropriate actions shall we do? Thanks!
Hello brother
Actually I am thinking to do this one... How much cost it will take??? And is it working properly?? Plz let me know
Some improvement needed in LCD commands.
Send request on mail: deepakhd20@gmail.com
I have given components link in description, you can check the online prices, it keeps varying.
Bro what solution did he give
Hi can I use relay 5v module with optocoupler?
Anna Vera level mission success
👍🙂
what are the libraries should be installed in that code???
only LiquidCrystal_I2C.h
Nice demonstration
Thank you
How to use the automatic plant irrigation system in a wide area or large area ?
Everything is working but the pump does not turn on when moisture is low
Same to me, realy and pump are making difficulties
Please i have question
You used a pompe 3v/5v and the batterie 9v !!
This battery has very less current output.
So running 6v motor for some time is still ok. You can use 5v supply also.
But when moisture is high what is need of water?? I think you have taken the opposite cases in coding.for low moisture Pump should start and for high moisture pump should be stopped or in Low @@techathome
Could you also add manual water pouring and water pouring using temperature
Which computer software do you run the code on?
Just need Arduino IDE to upload the code.
For basics you can refer this: th-cam.com/video/pPexpWW6Hq8/w-d-xo.html
Thank you mister😊❤❤❤
Welcome
Hi, can i ask for the code?, if you have it😔 im asking for it because i dont have money to pay for it... Im making a similar project and i need the code to make some part of the project easy. Thanks for noticing
Sketch uses 4866 bytes (15%) of program storage space. Maximum is 32256 bytes.
Global variables use 578 bytes (28%) of dynamic memory, leaving 1470 bytes for local variables. Maximum is 2048 bytes.Sketch uses 4866 bytes (15%) of program storage space. Maximum is 32256 bytes.
Sir like this error is coming
What to do tell sir plss
Can u send me the message after this.
Here there is no error message.
Sir I uploaded
It is not working
when will paddle shifter video arrive......very excited for it
In a week
th-cam.com/video/-gHQ2EIYm88/w-d-xo.htmlsi=pJBtnqsK0Zp8W7Nl
hi the code is working properly but the lcd doesnt show statements about moisture. i tried adjusting brightness of lcd but it doesnt work can you some other method
S bro same problem 😢
Connections might be loose. Try changing the jumper wires.
@@techathome Hi bro, how can I do this project if my LCD Display does not have an attached I2C Module
hey
How did u fix it?
@@SamarthMishra-ig9ui we didn't add lcd
Can I use a 6V water pump? Will it still work?
Yes you can use.
The code is not working for me
does the code still works, if im uwing capacitive soil moisture sensor?
Yes it will work. Small changes needed in the code because the values for wet, dry will change little bit.
lcd shows nothing.........:(
how did u fix it?
@@SamarthMishra-ig9ui check the wiring and the code .
@@GameForPeaceOfficial could u pls tell how did u correct the code?
@@SamarthMishra-ig9ui i forget i did this project long ago. you have to double check the wiring. code is not wrong
In this video he is not connecting the back light connection
Should we have to modify the code as you have done in the video. Or can we simply copy paste that code.
No need to modify logic.
sir can i use the arduino uno r3 not the mega?
You can use any one.
How did you give power to aurdino and lcd screen
You can use 9v battery and round pin connector.
Is it applicable for sprinkle irrigation
yes
can I do this code without the lcd? I have no lcd in my project but aside from that it's the same
Yes you can do without LCD also. Use same code.
can this power a 12 volt motor?
Yes,
At the relay you can use any motor and corresponding power supply.
Hello sir, i have a problem with the lcd module, how can i fix it?
Remove the existing libraries from your Documents/Arduino/libraries folder.
Download new Liquid crystal I2C library from here: drive.google.com/file/d/157guaTZZujj1zfBISdprmUx-j9aCXOJC/view?usp=sharing
Follow this video to know how to add libraries in Arduino: th-cam.com/video/PFDmkzSX87o/w-d-xo.html
How to dump the program in Arduino Uno
th-cam.com/video/EJEz6t5SpMw/w-d-xo.htmlsi=VPUoFZ7QQ4RqVEqs
what are the libraries required?
Liquid crystal i2c
How can we do this without the LCD screen? I wired everything without the LCD screen so I'm not sure if its a code issue
You have to remove LCD related code lines, otherwise code doesn't work.
I did but it still doesnt seem to work@@techathome
sir to power the arduino where to connect the batteries?
Which battery are you using??
How can I use a motor of higher power with it pls tell me !!
Nothing will change.
Only replace your motor and use corresponding power supply required for motor.
Refer same connections.
Hey,
The project is working But just the LCD light glows up and display of LCD just shows blocks and nothing else , even after rotating potentiometer either side
Could u pls help
try to install different l2c crystal file, my lcd only showed one letter then it worked after i did that
hi, if i add on/off button, will the coding be different?
On Off button for what?
Main supply?
How will you make it solar powered
You have to use battery which should be charged by solar panel. Cannot be powered directly using solar since there will be power fluctuations.
Please what powers the Arduino uno
You can use 9v battery and round pin connector to power Arduino board.
@@techathome
Thanks I used two batteries one for pump and the other for the Arduino.
Please how will my block diagram be
can we do this project without using relay
For DC motor you can also use motor driver instead of relay.
can i use esp8266 for this same code by changing the board in software before uploading ?
Yes you can use. Refer the pinout diagram of Esp8266 and based on that make the connections.
Sir can i do this without the Lcd for my project?
You can do. In the code remove LCD related functions.
Can you specify which lcd sir?
and if i remove the lcd related stuff should i delete the liquidcrystal_i2c.h library?
Your code is right . When iam executing it but not working , it will generates a header file related error
You can add a library from Uno executer by checking which header file is missing.
Install Liquid crystal library. Refer this video for steps: th-cam.com/video/PFDmkzSX87o/w-d-xo.html
My lcd is showing only W
M
What should I do here 😭
Which code are you using?
hi!! im trying this stuff out but the code keeps not working it always show no such files in directory what do i do??
You have to install Liquid crystal i2c library.
For steps refer this video: th-cam.com/video/PFDmkzSX87o/w-d-xo.htmlsi=epQQE7PCuKq-PvP1
even if soil moisture is already wet and medium, the motor would still go on, I am using a different relay from yours. How do I fix this?
same problem
You can send code photo on mail: deepakhd20@gmail.com
We can try reversing relay switching in code once.
can you give the buy link for LCD MODULE and for WIRES
You can check video description, I have updated.
no there is no link for lcd module
How will the code change if i dont use an LCD
You have to remove LCD related code lines.
Otherwise the code doesn't execute further, it keeps waiting for LCD initialisation to complete.
Hi can i kindly ask for the code... I dont have money to pay for it☹️ and im making this project for our scientific investigatory project. I hope you notice this, thank you
When u remove the soil moisture sensor why the motor starts
When I remove the sensor from the pot, there will be no moisture. This is considered as Dry according to logic, so it activates the motor.
Excuse me , How will this work if I use a battery instead of the usb cable. I’m having problems with the power source , the RX won’t light up. 😢
Yes you can use a 9v battery with a round pin connector to power the Arduino board.
I have a question, what battery should I use if my water pump is 3v
You can use normal cells(2 connected in series) or if you want rechargeable, you can go with 18650 battery.
Can I use Arduino nano
Yes
what board we use in arduino app? is it arduino uno?
I have not used mobile app. But board should be same even in app. The board I am using is Arduino Uno.
I need help, this is Not working, i connected all the things properly , but still the the display is showing nothing and the motor is not rotating even the sensor is dry
Have you given external supply? For relay.
Can you send mail.
I have replied to the mail,
About the exact problem, I have given the external supply
When i turn it on, there is nothing writing on my lcd(its just lightning). Also the water pump is not turning off when the sensor is wet. What should i do?
Can you send request on mail: deepakhd20@gmail.com
@simunkrot000 do you have the updated code? The water pump does not turn off too when the soil is already wet 😢
plss a desperate student here
I can’t graduate highschool if can’t get it to work 😭
Sir, which water pump(how much volt) should I use for 20 plants which are till the distance of 10feet from pump?
Add relay and use bigger motors
Relay is used in this video know do we have to use that only or other else?
@@shashankhiremath4974you need to use other relay according to the voltage required, if you need to use AC then use 240v or AC relays modules ig
The same relay can be used for AC pumps: th-cam.com/video/iy3nXFh__rg/w-d-xo.html
Thanks brother It works for final year project thank you
Welcome!
Heyy can u share the codee pls
Sent, but after some time I got error message saying mail id is not correct.
If you have not received, kindly send request on our mail id: deepakhd20@gmail.com
Not able to get anything on LCD I2C Module... kindly help urgently.
Try to adjust the potentiometer screw on the backside of LCD.
hey
how did u fix it?
@@SamarthMishra-ig9ui yes same issue for me its worked for me
@@techathome thank you somuch
bro my model is working but on lcd i cant see any display words
1. Check the connections of SDA and SCL.
2. On the backside of LCD, there will be one small potentiometer screw, try adjusting brightness.
how did u fix it?
@@SamarthMishra-ig9ui i have adjusted potentiometer of LCD and got display on LCD
Please tell me how ti fix the lcd
Download LCD library from here and add it: drive.google.com/file/d/157guaTZZujj1zfBISdprmUx-j9aCXOJC/view?usp=sharing
@@techathome after downloading how can i add it?
As you connect battery directly for supplying power, then how to do with solar panel ?
The pump I have used can work with 4 to 5V. So you can use corresponding solar panel instead of battery.
I’m trying to buy the code and circuit but it’s not working
You can send mail on : deepakhd20@gmail.com
How to code if I want to add leds for red, yellow and green?
You have to additionally add pinMode and digitalWrite functions. This video will help you on that: th-cam.com/video/EJEz6t5SpMw/w-d-xo.html
The motor pump is seperately working. What to do?
Some relay modules work opposite.
Can you send request on mail, I will share updated code.
deepakhd20@gmail.com
Sir, I got the jhd162a display so I don't know how to connect it can u help me to connect it?😢
You can buy i2c interface module, solder with your LCD. Connections will remain same.
This code is going reverse that means for dry soil the motor is off and for medium on and for wet also it is on. What can i do sir
Some relay modules work opposite. Very small change in the code will fix this. You can share request on our mail, I will share updated code: deepakhd20@gmail.com
can i use relay 12v? 1:24
No, Arduino digital output is 5V, which cannot activate the 12V relay coil.
I'm in need of the code. Can you kindly send it to me
You have to submit a google form request with all details. You will receive mail with code. Link is in description.
Good morning sir. Sir can you help me with code that I can interface using a dmd p10 module, dht11 and Arduino uno.
th-cam.com/video/ryri3CRzh8A/w-d-xo.htmlsi=41yjWumk4tClpUWt
LiquidCrystal_I2C not working it not showing in red colour
Install that library: th-cam.com/video/PFDmkzSX87o/w-d-xo.htmlsi=_ayZAUhkXVmcE612
connection,coding is done.But display is not diplaying words as in coding,how to overcome from it.
1. Check the connection on SDA and SCL
2. Try to adjust the brightness of LCD using potentiometer screw present on the backside of the module.
where can i find this code
You have to fill the form in description. We can send code.
Can u share literature survey for this
I have not done.
CAN I CONTROL WATER FLOW OF WATER PUMP ?
You have to control the speed of the pump for controlling water flow.
This is not possible with Relay. You have to use motor driver like this: th-cam.com/video/xjLwL8RPbvU/w-d-xo.html
@@techathome thank you bro.... 🔥
I have tried if the relay is not plugged into the battery the system works accordingly but when the relay uses the battery the system stops and the LCD appears strange letters or sometimes the LCD turns off the background light, can you help how to solve it?
I think power is not sufficient.
You can power your Arduino board using one more 9v battery and round pin connector.
@@techathome we have the same problem sir, how'd you do it??
If we use 5v relay
Yes, I have used the same.
hello sir can i know whether to use bigger pump using ac should i need to do some changes in circuit or not?
Everything remain same.
1. Instead of DC pump, use AC motor.
2. Instead of motor 9v supply, use AC supply.
Can we use Atmega32A instead of arduino?
I want to use the YL-69 soil hygrometer with it.
What should be the name of the project?
Automatic plant watering system
Bro I dont have I 2 C module in my lcd display thn what should I do?
Then you have to connect all the 8 pins to digital pins, And code also slightly changes for LCD.
You will get i2c module seperately, you can buy and solder.
i cant get the code idk why
can i borrow your code? I'm a student and i really need to programme my Arduino-based irrigation systems ASAP
forms.gle/dse4sm21z3X5SNBH9
Previous tutorial video plss
All links are given in video description.
can you partage the code with use pls to use it in my project
Send request on mail: deepakhd20@gmail.com
how can we make this by using arduino nano?
Code remain same for Nano also.
But according to the pins available on this board, change the pins in the code.
bro when insert the battery everything goes wrong and it does not work properly i use a 9v brand "EVEREADY" battery
how many volt is ur pump. is it 9v or lesser
Please send the program
Have you submitted Google form?
Thumbnail you mistakes (LED BLINK )code
Thanks for the feedback.
We have used old screenshot in the background.
Nice super working Thank you
Welcome ❤️
Urgently I required this code
Sent
Demonstration is good but can we also add DHT11 humidity and temperature and results on the screen
Thank you,
Yes you can add that, refer this video: th-cam.com/video/LyuybcoNEsw/w-d-xo.html
Nice. we expect more
Thank you
bro i have science exibit on 28th feb 2024 20 days left .humble request kindly give me all products link from the thinngs you have used in this project please bro along code
Can you send request on mail: deepakhd20@gmail.com
BRO I HAVE MAILED THE ARDUNIO BOARD FLIPKART ONLINE WHICH I CAN I USE KINDLY CHECK AND TELL ME@@techathome
Hello sir i want this project with pH measuring also.. I need code.. And brief introduction for connection.. Plz sir.. Cooperate
Send request on mail: deepakhd20@gmail.com
can I just use the direct power supply from the arduino instead of using another battery on the water pump?
No, power not sufficient.
display not working
Sir as you tell 1st i connect all the wires but they are not working...
On lcd soil medium n motor off shows continuously...
Hey, I payed 50 bucks but still din't recieve circuit diagram or code on my mail id
Which is your mail ID, i hope you have received until now.
Can we use lcd of lpc1768 and interface it with soil moisture?
Bro is that connections are needed to do coding or only just board
No, you can even compile without connecting the board to check syntax errors.
Why cant i upload it on the board
Did you selected port and board in tools?
The lcd modle is not showing the code please help this is for my school project 🙏🙏🙏🙏🙏
Can u send mail: deepakhd20@gmail.com
I already sent payment it says have to wait 12 hours but I've to submit tomorrow please send urgently as soon as possible now
If you have submitted form, will send
@@techathomeplease send now as I have to submit project tomorrow
I payyed 50 rs but code i not get why
You would have received
What is the cost of this project..?
Can anyone tell me..?
You can visit the link in description. All details provided in the form.
Can u pls share the code becoz link in description is not opening
It is compressed file, you have to extract.
Otherwise send request on mail: deepakhd20@gmail.com