A 300 DOLLARS RASPBERRY PI FARM GROWS YOUR SALAD ON ITS OWN — YOU JUST HARVEST

A Raspberry Pi reads sensors and switches pumps, lights and fans to hold the perfect conditions in a hydroponic system or mushroom chamber — you set the targets once and it holds them around the clock.

by Kyle Gabriel

FULL CAD BOM FIRMWARE DOCS

GardenAutomation

difficulty
●●●○○
time
a weekend to get running, then tweaking per crop
license
GPL-3.0
repo
repo ACTIVE3,267 stars

WHAT YOU’LL NEED

  • Dev board / microcontrollerruns the project firmware

Partner

Run your scrapers in the cloudThis build needs data collection that runs 24/7. Apify's free plan includes $5 in credits every month — no card needed.Try Apify free
1

COMPAREE VERDICT

Mycodo is mature software that turns a Raspberry Pi into a feedback-driven farm controller. You wire sensors (temperature, humidity, CO₂, pH, EC) and relays (pumps, fans, lights, heaters) to the Pi, set your targets in the web dashboard, and Mycodo holds them using PID loops and conditional logic. It supports dozens of sensor types out of the box and the documentation is thorough. The hard part is not the software — it is deciding which sensors and actuators your specific setup actually needs, then wiring them correctly. A lettuce raft needs different gear than a mushroom fruiting chamber, and the Pi cannot fix bad plumbing or a leaky tent. If you already know what you want to automate and have built the physical system, Mycodo is an excellent brain for it. If you are starting from zero, budget a weekend for the software and another for the first round of hardware mistakes. The single biggest trap: buying a sensor that Mycodo does not support, or a relay board with a voltage mismatch. Check the supported hardware list before ordering anything.

NOT IN THE REPO

  • GPL-3.0 licence, free for all uses including commercial.
  • Full Python web application with sensor drivers, PID controllers and scheduling. Runs on Raspberry Pi OS.
  • Comprehensive manual and setup guide at kylegabriel.com/projects/.
  • No single bill of materials — sensor and relay choices depend entirely on your grow setup (hydro, soil, mushrooms).
  • Active development: last commit July 2026, 3.3k stars, regular releases.
  • The author's own time-lapse videos show real seed-to-harvest results, but every crop and enclosure is different.

Can I build this?

Printnothing required
BuyRaspberry Pi (3B+ or newer recommended), SD card, sensors and relays for your specific setup. The sensor list is long — start with the basics for your crop (DHT22 for humidity/temp is common, DS18B20 for water temp, a relay board for switching mains devices).
Toolsbasic soldering and wire crimping for sensor connections, familiarity with SSH and a terminal to install the software, mains wiring skills if you are switching pumps or lights directly
Skillscomfortable with Linux command line for initial setup, able to wire low-voltage sensors and understand relay switching. No coding required to use it, but Python knowledge helps if you want custom functions.
Timehalf a day to install and configure the software, then ongoing tuning as you learn what your plants or mushrooms actually need. The first crop is always slower.
Cost$$: Pi and SD card roughly $60-80, then sensors and relays add $100-300 depending on how many zones you automate. A basic single-chamber setup can stay under $250 total; a multi-zone hydro rig with CO₂ injection easily hits $400+.
SafetyIf you are switching mains-voltage devices (pumps, heaters, grow lights), you are working with live AC. Use properly rated relays in an enclosure and know what you are doing, or hire someone who does. Water and electricity together is the real risk here. Low-voltage sensor wiring is safe.

Build at your own risk. Projects involve tools, electronics and sometimes mains voltage — follow the creator’s safety notes.

Gallery

https://img.youtube.com/vi/nyqykZK2Ev4/maxresdefault.jpg

Start here

