Co2 Monitor with SCD30
Description
CO2 Monitor using SCD30 - Connect with Home Assistance Printing: ----------- Layer - 0.2 Printer - Ender 3 v2 Infill - 20% Support - Not required Component: ---------------- - Nodemcu ESP8266 - OLED screen 0.96 , SSD1306 with I2C port - SCD30 - Jumper wire - 4 M3x6 - to lock esp8266 - 4 M1.7x4 - to lock ssd1306 screen Software: ------------ Using ESPHome to flash and configure the interaction Pin Mapping: ----------------- Nodemcu D1 -> SSD1306 SDA, SCD30 SDA Nodemcu D2 -> SSD1306 SCL, SCD30 SCL Nodemcu 3V -> SSD1306 VCC Nodemcu G -> SSD1306 GND Nodemcu 3V -> SCD30 VDD Nodemcu G -> SCD30 GND Note: nodemcu8266 only support one port of i2c so you need to connect D1 to both SDA of SSD1306 and SCD30. The same apply for D2 for SCL. nodemcu8266 have multiple 3V and G pin, so choose one for SSD1306 and SCD30 ================================================================ ESPHome yaml: ---------------------- <pre><code> i2c: sda: D2 scl: D1 scan: True sensor: - platform: scd30 co2: name: "Home CO2" accuracy_decimals: 1 id: my_co2 temperature: name: "Home Temperature" accuracy_decimals: 2 humidity: name: "Home Humidity" accuracy_decimals: 1 automatic_self_calibration: true update_interval: 60s display: - platform: ssd1306_i2c model: "SSD1306 128x64" brightness : 1% rotation: 180 lambda: |- it.printf(0, -10, id(my_font), "%.0f", id(my_co2).state); font: - file: "fonts/ComicSansMS.ttf" id: my_font size: 54 </code></pre> ================================================================ I only interested in CO2 number, so I display only that. You could modify "lambda" in the yaml to display temperature and humidity as you want.
Statistics
Likes
15
Downloads
0