Architecture - I4ET-Group3/I4ET-Group-4 GitHub Wiki

image

Cloud Computing Architecture Documentation

Overview

This architecture outlines a comprehensive cloud-based IoT system designed for robust data collection, processing, and visualization. It leverages Node-RED for cloud operations, uses MQTT for data transmission, and integrates various IoT sensors and gateways to form a cohesive monitoring solution.

Components of the Architecture

IoT Devices

Sensors

  • Smoke Sensor: Essential for detecting smoke in environments prone to fire hazards, ensuring timely alerts and actions.
  • Flame Detector: Critical for immediate detection of flames, providing an essential response mechanism in fire safety systems.
  • Temperature/Humidity Sensor: Vital for monitoring environmental conditions, which can be crucial for applications ranging from agricultural to industrial settings.
  • Vibrations Sensor: Important for detecting abnormal vibrations in machinery or structures, helping prevent failures and maintain operational integrity.

Gateways

  • Function: Serves as the intermediary that bridges IoT sensors with the cloud infrastructure. These devices gather data from sensors and transmit it securely over the Internet.
  • Example Hardware: Utilizes devices such as Arduino boards and Raspberry Pi, which are capable of handling multiple sensor inputs and supporting various communication protocols.

Communication Protocol

  • MQTT: A lightweight messaging protocol that provides efficient data transfer over the network. It operates on a publish/subscribe model, making it highly effective for IoT applications where multiple devices need to communicate intermittently with a central server.

Node-RED (Cloud Layer)

  • Role: Acts as the central processing unit within the cloud, handling data ingestion, processing, and actuation commands.
  • Functionality: Configured to receive data published over MQTT, Node-RED processes this data based on predefined flows. It can perform functions such as data filtering, aggregation, and triggering alerts based on specific sensor readings.

Dashboard

  • Implementation: Utilizes Node-RED’s Dashboard 2.0 nodes to create interactive and dynamic visual representations of the data.
  • Features: This dashboard provides real-time updates on sensor data, offering customizable views for different metrics such as temperature levels, smoke detection, and system health statuses. It allows users to interact with the data, enhancing user engagement and providing actionable insights.

Data Flow

  1. Sensor to Gateway: Sensors deployed in various locations collect data and send it to the nearest gateway using protocols appropriate for their operation, such as Zigbee, Bluetooth, or direct wired connections.
  2. Gateway to MQTT: Each gateway formats the collected data into MQTT-compatible messages and publishes them to specific topics on an MQTT broker over the Internet.
  3. MQTT to Node-RED: Node-RED subscribes to the relevant MQTT topics, receiving data as it is published. Node-RED then processes this data, applying logic defined in its workflows.
  4. Node-RED to Dashboard: The processed data is forwarded to a dashboard, which updates in real-time to reflect current conditions and sensor statuses.

Conclusion

This architecture effectively combines modern IoT technologies to create a scalable, responsive monitoring system suitable for a wide range of applications. By leveraging Node-RED in the cloud along with efficient MQTT communication, the system ensures real-time data processing and user interaction through a sophisticated web-based dashboard.