Make a Raspberry Pi Automated Gardener

Make a Raspberry Pi Automated Gardener

See how we built it, including our materials, code, and supplemental instructions, on Hackster.io: https://www.hackster.io/hakershack/automated-indoor-gardener-a90907

With how busy our lives are, it’s sometimes easy to forget to pay a little attention to your thirsty indoor plants until it’s too late and you are left with a crusty pile of yellow carcasses. Instead of constantly replacing those plants, we’ll show you how to make a compact, automated, raspberry pi powered gardener to water and light your plants. This gardener’s memory is impeccable, and never forgets to water your plant.

This project uses a Raspberry Pi Zero W to run the software. It doesn’t use wifi, so you could also use the Raspberry Pi Zero. However, if you want to extend the functionality and make it connect to an IoT app, you’ll want to use the Zero W.

USEFUL LINKS:
View our code on Github: https://github.com/HackerShackOfficial/Automated-Gardener

Follow Hacker Shack on Instagram:
https://www.instagram.com/hackershackofficial/

Subscribe to Hacker Shack: https://goo.gl/qHjz4j

Visit our website for parts and project updates: https://www.thehackershack.com/

MATERIALS
Raspberry Pi Zero × 1
Amazon Affiliate Link – https://goo.gl/Zsxm7k

12v Peristaltic Pump × 1
Amazon Affiliate Link – https://goo.gl/z6kbjw

White SiliconeTubing, 1/8″ID, 3/16″OD × 1
Amazon Affiliate Link – https://goo.gl/wkaR37

5v Grow Light × 1
Amazon Affiliate Link – https://goo.gl/VV9QU9

IRLB8721PBF N-Channel MOSFET × 2
Amazon Affiliate Link – https://goo.gl/kee48t

Jumper wires (generic) × 1
M4 Bolts + Nuts × 4
M3 Bolts + Nuts × 2
M2.5 Bolts + Nuts × 2
Electrical Tape × 1
12v Power Supply × 1

MUSIC:
Guggenz – https://soundcloud.com/guggenz

*Disclaimer*
The methods shown in this video should be used
as a guide only.

HACKER SHACK ACCEPTS NO RESPONSIBILITY FOR
ACCIDENTS OR INCIDENTS ARISING FROM INDIVIDUALS
UNDERTAKING ANY OF THE TASKS DESCRIBED. IN
PARTICULAR, IF UNSURE YOU SHOULD ALWAYS CONTACT
A QUALIFIED TRADESMAN BEFORE PROCEEDING.

