+ All Categories
Home > Documents > Modeling Framework for Control of Bacterial Nitrification in...

Modeling Framework for Control of Bacterial Nitrification in...

Date post: 30-Dec-2020
Category:
Upload: others
View: 3 times
Download: 0 times
Share this document with a friend
47
Modeling Framework for Control of Bacterial Nitrification in Aquaponics-Inspired Hydroponics System: A Masters Thesis in Electrical Engineering at Colorado School of Mines Clayton R. Thurmer Advised By: Kevin L. Moore, Dean College of Engineering and Computational Science Aquaponics Fest, Longmont, CO August 10, 2014
Transcript
Page 1: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Modeling Framework for Control of

Bacterial Nitrification in

Aquaponics-Inspired Hydroponics

System: A Masters Thesis in

Electrical Engineering at Colorado

School of Mines

Clayton R. Thurmer

Advised By: Kevin L. Moore, Dean

College of Engineering and

Computational Science

Aquaponics Fest, Longmont, CO

August 10, 2014

Page 2: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Outline

● About Me

● Intro to Control Engineering

● Thesis Project Overview:

o Motivation

o Goals

o Modeling

o Lab Design

o Startup and Nominal Operation

o Control Design

o Experiment

Page 3: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

About Me

● BA CS 12/2008

o Oberlin College (OH)

● Software Engineer

o Aerospace/Defense

● MS EE 8/2014

o CSM

o K-12 Outreach

● Aquaponics project since 6/2013

● Hobbies: hiking, skiing, (soil)

gardening

Page 4: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Intro to Control Systems

● Feedback control

● Dynamics o PID

● MIMO Systems o multiloop

o state-space

Page 5: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Thesis Project Overview

● Motivation

● Goals

● Modeling

● Lab Design

● Startup and Nominal Operation

● Control Design

● Experiment

Page 6: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Motivation

● Water/Energy tradeoffs of Aquaponic Systems not well

understood:

o Assumed reduced water use of Aquaponics vs.

traditional Aquaculture/Horticulture

o Colorado Water Deliveries:

86% Agriculture

3% Recreation/Fisheries

● Control system designs absent in literature

● System level analysis absent in literature

Page 7: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Goals

● Increase the efficiency of aquaponic

systems through use of advanced control

techniques.

● Efficiency = Outputs/Inputs o aggregation of terms using prices per unit

● For controlled system: o Efficiency = Outputs/“Control Effort”

Page 8: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Approach

● Modeling

o identify key parameters & interactions

o define inputs and outputs

● Lab Design

o provide experimental data

● Experiment

o inform/verify model

o proof-of-concept control design

o efficiency analysis

Page 9: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Modeling

● Subsystem approach: o Biological

Aquatic Life (Fish)

Bacteria

Plants

o Chemical

pH

o Thermal (non-aqueous environment)

o Fluidics (aqueous environment)

Page 10: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Modeling (revised due to regulation)

● Subsystem approach: o Biological

Bacteria

Plants

o Chemical

pH

Aquatic Life Simulation

o Thermal (non-aqueous environment)

o Fluidics (aqueous environment)

Page 11: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Plants

● Inputs: o Micro/Macro Nutrients

H,C,O from air & water

o PAR (light)

● Processes: o Photosynthesis

o Cellular Respiration

o Nitrogen Assimilation

● Environmental Parameters

Page 12: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Photosynthesis & Cellular Respiration

Photosynthesis:

Cellular Respiration:

Page 13: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Nitrogen Assimilation (Ionic Balance)

● Plant must maintain a neutral charge

● In order to absorb negatively charged

Nitrate, the plant will either: o absorb positively charged nutrient ion (Calcium)

o release negatively charged ion (Bicarbonate)

Page 14: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Plant Life Model Non-Aqueous Parameters

Aqueous Parameters

Outputs Chemical Inputs

Page 15: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Bacteria

Nitrosomona:

Nitrobacter and Nitrospira:

Page 16: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

pH

Hydrogen ions released by Nitrosomona cause a drop in pH. Buffer chemical

needed to maintain pH at desirable level:

Example:

Page 17: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Aquatic Life Simulation

Simulate aquatic life with manual

addition of ammonia (chemical form

of fish waste). Same idea as

“Fishless Cycling” method.

Page 18: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Thermal (non-aqueous parameters)

Thermal system designed to maintain desirable non-

aqueous parameters (may require external energy):

Page 19: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Fluidics (aqueous parameters)

Fluidics system

designed to

maintain

desirable

aqueous

parameters

(may require

external energy

and water):

Page 20: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Control Objectives

