1 / 5
ESP8266 / ESPhome Air quality monitor — zdjęcie 1
1 / 5

ESP8266 / ESPhome Air quality monitor

Zamów wydruk tego modelu

Obliczymy ostateczną cenę na podstawie wybranego pliku. Sprawdzisz ją i zaakceptujesz przed płatnością.

Zapisane na tym urządzeniu.

Forced air monitoring device to measure several parameters

Ocena
0 / 5
Polubienia
3
Pobrania
35
Wydruki
0
Wyświetlenia
412
Oceny
0

Aktualizacja u źródła:

Informacje o modelu

Źródło
Printables
Kategoria
Electronics
Licencja
Creative Commons — Attribution — Share Alike

I wanted to create a forced air monitoring device to measure several parameters in my living space. Fan is used to force air in and around the sensors, this way stagnant air or heat-soak is not an issue.

Measures Temperature, Humidity, Pressure, Co2, TVOC, VOC, LUX and Presence.

OLED can display values directly and ESP also serves values directly to ESPhome/Homeassistant or other home automation system.

Boards/Sensors can be omitted as per requirement.

Fan can be switched on/off using GPIO15, it could also possibly be used to modulate the fan although the fan chosen has an audible whine using PWM. Therefore using +3.3v as supply, to make the fan quiet. Open to any suggestions on quiet radial 30mm fans.

 

I have attached an ESPhome YAML file for configuring, I have omitted LD2420 and AGS10 sensors as I have not received them yet. In this YAML I have averaged Temperature and Humidity between AHT20 & AHT21 for more accuracy. When using this supply your own esphome:, api:, ota:, and wifi: credentials.

 

Parts list: (Links are exact items used, replacements can be used just be sure dimensions are the same)

ESP8266: https://www.aliexpress.com/item/1005007598012744.html

ENS160+AHT21: https://www.aliexpress.com/item/1005006162039607.html

AHT20+BMP280: https://www.aliexpress.com/item/1005006109113441.html

SGP41: https://www.aliexpress.com/item/1005006746827606.html

AGS10: https://www.aliexpress.com/item/1005007369166584.html

TSL2561: https://www.aliexpress.com/item/1005006047383759.html

LD2420: https://www.aliexpress.com/item/1005006337788084.html

NeoPixel: https://www.aliexpress.com/item/1005005862049283.html

Fan: https://www.aliexpress.com/item/1005002449192337.html

BS170: 

M2x6mm(2pcs):

M2x12mm(4pcs):

 

Wiring:

AHT20+BMP280:  (+) (VCC) to 3.3v, SDA-GPIO14(D6), SCL-GPIO12(D5), and GND to GND.

Rest of sensors: (+) (VCC) to 3.3v, SDA-GPIO4(D2) SCL-GPIO5(D1), and GND to GND.

FAN: (+) to 3.3v, (-) to pin1 on BS170, pin2 on BS170 to GPIO15(D8), and pin3 on BS170 to GND.

NeoPixel strip: + to 5v (VIN), DI to GPIO2(D4) and GND to GND.

When assembling it is easiest to wire everything on the bench using about 60mm(~2.5freedom units) wires. I used thin “wire wrap” leads for everything, as these are single core and easy to work with.

 

Quirks! Because the AHT20 & AHT21 share the same address we need to use two separate I2C buses. OLED is not well documented, but figured out the following:

I2C OLED & AHT20+BMP280 is SDA-GPIO14(D6) SCL-GPIO12(D5)

I2C Rest is SDA-GPIO4(D2) SCL-GPIO5(D1)

 

I2C Address list:

ENS160: 0x53

AHT21: 0x38

AHT20: 0x38

BMP280: 0x77

SGP41: 0x59

AGS10: 0x1A

TSL2561: 0x39

OLED: 0x3C

Tagi