Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Arduino esp8266 mh-z19 serial

Build Status Donate License

CO2, humidity and temperature sensor on ESP8266 with mh-z19 co2 sensor and dht-22 temperature and humidity sensor.

sensor sample

You can use project https://github.com/jehy/co2-online-display as backend to this program. See full description on https://geektimes.ru/post/270958/ (you can use Google translate from Russian).

Compilation

All required libraries can be installed with Arduino IDE:

Via console:

arduino --pref "boardsmanager.additional.urls=http://arduino.esp8266.com/stable/package_esp8266com_index.json" --save-prefs
arduino --install-library "ArduinoJson:6.14.1"
arduino --install-library "Adafruit Unified Sensor:1.1.2"
arduino --install-library "DHT sensor library:1.3.8"
arduino --install-library "LiquidCrystal I2C:1.1.2"
arduino --install-boards esp8266:esp8266

cp WiFiCreds.sample.h WiFiCreds.h # EDIT AFTER COPY!
cp dataServer.sample.h dataServer.h # EDIT AFTER COPY!

arduino --verify --board esp8266:esp8266:d1:CpuFrequency=80,FlashSize=4M3M arduino-esp8266-mh-z19-serial.ino

Manualy:

  1. Copy file dataServer.sample.h to dataServer.h and specify there your server address;
  2. Copy file WiFiCreds.sample.h to WiFiCreds.h and specify there your WiFi cridentials;
  3. Install Adafruit Unified Sensor version 1.1.2;
  4. Install DHT sensor library version 1.3.8;
  5. Install ArduinoJson library v 6.14.1;
  6. Install LiquidCrystal_I2C library v 1.1.2;
  7. Compile and upload your sketch;
  8. Enjoy!

For Wemos D1, before compiling sketch:

  1. Add http://arduino.esp8266.com/stable/package_esp8266com_index.json to additional boards in preferences;
  2. Select wemos D1 (or your other board) in boards manager and install it.

Releases

No releases published

Packages

No packages published

Languages