IOT home environment monitor based on esp8266 and micropython
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
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 |
MicroPython v1.13 2020-09-11;
ESP module with ESP8266
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
CPython 3.8.0
Dear PyGui 0.6.139
Paho-mqtt 1.5.1
run command "python monitor_gui\mqtt_sub_gui.py"