How rigor64/iot_esp_sleepsense works
SleepSense is an ESP32 sleep-monitoring prototype: its documented workflow is multimodal sensing, local preprocessing, transmission and storage, then sleep-quality analysis. The tree contains sensor/display libraries and an InfluxDB client, but no evident integrated SleepSense application entry point or classifier. The graph therefore distinguishes available library components from README-described stages; documented but unverified integration links are dashed. Source excerpts are partial, so internal wiring beyond the shown references is not asserted.
Main entry points: EPS Sensor acquisition · InfluxDbClient.cpp InfluxDB client · Adafruit_SSD1306.cpp SSD1306 display · Adafruit_GFX.cpp Graphics rendering
Components 20
Sensor acquisition
- Sensor acquisition
EPS - DHT11 reader
EPS/progetti_iot/dht11_test/main/esp32-dht11.c - DHT sensor library
EPS/libraries/DHT_sensor_library/DHT.cpp - BH1750 light
EPS/libraries/BH1750/src/BH1750.cpp - MPU6050 motion
EPS/libraries/MPU6050_light/src/MPU6050_light.cpp - Adafruit MPU6050
EPS/libraries/Adafruit_MPU6050/Adafruit_MPU6050.cpp
ESP32 presentation
- Local preprocessing
EPS - SSD1306 display
EPS/libraries/Adafruit_SSD1306/Adafruit_SSD1306.cpp - Graphics rendering
EPS/libraries/Adafruit_GFX_Library/Adafruit_GFX.cpp - SPI display transport
EPS/libraries/Adafruit_GFX_Library/Adafruit_SPITFT.cpp - Bus I/O
EPS/libraries/Adafruit_BusIO/Adafruit_SPIDevice.cpp
InfluxDB persistence
- InfluxDB client
EPS/libraries/ESP8266_Influxdb/src/InfluxDbClient.cpp - Point data
EPS/libraries/ESP8266_Influxdb/src/Point.cpp - HTTP service
EPS/libraries/ESP8266_Influxdb/src/HTTPService.cpp - InfluxDB server
- Flux result parser
EPS/libraries/ESP8266_Influxdb/src/query/FluxParser.cpp
Sleep analysis
Other components
- Sleep environment
Connections 19
- Sleep environment → Sensor acquisition: provides readings
- Sensor acquisition → DHT11 reader: reads DHT11
EPS/progetti_iot/dht11_test/main/esp32-dht11.c - Sensor acquisition → DHT sensor library: reads humidity
EPS/libraries/DHT_sensor_library/DHT.cpp - Sensor acquisition → BH1750 light: reads light
EPS/libraries/BH1750/src/BH1750.cpp - Sensor acquisition → MPU6050 motion: reads movement
EPS/libraries/MPU6050_light/src/MPU6050_light.cpp - Sensor acquisition → Adafruit MPU6050: reads movement
- Sensor acquisition → Local preprocessing: sends readings
- Local preprocessing → SSD1306 display: presents locally
EPS/libraries/Adafruit_SSD1306/Adafruit_SSD1306.cpp - SSD1306 display → Graphics rendering: renders graphics
EPS/libraries/Adafruit_SSD1306/Adafruit_SSD1306.cpp - Graphics rendering → SPI display transport: draws via
- SPI display transport → Bus I/O: transfers data
EPS/libraries/Adafruit_GFX_Library/Adafruit_SPITFT.cpp - Local preprocessing → InfluxDB client: transmits readings
EPS/libraries/ESP8266_Influxdb/src/InfluxDbClient.cpp - InfluxDB client → Point data: serializes points
- InfluxDB client → HTTP service: sends requests
- HTTP service → InfluxDB server: writes data
- InfluxDB server → Flux result parser: returns query results
- InfluxDB server → Sleep classification: supplies stored data
- Sleep classification → Future ML analysis: may extend to
- InfluxDB server → Future dashboard: may visualize data