Skip to content

Cloud Based Sensoring Solution for flow telemetry. Shown here is an early stage sensoring prototype with azure based alerting and app deployment.

Notifications You must be signed in to change notification settings

OptimChain/Cloud_Hydroponics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 

Repository files navigation

OptimChain Lab 001: Cloud EventHub Configuration Starter

Pi_Computer

In the current hydroponics industry, sensors are used to monitor greenhouse floor-level hydraulic systems to monitor for both water and air deviations in atmospheric conditions. The downtime of any components in this sensoring setup would cause significant damage to greenhouse plant health. Cloud Hydroponics is a cloud azure instrumentation system to complement the existing floor level greenhouse networks. Cloud instrumentation will allow alerting, monitoring, and real time storage of sensor telemetry at scale with customizability.

The system architecture is describled in Figure 1. A floor level master computer is used to control the pis while the pis upload telemetry events to the azure event-hub. (https://azure.microsoft.com/en-us/services/event-hubs/). Telemetry events are ingested and built into a stream with azure data lake storage and processed for Email and Text Alerting. Control-Charts, Rule based Alerting, and Historical Analysis is then built on the azure data lake layer. (https://azure.microsoft.com/en-us/solutions/data-lake/)

Figure 1: Cloud Azure Architecture

Home Pic

To set up the pi system:

Pi Setup:

  1. Fork the code within the Hydroponics_Driver folder:
  2. Install Orchestrator.py as a python module within the Raspbian OS. To use the Raspbian OS, see: https://www.raspberrypi.org/software/
  3. Run Orchestrator.py within the master computer to send GPIO signals within GPIO 2. The flow sensor should be connected to GPIO 2 with group and 5v connected to the relevent pins: https://www.raspberrypi.org/documentation/usage/gpio/
  4. To onboard additional Pis, loop additional functions in the iothub_client_telemetry_sample_run() function or build additional DeviceIds to onboard in more raspberry pis.

Simulated Telemetry Setup:

  1. Fork the code within the Hydroponics_Driver folder:
  2. Install Simulated_Telemetry.py within any local computer python program. When this is run, simulated pulse telemetry will flow into our system

To view the Cloud System:

  1. Log into the Azure Portal: https://azure.microsoft.com/en-us/features/azure-portal/
  1. The hydrostor account contains the root for stored telemetry for this demo lab:

image

  1. The flowdatacontainer account contains all archived telemetry for this demo lab:

image