|
1 | 1 | # CO2 Meter with ESP32
|
2 | 2 |
|
3 |
| -## Status |
4 |
| - |
5 |
| -:construction: **Still in development!** :construction: |
6 |
| - |
7 |
| -No final version at the moment! :construction_worker: :building_construction: |
8 |
| - |
9 | 3 | ## Description
|
10 | 4 |
|
11 | 5 | Messasure CO2 particles in to the air.
|
| 6 | +Warns when you should ventilate the room. |
12 | 7 |
|
13 | 8 | ## Features
|
14 | 9 |
|
15 |
| -- ... |
| 10 | +- Measure CO2 concentration in room |
| 11 | +- MQTT support (for Node-Red or Home Assistant) |
| 12 | +- easy integration in own WiFi network (Hotspot settings-page) |
| 13 | +- OLED display: can used independently thanks to the measured values shown on the display |
| 14 | + |
| 15 | +## Parts |
| 16 | + |
| 17 | +- [ESP32 Development Board](https://www.banggood.com/ESP32-Development-Board-WiFi+bluetooth-Ultra-Low-Power-Consumption-Dual-Cores-ESP-32-ESP-32S-Board-p-1109512.html?rmmds=myorder&cur_warehouse=CN) |
| 18 | +- [NDIR CO2 Sensor MH-Z14A](https://www.banggood.com/NDIR-CO2-Sensor-MH-Z14A-PWM-NDIR-Infrared-Carbon-Dioxide-Sensor-Module-Serial-Port-0-5000PPM-Controller-p-1248270.html?rmmds=myorder&cur_warehouse=CZ) |
| 19 | +- [0.96 Inch OLED Display 128\*64 SSD1306](https://www.banggood.com/3pcs-White-0_96-Inch-OLED-I2C-IIC-Communication-Display-128+64-LCD-Module-p-1572835.html?cur_warehouse=CN&rmmds=search) |
| 20 | + |
| 21 | +## Sketch |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | +## Wireing |
| 26 | + |
| 27 | +### CO2 sensor (MH-Z14A) |
| 28 | + |
| 29 | +| Pin on Sensor | description | Pin on ESP32 | |
| 30 | +| ------------- | ----------- | -------------------------------- | |
| 31 | +| 16 | GND | GND | |
| 32 | +| 17 | Power (5V) | VIN (can also used as 5V output) | |
| 33 | +| 18 | UART RXD | GPIO17 (UART 2 TX) | |
| 34 | +| 19 | UART TXD | GPIO16 (UART 2 RX) | |
| 35 | + |
| 36 | +### OLED display (SSD1306) |
| 37 | + |
| 38 | +| Pin on Sensor | description | Pin on ESP32 | |
| 39 | +| ------------- | ------------ | ---------------- | |
| 40 | +| GND | GND | GND | |
| 41 | +| VCC | Power (3.3V) | 3V3 | |
| 42 | +| SCL | | GPIO22 (I2C SCL) | |
| 43 | +| SDA | | GPIO21 (I2C SDA) | |
16 | 44 |
|
17 | 45 | ## Setup
|
18 | 46 |
|
@@ -64,22 +92,17 @@ Topic: co2-meter/`{device ID}`/out/`{command}`
|
64 | 92 | | network.ip | ip address of the module | string |
|
65 | 93 | | co2.isPreheating | TRUE if the sensor is preheated | boolean |
|
66 | 94 | | co2.isReady | TRUE if the sensor is ready | boolean |
|
67 |
| -| co2.temperature | ... | number | |
68 |
| -| co2.ppm | ... | number | |
69 |
| - |
70 |
| -## Sketch |
71 |
| - |
72 |
| - |
| 95 | +| co2.temperature | temperature from sensor (in °C) | number | |
| 96 | +| co2.ppm | CO2 concentration in the air (in ppm) | number | |
73 | 97 |
|
74 | 98 | ## TODOs
|
75 | 99 |
|
76 | 100 | - [x] buy sensor and ESP32
|
77 | 101 | - [x] soldering first prototype
|
78 | 102 | - [x] add WifiManager to easy setup
|
79 |
| -- [ ] create sketch |
80 |
| -- [ ] test firmware |
81 |
| -- [ ] test OTA updates |
| 103 | +- [x] create sketch |
| 104 | +- [x] test firmware |
| 105 | +- [x] test OTA updates |
| 106 | +- [x] add part list |
82 | 107 | - [ ] create housing (from wood)
|
83 |
| -- [ ] create example flow with [Node-RED](https://nodered.org/) |
84 |
| -- [ ] add part list |
85 | 108 | - [ ] add video doc
|
0 commit comments