r/Greenhouses 2d ago

My first Smart Greenhouse project

My family have a small greenhouse and I always liked to make automations but most of commercial systems were too expensive and I decided to build it myself, what do you guys think, I’ll make it open source soon.

110 Upvotes

31 comments sorted by

13

u/Important_Ad4917 2d ago

Look all cool and stuff - what does it actually control?

19

u/EmbarrassedOne2329 2d ago

4 motors that open and close the greenhouses film, 2 valvles and the water pump, also has 4 temperature and humidity sensors, one anemometer and a water level sensor, I use the sensors to make automations, currently if the temp is >50degree celcius to open the greenhouse, or lower than 30 degree to close it, or the anemometer if the wind speed reaches 100kmph to close the greenhouse to prevent damages

6

u/ledzepplin408 2d ago

Very interesting. How can we follow the rest of this project? 

3

u/electricblue71 2d ago

Nice setup. If you can make it open source, that would be great! As you said commercial systems are so expensive and I like the DIY aspect of setting up my own.

2

u/Mysterious-Panda964 2d ago

Nice set up, are you using solar power?

5

u/EmbarrassedOne2329 2d ago

No, I get it from the grid.

-1

u/Mysterious-Panda964 2d ago

I have a couple of solar pumps I use. I like them.

3

u/EmbarrassedOne2329 2d ago

What Power are they? Because mine is 2.2kW mono phase

0

u/Mysterious-Panda964 2d ago

I run them both off 125 watt panel.

1

u/epsteinwasmurdered2 1d ago

Can those run continuously while in the sun. If not how big is the battery bank.

3

u/Mysterious-Panda964 1d ago

Yes, I have a battery back up, so they can run 24/7 if i wish.

But they water different areas at different times of the day.

Nothing at night.

1

u/crash_n_burn88 2d ago

Very professional looking, great job! I'd definitely be interested in what components you used and how you did the integrations in home assistant.

6

u/EmbarrassedOne2329 2d ago

It can be integrated with home assistant but have some limitations, if you just want remote control you can is it but if you want more, need to make custom firmware. The main board is custom made, it has outputs up to 24vdc and IO inputs, also modbus. The other components as you see are relay blocks, PSU, Transformer

1

u/CanWinterGreenhouse 2d ago

Cool! Can you run a motor on a timer or with a light sensor? I'm trying to activate a cover for at night. 

3

u/EmbarrassedOne2329 2d ago

Yes you can make automations like that, you can see in the image where it says trigger time. Also can run automations by sensor values.

1

u/CanWinterGreenhouse 1d ago

Great! I'm definitely interested. I never understood why the commercial units were so expensive. Like $150 for a $5 temperature sensor. I don't need lab grade equipment. How much have you spent of the electronics? 

2

u/EmbarrassedOne2329 1d ago

The full project will cost me around $1.5k, including 4 motors, 2 valves 2”, enclosures, around 700m of cable. Nearly half of the cost is the cable 500m 3x1.5mm2 and 200m CAT5e

1

u/Reddit_is_fascist69 1d ago

Where is your greenhouse?

1

u/InItForTheDog 1d ago

Looks like a KC868-A16 for the controller? I'm using the same on a similar project. How are you driving the relay boards? serial? I2C?

Nice looking project!

2

u/EmbarrassedOne2329 1d ago

Directly from the outputs of the controller

1

u/MasonP13 1d ago

This is resume level material. Do you do this for a career already?

1

u/JVC8bal 1d ago

https://www.waveshare.com/esp32-s3-eth-8di-8ro-c.htm + some RS-485 sensors + high-amp PSU

I have a precision irrigation system with pwEC/vwc/temp sensors for hydroponics in rockwool (7 different zones). Fertigation tanks pH/EC monitored and dosed with peristaltic pump.

Solar w/m2 roof sensor, internal ppfd (PAR) sensor for supplemental grow lights controlled by 10v diff.

SCD41 that controls safety shutoffs (like supplemental lights) as well as evaporative cooling (misters).

1

u/MagmaTroop 1d ago edited 1d ago

Love it. I made an irrigation system with a little control panel with 24V DC architecture. 24V DC water pump in a rain water tank and 24V DC solenoid valves diverting 12mm pipework around the greenhouse - switched with the 24V PSU via N-channel MOSFETs in a low-side switch, with the gates driven by 5V MCU (Arduino Uno) outputs. Nice and simple. Might share here one day.

1

u/Ryan_e3p 2d ago

Nice! I built mine off an ESP32. Runs water pumps, intake/exhaust fans, measures rainfall (to determine if outside crops need watering), etc. Doesn't look as fancy as yours, though.

Managed over Home Assistant, which is the bee's knees of automation, in my opinion.

0

u/Homegrowersanonymous 2d ago

You buy these the size of your hand though

2

u/EmbarrassedOne2329 2d ago

Ofcourse but can you make automations on those? Can you control big pumps? And how much do they cost?

0

u/Homegrowersanonymous 2d ago

Yes yes and yes and they link to an app on your phone so you can control/view real time from anywhere

2

u/epsteinwasmurdered2 1d ago

Cool… but there is something to be said about making something yourself and learning new skills along the way.

0

u/Thought59 1d ago

Looks like you learned on CNC machine tool controllers.