How enghuss20/aghe works
Main Components
• Two core hardware modules:
• Arduino Mega Parking Management System – responsible for handling RFID entry/exit, slot monitoring with LDR sensors, emergency detection (via gas and flame sensors), gate control via servo motors, and display updates.
• ESP32 Communication System – tasked with receiving JSON data from the Arduino Mega over the serial interface and uploading this data to ThingSpeak for remote monitoring.
• Peripheral hardware (sensors, displays, RFID readers, servos, etc.) integrated with the Arduino Mega.
• External services (e.g., ThingSpeak for data visualization and remote monitoring).
Out Relationships and Data Flows
• Bidirectional communications for debugging or configuration (e.g., Serial debugging lines) if necessary.
Architectural Patterns and Technologies
• Separation of concerns: Arduino Mega focuses on real-time sensor data acquisition and local control logic while the ESP32 is dedicated to connectivity and cloud integration.
• That each microcontroller uses its own set of Arduino libraries:
• Arduino Mega uses libraries such as SPI, MFRC522, Servo, ArduinoJson, LiquidCrystal_I2C.
• ESP32 uses libraries like ArduinoJson, WiFi, and ThingSpeak.
• These indicate a modular design where both controlled hardware components and external services are clearly demarcated.