-
Notifications
You must be signed in to change notification settings - Fork 0
Component Details.md
Cuthbert Baines edited this page May 31, 2026
·
1 revision
Purpose: Data collection and preprocessing
Features:
- Reads environmental data from Sense Hat sensors
- Calculates rolling averages for data smoothing
- Publishes data as JSON messages via MQTT
- Runs continuously to ensure consistent data collection
Technologies:
- Python 3
- Raspberry Pi Sense Hat library
- Deque (for rolling average calculations)
Purpose: Central message distribution hub
Responsibilities:
- Receives sensor data from Raspberry Pi
- Routes messages to subscribers
- Handles pub/sub communication
- Manages message persistence (optional)
Configuration:
- Default port: 1883
- Topics: Configurable based on sensor types
Purpose: Real-time data visualization and event logging
Features:
- Visual representation of sensor data
- Event logging interface for field observations
- Real-time data updates via MQTT subscription
- User-friendly dashboard for monitoring
Purpose: Historical data processing and analysis
Features:
- Stores collected sensor data
- Performs statistical analysis
- Generates reports and insights
- Supports trend analysis
- Data Collection → Sense Hat sensors collect environmental measurements
- Processing → Collect Array program calculates rolling averages
- Transmission → Data published to MQTT broker in JSON format
- Distribution → MQTT broker routes data to subscribers
- Visualization → Node-RED displays data in dashboard
- Logging → Events and observations recorded in data store
- Analysis → Historical data analyzed for patterns and insights
- Modularity - Components can operate independently
- Real-time Processing - Minimal latency in data transmission
- Scalability - Easy to add additional sensors or data consumers
- Reliability - Continuous operation and data persistence
- Open Standards - Uses MQTT and JSON for interoperability
| Component | Technology |
|---|---|
| Language | Python 3 |
| Hardware | Raspberry Pi |
| Sensors | Sense Hat |
| Messaging | MQTT |
| Dashboard | Node-RED |
| Data Format | JSON |
- Review Hardware Setup for sensor configuration
- Explore Software Components for detailed code documentation
- Check Data Collection to understand the Collect Array program