Home

Awesome

ESP RCM - Room Climate Monitor with ESP8266, HTU21D, Si7021, AM2320

Room Climate Monitor system using a cheap sensor HTU21D, SI7021 or AM2320 and Espressif's ESP8266 Microcontroller.

Preface

This project is based on a similar esp-rfid project by Ömer Şiar Baysal. I have used many done code and also design of html pages because it is very good. It saved me a lot of work.

Features

For Users

For Tinkerers

Getting Started

This project still in its development phase. New features (and also bugs) are introduced often and some functions may become deprecated. Please feel free to comment or give feedback.

What You Will Need

Hardware

Software

Using Compiled Binaries

Download compiled binaries from GitHub Releases page https://github.com/Pako2/esp-rcm/releases On Windows you can use "flash.bat", it will ask you which COM port that ESP is connected and then flashes it. You can use any flashing tool and do the flashing manually. The flashing process itself has been described at numerous places on Internet.

Building With PlatformIO

Backend

The build environment is based on PlatformIO. Follow the instructions found here: http://platformio.org/#!/get-started for installing it.

The resulting (built) image(s) can be found in the directory /bin created during the build process.

Frontend

You can not simply edit Web UI files because you will need to convert them to C arrays, which can be done automatically by a gulp script that can be found in tools directory or you can use compiled executables at the same directory as well (for Windows PCs only).

If you want to edit esp-rcm's Web UI you will need (unless using compiled executables):

Gulp script also minifies HTML and JS files and compresses (gzip) them.

In order to test your changes without flashing the firmware you can launch websocket emulator which is included in tools directory.

Get more information here: https://stackoverflow.com/questions/3102819/disable-same-origin-policy-in-chrome

Pin Layout

The following table shows the typical pin layout used for connecting readers hardware to ESP:

SignalSensorWeMos D1 miniNodeMcuGeneric
I2C SDASDAD2D2GPIO-4
I2C SCLSCLD1D1GPIO-5
Note:

Remember, the I2C bus needs pull-up resistors of 4.7kΩ. On most modules, however, these resistors are already mounted.

Steps

Known Issues

License

The code parts written by ESP-RCM project's authors are licensed under GNU GPL v.3, 3rd party libraries that are used by this project are licensed under different license schemes, please check them out as well.