Тёмный
No video :(

Raspberry Pi Automated Plant Watering with Website 

Ben Eagan
Подписаться 2,6 тыс.
Просмотров 70 тыс.
50% 1

Full walkthrough including code can be found here:
www.cyber-omele...
Materials:
Raspberry Pi: amzn.to/2CSUgTC
Relay: amzn.to/2CTeegU
Moisture Sensors: amzn.to/2VB2TcP
Mini Submersible Pump: amzn.to/2RApoiC
Silicone Tubing: amzn.to/2GY2QUS
My take on an automated plant watering system. This uses a Raspberry Pi to read a moisture sensor and turn on a pump when a plant is in need of water. There is also a website hosted on the pi that lets you check the status and trigger watering events.
Music:
CGI Snake by Chris Zabriskie is licensed under a Creative Commons Attribution license (creativecommon...)
Source: chriszabriskie....
Artist: chriszabriskie....

Опубликовано:

 

23 сен 2017

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 99   
@johnniewalker4212
@johnniewalker4212 5 лет назад
This is the most well thought out ghetto ass setup ive ever seen
@BenjaminEagan
@BenjaminEagan 5 лет назад
Come on, don't all autonomous/connected watering setups depend on a bike pump and tape?
@johnniewalker4212
@johnniewalker4212 5 лет назад
@@BenjaminEagan haha if not then they should
@aparnabhalavi4674
@aparnabhalavi4674 3 года назад
@@BenjaminEagan of
@pidge8408
@pidge8408 3 года назад
fr lmaoo
@circle4922
@circle4922 4 года назад
People who take the time to share this kind of information are great. Thanks.
@sjoerdv92
@sjoerdv92 5 лет назад
Great video! Hoping to do a project like this with plant-moisture sensor, water reservoir sensor, pump for water and possibly light-sensor with plant lamp! To top it off, if it works, I'd hope to build it with a Pi Zero and make the project as esthetic as possible. Thanks again for the video and inspiration!
@jaret217
@jaret217 5 лет назад
"I hope you were able to grow from this experience." Yeah, I see what you did there
@thaddeuspearson8952
@thaddeuspearson8952 4 года назад
absolutely amazing 100% COOLEST use of a pie and flask I have ever seen. Well done man you should get some kind of award.
@BenjaminEagan
@BenjaminEagan 4 года назад
Thanks Thaddeus! You're appreciation is my award :D
@pidge8408
@pidge8408 3 года назад
interesting setup
@SvenSommerJr
@SvenSommerJr 6 лет назад
Hey Ben, thanks for the inspiring video and the detailed tutorial. I really like the nature of your videos. Time to show the watering status of your plants on your Smart Mirror!
@BenjaminEagan
@BenjaminEagan 6 лет назад
Some smart mirror integration for the plant watering is an awesome suggestion, I've been looking for an excuse to write an add on to MagicMirror as well. Thanks for the suggestion and kind words, it's much appreciated!
@JeremyCook
@JeremyCook 4 года назад
Looking good today! Said the mirror. Thanks for putting that up, was looking for something similar.
@semeradstephan
@semeradstephan 6 лет назад
Alright, I immediatly subscribed! :) Been looking to do this forever!
@hiraiex5060
@hiraiex5060 5 лет назад
dude your project is awesome. thumbs up and kudos to your project and hard work
@GaryMcKinnonUFO
@GaryMcKinnonUFO 5 лет назад
Cool, i like the HUD you seem to have on the mirror!?
@GaryMcKinnonUFO
@GaryMcKinnonUFO 5 лет назад
Best to use capacitive moisture-sensors as the 2-prong models corrode after a few weeks.
@BenjaminEagan
@BenjaminEagan 5 лет назад
Agreed! You can extend the life by only adding current when measuring, but it still gives a lifespan of ~months.
@BenjaminEagan
@BenjaminEagan 5 лет назад
Thanks, you've spotted my smart mirror - lots of videos on my channel about how to make it! Nice weekend project if you have the supplies.
@NIBricks
@NIBricks 5 лет назад
Hey Ben, great video ! can I ask could this be run with multiple sensors and pumps from one raspberry Pi? thank you
@itisno1
@itisno1 4 года назад
im guessing since u used a relay that ur using a 120v water pump. I am using DC pump so am making a circuit incorporating a pnp transistor so i can use a different power source other than the pi. when the base lead of the transistor is excited by current via 3v3 the circuit is then allowed to flow through the collector and emitter
@ryanbuck4569
@ryanbuck4569 6 лет назад
Technology is amazing
@guddijain6818
@guddijain6818 4 года назад
Well can we do as such that even we don't use this laptop rpi automatically perform auto plant irrigation and website is controlled by us from any where in the world
@TheDiabeticWay
@TheDiabeticWay 5 лет назад
The device here could be very good for T1's to know when he needs insulin instead of water! :-) great video and project! :-)
@BenjaminEagan
@BenjaminEagan 5 лет назад
Very cool idea, are there any medical devices that already do this?
@TheDiabeticWay
@TheDiabeticWay 5 лет назад
@@BenjaminEaganEagan there is! but not sure how they work or do it do it! like you :-) there is 1: OMNIPOD - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-0lS748rpl0k.html 2: iLet - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-bZXmfTxd79Q.html 3: Medtronic 670G INSULIN PUMP SYSTEM - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Bpb4VkAMVpg.html and a few others
@sumertheory
@sumertheory 5 лет назад
can you extend this to water more than one plant with one cpu and one pump
@BenjaminEagan
@BenjaminEagan 5 лет назад
Definitely, for that you'd need some actuated valves which are opened when a plant is thirsty. Then when the pump pushes water, it only comes out the open bits.
@GordonjSmith1
@GordonjSmith1 5 лет назад
Nice. Looking forward to building it myself. Question, how tricky, apart from more relays, pumps etc, would it be to add more plants? (E.g. 6 different plant pots)
@BenjaminEagan
@BenjaminEagan 5 лет назад
Really simple, you should be able to scale this up until you run out of sensor pins.
@erxvlog
@erxvlog 5 лет назад
Good stuff.
@smartassist9700
@smartassist9700 5 лет назад
I need 7 sensor/waterers auto water reported by PI 3B+. Each named by type of plant. Can that be done easily?
@BenjaminEagan
@BenjaminEagan 5 лет назад
I would suggest using this relay instead: amzn.to/2LFJd4V - each pump can be controlled by a specific relay. Then you would have 7 moisture sensors connected directly to the pi (which has 20+ GPIO pins, so enough for 7 sensors and 7 relays to control)
@Ombib1
@Ombib1 6 лет назад
nice
@benrobinzon7256
@benrobinzon7256 2 года назад
Hi, thanks for the video. I saw you mentioned that it can only be done via PI 3, I have 4 and it doesn't work from the early stage of testing the pump, can you please explain why only pi 3 should be used?...
@BenjaminEagan
@BenjaminEagan 2 года назад
Hi Ben, this depends on GPIO so makes some strong assumptions about the purpose of the pins. It’s very likely the GPIO pin layout between 3 and 4 has changed.
@sarabjitbedi4705
@sarabjitbedi4705 4 года назад
what pump did you use
@mrjb_8032
@mrjb_8032 4 года назад
I have the same 4 pin sensor but on the cyber-omelette, it only shows the 3 pins where does it go then pls help
@myanpatel9379
@myanpatel9379 4 года назад
And did you extend the wire of the pump?
@chasebledsoe7449
@chasebledsoe7449 6 лет назад
THANK YOU!!!
@BVMBLOG
@BVMBLOG 4 года назад
this code is not working import water >>> water.get_status() >>> water.pump_on()
@myanpatel9379
@myanpatel9379 4 года назад
Did you use jumper wires to connect everything?
@ljohnso16
@ljohnso16 3 года назад
how do you get the multiple plants working
@bilanoob8104
@bilanoob8104 5 лет назад
Hi sir, what is the command use to start the program? i using python auto_water.py to start my program and my water pump straight working non stop. It cannot function well when i place my sensor into water or out of the water and my water pump keep switch on. Besides that,when i run python auto_water.py it only show (Here we go! Press CTRL+C to exit). It does not show the getting readings that sir show in video. Sir do u have any ideas or suggestion to solve it.
@kansasnutt
@kansasnutt 5 лет назад
CAN YOU CONTOL THIS FROM ANYWHERE...OR JUST THE LAN AT YOUR HOUSE?
@BenjaminEagan
@BenjaminEagan 5 лет назад
EDIT: had my videos confused, this is only over LAN... Sorry for the mix up
@hangc10
@hangc10 3 года назад
do you need multiple pi to water multiple plants?
@cristianteixeira8307
@cristianteixeira8307 5 лет назад
I have a project for my final assignment in lecture about raspberry pi . I made automatic watering like you did and to display data on the web im using mysql database , i have problem connection to mysql database and displaying it to web , can you help me please ?
@danyka2888
@danyka2888 5 лет назад
Was this complex enough to keep the plant alive? What about non-uniform moisture across the pot?
@BenjaminEagan
@BenjaminEagan 5 лет назад
I killed my plant repotting, but it did keep two plants happy for about 6 weeks. I positioned the hose to be right in the middle and it seemed to distribute moisture well enough.
@emaanrad1624
@emaanrad1624 3 года назад
Nice Work ^^ but Why u don't use ThinkSpeak Cloud
@BenjaminEagan
@BenjaminEagan 3 года назад
Never heard of it, and there’s something satisfying about rolling your own solution end to end
@xxThat90sGuyxx
@xxThat90sGuyxx 5 лет назад
Is the relay necessary? I figured one could just hook both the pump and the sensor up to the pi, pi takes a reading, activates a 3v pump... Am I missing something important?
@BenjaminEagan
@BenjaminEagan 4 года назад
I have heard if you draw too much current for a motor or pump you can easily fry your Pi, so the recommendation is always to power externally. So I'd take this approach at your own risk. (Here's a thread on the topic: www.raspberrypi.org/forums/viewtopic.php?t=15688)
@allendavecatucag6931
@allendavecatucag6931 6 лет назад
Good Day sir! i'm currently working like this project t then i add only water flow sensor, but the problem is that when i run the automated irrigation and water flow sensor the valve will close then only the water flow sensor will continue to run, what is the problem of this kind of problem sir? as a raspbe master :)
@moglimogify
@moglimogify 5 лет назад
How do you host the website? Directly on the pi?
@BenjaminEagan
@BenjaminEagan 5 лет назад
Yes, flask server on the pi. it's also only accessible from your LAN, unless you setup port forwarding for the raspberry pi's IP.
@larfanformersalat0220
@larfanformersalat0220 5 лет назад
I unfortunately do not understand the code....
@BVMBLOG
@BVMBLOG 4 года назад
this is the error: water.get_status() Traceback (most recent call last): File "", line 1, in AttributeError: module 'water' has no attribute 'get_status'
@shumakriss
@shumakriss 6 лет назад
Can you do a follow up on how your plants are doing?
@BenjaminEagan
@BenjaminEagan 6 лет назад
Haha, good questkon. About a month after this I repotted them and they didn't survive. Hoping to build a cleaner version of this soon and try again.
@hidayahramli1588
@hidayahramli1588 5 лет назад
sir,it is okay to use 12V 4 Channel Relay Module with Optocoupler Isolation Supports High Low Trigger
@BenjaminEagan
@BenjaminEagan 4 года назад
You have my permission, on the condition you make sure it gets a 12v power supply
@mal798
@mal798 4 года назад
Could it be calibrated to keep soil moist without flooding?
@BenjaminEagan
@BenjaminEagan 4 года назад
Yeah for sure. Just a matter of a little trial and error.
@nickthenab1
@nickthenab1 4 года назад
Hi. I’ve wired everything up exactly as you had on your page. My soil sensor when submerged is saying the plant needs water. Any idea what is going on? I used the sparkfun one from your site as well that you had linked.
@nickthenab1
@nickthenab1 4 года назад
Never mind I fixed it. For anyone using the new red sparkfun sensor it’s readings are reversed what his sensor is. I had to switch the values for auto watering. 1 is wet and 0 is dry.
@thevabhas7225
@thevabhas7225 3 года назад
It's working online
@CosminCI
@CosminCI 4 года назад
Hi, I am new to raspberry, where do I put the files, when I try to run the water. pi it tells me that the RPi. GPIO is missing
@CosminCI
@CosminCI 4 года назад
I did install it
@itisno1
@itisno1 4 года назад
The problem is that the soil will be constantly wet, cause root rot & kill the plant. The roots need to be able to breathe.
@BenjaminEagan
@BenjaminEagan 4 года назад
the beauty of building this, is the can change how they work. No reason you couldn't set a 24hr delay for example before watering.
@itisno1
@itisno1 4 года назад
@@BenjaminEagan it's true. I think time is already imported. I didn't use this script for mine though.
@itisno1
@itisno1 4 года назад
@@BenjaminEagan & I'ma be using circuit python soon as I get a trinket M0 so I'll probably have to rewrite it again
@fuglypanda8228
@fuglypanda8228 6 лет назад
Could you do one timed without a relay, and sensor's?
@BenjaminEagan
@BenjaminEagan 6 лет назад
You mean just a pump on a timer? Yes, I'm sure that's possible. I would still use a relay though.
@kungsensei3393
@kungsensei3393 6 лет назад
Does he know he's facing back? Lol Good video though
@hayura5848
@hayura5848 6 лет назад
Btw, how do you determine how many soil moisture sensors to use in a garden? Is one enough? Thank you :)
@BenjaminEagan
@BenjaminEagan 6 лет назад
Iona Saneda depends on the size, but I'd say one every sq meter. I'm not a garden pro though.
@hayura5848
@hayura5848 6 лет назад
Oh thank you so much :)
@hayura5848
@hayura5848 6 лет назад
hi i want to use firebase as my database how do i do this using your code above? thank you
@BenjaminEagan
@BenjaminEagan 6 лет назад
I have no idea. Sounds like you have a DIY project on your hands :-)
@casinomann
@casinomann 5 лет назад
How did you figure what size tubing to use?
@BenjaminEagan
@BenjaminEagan 5 лет назад
Honestly just guessed, it's not quite a perfect fit on the pump, but as it's submerged anyway a little leaking isn't an issue.
@casinomann
@casinomann 5 лет назад
@@BenjaminEagan Got it. I was lucky enough to find thr perfect wire for mine locally. How did you position the pump how you wanted it in relation to the plant?
@BenjaminEagan
@BenjaminEagan 5 лет назад
Sorry, I'm not sure I understand the question... Just placed it in a jar beside the plant
@casinomann
@casinomann 5 лет назад
haha shit, I mixed up the type of pump you have. I have a perastiltic pump myself so I need somewhere to have it. My bad!
@sangramrout7657
@sangramrout7657 4 года назад
Code plz
@BenjaminEagan
@BenjaminEagan 4 года назад
Check the description
@firekid801gaming4
@firekid801gaming4 6 лет назад
Hey know what's weird about your name is my name is Egan and my friends name is Ben
@BenjaminEagan
@BenjaminEagan 6 лет назад
Very strange indeed, when you guys hang out together you can pretend you're me.
@shaunramkelawon
@shaunramkelawon 5 лет назад
Cool magic mirror
@BenjaminEagan
@BenjaminEagan 5 лет назад
Thanks Shaun!
@shaunramkelawon
@shaunramkelawon 5 лет назад
@@BenjaminEagan do you have any vids on your mirror?
@BenjaminEagan
@BenjaminEagan 5 лет назад
@@shaunramkelawon yeah man, lots of them! Here my playlist for it... Smart Mirror DIY: ru-vid.com/group/PLt3p83v43FhScp2VHiVXwrx5dmY9N1-rO
@shaunramkelawon
@shaunramkelawon 5 лет назад
@@BenjaminEaganexcellent work 👌 I shall be attempting some of your stuff 😄
@BenjaminEagan
@BenjaminEagan 5 лет назад
@@shaunramkelawon Nice, hope it goes smoothly. Let me know if you get stuck anywhere.
Далее
Automatic Garden Watering System
15:28
Просмотров 205 тыс.
would you eat this? #shorts
00:39
Просмотров 3,9 млн
Build an Automated Hydroponic System
15:21
Просмотров 1,4 млн
Preventing Plant Death With Technology
14:00
Просмотров 133 тыс.
Raspberry Pi Plant Watering (& Time Lapse)
23:41
Просмотров 332 тыс.
DIY Watering System for a Greenhouse/Garden
8:47
Просмотров 23 тыс.
The smartphone from 2030 just arrived today...
7:34