How perseusnomit/monitor-dorm-washingmachines works
Main Components
a. Hardware Layer (Tier 1):
• ESP32 MCU with Current Sensors (030 A)
• Sensor connections
b. Communication Layer (Tier 2):
• Raspberry Pi 3 running Mosquitto Broker
• MQTT protocol connections
• Topic structure for wash machine states
c. Application Layer (Tier 3):
• Python Service components:
• MQTT Subscriber
• Control Logic
• Flask Web Server
• Data processing units
d. Presentation Layer (Tier 4):
• Web Interface
• Client-side MQTT consumer
• Frontend components (HTML, CSS, JS)
[Hardware Layer]
• ↓ MQTT
[Communication Layer]
• ↓ MQTT
[Application Layer]
• ↓ HTTP/WebSocket
[Presentation Layer]
Component Relationships
• Hardware connections (thick lines)
Detailed Component Breakdown
ESP32 Section:
[Current Sensor 1] → [ESP32 MCU] → [Current Sensor 2]
• ↓
• MQTT Publisher
Raspberry Pi Section:
[Mosquitto Broker]
• ↓
[Python Service]
• MQTT Subscriber
• Control Logic
• Flask Web Server
Frontend Section:
[Browser]
• HTML/CSS UI
• JavaScript
• MQTT Client
Additional Elements
• System requirements and dependencies
• Scalability points for additional wash machines
• Critical monitoring points
Technical Details
• MQTT topic structure
• Database connections (MongoDB)
• Service ports and protocols
• Hardware specifications
• System service configurations