Automatic Plant Watering System using Arduino & Soil Moisture Sensor | LCD display [with CODE]
ฝัง
- เผยแพร่เมื่อ 9 พ.ค. 2024
- 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/dse4sm21z3X5SNBH9
Download Liquid crystal I2C library: drive.google.com/file/d/157gu...
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:
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 - วิทยาศาสตร์และเทคโนโลยี
Nice demonstration
Thank you
Hi can I use relay 5v module with optocoupler?
Nice. we expect more
Thank you
Thank you mister😊❤❤❤
Welcome
bro when insert the battery everything goes wrong and it does not work properly i use a 9v brand "EVEREADY" battery
when will paddle shifter video arrive......very excited for it
In a week
th-cam.com/video/-gHQ2EIYm88/w-d-xo.htmlsi=pJBtnqsK0Zp8W7Nl
can i borrow your code? I'm a student and i really need to programme my Arduino-based irrigation systems ASAP
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.
Can we use Atmega32A instead of arduino?
I want to use the YL-69 soil hygrometer with it.
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.
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.
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.
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
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.
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
sir can i use the arduino uno r3 not the mega?
You can use any one.
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
what are the libraries should be installed in that code???
only LiquidCrystal_I2C.h
How did you give power to aurdino and lcd screen
You can use 9v battery and round pin connector.
can we use moisture sensor with servo motor?
Yes, you can use.
But logic depends on the project requirements.
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.
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
Can we use lcd of lpc1768 and interface it with soil moisture?
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 we use 16×1 Lcd display
Yes you can use, but some code changes need. All the text I am printing on 2nd row will be not shown in 16*1 LCD.
can this power a 12 volt motor?
Yes,
At the relay you can use any motor and corresponding power supply.
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.
can I use a solenoid valve instead of a water pump?
Yes, you can.
But use proper power supply according to solenoid.
@@techathome thank you
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.
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
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
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
can we do this project without using relay
For DC motor you can also use motor driver instead of relay.
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.
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.
Is it applicable for sprinkle irrigation
yes
after using your code the motor is turning on on the soil is wet or medium. pls tell me how to fix it
love your video
Some relay modules work opposite. You can send request on mail, I can share updated code: 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?
Everything is working but the pump does not turn on when moisture is low
Same to me, realy and pump are making difficulties
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
can we use a thermocouple sensor k-type for measuring the water needs of the plant then soil moisture sensor?
You can use any sensor, but you have to use proper values in the code for comparison based on the values it gives with and without moisture.
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
Can I use a 6V water pump? Will it still work?
Yes you can use.
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?
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 😭
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.
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.
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.
The code is not working for me
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 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??
Can I use Arduino nano
Yes
Thanks brother It works for final year project thank you
Welcome!
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
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
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,
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
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
If we use 5v relay
Yes, I have used the same.
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
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
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
can i use relay 12v? 1:24
No, Arduino digital output is 5V, which cannot activate the 12V relay coil.
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.
display not working
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.
LiquidCrystal_I2C not working it not showing in red colour
Install that library: th-cam.com/video/PFDmkzSX87o/w-d-xo.htmlsi=_ayZAUhkXVmcE612
Where to copy and paste codes on mobile? Any Application?
Refer this: th-cam.com/video/HueSXtQQNLM/w-d-xo.htmlsi=hgNNk-O49BmQjuPt
sir what language is the code which u used ???
It is basic C along with some Arduino library functions.
Previous tutorial video plss
All links are given in video description.
Can u share literature survey for this
I have not done.
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?
Sir can u send coding alone
Send request on mail
deepakhd20@gmail.com
Why cant i upload it on the board
Did you selected port and board in tools?
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.... 🔥
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
i have some doubts in this project . i have mailed you!!!
👍
Brother.... without coding can't we do it...
I think it can be done, but it become complex comparatively.
How to code in tab
I didn't get your question
can I just use the direct power supply from the arduino instead of using another battery on the water pump?
No, power not sufficient.
please i hope u see this and fix the code and circuit links i really need it
You can send request on mail: deepakhd20@gmail.com
Can't open the circuit diagram?!😢
It is zip file, you have to download from computer and extract it. Send request on mail: deepakhd20@gmail.com
Code n circuit file is not opening😢
That is compressed file, extract it using winRaR
nice demonstation.can you send the code?
Code and circuit given in description.
bro code is not opening
can you please give again
Send request on mail: deepakhd20@gmail.com
I have sent please help fast
compilation terminated.
exit status 1
Compilation error: LiquidCrystal_I2C.h: No such file or directory
Follow this tutorial and install LiquidCrystal_I2C library: th-cam.com/video/PFDmkzSX87o/w-d-xo.htmlsi=ow7CF-PRMh5wbjR3
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
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
the code is not working bro
Will u please send me the code
Can i get the code please
Yes
Send request on mail: deepakhd20@gmail.com
lcd.begin(16, 2); //This line shows that there is no matching function for calls to Liquidcrystal_I2C::begin (int, int) even after adding library, please let me know the problem
The library which you have added might be have different syntax.
Delete that from documents/Arduino/libraries folder.
Try to add Liquid crystal i2c library form different developers.
LCD is working acc to circuit and code
👍
help code is wrong
Can you send request on mail: deepakhd20@gmail.com
Can we get code
Follow the link in description.
Block diagram
Code is not working
What is the issue you are facing exactly?
LiquidCrystal_I2C.h seems an error what can we do please😢
Refer this vide video and install Liquid crystal library: th-cam.com/video/PFDmkzSX87o/w-d-xo.htmlsi=iTNvpbsfbgSLaOrT
Can you send me the code, please
Send request on, deepakhd20@gmail.com
Not available to download the code?
It is compressed file, you have to extract.
Otherwise send request on mail: deepakhd20@gmail.com