Skip to content

krogk/AgroPi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AgroPi

Logo

Cultivate your plants and mushrooms with ease through a Raspberry Pi driven monitoring and controlling system.

Twitter YouTube Instagram Facebook

Contents

  1. About
  2. Getting Started
  3. Contributing
  4. License
  5. Contact

About

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.

Contributors Forks Stars Issues License


Software

v0.2 Release allows you to view the following conditions on the website interface:

  • Temperature
  • Humidity
  • Light Intensity
  • TVOC
  • eCO2
  • Ethanol
  • Hydrogen

Logo

Dashboard

As well as easily set the target values for your environmental chamber.

Actuation

Control Panel

Camera also allows for basic seedlings detection

Actuation

Control Panel

See Doxygen Documentation

Hardware

Raspberry Pi 4 Model B

Sensors:


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:

Schematics:

Mushrooms

Example Setup

Roadmap

[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)

Getting Started

Prerequisites

  1. Clone the repository
git clone https://github.com/krogk/AgroPi
  1. Ubuntu Packages:
chmod +x install.sh
./install.sh
  1. Server Depencencies:
pip install -r requirements.txt

Installation

1.Build:

mkdir build
cd build/
cmake ..
make test ARGS="-V"  <- Optional Test Run, All sensors must be connected
make
  1. 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;
        }
}

Usage

To run the software:

  1. Go to build directory and run application
./src/AgroPi 
  1. Wait 15 Seconds for application to set up sensors.

  2. 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.

Contributing

See CONTRIBUTING for more information.

License

Distributed under the GPL-3.0 License. See LICENSE for more information.

Contact

Samuel Obosu - Web server & Network Programming
Andrew Scott-George - Image Processing, 3D design, & PR
Kamil Rog - C++ Real-time Embedded Programming