Raspberry Pi Automated Plant Watering with Website

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ก.ย. 2017
  • Full walkthrough including code can be found here:
    www.cyber-omelette.com/2017/09...
    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 (creativecommons.org/licenses/...)
    Source: chriszabriskie.com/divider/
    Artist: chriszabriskie.com/
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 99

  • @johnniewalker4212
    @johnniewalker4212 5 ปีที่แล้ว +36

    This is the most well thought out ghetto ass setup ive ever seen

    • @BenjaminEagan
      @BenjaminEagan  5 ปีที่แล้ว +7

      Come on, don't all autonomous/connected watering setups depend on a bike pump and tape?

    • @johnniewalker4212
      @johnniewalker4212 5 ปีที่แล้ว +2

      @@BenjaminEagan haha if not then they should

    • @aparnabhalavi4674
      @aparnabhalavi4674 3 ปีที่แล้ว

      @@BenjaminEagan of

    • @pidge8408
      @pidge8408 2 ปีที่แล้ว

      fr lmaoo

  • @circle4922
    @circle4922 4 ปีที่แล้ว +8

    People who take the time to share this kind of information are great. Thanks.

  • @SvenSommerJr
    @SvenSommerJr 6 ปีที่แล้ว +1

    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!

  • @semeradstephan
    @semeradstephan 6 ปีที่แล้ว +4

    Alright, I immediatly subscribed! :) Been looking to do this forever!

  • @jaret217
    @jaret217 5 ปีที่แล้ว +12

    "I hope you were able to grow from this experience." Yeah, I see what you did there

  • @JeremyCook
    @JeremyCook 4 ปีที่แล้ว +1

    Looking good today! Said the mirror.
    Thanks for putting that up, was looking for something similar.

  • @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 ปีที่แล้ว +1

      Thanks Thaddeus! You're appreciation is my award :D

  • @hiraiex5060
    @hiraiex5060 5 ปีที่แล้ว +1

    dude your project is awesome. thumbs up and kudos to your project and hard work

  • @sjoerdv92
    @sjoerdv92 5 ปีที่แล้ว +3

    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!

  • @NIBricks
    @NIBricks 5 ปีที่แล้ว +2

    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

  • @pidge8408
    @pidge8408 2 ปีที่แล้ว +1

    interesting setup

  • @ryanbuck4569
    @ryanbuck4569 6 ปีที่แล้ว +3

    Technology is amazing

  • @guddijain6818
    @guddijain6818 3 ปีที่แล้ว

    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

  • @GordonjSmith1
    @GordonjSmith1 5 ปีที่แล้ว +2

    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 ปีที่แล้ว +1

      Really simple, you should be able to scale this up until you run out of sensor pins.

  • @chasebledsoe7449
    @chasebledsoe7449 6 ปีที่แล้ว +1

    THANK YOU!!!

  • @erxvlog
    @erxvlog 5 ปีที่แล้ว +1

    Good stuff.

  • @myanpatel9379
    @myanpatel9379 4 ปีที่แล้ว

    Did you use jumper wires to connect everything?

  • @mrjb_8032
    @mrjb_8032 3 ปีที่แล้ว

    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

  • @allendavecatucag6931
    @allendavecatucag6931 5 ปีที่แล้ว

    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 :)

  • @myanpatel9379
    @myanpatel9379 4 ปีที่แล้ว

    And did you extend the wire of the pump?

  • @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 ?

  • @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.

  • @hangc10
    @hangc10 3 ปีที่แล้ว

    do you need multiple pi to water multiple plants?

  • @ljohnso16
    @ljohnso16 3 ปีที่แล้ว

    how do you get the multiple plants working

  • @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'

  • @Ombib1
    @Ombib1 6 ปีที่แล้ว +4

    nice

  • @sarabjitbedi4705
    @sarabjitbedi4705 3 ปีที่แล้ว

    what pump did you use

  • @GaryMcKinnonUFO
    @GaryMcKinnonUFO 4 ปีที่แล้ว +1

    Cool, i like the HUD you seem to have on the mirror!?

    • @GaryMcKinnonUFO
      @GaryMcKinnonUFO 4 ปีที่แล้ว +1

      Best to use capacitive moisture-sensors as the 2-prong models corrode after a few weeks.

    • @BenjaminEagan
      @BenjaminEagan  4 ปีที่แล้ว

      Agreed! You can extend the life by only adding current when measuring, but it still gives a lifespan of ~months.

    • @BenjaminEagan
      @BenjaminEagan  4 ปีที่แล้ว

      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.

  • @sumertheory
    @sumertheory 5 ปีที่แล้ว +2

    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.

  • @TheDiabeticWay
    @TheDiabeticWay 4 ปีที่แล้ว +1

    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  4 ปีที่แล้ว

      Very cool idea, are there any medical devices that already do this?

    • @TheDiabeticWay
      @TheDiabeticWay 4 ปีที่แล้ว +1

      @@BenjaminEaganEagan there is! but not sure how they work or do it do it! like you :-) there is 1: OMNIPOD - th-cam.com/video/0lS748rpl0k/w-d-xo.html 2: iLet
      - th-cam.com/video/bZXmfTxd79Q/w-d-xo.html
      3: Medtronic 670G INSULIN PUMP SYSTEM - th-cam.com/video/Bpb4VkAMVpg/w-d-xo.html and a few others

  • @hidayahramli1588
    @hidayahramli1588 4 ปีที่แล้ว

    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

  • @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.

  • @xxThat90sGuyxx
    @xxThat90sGuyxx 4 ปีที่แล้ว

    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)

  • @smartassist9700
    @smartassist9700 4 ปีที่แล้ว +1

    I need 7 sensor/waterers auto water reported by PI 3B+. Each named by type of plant. Can that be done easily?

    • @BenjaminEagan
      @BenjaminEagan  4 ปีที่แล้ว

      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)

  • @shumakriss
    @shumakriss 6 ปีที่แล้ว

    Can you do a follow up on how your plants are doing?

    • @BenjaminEagan
      @BenjaminEagan  6 ปีที่แล้ว +1

      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.

  • @danyka2888
    @danyka2888 5 ปีที่แล้ว

    Was this complex enough to keep the plant alive? What about non-uniform moisture across the pot?

    • @BenjaminEagan
      @BenjaminEagan  5 ปีที่แล้ว +2

      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.

  • @BVMBLOG
    @BVMBLOG 4 ปีที่แล้ว

    this code is not working
    import water >>> water.get_status() >>> water.pump_on()

  • @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.

  • @larfanformersalat0220
    @larfanformersalat0220 5 ปีที่แล้ว

    I unfortunately do not understand the code....

  • @kansasnutt
    @kansasnutt 5 ปีที่แล้ว +1

    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

  • @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.

  • @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.

  • @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 ปีที่แล้ว +1

      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 :-)

  • @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

  • @moglimogify
    @moglimogify 5 ปีที่แล้ว +1

    How do you host the website? Directly on the pi?

    • @BenjaminEagan
      @BenjaminEagan  5 ปีที่แล้ว +2

      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.

  • @emaanrad1624
    @emaanrad1624 2 ปีที่แล้ว

    Nice Work ^^ but Why u don't use ThinkSpeak Cloud

    • @BenjaminEagan
      @BenjaminEagan  2 ปีที่แล้ว +1

      Never heard of it, and there’s something satisfying about rolling your own solution end to end

  • @kungsensei3393
    @kungsensei3393 5 ปีที่แล้ว

    Does he know he's facing back? Lol
    Good video though

  • @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 ปีที่แล้ว +1

      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!

  • @thevabhas7225
    @thevabhas7225 3 ปีที่แล้ว

    It's working online

  • @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

  • @firekid801gaming4
    @firekid801gaming4 6 ปีที่แล้ว +2

    Hey know what's weird about your name is my name is Egan and my friends name is Ben

    • @BenjaminEagan
      @BenjaminEagan  6 ปีที่แล้ว +2

      Very strange indeed, when you guys hang out together you can pretend you're me.

  • @sangramrout7657
    @sangramrout7657 4 ปีที่แล้ว

    Code plz

  • @shaunramkelawon
    @shaunramkelawon 5 ปีที่แล้ว

    Cool magic mirror

    • @BenjaminEagan
      @BenjaminEagan  5 ปีที่แล้ว +1

      Thanks Shaun!

    • @shaunramkelawon
      @shaunramkelawon 5 ปีที่แล้ว

      @@BenjaminEagan do you have any vids on your mirror?

    • @BenjaminEagan
      @BenjaminEagan  5 ปีที่แล้ว +1

      @@shaunramkelawon yeah man, lots of them! Here my playlist for it... Smart Mirror DIY: th-cam.com/play/PLt3p83v43FhScp2VHiVXwrx5dmY9N1-rO.html

    • @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.