Aquaponics System

Mini Aquaponics Ecosystem

For our project we chose to do an aquaponics system. We set up a fish tank with guppies and floating strawberry plants on top of the water.

Project Team

Vikram and Peyton

Project Timeline

2/24/2025 – 3/14/2025

Our aquaponics fish tank

Research Question

Do plants lower nitrogen, ph, and dissolved solid levels in an aquaponics system?

pH

7 – 8

pH should be between 7 and 8.

Nitrate

< 40 ppm

Nitrate should be below 40 ppm

Nitrite

0.5 – 0 ppm

Nitrite should be 0.5-0 ppm.

Temperature

72 – 82

Temperature Between 72 and 82

Discover

Decision Matrix

Instructions: Rate each ecosystem on a 1 to 4 scale against the selection criteria, 4 being the highest.

Selection CriteriaEarth ColumnAquaponicsTerrarium
Is semi-self-sustaining233
Incorporates at least one biogeochemical cycle that can be measured by at least one Arduino sensor243
Is possible to build, achieve homeostasis, and collect data within the project timeline123
Can use the data collected to help maintain the system343
Is safe and appropriately sized for installation on campus444
Does not require excessive expenditure322
Will excite and challenge us!232
Total Score172220

Ecosystem Choice

We think that it has a lot of opportunity for measurement of different bio-geochemical cycles. We also really like the fact that there is water within the system which will provide more challenge.

Ideate

System Diagram

Hand-drawn system diagram by Peyton and Vikram
System diagram

Explanation

(We didn’t want to write it on our beautiful drawing =))

  • Fish eat their food (algae in the water, and fish food)
  • They turn nitrogen in the food to Nitrate.
  • Their byproducts also increase the acidity in the water.
  • Once these solids dissolve, they will increase the number of dissolved solids in the water.
  • Plants moderate nitrate (by absorbing the nitrate)
  • Plants moderate acidity (by absorbing the nutrients that cause it)
  • Plants moderate dissolved solids levels by absorbing it.

We have a pH and Nitrate test strip to monitor pH and Nitrate. The arduino also has a temperature sensor and a Total Dissolved Solids (TDS) Sensor.

Prototype

Ecosystem Build

Fish!!
Fish!!
Soldering the temperature sensor
Soldering the temperature sensor
Our arduino setup with TDS, Temperature, and Screen.
Our arduino setup with TDS, Temperature, and Screen.
pH Test Strip
pH Test Strip
Our Screen!
Our Screen!

Sensors

Sensors and code

We used two arduino sensors: a temperature sensor, and a total dissolved solids (TDS) sensor. We were originally planning on including a color sensor to test the color of the test strips, but, becuase the color sensor was too sensitive, we did not use it.

