Coder Social home page Coder Social logo

zedrichu / mussel-control-system Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 6.12 MB

Control system for mussel growth and web interface to allow remote control on the system.

Python 100.00%
control-systems micropython-esp32 mqtt-broker pid-controller

mussel-control-system's Introduction

๐“œ๐“พ๐“ผ๐“ผ๐“ฎ๐“ต ๐“’๐“ธ๐“ท๐“ฝ๐“ป๐“ธ๐“ต ๐“ข๐”‚๐“ผ๐“ฝ๐“ฎ๐“ถ

๐“Ÿ๐“ป๐“ธ๐“ณ๐“ฎ๐“ฌ๐“ฝ ๐““๐“ฎ๐“ผ๐“ฌ๐“ป๐“ฒ๐“น๐“ฝ๐“ฒ๐“ธ๐“ท

Project completed in the course 22400 Design-Build 4: Autonomous devices for controlling and studying living systems at Technical University of Denmark (DTU). The aim of the project is to build a physical control system, growing algae and mussels that are fed with algae liquid according to the system properties.

๐“Ÿ๐“ฑ๐”‚๐“ผ๐“ฒ๐“ฌ๐“ช๐“ต ๐““๐“ฎ๐“ผ๐“ฒ๐“ฐ๐“ท

The entire system build is presented in the pictures below:

Physical Design

Board Setup

Electronics Scheme

Pumps & Cooler

Pumps & Cooler

๐“Ÿ๐“˜๐““ ๐“’๐“ธ๐“ท๐“ฝ๐“ป๐“ธ๐“ต๐“ต๐“ฎ๐“ป

The PID controller has been developed in-house within the project, without any use of libraries, to allow full control over it's parameters. (See file controllers/PIDController.py)

After several experiments the parameters have been established to have the following values:

Proportional - 8.5
Integral - 2.0
Derivative - 0.2

๐“ฆ๐“ฎ๐“ซ ๐“˜๐“ท๐“ฝ๐“ฎ๐“ป๐“ฏ๐“ช๐“ฌ๐“ฎ

The Web Interface of the system has been on the Adafruit IO dashboard and allows tuning of the PID coefficients and emergency shutdown of the system. Web Interface The graphs for Algae Concentration and Temperature are constantly update with new readings on the feed. The gauge for temperature shows the current state and the accepted boundaries for the controlled system. Whenever the system achieves the desired properties, the System Equilibrium Indicator turns green. While the board is not connected to the internet, the information is stored locally in a log file, according to the following operation scheme: Storage

๐“’๐“ธ๐“ท๐“ฌ๐“พ๐“ป๐“ป๐“ฎ๐“ท๐“ฝ ๐“”๐”๐“ฎ๐“ฌ๐“พ๐“ฝ๐“ฒ๐“ธ๐“ท

In order to improve the efficiency and reactiveness of the control system, a simple task scheduler has been developed to allow concurrency on one CPU core. (See file build/Concurrency.py)

The concurrency arhitecture split on threads is presented in the sketch below:

Multi-threading Arhitecture

drawing

mussel-control-system's People

Contributors

zedrichu avatar jepmik avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.