Nikunj Patel
Published © GPL3+

Sensirion SCD41 CO2_ESP32_C3_Home Assistant Datalogger

I have designed a board to monitor air quality inside your house. you can connect with Home assistant too.

AdvancedFull instructions providedOver 2 days1,357
Sensirion SCD41 CO2_ESP32_C3_Home Assistant Datalogger

Things used in this project

Hardware components

ESP32
Espressif ESP32
×1
Sensirion SCD41
×1

Software apps and online services

Home Assistant
Home Assistant
Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Hot Plate, Convection
Hot Plate, Convection
3D Printer (generic)
3D Printer (generic)

Story

Read more

Schematics

Sensirion_Co2 files

If you like the PCB Board layout or Altium files please email me at nikopat21@gmail.com

ESP32-C3 board with SCD41

I have designed custom programming PCB board to program it.

Code

ESP32_C3_Co2

C/C++
The code is for Home Assistant. Also you can attache battery and monitor by using Adafruit MAX17043 board.
esphome:
  name: esp-c3
  friendly_name: esp-C3

esp32:
  board: esp32-c3-devkitm-1
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "oOhHDYX2Tp5qFw5ZyR4FwLzxKAXDN433MowHhzjF5a8="

ota:
  password: "21a6366b76c43af624a38c40eac8ac7e"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esp-C3 Fallback Hotspot"
    password: "ffzi0QqN40pt"

captive_portal:

i2c:
     sda: 19
     scl: 18
     scan: true  
sensor:
  - platform: scd4x
    co2:
      name: "Office CO2"
    temperature:
      name: "Office Temperature"
    humidity:
      name: "office Humidity"
    address: 0x62
    update_interval: 60s

Credits

Nikunj Patel
6 projects • 19 followers
Electromechanical Engineer
Contact

Comments

Please log in or sign up to comment.