void loop() {
  lcd.setCursor(0, 0);
  lcd.setTextSize(3);
  sensorValue = analogRead(sensorPin);
  Voltage = sensorValue*5/1024.0; //Convert analog reading to Voltage
  tdsValue=(133.42*Voltage*Voltage*Voltage - 255.86*Voltage*Voltage + 857.39*Voltage)*0.5; //Convert voltage value to TDS value
  SERIAL.print("TDS Value = ");
  SERIAL.print(tdsValue);
  SERIAL.println(" ppm");
  lcd.setTextColor(BLACK, MAGENTA);
  lcd.println("TDS Value = ");
  lcd.print(tdsValue);
  lcd.println("ppm");

  // Call sensors.requestTemperatures() to issue a global temperature and Requests to all devices on the bus
  sensors.requestTemperatures();
  Serial.println(sensors.requestTemperatures());
  lcd.setTextColor(BLACK, YELLOW);
  lcd.println("Celsius: ");
  // Why "byIndex"? You can have more than one IC on the same bus. 0 refers to the first IC on the wire
  lcd.println(sensors.getTempCByIndex(0));
  lcd.println("Fahrenheit: ");
  lcd.println(sensors.getTempFByIndex(0));
  Serial.println("Celsius: ");
  // Why "byIndex"? You can have more than one IC on the same bus. 0 refers to the first IC on the wire
  Serial.println(sensors.getTempCByIndex(0));
  Serial.println("Fahrenheit: ");
  Serial.println(sensors.getTempFByIndex(0));
  delay(1000);

  // Setting RED (R) filtered photodiodes to be read
  digitalWrite(S2,LOW);
  digitalWrite(S3,LOW);
  // Reading the output frequency
  redFrequency = pulseIn(sensorOut, LOW);
  // Printing the RED (R) value
  lcd.setTextColor(BLACK, RED);
  Serial.print("R = ");
  lcd.print("R = ");
  Serial.print(redFrequency);
  lcd.print(redFrequency);
  delay(100);

  // Setting GREEN (G) filtered photodiodes to be read
  digitalWrite(S2,HIGH);
  digitalWrite(S3,HIGH);
  // Reading the output frequency
  greenFrequency = pulseIn(sensorOut, LOW);
  // Printing the GREEN (G) value
  lcd.setTextColor(BLACK, GREEN);
  Serial.print(" G = ");
  lcd.print("G = ");
  Serial.print(greenFrequency);
  lcd.println(greenFrequency);
  delay(100);

  // Setting BLUE (B) filtered photodiodes to be read
  digitalWrite(S2,LOW);
  digitalWrite(S3,HIGH);
  // Reading the output frequency
  blueFrequency = pulseIn(sensorOut, LOW);
  // Printing the BLUE (B) value
  lcd.setTextColor(BLACK, BLUE);
  Serial.print(" B = ");
  lcd.print(" B = ");
  Serial.print(blueFrequency);
  lcd.print(blueFrequency);
  delay(100);
}

Evaluate

Results

As you can see, the level of TDS, pH, Nitrate, and Nitrite stayed consistent throughout the entire experiment. These levels stayed consistent throughout the growth of the plants, and the feeding and defecation of the fish. This clearly shows how the plants moderate the levels of byproducts from the fish.

Figure 1: Nitrate, Nitrite, pH, TDS and Temp
Figure 1: As we can see, the level of Nitrate, Nitrate, and pH are relatively constant. While they fluctuate towards the beginning, you can see that towards the end that they are homeostatic.
Figure 2: Nitrate, Nitrite, pH, TDS and Temp
Figure 2: Here, we can notice that as Nitrate increases, pH increases as well, meaning it is more base. However, as Nitrite increases (due to the conversion of Nitrate to Nitrite) the pH levels drop. The nitrite is then taken away by the tree while the Nitrate increases (from the fish)
Data
DateTimeData CollectedValueNotes
3/142:15pH7.25
3/142:15Nitrate10
3/142:15Nitrite0
3/142:15TDS88.73
3/171:45pH7.5
3/171:45Nitrate10
3/171:45Nitrite0
3/171:50Temp79° F
3/185:30pH7.0
3/185:30Nitrate0Plants starting to grow roots out of the mesh.
3/185:30Nitrite10
3/185:30Temp77.45
3/212:20pH7.0
3/212:20Nitrate10Plants starting to grow roots out of the mesh.
3/212:20Nitrite0.5
3/212:20Temp80.37
3/212:20TDS846.31
3/252:20pH7.25
3/252:20Nitrate10
3/252:20Nitrite0.5
3/252:20Temp76.55
3/252:20TDS441Added in a new aerator.
3/2610:00pH7.5
3/2610:00Nitrate10
3/2610:00Nitrite0.5
3/2610:00Temp79.14
3/2610:00TDS454.02
3/288:28pH7.5
3/288:28Nitrate0.5
3/288:28Nitrite10
3/288:28Temp79.59
3/288:28TDS480.83
3/1711:10pH7.5
3/1711:10Nitrate10
3/1711:10Nitrite0.5
3/1711:10Temp79.7° F
3/1711:10TDS445.97

Conclusion

We have homeostasis!

Figure 1 shows the balance of the Nitrogen while Figure 2 shows the fluctuation. We have nitrogen homeostasis in this system.