Cultivate your plants and mushrooms with ease through a Raspberry Pi driven monitoring and controlling system.
AgroPi is a flexible modular monitoring and actuating tool which allows user to control enviroment within a small chamber to provide the desired conditions for mushroom and plant cultivation. It is up to the user to decide what actuators fit the enviromental chamber needs best as the main swiching technology utilizes GPIOs controlling relay board.
Website interface enables user to easily display and control the conditions within enviromental chamber in real time. In addition AgroPi takes photos of your growth in constant intervals so you can show off your crops.
v0.2 Release allows you to view the following conditions on the website interface:
- Temperature
- Humidity
- Light Intensity
- TVOC
- eCO2
- Ethanol
- Hydrogen
Dashboard
As well as easily set the target values for your environmental chamber.
Control Panel
Camera also allows for basic seedlings detection
Control Panel
Sensors:
- Raspberry Pi Camera Rev 1.3 Lens: P5V04A, Cable: AWM 20624
- Thermometer + Humidity - SHT31D
- Light - VEML7700
- Gas - SGP30
Actuators - This is your choice as AgroPi is designed to control relay by changing state of the GPIO pins(make sure your relay module is compatible with 3v3 logic). For our demo the following are used:
Switching Technology:
Actuators:
- Heating Element - Zerodis PTC Heating Element AC/DC 12V (80 ℃ 2—5W)
- Water Pump
- Fan - Coolermaster A12025-12CB-3BN-F1
Schematics:
Example Setup
[x] Next Software Release (v0.2) - Actuation & Image Processing - Detecting Seedling/Mushroom - 20/04/2021
- Camera Integrated
- Relay Board Driver
- Relay Board Integration
- Web-Server Improvments
- Gather Training Dataset
- Train neuralnet
- Test on real samples
[] Software Release 3 Planning scheduled for september 2021(v0.3)
- Clone the repository
git clone https://github.com/krogk/AgroPi
- Ubuntu Packages:
chmod +x install.sh
./install.sh
- Server Depencencies:
pip install -r requirements.txt
1.Build:
mkdir build
cd build/
cmake ..
make test ARGS="-V" <- Optional Test Run, All sensors must be connected
make
- Point Nginx File to AgroPi static website, modify the contents of /etc/nginx/sites-enabled/default
server {
listen 80;
server_name localhost;
location /favicon.ico {
return 204;
access_log off;
log_not_found off;
}
location /sensor/ {
include fastcgi_params;
fastcgi_pass unix:/tmp/fastcgisocket;
}
location / {
root pathToAgroPi/AgroPi/software/web/html;
index dashboard.html;
}
location /static/ {
root pathToAgroPi/AgroPi/software/web/app;
}
}
To run the software:
- Go to build directory and run application
./src/AgroPi
-
Wait 15 Seconds for application to set up sensors.
-
Connect to webiste in your browser on your phone or pc
(Rpi ip adress):80
4.Switch to control pannel, update your target values and enable your actucation heuristics.
See CONTRIBUTING
for more information.
Distributed under the GPL-3.0 License. See LICENSE
for more information.
Samuel Obosu - Web server & Network Programming
Andrew Scott-George - Image Processing, 3D design, & PR
Kamil Rog - C++ Real-time Embedded Programming