Navigation into the creator’s own docs — we don’t rewrite the guide, we route you to the source.

  1. 1.Read the official manual (Start here — the supported hardware page will save you from buying the wrong sensor.)
  2. 2.Install Mycodo on a fresh Raspberry Pi OS Lite image (The automated installer script handles dependencies; expect 20-30 minutes on a Pi 3B+.)
  3. 3.Wire your first sensor and test the reading in the web interface(A DHT22 on GPIO4 is a simple first test — if that works, the rest is just more wiring.)
  4. 4.Set up a basic PID loop for one output(PID tuning is where the learning curve hits — start conservative and tune from there.)

Resources

Documentation, files and community threads for this build — we link straight to the original sources and never rehost the creator’s files.

Kids code a robot with bricks — no screenPartner · Kickstarter
Kids code a robot with bricks — no screen

CodeeBot: build the robot from Lego-compatible bricks and program it by hand; a GPT tutor explains each step.

See CodeeBot

KNOWN ISSUES

  • Buying a sensor that is not on the supported list — Mycodo has drivers for dozens, but not all cheap Amazon sensors will work. Check the docs first.
  • Underestimating the wiring effort: each sensor needs power, ground and a data line, and a grow tent full of them turns into a rat's nest fast. Label everything.
  • Setting PID gains too aggressively and creating oscillation — your heater or humidifier will cycle on and off every few seconds. Start with low gains.
  • Not accounting for sensor placement: a temperature probe taped to the outside of your grow tent will read the room, not the canopy. Put sensors where the plants are.
  • Using a relay board rated for 5V signals with 3.3V GPIO — the Pi's outputs are 3.3V and some relay boards need 5V to switch reliably. Check the specs or add a level shifter.
  • Skipping a backup power plan: if the Pi loses power mid-cycle, everything stops. A small UPS or at least a proper shutdown script will save a crop.

Can I run this on a Pi Zero?

The docs say it works but recommend a Pi 3B+ or newer for the web interface to stay responsive, especially with multiple sensors logging every few seconds.

Do I need to know Python to use it?

No — the web interface does everything for typical setups. Python knowledge only matters if you want to write custom input or output modules.

Will it work with my specific nutrient doser / CO₂ regulator / etc?

If the device can be switched by a relay or controlled via a supported protocol (I²C, UART, GPIO), yes. If it needs proprietary software, probably not.

How much does it cost to run 24/7?

A Raspberry Pi 3B+ draws roughly 2-3 watts. The real power cost is the pumps, lights and heaters you are controlling — the Pi itself is negligible.

Can I access it remotely?

Yes, over your local network by default. For external access you will need to set up port forwarding or a VPN — the manual covers both.

Community builds

No community builds yet — be the first, we feature the best ones.

Discussion1

FROM THE COMPAREE TEAM

3,300 stars and eight years of active commits — Mycodo is one of the oldest Pi grow controllers still being developed. What crop or chamber would you automate first?

CompareeTEAM23d ago

Practical notes from our verification: The GitHub repo is the canonical source and the docs site (kizniche.github.io/Mycodo) is linked directly from the readme. There is no official YouTube channel — the author posts time-lapses on Instagram (@kylegabriel) but those are results, not walkthroughs. The best third-party setup guides are linked in the community forum. The single biggest decision before you start is not which Pi to buy, it is writing down exactly which environmental parameters you need to measure and control — that list determines your entire parts order, and Mycodo cannot fix a sensor you forgot or a relay you bought in the wrong voltage.

Kyle Gabriel

Kyle built Mycodo to automate his own hydroponic and mushroom grows, then open-sourced it in 2016. He still maintains it actively — the last release was July 2026 — and the project's longevity shows in the documentation and the breadth of supported hardware.

GitHub Web

Star the project on GitHub

DISCLAIMER

  • Comparee is not the author of the projects featured here. All rights to each project belong to its creator — every page links to the original source, and we never host creators’ files.
  • Information is provided without warranty and may become outdated as projects evolve. Prices are indicative bands only — always check the creator’s parts list for current costs.
  • Building and operating any project is at your own responsibility. Protective equipment, safe workshop practice and compliance with local regulations are the builder’s responsibility.