50 Comments

  1. Circle on October 29, 2021 at 10:53 am

    This is reaaly cool, thanks for sharing.

    Could this be easily/reasonably upscaled for larger gardens? Indoor hyroponics or regular container gardening with larger plants/plant numbers?

    Thanks again.



  2. Dilithium Crystals on October 29, 2021 at 10:56 am

    can i water 20 plants ? 1 cpu per plant seems kinda wasteful. also if i could control the schedule and amount of water for each of the plants. 🙂



  3. Hacker Shack on October 29, 2021 at 10:56 am

    Seems like there are a lot of requests for extra features (webcam, ph/moistness sensor, IoT app, etc.) If there is enough interest, we could make a follow-up video about how to add some of those features.



  4. Olawale Olatunde on October 29, 2021 at 11:00 am

    How does he connects the 12v powers supply to the raspberry pi, wouldn’t that fry it up. If anyone could help me out I would appreciate it



  5. Smeedge on October 29, 2021 at 11:00 am

    Little known fact in the Pi community… there’s something called a power MOSFET that you can use to switch much higher voltages than 5V… or use a relay and switch AC.



  6. kaioid on October 29, 2021 at 11:02 am

    well done !! is there anyway to know the time and quantity of lighting a plant does exactly need ? i dont know … by using a camera raspberry and mesuring the quantity of smtg ?



  7. Mikael Dahlén on October 29, 2021 at 11:03 am

    To avoid algae building up inside the water container or tubes, try a non-transparent material or put everything inside some form of housing.



  8. J Saldes on October 29, 2021 at 11:03 am

    Doesn’t this still require you to fill up that glass every once in a while? Seems like if you’re already having problems remembering to water your plants you’d probably have problems remembering to fill up that glass?



  9. Eric Guttenberg, MD on October 29, 2021 at 11:06 am

    Can you share the 3D printer sketch?



  10. Raul Ontiveros on October 29, 2021 at 11:07 am

    Would you be able to post a video on how you made the 3d printed casing, I use Autodesk Inventor, I was wondering if that would be compatible to 3d print



  11. Glenn Johnson on October 29, 2021 at 11:07 am

    Another addition could be hygrometer (soil moisture sensor)and have a logic flow that dispenses water when needed and then have a float sensor in the water reservoir with logic, telling you when it needed refilling.



  12. Useless Eater on October 29, 2021 at 11:08 am

    Robot, grow my weed. Ok human. Awesome!



  13. Matthew Willis on October 29, 2021 at 11:08 am

    Interested in bts for sure.



  14. Jim McGill on October 29, 2021 at 11:10 am

    Yeah, awesome project…but the Pi seems wasted on such basic functionality. I mean, these functions could be controlled by a simple timer. Would also like to see watering based on soil humidity, ambient temperature etc. Keep up the great work 🙂



  15. Jeff S Arenas on October 29, 2021 at 11:12 am

    How would one go about building these to sell commercially?



  16. Sexy Chicken on October 29, 2021 at 11:13 am

    Oh man, that’s awesome



  17. davidson2727what on October 29, 2021 at 11:13 am

    Does the light only turn on while the pump is watering the plant?



  18. Glenn Johnson on October 29, 2021 at 11:14 am

    General rule of thumb when looking for power sources: Look at what takes the highest voltage and amperage and match your PSU to that. Everything else that needs a lower source, create a feed from your PSU to a buck driver to reduce voltage (you can also get current limit buck drivers for the LED lights if needed.)



  19. kyler ferguson on October 29, 2021 at 11:16 am

    wait a minute. why are you using the pi to power your grow light? that’s way too much draw & you’re gonna ruin it. You should be using an interface circuit w/ a separate power source for that.



  20. Jake Hartman on October 29, 2021 at 11:16 am

    Ide buy this from whoever if it was completely ready to go out the box and cheap?



  21. Carl on October 29, 2021 at 11:19 am

    Hi, nice project!
    I could try to wire everything exactly like you did, but I have no idea how to do this in own projects. Where can I learn this electronics stuff with MOSFET transistor and co? Could you please recommend me a book or an website so I can learn this by myself?



  22. Deeg Obie on October 29, 2021 at 11:20 am

    YES POST IT PLEASE, VERY INTERESTING CHANNEL! Great Job!



  23. shrinidhij on October 29, 2021 at 11:23 am

    Hey! Good work folks! This is very informative!



  24. Ted Baxter on October 29, 2021 at 11:23 am

    Do people have a limit to how much they spend for this type of thing to monitor and water a plant? Maybe it’s not a question of money, but wanting to get it done.



  25. Evia Keha on October 29, 2021 at 11:25 am

    Can you customize this to work with my own 260W lights?



  26. LenWhistler on October 29, 2021 at 11:26 am

    Soil Moisture Sensor



  27. Glenn Johnson on October 29, 2021 at 11:27 am

    You should also look into using either diodes or optoisolators on those MOSFETS – any reverse voltage could fry your RPI! Or remove the MOSFETS and use mechanical relays if the current is high.



  28. Indigo on October 29, 2021 at 11:27 am

    Just leave the glass of water and pipe, the plant will draw water from the glass. Seriously over engineering



  29. Cezar Cazan on October 29, 2021 at 11:28 am

    Super cool video. Thank you!



  30. Internet Expert on October 29, 2021 at 11:28 am

    How’s it work for weed



  31. Socrates Marshall on October 29, 2021 at 11:29 am

    Awesome build. Thank you.



  32. Debashish Sahu on October 29, 2021 at 11:30 am

    You will eventually burn the MOSFETs driving the pump. You need a fly back diode and if possible a pulldown on the MOSFET gate.



  33. Zylvian on October 29, 2021 at 11:31 am

    Will I be able to bypass any adapters or packs by buying a 5v water pump instead of a 12v?



  34. Ravinder Ram on October 29, 2021 at 11:31 am

    You are my inspiration bro



  35. Kasun Vithanage on October 29, 2021 at 11:34 am

    You could use a NodeMCU with ESP8266 for such simple project(its lot cheaper)



  36. Tor on October 29, 2021 at 11:34 am

    I like the theme! Stupid girl kills her plants out of ignorance or just plain lack of care, so a nerd man has to step in to save the world.

    The more plausible use case is that the girl has managed to fix this for every year so far by having a friend over to water them twice over the summer, but the guy invents a solution for a problem that doesn’t exist just to have something to do and at the same eliminates the possibility for the friend to help her friend, which would have strengthened their friendship.

    In reality this project is just to build something cool and possibly use it twice a year, when it easily could have been solved in other ways that weren’t quite as cool.

    I still like it though 😄👍🏼



  37. Carl L on October 29, 2021 at 11:37 am

    Quantum Par Meter. Good for the plant growth. @t



  38. TAX THE CHURCHES on October 29, 2021 at 11:43 am

    This sounds like a advertising. And my ad blocker is not happy.



  39. Alaska on October 29, 2021 at 11:44 am

    This project is awesome!!



  40. Devin Weaver on October 29, 2021 at 11:45 am

    Sorry to be a nitpick but you can schedule things on a Pi with Cron! Would make the code much smaller. A command for on off light and one for the pump. Add two entries to the crontab and done. No startup script needed.



  41. MyNameDoesNotFi on October 29, 2021 at 11:45 am

    Perfect for growing weed



  42. Jerker Montelius on October 29, 2021 at 11:47 am

    You need a dark water bottle otherwise allege will start to grow there.



  43. chibanix on October 29, 2021 at 11:49 am

    super video could it be passible to add a ph prob ?



  44. doctorbarrientos on October 29, 2021 at 11:49 am

    Beatiful video and channel, but how come you didn’t use thermo retract seals instead of duct tape? Don’t mean to bitch, but…

    Anyway, really nice setup



  45. id104335409 on October 29, 2021 at 11:50 am

    Don’t you just hate it when you walk in on your plant and IT IS ALREADY DEAD?!? CANT EVEN TURN YOUR BACK ON IT FOR A MINUTE!



  46. Daniel Abreu on October 29, 2021 at 11:52 am

    U know what I’m gonna plant.



  47. Clifford Cooper on October 29, 2021 at 11:52 am

    great for POT plants



  48. Derek Tascarella on October 29, 2021 at 11:53 am

    Where did you get the background from in your terminal?



  49. James Baucom on October 29, 2021 at 11:53 am

    This actually gets me halfway to my end goal of an automated chameleon cage. The lights and water are covered. Next I need to set up a thermometer, and code that information to auto activate the heat lamp/cooling fan to maintain optimal temperature. As well as a humidity sensor set to activate the fogger below optimum humidity.



  50. athuljohan on October 29, 2021 at 11:53 am

    Can u make a google lens with rasberry pi?