What's new
Carbonite

Welcome to Carbonite! Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Hydroponics automation with raspberry pi

awvince

Junior Member
Rating - 100%
69   0   0
Joined
Oct 15, 2017
Messages
449
Reaction score
91
Points
835
Hi All

Has anybody built a hydroponic system with automation using a raspberry pi.

If so please share resources.

I am looking at the grovepi for the sensors but if you have something similar please share.

Thanks.

Sent from my Mi 9T Pro using Tapatalk
 

darkstorm369

Cannon Fodder
Rating - 100%
12   0   0
Joined
Feb 2, 2012
Messages
73
Reaction score
16
Points
1,135
Location
Cape Town
I once turned a lightbulb on using my phone over the internet with a relay using the PI, the implementation and code was horrible but its possible.
 

Vlad_the_Inhaler

I say things.
VIP Supporter
Rating - 100%
10   0   0
Joined
Nov 6, 2016
Messages
319
Reaction score
227
Points
1,045
I once turned a lightbulb on using my phone over the internet with a relay using the PI, the implementation and code was horrible but its possible.
Once saw a video of a guy running a pidroponic setup with auto watering and moisture sensors etc. Will see if i can find it. I think he shared the code etc in his "link below".
 

eyesuc

Well-Known member
Rating - 100%
44   0   0
Joined
May 7, 2012
Messages
478
Reaction score
260
Points
1,785
I remember running into this a few months ago.

Seems interesting
 

UnBreakable_D

Audio Addict
Rating - 100%
47   0   0
Joined
Oct 8, 2014
Messages
998
Reaction score
153
Points
1,235
Age
33
Location
Pretoria
not specific to hydroponics but you could probably modify quite a bit of this to help you along
 

Zyetta

Member
Rating - 100%
19   0   0
Joined
Jan 5, 2019
Messages
117
Reaction score
35
Points
685
Age
21
Location
Stellenbosch
Im currently doing something NOT exactly like that, but it has a similar premise. It has to do with live data monitoring of the power consumption of several Raspberry Pi's, with the ability to execute commands to one of several arduinos to power on/off an assigned RPi, as well as some other features as well. And all of this is hosted on a central Raspberry Pi.

What I would suggest is setting up a webserver based on python (Flask is good) on the RPi, or inside the docker container, which will be your orchestrator of commands.
This gives you the ability to execute commands based on plant, time, sensor data, etc. Having the orchestrator at a central location also allows for multiple plants to be watered with their own, unique requirements, at different locations.

And then to physically water the plants, use an Arduino with a WiFi hat, or some other controller with WiFi as well, and use MQTT on the device.
MQTT is a machine-to-machine communication protocol that works on a publish/subscribe basis, meaning a device only receives a message on subscribed topics, and this is all handled by the Broker. MQTT clients also have the ability to use handler functions, which means that a specific user defined function will be triggered when a message has been received. This user defined function allows for multiple logic checks to be made to determine the intended command, and then another function can be executed thereafter.

This is a very rough explanation of a solution to the problem and please excuse my grammar (I engineer, not spell :)), but it is a fairly robust and "future proof" solution. It does involve alot of programming though, but it is also fun. Whats nice about this solution is that as soon as you get the core mechanisms down, like MQTT, webserver, etc, you can expand on this and add other features like boiling your kettle at a specific time, turn on/off your geyser, etc, and the upgrading prices will be the price of a cheap microcontroller (R200 >), and the electronic components.
 

awvince

Junior Member
Rating - 100%
69   0   0
Joined
Oct 15, 2017
Messages
449
Reaction score
91
Points
835
Im currently doing something NOT exactly like that, but it has a similar premise. It has to do with live data monitoring of the power consumption of several Raspberry Pi's, with the ability to execute commands to one of several arduinos to power on/off an assigned RPi, as well as some other features as well. And all of this is hosted on a central Raspberry Pi.

What I would suggest is setting up a webserver based on python (Flask is good) on the RPi, or inside the docker container, which will be your orchestrator of commands.
This gives you the ability to execute commands based on plant, time, sensor data, etc. Having the orchestrator at a central location also allows for multiple plants to be watered with their own, unique requirements, at different locations.

And then to physically water the plants, use an Arduino with a WiFi hat, or some other controller with WiFi as well, and use MQTT on the device.
MQTT is a machine-to-machine communication protocol that works on a publish/subscribe basis, meaning a device only receives a message on subscribed topics, and this is all handled by the Broker. MQTT clients also have the ability to use handler functions, which means that a specific user defined function will be triggered when a message has been received. This user defined function allows for multiple logic checks to be made to determine the intended command, and then another function can be executed thereafter.

This is a very rough explanation of a solution to the problem and please excuse my grammar (I engineer, not spell :)), but it is a fairly robust and "future proof" solution. It does involve alot of programming though, but it is also fun. Whats nice about this solution is that as soon as you get the core mechanisms down, like MQTT, webserver, etc, you can expand on this and add other features like boiling your kettle at a specific time, turn on/off your geyser, etc, and the upgrading prices will be the price of a cheap microcontroller (R200 >), and the electronic components.
Awesomeness, thanks bud

Sent from my Mi 9T Pro using Tapatalk
 

Latest posts

Top Donors

$260.00
$225.00
$210.00
$113.00
Top