Performance Testing and Final Code

(Week 15)

Performance Test

Each sensor and pump needs to be able to communicate with the microcontroller and adjust the environment when necessary. So, the sensors and pumps underwent a performance test, analyzing if the sensors and pumps can intake accurate information and signal other components within the system. Each electronic was tested according to the performance test detailed in Testing Procedures.

In the video below, the system operates off the finalized code, allowing all the electronics to communicate with each other and adjust the environment. To demonstrate every scenario within the system, the conditional statements within the code were altered as the measured values in the growth tent were mostly stagnant at the time of recording. 

The video highlights a normal run of the sensors checking the hydroponic environment and then shows the other ways the system can react to adjust the conditions within the tent.

Performance Test Video.mp4

NOTE: There are six sensors in total in the system that can cause eight different effects on the environment/messages to the operator. 

Finalized System

Final Code

This is the finalized code that operates the hydroponic system. The code can be coded and used in Arduino IDE.

Final Code

Walkthrough: Alter Code for Different Conditions

If necessary, the above code can be changed to grow different plants with alternate environmental needs. Below is a walkthrough on how to alter the conditional statement within the code for any plants' required needs.

Walkthrough for Altering Code for Different Plant Types