Skip to content

This is a device to tell when to open windows for ventilation. OLED(ssd 1306_128x64) , CO2 senor( MH-Z19).

Notifications You must be signed in to change notification settings

max-hana/arduino_esp32_when_to_ventilate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

arduino_esp32_when_to_ventilate (still in progress)

overview

  • This is a project for ESP32 with SSD1306 OLED modules(Heltec WIFI_KIT_32).
  • MH-Z19B(CO2 sensor) is required to build this whole project. (get it from ebay or amazon. it's approximately US$20.)
  • MH-Z19B can be connected to micro controller in two ways, "PWM" or "Serial". I chose "Serial".
IO pin Selected feature
IO16 U2_RXD
(* OLED reset pin is overridden with U2_RXD)
IO17 U2_TXD

installation instruction

  1. change the value of "SSD1306_LCDHEIGHT" to 64 so that it fits the display dimensions. To do this, simply uncomment "#define SSD1306_128_64" in stead of "#define SSD1306_128_32" in Adafruit_SSD1306.h:Line74-75
  2. change "Wire.begin()" to "Wire.begin(4,15)" in Adafruit_SSD1306.cpp:Line206

Notes

  • The ESP32 board has a cheap/low-quality Chinese chip(CH341). This chip cannot go beyond 115200bps.
  • IO pins for Serial1 is not available. Serial2 is the only available option to communicate with MH-19B for this board.

About

This is a device to tell when to open windows for ventilation. OLED(ssd 1306_128x64) , CO2 senor( MH-Z19).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%