Data Flow

data transmission

Power Availability Check:

  • If power is available, proceed to check the AWS (Amazon Web Services) connection.
  • If power is not available, switch the power connection to the battery.

AWS Connection Check:

  • If AWS connection is available, check for user interaction with the system.
  • If AWS connection is not available, buffer and handle basic functionalities to the MQTT broker

User Interaction Check:

  • If the user shuts down the system, end the process.
  • If the user is interacting with the system, proceed to interact with the user's mobile application through the admin web.

Environmental Parameter Checks:

Assuming power, connection, and user interaction are all okay, Check the Total Dissolved Solids (TDS) sensor value,

  • If the TDS value is not within the specified range, turn on or off the proper nutrient pump accordingly.
  • If the TDS value is okay, proceed to the next check.

Check the pH sensor value,

  • If the pH value is not within the specified range, turn on the proper pH pump.
  • If the pH value is okay, proceed to the next check.

Check if the floating switch is equal to 1,

  • If the floating switch is not equal to 1, generate an alert to notify the user.

Looping Process:

  • If all the values are within the proper range, execute the entire process as a loop to ensure the reliable and continuous operation of the automated hydroponic system.