# home_environment_monitor **Repository Path**: blueblack1987/home_environment_monitor ## Basic Information - **Project Name**: home_environment_monitor - **Description**: IOT home environment monitor based on esp8266 and micropython - **Primary Language**: Python - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-09 - **Last Updated**: 2021-11-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Home Environment Monitor IOT home environment monitor based on esp8266 and micropython ## Hardware 1. D1 Mini board with esp8266 chip 2. SSD1306, 0.96 inch 128x64 pixels, 7 pin OLED Screen 3. DHT11, Temperature and Humidity Sensor 4. SGP30, CO2 and TVOC Sensor ### Connection | D1 Mini Pin | ESP8266 Pin | SSD1306 | DHT11 | SGP30 | | ----| ---- |----|----|----| | D0 | GPIO16 | | | | | D1 | GPIO5 | | |SCL | | D2 | GPIO4 | | |SDA | | D3 | GPIO0 | RES| | | | D4 | GPIO2 | DC | | | | D5 | GPIO14 | D0 | | | | D6 | GPIO12 | |OUT | | | D7 | GPIO13 | D1 | | | | D8 | GPIO15 | CS | | | | RX | GPIO3/RXD | | | | | TX | GPIO1/TXD | | | | | A0 | ADC0 | | | | | G | GND |GND | - |GND | | 5V | | | | | | 3V3 | 3.3V |VCC | + |VCC | | RST | RST | | | | ## Firmware MicroPython v1.13 2020-09-11; ESP module with ESP8266 ## Communication ### MQTT Protocal 1. download MQTT broker Emqx 2. go to directory emqx\bin\ , open shell, run comand "emqx start" 3. run command "emqx_ctl status" to check if node running ## Upper Monitor Gui ### runtime CPython 3.8.0 ### additional packages Dear PyGui 0.6.139 Paho-mqtt 1.5.1 ### commands run command "python monitor_gui\mqtt_sub_gui.py" ## Prototype ![avatar](https://user-images.githubusercontent.com/13008913/99083762-f3f97700-2600-11eb-96b4-054dbdca560f.jpg) ## Realtime Monitor ![avatar](https://user-images.githubusercontent.com/13008913/99083683-d5937b80-2600-11eb-8443-9e8a42945c07.PNG)