How tiesen243/retard-home works
Main Components
• Hardware Layer:
• ESP8266 NodeMCU as the central processing unit.
• DHT11 sensor for temperature and humidity readings.
• LED modules (three LEDs) used for visual indicators.
• Physical push buttons to control the LEDs.
• Software/Firmware Layer:
• The main application logic in src/main.cpp.
• Sensor reading routines interfacing with the DHT11.
• LED control logic and button debouncing for physical inputs.
• The web server implementation (likely using ESPAsyncWebServer, as mentioned in the README) to serve the web interface.
• Connectivity Layer:
• WiFi connectivity on the ESP8266 to set up an access point (“ESP8266” with a default password).
• The web interface accessible via a browser (mobile-friendly design with real-time updates).
Relationships and Data Flows
• How physical hardware inputs (DHT11 sensor and push buttons) feed data into the ESP8266.
• That the ESP8266 processes inputs and controls outputs (LEDs) based on both sensor readings and web interface commands.
• Data acquisition from the sensor to the processing module.
• Commands from the web interface to modify LED states.
• Button press events feeding directly into the LED control logic.
• Web interface providing status updates (temperature and humidity) back to the user.
• Wireless communication from the ESP8266 to client devices (e.g., mobile phones or laptops) on the access point network.
Architectural Patterns and Technologies
• Separation between hardware interface and the web server application logic. This modularity shows that:
• Sensor and button inputs are managed at the firmware level.
• The asynchronous web server handles client requests independently.
• Mention the use of PlatformIO for building and flashing the ESP8266 firmware which indicates a standard build pipeline.
Additional Suggestions
• Although the project is fairly simple, ensure each element is clearly separated to explain responsibilities.
• You may also refer or even include a simplified version of the provided retard-home.drawio file as a starting reference and build upon it with detailed explanations.