1. Maintain Desirable Set-points a. Possible death of organisms if parameters fall out

of range

2. Maximize/Increase Efficiency a. Explore energy/water tradeoffs

3. Secondary objectives: a. reliability

b. ease of use

c. preservation of equipment

Page 21: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Abstract Model

● Subsystem

approach to

controlling

parameters

● Measure “Control

Effort” used for

variable

manipulation

Page 22: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Lab Design

Considerations:

1. Physical Design

2. Species Selection

3. Actuators

4. Sensors

5. Integration

6. Maintenance

7. Source of materials

Constraints:

1. Small space

2. Shared space

3. No natural light

4. Undefined ambient

conditions

5. Limited budget and

timeframe

Page 23: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Physical Design

Japan Aquaponics Micro System

Design:

● IKEA shelving units

● Hydroton media bed

● Siphon drain

● Continuous pump

o manual bypass valve

Modified to include:

● Mylar enclosure

● Artificial lighting

● Ventilation fan

Page 24: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Actuators

Pump

Light

Water Heater

Aerator

Fan

Failsafe Aerator

Considerations:

● Light: Color Temperature, Lux to PAR conversion

● Heater and Aerator: Saturation

● Pump: Flow rate, siphon actuation

Page 25: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Sensors (non-aqueous)

Considerations:

● Light: Spectral sensitivity (PAR)

● CO2: sourcing

Page 26: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Sensors (aqueous)

Considerations:

● Manual Nitrogen measurements

● Atlas Scientific sensors with serial interface boards

● Flow sensor pre-filter clogged

Page 27: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Sensors (outputs, control effort)

Considerations:

● (Lack of) High rate plant mass sample

● Manual additives

● Kill-a-Watt integration

Page 28: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Integration

Arduino Mega 2560

Real Time Clock

Logic Level

Converter

Serial Multiplexers

SainSmart 8

channel 5V relay

Tweet-a-Watt mod

Page 29: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Species Selection

● Spinach and Goldfish intended

● Regulations -> No Goldfish!

● Crawfish possible (invertebrates)

o Red claw too big

● Too hot for spinach -> “warm weather” crops: Pak Choi, Basil, Mesclun

Page 30: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Lab photos

Page 31: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Startup and Nominal Operation

Page 32: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Model Verification and Control

● Manual additives for chemical control o Combined “Biochemical” model

● Implementation specific models o Thermal

o Fluidics

● “Nitrifying Hydroponics” model

Page 33: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Manual Control

1. pH Buffer

2. Water Level

3. Aquatic life

simulation

Note: difficulty

manipulating small

scale system

Page 34: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Biochemical Model

Page 35: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Thermal Model

Page 36: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Fluidics Model

Page 37: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Aeration Control Data

● Before cycling.

● DO set point

realized

● ~75 deg F.

● Aeration duty: o 75%

Page 38: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

System

Model

Page 39: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Thermal System Ignored

Page 40: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Simplified “Top-level” Model

Page 41: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Experiment

● Motivation: o “negative” relationship

between DO and Tw

observed

● Design: o Grow mesclun at different

water temperatures

o Seed to harvest

● Outcomes: o impact on DO?

o impact on efficiency?

Page 42: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Results

Set-point Tw 80 deg F 70 deg F

Water Temp. 80.3 deg F 71.0 deg F

Set-point DO 80% saturation 80% saturation

DO 30.3% saturation 38.5% saturation

%duty (air) 100% 100%

Page 43: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Analysis

Efficiency(80) = 1.214

Efficiency(70) = 1.677

Page 44: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Conclusions

1. Efficiency increased at lower temperature

a. less energy used (by heater)

b. less water used (evaporation and absorption)

c. less plant mass produced

2. Nitrification increased

a. more additives used

b. higher dissolved Oxygen

3. Feedback of DO not effective

a. saturation

i. exogenous parameters (salinity?)

Page 45: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Future Directions

1. Reduce additive quantities:

a. Sub-optimal nitrification rates i. saturation of Nitrate

2. Exploration of thermal subsystem a. PAR and CO2 coupling

3. High rate plant sampling desired a. image processing

b. IR reflectometry

Page 46: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Summary

● Aquaponic system model developed: o Subsystem approach

● Lab designed

● Control system designed

● Experiment: o Water Temperature changed

● Efficiency Analysed

Page 47: Modeling Framework for Control of Bacterial Nitrification in …3cwmxj2d81j135u0ir33yc8a-wpengine.netdna-ssl.com/wp... · 2020. 8. 27. · Modeling Framework for Control of Bacterial

Questions?

Clayton Thurmer

[email protected]


Recommended