How makersfunduck/humidity-temperature-sensor-th05f works
Main System Components
a. Hardware Layer:
• Sensor interfaces (CHT8215, CHT8310, CHT8305, AHT20..30)
• I/O components (LCD display, buttons, RX/TX pins)
• Battery management system
b. Firmware Layers:
• Boot Layer (0x03000 - 52KB)
• Application Layer (0x10000 - 128KB)
• History Storage (0x30000 - 304KB)
• Settings Storage (0x7C000 - 16KB)
c. Communication Interfaces:
• BLE Stack (show advertising and connection paths)
• UART/Debug interface
• I2C for sensors
Key Architectural Elements
• Boot Mode (minimal functionality + OTA)
• Application Mode (full functionality)
• OTA Update Mode
b. Data flows:
• Sensor readings → Processing → BLE Advertisement
• Button Input → Mode Control
• Battery Monitoring → Status Updates
• External Trigger Input → Event Processing
Integration Points
a. External Systems:
• Home Assistant integration
• BTHome protocol interface
• OTA update mechanism
• USB-COM programming interface
Specific Features
• BTHome v2 advertisement handling
• Trigger system for temperature/humidity control
• History recording mechanism
• Battery monitoring system
• Counter/event handling system
Technical Details
• Memory map overlay
• BLE advertisement intervals
• Sensor polling intervals
• Battery measurement timing
• History recording intervals
Interface Layer (BTHome Protocol, External Communications)
This system architecture should emphasize the project's focus on low power consumption, reliable OTA updates, and seamless integration with home automation systems while maintaining clarity about the different operational modes and data flows.