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. Kasun Vithanage on November 2, 2021 at 10:25 am

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

  2. Useless Eater on November 2, 2021 at 10:27 am

    Robot, grow my weed. Ok human. Awesome!

  3. Deeg Obie on November 2, 2021 at 10:28 am

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

  4. Glenn Johnson on November 2, 2021 at 10:30 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.)

  5. Debashish Sahu on November 2, 2021 at 10:31 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.

  6. davidson2727what on November 2, 2021 at 10:31 am

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

  7. Glenn Johnson on November 2, 2021 at 10:32 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.

  8. Socrates Marshall on November 2, 2021 at 10:32 am

    Awesome build. Thank you.

  9. Internet Expert on November 2, 2021 at 10:34 am

    How’s it work for weed

  10. Clifford Cooper on November 2, 2021 at 10:34 am

    great for POT plants

  11. James Baucom on November 2, 2021 at 10:37 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.

  12. Indigo on November 2, 2021 at 10:38 am

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

  13. kyler ferguson on November 2, 2021 at 10:41 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.

  14. Smeedge on November 2, 2021 at 10:44 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.

  15. Jim McGill on November 2, 2021 at 10:46 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 🙂

  16. Sexy Chicken on November 2, 2021 at 10:46 am

    Oh man, that’s awesome

  17. Evia Keha on November 2, 2021 at 10:47 am

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

  18. TAX THE CHURCHES on November 2, 2021 at 10:48 am

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

  19. Matthew Willis on November 2, 2021 at 10:48 am

    Interested in bts for sure.

  20. chibanix on November 2, 2021 at 10:50 am

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

  21. Jake Hartman on November 2, 2021 at 10:51 am

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

  22. Alaska on November 2, 2021 at 10:54 am

    This project is awesome!!

  23. Raul Ontiveros on November 2, 2021 at 10:57 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

  24. Daniel Abreu on November 2, 2021 at 10:58 am

    U know what I’m gonna plant.

  25. Carl on November 2, 2021 at 10:58 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?

  26. doctorbarrientos on November 2, 2021 at 10:58 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

  27. LenWhistler on November 2, 2021 at 11:00 am

    Soil Moisture Sensor

  28. Carl L on November 2, 2021 at 11:00 am

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

  29. kaioid on November 2, 2021 at 11:00 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 ?

  30. Cezar Cazan on November 2, 2021 at 11:00 am

    Super cool video. Thank you!

  31. shrinidhij on November 2, 2021 at 11:00 am

    Hey! Good work folks! This is very informative!

  32. Eric Guttenberg, MD on November 2, 2021 at 11:01 am

    Can you share the 3D printer sketch?

  33. Derek Tascarella on November 2, 2021 at 11:02 am

    Where did you get the background from in your terminal?

  34. Glenn Johnson on November 2, 2021 at 11:03 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.

  35. Jeff S Arenas on November 2, 2021 at 11:10 am

    How would one go about building these to sell commercially?

  36. Mikael Dahlén on November 2, 2021 at 11:10 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.

  37. J Saldes on November 2, 2021 at 11:11 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?

  38. athuljohan on November 2, 2021 at 11:13 am

    Can u make a google lens with rasberry pi?

  39. Olawale Olatunde on November 2, 2021 at 11:14 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

  40. Ted Baxter on November 2, 2021 at 11:15 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.

  41. Zylvian on November 2, 2021 at 11:17 am

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

  42. id104335409 on November 2, 2021 at 11:18 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!

  43. Devin Weaver on November 2, 2021 at 11:19 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.

  44. Jerker Montelius on November 2, 2021 at 11:21 am

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

  45. Dilithium Crystals on November 2, 2021 at 11:21 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. 🙂

  46. Hacker Shack on November 2, 2021 at 11:22 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.

  47. Circle on November 2, 2021 at 11:23 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.

  48. Tor on November 2, 2021 at 11:23 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 😄👍🏼

  49. MyNameDoesNotFi on November 2, 2021 at 11:24 am

    Perfect for growing weed

  50. Ravinder Ram on November 2, 2021 at 11:24 am

    You are my inspiration bro

Leave a Comment