How amiruddinsiddiqui/environmental_data_logging_system works
This is an STM32-based environmental telemetry system with an ESP32 network bridge. Its main workflow schedules BMP280 measurements, receives and compensates sensor data, then logs, displays, and transmits readings; the ESP32 receives serial telemetry and publishes it over Wi-Fi to MQTT subscribers. The graph includes the documented local and remote monitoring branches. Some peripheral implementations and the MQTT publisher’s internal flow were not excerpted, so those relationships are shown only where the source index or README supports them.
Main entry points: app.c Acquisition Orchestrator · main.c ESP32 Task Setup · uart.c STM32 UART · bmp280.c BMP280 Driver
Components 21
STM32 Firmware
- Acquisition Orchestrator
Core/Application/app.c - Firmware Entry
Core/src/main.c
Sensing and Interfaces
- 5-Second Scheduler
Drivers/Peripherals/TIM/tim.c - BMP280 Driver
Drivers/Sensors/BMP280/bmp280.c - I2C Interface
Drivers/Peripherals/I2C/i2c.c - DMA Transfer
Drivers/Peripherals/DMA/dma.c - SPI Interfaces
Drivers/Peripherals/SPI/spi.c - STM32 UART
Drivers/Peripherals/UART/uart.c
Local Outputs
- CSV Logging
Core/Application/Storage/sd_storage.c - FatFs Filesystem
FATFS/App/fatfs.c - microSD Card
- TFT Rendering
Core/Application/UI/tftrender.c - ILI9341 Driver
Drivers/Display/ili9341.c
ESP32 Bridge
- ESP32 Task Setup
ESP32_PUB_MQTT/main/main.c - UART Receiver
ESP32_PUB_MQTT/main/uart/uart2.c - Wi-Fi Station
ESP32_PUB_MQTT/main/wifi/wifi_sta.c - MQTT Publisher
ESP32_PUB_MQTT/main/mqtt/mqtt_pub.c
Remote Telemetry
- MQTT Broker
Other components
- BMP280 Sensor
- PC Serial Monitor
- Phone Subscriber
Connections 23
- Firmware Entry → Acquisition Orchestrator: starts
Core/src/main.c - Acquisition Orchestrator → 5-Second Scheduler: initializes
Core/Application/app.c - Acquisition Orchestrator → BMP280 Driver: initializes and reads
Core/Application/app.c - BMP280 Sensor → BMP280 Driver: provides measurements
readme.md - BMP280 Driver → I2C Interface: reads over I2C
Drivers/Sensors/BMP280/bmp280.c - I2C Interface → DMA Transfer: configures transfer
Drivers/Peripherals/I2C/i2c.c - Acquisition Orchestrator → DMA Transfer: initializes
Core/Application/app.c - Acquisition Orchestrator → CSV Logging: logs readings
Core/Application/app.c - CSV Logging → FatFs Filesystem: writes CSV
Core/Application/Storage/sd_storage.c - FatFs Filesystem → microSD Card: stores files
readme.md - Acquisition Orchestrator → TFT Rendering: updates readings
Core/Application/app.c - TFT Rendering → ILI9341 Driver: renders through
Core/Application/UI/tftrender.c - Acquisition Orchestrator → SPI Interfaces: initializes
Core/Application/app.c - Acquisition Orchestrator → STM32 UART: transmits telemetry
Core/Application/app.c - STM32 UART → PC Serial Monitor: prints diagnostics
readme.md - STM32 UART → UART Receiver: sends serial packets
readme.md - ESP32 Task Setup → UART Receiver: starts task
ESP32_PUB_MQTT/main/main.c - ESP32 Task Setup → Wi-Fi Station: initializes and waits
ESP32_PUB_MQTT/main/main.c - ESP32 Task Setup → MQTT Publisher: starts client and task
ESP32_PUB_MQTT/main/main.c - Wi-Fi Station → MQTT Broker: provides Wi-Fi link
- MQTT Publisher → MQTT Broker: publishes telemetry
readme.md - Phone Subscriber → MQTT Broker: subscribes
readme.md - MQTT Broker → Phone Subscriber: delivers messages
readme.md