Arduino Automatic Garden Bed Watering System
HTML-код
- Опубликовано: 29 окт 2024
- Built an arduino controlled garden bed watering system to water my veggies, because its simplier
Here is a link to my dropbox with the parts list and the code. Its the most current code I have right now, I will periodically update it as I get closer to planting my veggies and fruits.
Current Code:
I removed the code. A lot of folks were able to get the code to work just fine, but some people were unable to get code to work...so I just stopped supporting those who couldn't.
Now time for my everythings OK Alarm. THIS WILL SOUND EVERY 3 SECONDS UNLESS SOMETHING ISNT OK.
Not sure if you're still working on this or if it's completed but I am giving a suggestion and that would be using a manifold type system instead of making a unit per grow bed. What I mean is that you can code arduino to open a valve for that grow bed and water. Only one setup using a 12 set relay. Simply just tell relay turn on at this time and that grow bed gets its water when the valve opens. Of course it should be in conjunction with the soil % as someone suggested and you can still use this. When ever the soil checker says it needs watering arduino will then tell that to relay and open that grow bed water. 😜👍
The moisture % is in the code commented out, I added the timer for two reasons... 1. so people can have a choice to use either one, and 2. I am limited on how much water I can supply to the beds because of the size of the rain collection system and the summer months doesnt rain when I need it.
But when you have just 1 more Arduino module to control just another relay you can make a barrel-refill control logic with a sensor so you're filling up your barrels with tap water - if latter is available of course. If not, I wouldn't even extend the garden if water is running low in the dry months anyway - else you kill the plants.
This is pretty fantastic! Thank you for showing everything you could, I am looking to do something similar for my Wife and I's garden soon, and this is giving me the inspiration i was looking for!
este video es el mejor que he visto al respecto de sistemas de regadío con arduino, felicitaciones a sus desarrolladores
**DAD THIS IS FAAAALLING**
Nice man superb.
The way you made the holes in the pipes is amazing. Providing a diffused nice flow. Not a messy one
+Berlin Raj Thanks!
I like the AvE "FOCUS YOU FUCK"
AvE is one funny dude.
I will be updating the code again soon. I will have two versions for all of you. On version will be to have just relay and the other will have two relays. That way you guys can choose. Also each one will have it set to measure soil moisture by default ( I'll have the timer code commented out if you want to use that instead) Together, we can make this a great project for all lazy gardeners like me who forgets to water their plants. Also PLEASE consider donating to the cause, as some of the projects takes time and money to put together. I love to do more of these garden projects but a little help will go a long way.
EngineerPrepper yay thank you
How can I reach you for help on a project like this?
This is why should everyone learn coding even if you just a Farmer
Nice. Just wounding why are you using a timer. You are using a moisture sensor, just program the adurino to keep the moisture at a set %, this way your ground won't dry out like it does when using a timer.
The moisture % is in the code commented out... I added the timer in the code, so people could have a choice.
You actually want the soil to go dry so the plant gets oxygen, that's a big problem if the soil is always moist, very low oxygen for the roots. This system is better, keep it up!
the best system would be that the moisture sensor triggers a timer so that the water gets added after a certain amount of dry time for the plants. if you would get rain in that time you could code in that the sensor then resets to moist conditions and disables the timer. so you would never drown your plants. off course you would also put in a light strenth sensor so you dont water your plants when the sun is beating down on them. because if fresh green plants or plants like basil you would then cause the plant to burn up.
@@highkicker11 hi there. I'm newbie at this stuffs. Im sorry if my question is very dumb. Anyway, what electrical component should i use as timer? I want to sensor triggers the timer. I found timer555 but i think this isnt the proper one, or i just didint write the right code, idk.
Can you guys help me ? Thanks.
@@btgsrqlvs as you would be using a arduino like the video shows the timer would be software and going of the clock of the ardiuno. Aka no 555 timer circuit needed. If you where to build a compleet hardcomponent watering board you would need a lot of comperator circuits and other chips or discrete components so the board would get quite big. Btw their a few dumb questions and yours is not one of them.
Hi! I think your project is great, I think you should add some features that will be better.
1. Time you should setup 24h, so you will develop the function as night without watering the plants. In the afternoon, the sun should not be watered.
2. You should setup more solar charging feature.
3. You should setup more Ultrasonic Sensor when the water on the tank runs out, the water pump automatically pumps.
Thank you for sharing the video
Nice setup u have there. Try a different approach to this problem. Try not to water the leafs of the plants specially when it's too hot outside, if you don't wanna give a thermal shock to the plants.
Try to mount a drip system close to soil.
You can combine the clock, with the humidity sensor and water the plants when the night is coming to avoid thermal shocks. Or underground temperature sensors, to avoid fast evaporation of the soil humidity.
If you want to cover the whole rised bed with poly foil, make sure to add some motors in order to open and close some venting doors. You want to keep the constant temperature 24/7 inside of that small greenhouse.
Omg those tomatos need water.
If you let them wilt like that I read the tomatos stop growing and end up with splits in them.
Also don't wet the folliage because I read it can create or encourage fungal and viruses to grow.
If water hits the ground hard it splashes the leaves and can cause spores to wash over the leaves.
Not good.
Amyway it looks like a great system.
Very good system still I would tweak it to come on immediately when soil is dry.
Tomatoes like lots of water just makes sure you water the soil around the base not the plants.
Also they like lots of fertilizer.
Also good draining soil.
Thanks for sharing.😀👍🏻
Nice ground-up electrical work and you did it with a curious son to boot, maybe he will want to learn too?
Chidisimo con el solecito de aquí de México quedará excelente uno parecido ! Gracias 😊
Thanks, enjoyed that - done the same project albeit slightly different from you, and mine was/is for a greenhouse,
Nice work, I saw esp8266 wifi linking instead of arduino still arduino coded tho and a few milliwatt standby, I've been testing closed plastic covered greenhouse with 8hr timer on tap so far so good just need a way to open cover when it gets hot like everyone's setups they all allow you to take ideas and arrive at the most cost effective, I remove my cover and use bobcat to scoop up old compost and replace with fresh then lid goes back on and start again
Awesome setup, looks skookum as frig.
R/ ihadastroke
Very cool. I will try it sometime this summer thanks
really cool thing in here! thanks for sharing! It helps a lot for getting ideas!
Hey, just found your video. This is amazing!
I'm planning to do something like this in a small scale (i don't have much property) and your video is a great inspiration for it.
Keep up the good work.
Amazing project!! And thank you SO much for sharing all the technical information!! Sub'd!
Me fascina el proyecto y acá lo voy a emular
All I can say is awesome :D.
7:07 was that an AvE quote there haha nice set up!
I'm interested in that relay/water valve. I want to automate my sprinklers for the front and back yard. What I basically want to do is turn the front and back hose bibs on and off at certain times during the week. The schedule would be: On at 5:00 AM, Off at 9:00 AM. On again at 5:00 PM and off at 10:00 PM, Mondays, Wednesdays and Saturdays. I have soaker hoses and sprinklers connected to the hose bibs. I figure I would put the Arduino and valve on the pipe before it leaves the house.
That was really cool I have to check the channel and see if you have an update
Thank you, this project helps me out
Thank you so much!
What pump did you end up going with? I set up a 300 gallon rain collection tank and had thought about getting a pump instead of gravity feeding the water out
are you powering the entire system off 9v/12v? What kind of battery life do you expect ? Is the Valve powered by the battery too?
thanks for this excellent project¡¡¡
very nice, Good job!
Que buen video enserio me llamo la atención, pero tengo una duda los sensores de humedad y el sensor de lluvia están aislados? Me refiero a la parte que va en el suelo, lo digo por si llegase a llover el agua no causaría corto en los conectores? Agradecería mucho tu respuesta
+Miguel Augusto Batz Tzul no porque election sensor questions esta entry election sirloin esta echo para eso mismo.
Hey , the was a great video , the way you have shown is pretty good i have a few doubts like what type of sensor were you using , is it a capacitive type or any other and if i had to apply this type of process for suppose say a farm field what would be the number of sensors to be used .
Could you please help me out in about what i have asked above .
What all is being tied in to the 5V relay? It looks like a jumper from the 9V, and two jumpers from the ball valve. How did you get this to run off of 9V alone, I am having pretty big issues getting the ball valve to open and close. That is the only issue I cannot resolve.
i only used the 9v battery to test opening and closing the ball valve. It should be a 12v system to run properly.
Cool project!
How long will a 9V battery power this? I'm doing something similar, but the power run will take me a while to get to.
It's probably good to equipped this!!
Hello I'd love to make a auto calf feeder that each calf can get a certain amount of milk. It would work by reading the RFID tag in the calfs ear and letting them drink the allocated amount of milk. Any advice?
Which parts open the valve? How do you open and close it?
What did you use for closing and opening of water supply? Mine is 12v water valve but the water flow is not good for as big as your garden.
I also used a 12v valve. I have a rain barrel lifted up to about 7ft for a gravity feed water system ... it gives me about 5-8psi
@@EngineerPrepper Thank you for the reply. I'll use that when I implement my system to the field. I'm planning to connect it to our water pump so i don't need to check the water from time to time. Thanks again
Great project!you inspired me!
I was wondering if it's possible to receive the data wireless from the arduinos to a raspberry pi 3 where the raspberry collects the data and sends an action back to the arduino"s" when the soil for example gets dry to open the relay for the watertank.
Been planning to do something similar for a long time. Good to see a working example. Just purchased some Raspberry Pi sensor kits for the same purpose. Hoping to network them together via WiFi to upload activity to a data repository, which could email me alerts.
You are very close to having a hydroponic (or aquaponic) ebb & flow setup, which would use less water. Is that where you are headed?
bip bip bip bip bip
Cool. Good job!
Great project. How much did you spend on electronics alone? One arduino should be enough for the whole backyard. I should try this with a single arduino and get rid of the timer and lcd. Sensor should be enough. Thanks for sharing the code. Good job sir.
I may be a bit of a thicky, but I would do it differently. If you have a soil sensor saying you have dry soil, why wouldn't you water it then? Why wait until a specific time? Your plants could die waiting.
Maybe link the Arduinos somehow so that if one is watering the rest wait until it is finished watering (if you're really concerned about water pressure)?
I actually made another video sometime ago with the exact thing your talking about. My updated code does just that... it senses the soil moisture and waters accordingly. Thanks for your input!
@@EngineerPrepper Oh, okay. Sorry. To the best of my knowledge, this is the only video of yours that I have seen so far. Good to know that I was on the right track though. I will have to try and find your other video. :)
Nice project. Any progress on the project with regards to how you will monitor the water level(s) in the tanks? Cannot get my head around how to use the components for water level status you listed in your dropbox, a specially at the tanks..
I think I'm far too late to answer the question but it could be based on pressure or sensors.
If you put a pressure meter on the output of the tank, it can be calibrated to the right volume in the tank. If you put a float (i don't know if this is the correct word) in the tank and you measure it with a variety of possibilities it works the same. Hope this still helps, if not, it helped me with my English :D
This is a link to a color sensor that can collaborate with the float: ruclips.net/video/CPUXxuyd9xw/видео.html
This is a float: www.google.com/search?q=measuring+level+tank&client=firefox-b-ab&tbm=isch&tbo=u&source=univ&sa=X&ved=0ahUKEwjtrfSs7uHbAhURK1AKHfmABa8QsAQIOQ#imgrc=8GHEdHeWvTb_tM
This is a water sensor: www.gearbest.com/home-smart-improvements/pp_668897.html?wid=1433363¤cy=EUR&vip=4455135&gclid=CjwKCAjw9qfZBRA5EiwAiq0AbZJyYTXrbVA2Oi7_AvR8ytpYcmaUP_oNnd_09hj2xDom9gdhz8BoeBoCn6QQAvD_BwE
And this is a pressure transmitter: www.google.com/search?q=measuring+level+tank&client=firefox-b-ab&tbm=isch&tbo=u&source=univ&sa=X&ved=0ahUKEwjtrfSs7uHbAhURK1AKHfmABa8QsAQIOQ#imgdii=q1iCgw2J0u_3vM:&imgrc=qBsyCvg81fq21M
Simple. you have 2 or 3 or 4 float switches. In my case on a tank which I'm automatin, I'm using 6 float switches for a 3' dia x 6' ht tank which tells me approximately how much is in there by doing some simple calculations.
So does the relay activate a solenoid that allows water to pass through or does it close a circuit and turn a pump on?
good question, it allows the water to flow.
very nice, i think its better if you use drip irrigation
I am limited on water.
Amazing!!!! May i know where can i view the codes? The link provided only has hardware component. Thank you in advance!
That's awesome!!!!!
Nice job! I'm wondering how long that 9v battery lasts? Operating the MCU, lcd, servo and all
Hello , can you help me by telling me the steps to make this? My friend wants a automated irrigation system for his plants and also wants an automated light system as well .
Looks great, but 1 arduino has ports enough to handle more than one bed. Only requires pulling two lines to each bed. I understand you are not using the humidity sensor? as you have it on timer.
nevertheless I like the setup with the watering pipes... eventhough some people say one should never water from above :-) well I guess that is just nature
Thanks! Yes you can have more than one relay... But my setup I have to have one for each box because of the water pressure. I have to water each bed one at a time (for now)
Nice! Do you ever fear your electronics will go bad even though they are in those water tight boxes? Does condensation ever become a factor or temperature ranges outside whatever the allowable limits are for the Arduino/sensors/components?
+Charlie Tan I do have a concern which is why i built the datalogger. I also place hot glue to cover most of the componets in case condensation does occur. I havent had a problem yet. Thats why i also mentioned about the solar panel next to my garden to power the electrons inside my workshop and out of the elemnts. These videos will be done and uploaded in the near future when it gets a bit warmer outside. Thanks for the great comments and keep asking questions as other people might have the same questions.
Thanks for the reply! I only ask because these were the same concerns I had when I was planning on doing something similar (though to a smaller scale than your example). I'm actually working on an Arduino project right now that is finally getting past the advanced prototype stage (unlocking/locking the door to my room with a biometric reader in the outside hallway to actuate a linear servo motor connected to a sliding bolt lock). I've run into a lot of problems I've had to solve and figure out on the way, but thankfully, I've not had to deal with harsh environmental ones! Keep building!
Charlie Tan Sounds awesome keep me up to date with your projects.
does anyone know how much water it uses each time?
Hi, I just have one question. Is it okay to use a 1/2” valve that is a different brand and do we need a breadboard for the project? Thank you so much!
Yes, it's fine. I just chose that valve to fit my needs.
EngineerPrepper
Thank you! Just one more question. Can a solenoid valve be used or does it have to be a ball valve? Thank you very much!
woww nice..btw you have tutorial video making this project?...from setting up the circuit to the end
I do have seperate videos done.
@@EngineerPrepper nice...video link?
Awesome project! I am working on something similar as well but I'm not finished yet...
I'm seeing some water barrels near your garden beds, so is your system gravity fed or do you have a water pump? In case, how high are they barrels placed to produce such a pressure? And do you refill the water barrels with the rain coming down the roof?
Thanks for sharing your project!
Nicola Giuliani Thanks! It's all gravity feed since I don't have water lines to that side of the property. Rain is collected from the shop roof and goes to my first flush cleaner and then into my barrels. I'm working on now on the 12v system to each bed to run off solar... that will be on an upcoming video
you gain 1 psi for every 2.4 ft of height above your line.
Brian Cobb A rule of thumb to calculate gravity pressure system is (height x 0.433)=psi
Couldn't afford the pvc pipe nor could i transport it, therefore i designed gothic arches of concrete clad in a form of ABS plastic, essentially concrete reinforced 3d printed members.
great co-star!
I need your help Mr Engineer! I want to know more about the electricity side of arduino and or raspberry pi but I don't know where to start. would learning about ac and dc and home electricity help? what things can I look up to find more if or at ion revolving around this topic of electricity and connecting multiple devices.
Search for "Paul McWhorter" channel
que buen trabajo viejo,,,,,,sigue asi,,,,,,me gusta que comprartes los codigos, mil gracias.
Awesome inspiration, could u may tell what parts ure using?
CyberTom Parts list and code will be added in the description section soon
Automatic watering is a LOT easier than this folks, cheaper too. I put in 3 Orbit timers with y-valves on the hose bib, plus 3 Koram setups with drips and mist nozzles. Under $100 total and super easy to setup. Amazon.
What you failed to understand is that this watering system is using gravity feed rainwater and not pressurized water lines from a home. The arduino are setup to conserve the water while maximizing crop yield.
The Orbits and Koram drips will work with gravity feed as well! Anyway, cool channel and have a good night.
pls can someone know how to function the automatic umbrella when the rain drops using aruino sensor??
Seems nice ! Enybody noticed the guy sound little bit like Rick Sanchez ? :)
Escuche algo de español x ahi, me gustaria contactarte quisiera hacer eso en mi jardin, crees que podria hacerlo desde cero?
7:06 Did you buy your voice activated camera from AvE?
"focus you faaaaaaaack"
Are u using two separate motors for the 2 controller or a single motor?
single motor
Is there a way to do this without the Real time clock? More of like an as needed watering system rather than timed? or can I just take that part out of the program?
Thanks
+Olivia Clark You know, that is a good idea. I'm sure you can, let me see what I can do. Because I wouldn't want to replace the battery in the RTC.
I only had the clock in there so I can have a limited time for each bed, since I don't have high water pressure due to it being gravity feed. I have to do each bed one at a time.
Cool, I look into this... might be a version 3.0!
Thats sick...
Why did you use two arduino (one per beds? Why didnt you use only one for the two beds with multiples relays and sensors?
Charles-Étienne Olivier Good point. I thought of doing that this season. If there is enough space for the code on the microcontroller .Stay tuned for an updated code.
Thank you! One more question, i'm now working on a similar system. Have you been experiencing some corrosion on the moisture sensor?
Actually I have, Im going to seal the edges of the sensor with epoxy or something. Since voltage is going through the sensor, electrolysis is taking place. So, my though is to seal the fibreglass edges to prevent moisture withing the layers.... I doubt it will prevent it completey but we will see.
EngineerPrepper Nice projekt! !!
I have a similar projekt and the same problem corrosion .
If you seal the edges it can't read the resistans.
You need a capasetiv sensor as moisture sensor.
Are you turning off the supply voltage to the sensor ? Voltage only needs to be on for the instant the reading is taken, not constantly. Use a transistor or a relay to turn off the supply voltage to the sensor chip. If you need continuous reading then just read for one second every 30mins.
Hello, what's the diameter of the input and output on your solenoid valve?
Nick Kompagnie 3/4in NPT
thanks!
Did you have to snub the Motor?
Amazing!
Nice project.Waiting for code and part list.
The code is posted
what power is your sprinkler valve running on?
seems like solenoid
How much time is the battery life?
How did you get pressure on the water?
He's using a water pump, another way without water pump you should put the water tank higher so it will have natural waterfall's flow once the valve is open
Have you been improving this at all?
Do you have any current disturbances from relay that cause errors on lcd?
Not that I can tell. No
awesome!!
thank you so much you so good hart
did you use a 9v solenoid?
its rated 9v-12v
very useful
does it over heat ?
Not weather/water tight with those wires running through the gasket...
This was a prototype. The new one, the wire go through the case with a seal. Thanks for watching
how do you turn on and off water ? some kind of arduino module ?
is this what helps to turn on water ?
www.amazon.com/BACOENG-Stainless-Motorized-Control-Electric/dp/B0119ZI38U/ref=sr_1_1?ie=UTF8&qid=1490648968&sr=8-1&keywords=12v+3+4+valve+switch
if yes, how do you manage it in code ? do you turn on electricity to this valve for it at the mentioned time ?
Ankit Minglani yes that's the valve I used.
Ankit Minglani yes, in the code you can set the time you like, and duration or until the soil moisture reaches your set point.
nice!!
Works so well his plants all dead
It's the whole reason I put the system in. Yes my plants were dying at that point when I installed the system...and a few days later after getting much needed water the came back just fine.... thanks for watching.
Can you share the code...
Good useful
Hey! Can you share the code if possible?
The code is posted.
Engineerprepper where you posted this code
Please share the code
Which kind of pump do you use?
I dont have a pump... its just a valve that open/closes. The water is gravity feed from my water barrels.
Yep could you publish the used link for the valves ....
Also interested in the solenoid type
5:21 hermano latino
you'll have problems with mold and stuff if you water from above. Nice anyway.