Skip to content

aly-fly/CO2_sensor_WiFi_MQTT_OLED

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino CO2 sensor with WiFi , MQTT and charts on webserver

Homebrew (DIY) IoT CO2 sensor. Uses ESP32 module and MH-Z19C (or similar) sensor. Arduino platform.

Features:

  • WiFi connectivity (with WPS)
  • MQTT transmit to SmartNest.cz (using Thermometer template)
  • OLED display
  • Web server with live charts
  • CO2 sensor is connected to UART 2 on ESP32 chip
  • Clock (NTP & Geolocation to get current time)

Hardware

  • Any ESP32 module

Tested on following DEV boards (you must select different pins for OLED)

Tested with sensors:

IMPORTANT !!! Make sure you have a good power supply (stable, low noise and capable of delivering enough current). USB cable (if using development board) must be short and with thick wires. Required are enough filtering capacitors next to the OLED display, CO2 sensor and ESP32 chip. Ground / Earth connection between PE in the socket and GND of the circuit is required, because most USB Power Adapters generate high frequency noise which disturbs measurements.

Unstable power supply or missing Earth connection manifests as unstable CO2 readings with lots of variation and noise.

Too weak power supply causes abnormal high CO2 readings.

Libraries required

Sources

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published